Download Print this page

Mitsubishi Electric MELSEC iQ-F FX5 Programming Manual page 749

Instructions, standard functions/function blocks
Hide thumbs Also See for MELSEC iQ-F FX5:

Advertisement

■Control data
Device
Item
(s2)+0
System area
(s2)+1
Completion status
(s3)+0
Send data length
(s3)+1 to
Send data
(s3)+n
*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).
CPU module
(s3)+0
Send data length
Send data
(s3)+1
Send data
(s3)+2
Send data
(s3)+n
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.
Status
When completed normally
When completed with an error
Description
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).
Specifies the send data length. (Number of bytes)
Specifies the send data.
External device
SP.SOCSND
(Sending data)
Description
The device does not change (remains OFF).
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.
Setting range
1 to 2046
10 BUILT-IN ETHERNET FUNCTION INSTRUCTIONS
10.2 Socket Communications Function Instructions
*1
Set by
System
10
User
User
747

Hide quick links:

Advertisement

loading