User`s manual

285
CHAPTER 11 DATA COMMUNICATIONS USING USER FRAMES
11
11.3 Receive Program
(a) When receiving using arbitrary data and last frame combination. (reception using
Format-0)
D
L
E
10H 02H
S
T
X
01 2
32H33H 02H
A
41H
3
S
T
X
42H
C
43H
B
34H 12H
(1234H)
0DH
L
F
0AH
C
R
30H 31H 04H
E
O
T
;
3BH
X3
M0
M1
ON
ON
ADH
AEH
AFH
B0H
B1H
B2H
B3H
B4H
B5H
120H
121H
25BH
600H
601H
602H
603H
604H
605H
606H
2H
0H
0H
0H
0H
419H
0H
1002H
0H
1H
00H , 06H
(1) (0)
31H , 30H
(3) (2)
33H , 32H
(A) (STX)
41H , 02H
(C) (B)
43H , 42H
(1234H)
12H , 34H
(LF) (CR)
0AH , 0DH
0H
0H
2020H
2021H
2022H
2023H
2024H
2025H
2026H
2027H
0H
0H
0H
0H
0H
0H
0H
0H
INPUT
Completion device
Reception data read
request
1)
Head data
Arbitrary data area
Last frame
(Corresponds to register
No.419H)
Transparent code
Additional code (Removed by the Q series C24.)
When STX is handled
as transparent code.
Status display device
at completion
1 scan
Abnormal
completion
Normal completion
(None)
(Disable)
To D0
2)
To D3
3)
4)
To D10
or after
Buffer memory
(Each 1st designated frame)
(None)
(None)
(None)
(YES)
Reads combinations of user frames
received.
Sets CH1 to the reception channel.
Sets the allowable number of reception
data to 6.
Sets the normal completion flag.
Sets the abnormal completion flag.
Executes reception.
Receive data count
Word units
Receive byte count excluding frame and
additional code (12)/2=6
Byte units
Receive byte count excluding frame and
additional code (12)
The illustration below is for word units.
User frame use control
designation
First frame No. designation
(1st)
(2nd)
(3rd)
(4th)
Last frame No. designation
(1st)
(2nd)
(3rd)
(4th)
Receive transparent
code designation
ASCII-BIN conversion
designation
Receive user frame
( th)
Receive data count
Reception data read request
Receive data
(arbitrary data
area)
(None)
(None)
(None)
User frame receive
format designation
(1st = Format-0)
(2nd = Format-0)
(3rd = Format-1)
(4th = Format-1)
Exclusive Format-1
received data count
(2nd)
(3rd)
(4th)
Buffer memory
(1st)
Programmable
controller CPU
External device
Programmable
controller CPU