Download Print this page

Mitsubishi Electric MELSEC iQ-F FX5 Programming Manual page 744

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

Advertisement

Processing details
This instruction performs the close processing for the connection specified by (s1). (Connection disconnection)
The completion of the SP.SOCCLOSE 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.SOCCLOSE 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.SOCCLOSE instruction is completed.
Status
When completed normally
When completed with an error
Program
SP.SOCCLOSE instruction
Completion device (d)+0
Completion device (d)+1
For details, refer to MELSEC iQ-F FX5 User's Manual (Ethernet Communication).
Operation error
Error code
Description
(SD0/SD8067)
3405H
The connection number specified by (s1) is other than 1 to 8.
2820H
The device number specified by (s2) or (d) is outside the range of the number of device points.
2822H
Device that cannot be specified is specified.
3582H
When an instruction which cannot be used in interruption routine program is used.
Do not execute the SP.SOCCLOSE instruction when Passive open is selected. Since the open completion
signal and open request signal of the corresponding connection turn OFF and close processing is executed,
the communication is disabled.
10 BUILT-IN ETHERNET FUNCTION INSTRUCTIONS
742
10.1 Open/Close Processing Instructions
Description
The device does not change (remains OFF).
The device turns ON during the END processing for the scan in which the SP.SOCCLOSE instruction is completed, and
turns OFF during the next END processing.
END processing END processing END processing
Execute SP.SOCCLOSE instruction
OFF
OFF
Connection
closed
ON
When failed
ON
1 scan when normally
completed

Hide quick links:

Advertisement

loading