Mitsubishi L02CPU User Manual page 103

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 number specified for
• An invalid device is specified.
(5) Precaution
Do not use both this and SP.SOCRCV instructions when reading out receive data of the same connection.
(6) Program example
When M5000 is turned on, data received from the connected device are read out.
• Devices used
Device number
SD1282
SD1286
D5000
• 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.
● Data reception can be speeded up by placing a receive processing program at the beginning of multiple programs.
CHAPTER 7 SOCKET COMMUNICATION FUNCTION
is other than 1 to 16.
S
exceeds the device point range.
D
Open completion signal
Receive state signal
Receive data length and receive data storage location
(Error code: 4101)
(Error code: 4101)
(Error code: 4101)
(Error code: 4004)
Application
Reading receive
data of Connection
No.1
7
101

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents