
68
(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
is other than 1 to 16.
(Error code: 4101)
• The received data size exceeds the size of the receive data storage device.
(Error code: 4101)
• The device numbers specified for
,
, and
exceed the device point range.
(Error code: 4101)
• An invalid device is specified.
(Error code: 4004)
(5) Program example
When M5000 is turned on, data received from the connected device are read out.
• Devices used
• 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.
Device number
Application
SD1282
Open completion signal
SD1286
Receive state signal
D5000
SP.SOCRCV instruction control data
D500
Receive data length and receive data storage location
M500
SP.SOCRCV instruction completion device
S1
S2
D1
D2
Reading receive
data of Connection
No.1
Normal completion
Error completion
Summary of Contents for MELSEC L Series
Page 1: ......
Page 2: ......
Page 19: ...17 CHAPTER 1 OVERVIEW 1 Memo ...
Page 116: ...114 Memo ...
Page 123: ......