6 - 21 6 - 21
MELSEC-Q
6 DEDICATED INSTRUCTIONS
Program example
The following example shows a program that reads receive data from channel 5.
When I/O signals of the Ethernet module are X/Y00 to X/Y1F
Clock data setting required
Local station storage channel
Arrival monitoring time (20 s)
Processing program when receive completion
Processing program when normal completion
Processing program when abnormal
completion
Performs error code reading, etc.
MOV
D21
D100
X19: Initial normal completion signal
When the data is stored in the receive station channel, the bit corresponding to each
channel of buffer memory RECV instruction execution request area turns on.
Data can be read automatically bu using this signal for the receive command.
The signal turns off shen the RECV instruction is completed.