Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 1091

Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

■Control data
Operand: (s2)
Device
Item
+0
System area
+1
Completion status
Processing details
• This instruction performs close processing for the connection specified by (s1). The setting value used for open processing
is selected by (s2)+0.
• The execution status and the completion status of the SP.SOCCLOSE 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.SOCCLOSE 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.SOCCLOSE 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.SOCCLOSE instruction completes, and turns off during
the next END processing.
• The following figure shows the execution timing of the SP.SOCCLOSE instruction.
Sequence scan
SP.SOCCLOSE
instruction
Completion device (d)
Completion status
indication device (d)+1
Operation error
Error code
Description
(SD0)
3405H
The connection number specified by (s1) is a value other than 1 to 16.
Upon completion with an error, the completion status indication device (d)+1 is turned on and an error code is stored in the
completion status (s2)+1.
For the error code stored in the completion status (s2)+1, refer to the following.
 MELSEC iQ-R Ethernet User's Manual (Application)
When a connection waiting for opening the SP.SOCCLOSE instruction is specified in TCP Passive mode, a
successful completion occurs when the SP.SOCOPEN or SP.SOCCLOSE instruction is issued and the
connection is closed.
Description
The completion status is stored upon completion of the instruction.
• 0000H: Completed successfully
• Other than 0000H: Completed with an error (error code)
0
END
0
Execution of the instruction
OFF
OFF
Closing a connection
END
0
END
0
ON
OFF
Completed with an error
ON
OFF
Completed successfully
1 scan
8 BUILT-IN ETHERNET FUNCTION INSTRUCTIONS
8.1 Open/Close Processing Instructions
Setting range
Set by
System
END
1089
8

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents