User`s manual

314
12.6.1 Example of data reception
The following shows an example of storing receive data in the data register.
(1) When the receive transparent code designation is set to Enable and the ASCII-
BIN conversion is set to Disable
Additional code: 10H (DLE), transparent code: 02H (STX)
X83
M0
M1
10H05H
B
41H
A
34H12H
(1234H)
BIDIN
ON
ON
42H
600H
00H , 04H
601H
602H
603H
604H
(B) (A)
42H , 41H
(1234H)
12H , 34H
(LF) (CR)
0AH, 0DH
D3
D10
D11
D12
D13
04H00H
(0004H)
02H11H
(1102H)
(1102H)
11H , 02H
06H
0DH0AH
LH
00H , 04H
(B) (A)
42H , 41H
(1234H)
12H , 34H
(LF) (CR)
0AH , 0DH
(1102H)
11H , 02H
F7H00H
LH
E
N
Q
D
L
E
A
C
K
L
F
C
R
Completion device
Reception data read
request
Status display device
at completion
Transparent code
Additional code (the Q series C24 deletes.)
Data
length
Data section
Data length (receive data count):
Excluding additional codes
For word unit : 0004H
The following diagram is for word unit
Data length
One scan
Abnormal
completion
Normal completion
Data section
Buffer memory Sequence program
device memory
Sets CH1 to the reception
channel
Sets the normal completion flag
Sets the abnormal completion flag
Executes reception
Sets the allowable number of
receive data to 6
Reception data read request
Programmable
controller CPU
External device side
Programmable
controller CPU side
Sum
check
code