Mitsubishi Melsec-L Series User Manual page 237

Communication module
Hide thumbs Also See for Melsec-L Series:
Table of Contents

Advertisement

Program example
12 - 22
The following example shows a program that stores data received via the
nonprocedural protocol in D10 and later.
When the input/output signals of the C24 are from X/Y00 to X/Y1F:
1 When the completion device is off, execute the INPUT instruction. If the INPUT
instruction is executed when the completion device is on, data may not be
received properly.
1)
Specify the receive channel.
2)
Clear the reception result and receive data count storage device to 0.
3)
Specify the allowable receive data count.
4)
Store the receive data in the specified device.
5)
After completed, the receive data within the allowable receive data count
(user-specified) is read from the receive data storage area in the buffer
memory.
Once the INPUT instruction is executed, the read completion signal (M0)
specified by user turns ON for one scan.
6)
The receive data of the receive data count is transferred to D110.
7)
The abnormal completion flag is reset by an external command.
12 DEDICATED INSTRUCTIONS
12 - 22

Advertisement

Table of Contents
loading

This manual is also suitable for:

Lj71c24Lj71c24-r2

Table of Contents