Campbell Scientific CR23X Micrologger User Manual
Page 259

APPENDIX B. CONTROL PORT SERIAL I/O INSTRUCTION 15
B-15
CR23X#1 PROGRAM - SEND DATA
*
1
Table 1 Programs
01:
5
Sec. Execution Interval
01:
P87
Beginning of Loop
Start loop to generate values
01:
0
Delay
02:
10
Loop Count
02:
P32
Z=Z+1
01:
11
Z Loc [:COUNTER ]
03:
P31
Z=X
01:
11
X Loc COUNTER
02:
1--
Z Loc [:VALUE #1 ]
04:
P95
End
End Loop to generate values
05:
P15
Control Port Serial I/O
01:
1
Repetitions
02:
0
Configuration code
RS-232, 1200 baud
03:
0
CTS/Delay before send
04:
15
C1 RTS/DTR, C5 TXD/RXD
DTR = C1, TX = C5
05:
1
Output start location
06:
10--
Number of locations to send
Start at Loc 10 and (--) convert
07:
0
Input termination character
08:
0
Max characters to receive
09:
100
Delay for CTS/input
wait 1 sec for CTS (C2) to go high
10:
28
First input location
If 1 sec delay expires
before CTS goes high,
store -99999 in Loc 28
11:
1
Multiplier
12:
0
Offset
06:
P
End Table 1
Input Location Labels:
1:VALUE #1
4:VALUE #4
7:VALUE #7
10:VALUE #10
2:VALUE #2
5:VALUE #5
8:VALUE #8
11:COUNTER
3:VALUE #3
6:VALUE #6
9:VALUE #9
12:_________
CR23X#2 PROGRAM - RECEIVE DATA
*
3
Table 3 Subroutines
01:
P85
Beginning of Subroutine
01:
98
Subroutine Number
02:
P15
Control Port Serial I/O
01:
1
Repetitions
02:
0
Configuration code
RS-232, 1200 bd
03:
0
CTS/Delay before send
04:
6
No RTS/DTR, C6 TXD/ RXD
05:
0
Output start location
06:
0
Number of locations to send