App
- 53
Appendix 6 Precautions for Using Serial Communication Module
Appendix 6.9 BIDOUT Instruction
APPENDICES
The program example of sending data by the bidirectional protocol communication is
shown in Diagram App.34.
(For the I/O signal is X/Y80 to X/Y9F)
Diagram App.34 Program Example
Sets the send data and the number of send data.
Writes the send data and the number of send
data to the buffer memory.
Turns ON the send request signal (Y80)
after the data is written.
Turns OFF the send request signal.
Reads the send error code.
Check the error description and take corrective
action according to the error code stored in D20.
Turns OFF the LED and clears the error code.
Turns OFF the send request signal
.
0
23
X9E
X80
X9F
X80
X81
Y80
$MOV
"ABCDEFG"
D11
MOVP
H0A0D D15
MOVP
K5
D10
SET
Y80
32
25
X81
RST
Y80
RST
Y80
TOP
H8
H400
D10
K6
FROMP
H8
H257
D20
K1
Y8E
X50
X60