User`s manual

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