Campbell Scientific CR10 CR10 Measurement and Control - Page 162
false, ACTIVATE SERIAL DATA OUTPUT, Output, Table, Control, format, PROGRAM CONTROL, Statement,
View all Campbell Scientific CR10 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 162 highlights
sEcTroN 12. PROGRAM CONTROL INSTRUCTIONS 05: P30 01: 0 02: 0 03: 25 Z=F F Exponent ol 10 ZLoc: 06: P95 End Then Do 07: P95 End of Case Statement *** 94 ELSE *** FUNCTION When Command 30 (Then/Else) is used with an lf lnstruction, the Else Instruction is used to mark the start of the instructions to execute if the test condition is false (Figure 3.8-1). The Else Instruction is optional; when it is omitted, a false comparison will result in execution branching directly to the End lnstruction. Instruction 94 has no parameters. *** 95 END *** FUNCTION lnstruction 95 is used to indicate the end/return of a subroutine (lnstruction 85), the end of a loop (lnstruction B7), the end of an lf Then/Else sequence (lnstructions 88-92 when used with command 30), or the end of a Case sequence (lnstruction 93). The End Instruction has no parameters. *** 96 ACTIVATE SERIAL DATA OUTPUT *** FUNCTION lnstruction 96 is used to activate tape, Storage Module (SM192/SM716 or Card Storage Module), or serial data (printer) output. Normally lnstruction 96 is placed in the program table after all Output Instructions have been entered and is executed each time the Table is executed. In this situation any data sent to Final Storage is output as soon as possible. However, by using Program Control Instructions to allow execution of Instruction 96 only at certain times, the user can control when the output device(s) are active. lnstruction 96 allows a choice of serial data format and the selection of Addressed or Pin Enabled device for the serial print output. A single parameter is used to select whether the instruction is to control the tape, "printer", or Storage Module output, and if the printer is selected, the format and baud rate. The Instruction must be entered separately for each device that is to receive output. lf both Final Storage areas are in use, Instruction 96 will send data from the area which is currently active. FinalStorage Area 1 is active at the start ol each Table. Instruction 80 can be used to change the active area. The Area set by Instruction 80 remains active until changed by another Instruction 80 or the Table ends (at which time Area 1 becomes the active Area 1). Instruction 80 can also direct output to lnput Storage, in which case lnstruction 96 assumes Final Storage Area 1. lf the CR10 is already communicating on the 9pin connector when Instruction 96 is executed, the output request is put in a queue and program execution continues. As the 9-pin connector becomes available, each device in the queue will get its turn. The request is not put in the queue if the same device is already in the queue. The data contained in the queue (and which determine a unique entry) are baud rate (if applicable), and the Final Storage Area. Instruction 98 to send characters also uses this queue. When an entry reaches the top of the queue, the CR10 sends alldata accumulated since the last transfer to the device up to the location of the DSP at the time the device became active (this allows everything in the queue to get a turn even if data is being stored faster than it can be transferred to a particular device). Tape output code 00 will not activate the tape untilat least 512 Final Storage Locations have been stored. Code 09 willcause any data between the TPTR and the DSP (location at time lnstruction 96 is executed) to be written to tape. Code 00 is used for most tape applications (Section 4.1 ). The "other Final Storage Area" device option non-active area) allows a "fast" Final Storage be transferred to the main area on some trigger condition so there is some history recorded pri the trigger condition (Section 8.8). 12-6