App - 41
Appendix 6 Precautions for Using Serial Communication Module
Appendix 6.3 INPUT Instruction
APPENDICES
Appendix 6.3 INPUT Instruction
The following shows the device and buffer memory used in the sample program of
receiving data by the nonprocedural protocol communication.
(1) I/O signal
(2) Buffer memory
The following shows the program example of receiving data by the nonprocedural
protocol communication is shown in Diagram App.28.
(For the I/O signal is X/Y80 to X/Y9F)
Table.App 25 List of I/O Signal
I/O signal
Signal name Description
CH1 side CH2 side
Xn3 XnA Reception data read request ON: Requesting read
Xn4 XnB Reception abnormal detection ON: Abnormal detection
X(n+1)F
Watchdog timer error
(WDT error)
ON : Module error occurred
OFF: Module being normally operated
Yn1 Yn8 Reception data read completion ON: Data read completed
Table.App 26 List of Buffer Memory
Buffer memory address Hexadecimal
(decimal)
Name Stored value
CH1 side CH2 side
258
H
(600) 268
H
(616)
Data reception result
0 : Normal completion
1 or more: Abnormal completion
(error code)
600
H
(1536) A00
H
(2560)
Receive data count
(Number of data for
which read is requested)
0: No receive data
1 or later: Number of receive data
601
H
to
7FF
H
(1537 to 2047)
A01
H
to
BFF
H
(2561 to 3071)
Receive data
Data received from an external
device
Diagram App.28 Program Example
Reads the number of receive data
Stores the number of data read to index
register (Z0)
Reads the specified number of receive data
Reads the receive error code
Turns ON read completion signal (Y81)
0
X83
X9F
FROMP H8 H600 D0 K1
MOVP D0 Z0
FROMP H8 H601 D1 K0Z0
Y81
15
X84
X9F
FROMP H8 H258 D8000 K1
22
X83
X84