App
- 45
Appendix 6 Precautions for Using Serial Communication Module
Appendix 6.5 GETE Instruction
APPENDICES
The program example of reading the user registration frame is shown in Diagram App.30.
(For the I/O signal is X/Y80 to X/Y9F)
Diagram App.30 Program Example
Pulse-outputs read command
Sets the read request
Sets the frame No. to be read
Writes read command etc.
Sets read flag
Turns ON the read
request signal.
Reads result of read if read
completion signal is turned ON
Turns OFF the read request signal.
Reads the number of user
registration frames.
Reads the user registration frame.
Resets the read flag.
0
M1
PLS
M0
SET
M1
17
X97
M1
SET
Y97
RST
Y97
RST
M1
X9F
X9E
TO
H8
H2
D0
K2
X97
FROM
H8
H4
D2
K1
FROM
=
D2
K0
H8
H5
D3
K1
FROM
H8
H6
D4
K0Z0
/
D3
K2
D50
+
D50
D51
Z0
4
M0
MOV
K2
D0
MOV
H3EB
D1
X50
Converts the number of bytes
into the number of words.
Add 1 to the number of read
words for the odd data.