CR10X Reference Manual
B-14
CR10X#1
CR10X#2
Send Data
Receive Data
Function
Port
Port
Function
RTS/DTR
C6 ---------------->C8
Interrupt (Subroutine 98)
CTS
C7<---------------- C6
RTS/DTR
TX
C8 ---------------->C7
RX
Figure B-2 Wiring Diagram for CR10X to CR10X Communication Example
CR10X#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:
1
Configuration code
RS232, 1200 baud
03:
0
CTS/Delay before send
04:
6
First control port
RTS = C6
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 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:_________