Campbell Manufacturing COM300 Modem User Manual


 
G-1
Appendix G. Using P80 to Redirect
Final Storage Data to Input Locations
The following section of code provides an example of using datalogger
Instruction 80 to redirect Final Storage data to input locations. This is not a
complete program. Instructions would be included prior to this section of code
to measure sensors, perform control functions, and provide initial data
processing. All text entries preceded by a semicolon (;) are comments inserted
by the programmer to explain the instructions.
;The following section of code uses
;program instruction 80 to redirect
;data from final storage to input locations
32: If time is (P92)
01: 0000 minutes into a
02: 60 minute interval
03: 10 Set high Flag 0 ; output data
33: Set Active Storage Area (P80)
01: 3 Input Storage Area ; parameter 3 directs data to input storage
02: 5 Array ID or location ; starting at location 5
34: Maximize (P73)
01: 1 Rep
02: 11 Value with Hr-Min-Sec
03: 4 Loc AIR TEMPC
Every sixty minutes the maximum air temperature will be stored in location #5.
No output data will be sent to Final Storage.
Instruction 80 should follow the instruction setting Flag 0, and should precede
the output instructions. Keep in mind that all output processing instructions
following Instruction 80 will be redirected to input storage until another
Instruction 80 is used or until the program table is executed again (output
defaults to Final Storage Area 1 at the beginning of the program table).