beautypg.com

4 using result codes in the program, 5 when to execute p125, 4 program example – Campbell Scientific SAT ARGOS Argos Transmitter User Manual

Page 11

background image

SAT ARGOS

5

2.3.4 Using Result Codes in the Program

After P125 has executed, check the result codes. If the result code is greater
than or equal to two, execute P125 again. Recheck the result code on the next
pass of the program table. Example Algorithm:

If time to write data

Write data to Final Storage
Execute P125

Use P89 to determine if result code >= 2

If true execute P125

end (P95)

2.3.5 When to Execute P125

Usually P125 is only executed after data has been written to final storage.
While this is not critical, it makes more sense. When P125 sends new data to
the PTT, all data in the PTT is replaced. If P125 is executed when there is no
new data in final storage, P125 returns a result code of 1. Existing data is not
removed from the PTT.

TABLE 2-1. P125 Result Codes

Result Code

Code Meaning

0

Normal response, transmitter on line and data packet received

1

No new data in datalogger active final storage area

2

No response from the transmitter, transmitter may be
transmitting

3

Improper response from transmitter

4

Data packet not properly received by transmitter

5

Transmitter timed out before data packet was received

6

Datalogger serial port not available, probably in use by another
device

2.4 Program Example

;{CR10X}
;
*Table 1 Program

01: 10

Execution Interval (seconds)

; Load values in input locations

1: Bulk Load (P65)

1:

11

F

2:

22

F

3:

33

F

4:

44

F

5:

55

F

6:

66

F

7:

77

F

8:

88

F

9:

3

Loc [ Start_1 ]