■Control data
Operand: (s2)
Device
Item
+0
System area
+1
Completion status
Operand: (s3)
Device
Item
+0
Send data length
+1 to +
Send data
*1 The send data is sent in units of bytes sequentially from lower bytes. When an odd number of bytes of data is received, the last send
data is stored in the lower byte of the last data storage area.
When TCP is used, the send data length should be equal to or less than the maximum window size (TCP
receive buffer) of the external device. Data which exceeds the maximum window size of the external device
cannot be sent.
Processing details
• Sends the data in the device specified by (s3) to the external device of the connection specified by (s1).
CPU module
Send data length
(s3)+0
Send data
(s3)+1
(s3)+2
Send data
·
·
Send data
(s3)+n
• The execution status and the completion status of the SP.SOCSND instruction can be checked with the completion device
(d) and the completion status indication device (d)+1.
• Completion device (d)
This device turns on during END processing of the scan where the SP.SOCSND instruction completes, and turns off during the next END processing.
• Completion status indication device (d)+1
This device turns on or off depending on the completion status of the SP.SOCSND instruction.
When completed successfully: The device remains off.
When completed with an error: The device turns on during END processing of the scan where the SP.SOCSND instruction completes, and turns off during the
next END processing.
Description
The completion status is stored upon completion of the instruction.
• 0000H: Completed successfully
• Other than 0000H: Completed with an error (error code)
Description
Specify the send data length. (Number of bytes)
*1
Specify the send data.
SP.SOCSND
(sending data)
External device
8 BUILT-IN ETHERNET FUNCTION INSTRUCTIONS
8.2 Socket Communications Instructions
Setting range
Set by
System
Setting range
Set by
1 to 10238
User
User
1097
8
Need help?
Do you have a question about the MELSEC iQ-R Series and is the answer not in the manual?