6 p127, command 5: clear tx320 error registers, 7 p127, command 6: return tx320 to online mode, 6 edlog programming examples – Campbell Scientific TX320 Transmitter User Manual

Page 43: P127, command 5: clear tx320 error registers, P127, command 6: return tx320 to online mode, Edlog programming examples, 11. p127 command 5: clear error registers, 12. p127, Command, Force online mode

Advertising
background image

TX320 Transmitter

7.6.5.6 P127, Command 5: Clear TX320 Error Registers

Clear error registers of TX320. Requires one input location.

TABLE 7-11. P127 Command 5: Clear Error Registers

In Loc

Contents

1 Result

Code


Result code of 0 indicates success. Command 5 is used to erase all errors from
the error registers of the TX320.

7.6.5.7 P127, Command 6: Return TX320 to Online Mode

Command 6 is used to return the TX320 to online mode. Typically used after a
forced random transmission. The TX320 has an offline time-out of one hour.

TABLE 7-12. P127 Command 6: Force Online Mode

In Loc

Contents

1 Result

code


Result code of 0 indicates success.

7.6.6 Edlog Programming Examples

Edlog Instruction 126 is used to copy data from the datalogger final storage
area to the TX320 data buffer.

Edlog program example 1 writes data to final storage once an hour and
transfers data to the TX320 once every 4 hours.

; Edlog Program Example 1

; Set output flag high hourly

1: If time is (P92)
1: 0

Minutes (Seconds --) into a

2: 60

Interval (same units as above)

3: 10

Set Output Flag High (Flag 0)


; Write a time stamp to final storage

2: Real Time (P77)
1: 1221

Year,Day,Hour/Minute,Seconds

(midnight

=

2400)


; Write 41 input locations to final storage

3: Sample (P70)
1: 41

Reps

2: 1

Loc

[

Status_RC

]


; Check if top of 4 hour interval, if true execute P126

33

Advertising