10 BUILT-IN ETHERNET FUNCTION INSTRUCTIONS
10.2 Socket Communications Function Instructions
747
10
■
Control data
*1 User: Data to be set before the execution of the instruction. System: The CPU module stores the execution result of the instruction.
When TCP is used, specify send data length that is smaller than the maximum window size of the target
device (Receive data buffer of TCP). Data whose size exceeds the maximum window size of the target device
cannot be sent.
Processing details
This instruction send the data set by (s3) to the target device of the connection specified by (s1).
The completion of the SP.SOCSND instruction can be checked using the completion devices (d)+0 and (d)+1.
• Completion device (d)+0: Turns ON during the END processing for the scan in which the SP.SOCSND instruction is
completed, and turns OFF during the next END processing.
• Completion device (d)+1: Turns ON or OFF depending on the status when the SP.SOCSND instruction is completed.
Device
Item
Description
Setting range
Set by
(s2)+0
System area
(s2)+1
Completion status
The status at the completion of the instruction is stored.
0000H: Completed successfully
Other than 0000H: Completed with an error (error code)
For error codes, refer to
MELSEC iQ-F FX5 User's Manual
(Ethernet Communication).
System
(s3)+0
Send data length
Specifies the send data length. (Number of bytes)
1 to 2046
User
(s3)+1 to
(s3)+n
Send data
Specifies the send data.
User
Status
Description
When completed normally
The device does not change (remains OFF).
When completed with an error
The device turns ON during the END processing for the scan in which the SP.SOCSND instruction is completed, and turns
OFF during the next END processing.
CPU module
Send data length
Send data
Send data
Send data
(s3)+0
(s3)+1
(s3)+2
(s3)+n
External device
SP.SOCSND
(Sending data)
Summary of Contents for MELSEC iQ-F FX5
Page 1: ...MELSEC iQ F FX5 Programming Manual Instructions Standard Functions Function Blocks ...
Page 2: ......
Page 17: ...15 CONTENTS ...
Page 24: ...22 MEMO ...
Page 1050: ...1048 26 TIME DATA FUNCTIONS 26 4 Division MEMO ...
Page 1068: ...1066 29 COUNTER FUNCTION BLOCKS 29 4 Counter Function Block Operation error There is no error ...
Page 1107: ...I 1105 MEMO ...
Page 1111: ......