Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 1089

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

Advertisement

Processing details
• This instruction opens 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.SOCOPEN 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.SOCOPEN 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.SOCOPEN 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.SOCOPEN instruction completes, and turns off during the
next END processing.
• The following figure shows the execution timing of the SP.SOCOPEN instruction.
Sequence scan
SP.SOCOPEN
instruction
Completion device (d)
Completion status
indication device (d)+1
• A connection which has not been set by a parameter (a connection whose protocol field is left blank) can be opened and
used. To do so, set (s2)+0 to 8000H and specify the details of open in (s2)+1 to (s2+9 of control data.
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)
0
END
0
Execution of the instruction
OFF
OFF
Opening 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
END
8
1087

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents