Mitsubishi L02CPU User Manual page 100

Melsec-l series
Hide thumbs Also See for L02CPU:
Table of Contents

Advertisement

(4) Error
A detection of an operation error turns on the Error flag (SM0) and a corresponding error code is stored in SD0
when:
• The connection number specified for
• The received data size exceeds the size of the receive data storage device.
• The device numbers specified for
• An invalid device is specified.
(5) Program example
When M5000 is turned on, data received from the connected device are read out.
• Devices used
Device number
SD1282
SD1286
D5000
D500
M500
• Program
● To avoid receiving large amounts of data, the volume of received data can be limited by setting the receive data size
using the SP.SOCRMODE instruction.
● Consecutively sent data can be consecutively read out by connecting the completion device of the SP.SOCRCV
instruction to the execution command at the normally closed contact.
98
is other than 1 to 16.
S1
,
, and
exceed the device point range.
S2
D1
D2
Open completion signal
Receive state signal
SP.SOCRCV instruction control data
Receive data length and receive data storage location
SP.SOCRCV instruction completion device
(Error code: 4101)
(Error code: 4101)
(Error code: 4101)
(Error code: 4004)
Application
Reading receive
data of Connection
No.1
Normal completion
Error completion

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents