1544
16 ETHERNET INSTRUCTIONS
16.1 Open/Close Processing Instructions
Processing details
• These instructions open the connection specified by (s1) of the module specified by (U).
• The selection of the setting value used for open processing is specified by (s2)+0. (Specify whether to use the parameter
value set by the engineering tool or the value set in (s2)+2 to (s2)+16 of control data.)
• The execution status and the completion status of the OPEN instruction can be checked with the completion device (d) and
the completion status indication device (d)+1.
• The following figure shows the operation at completion of the OPEN instruction.
• The OPEN instruction is executed on the rising edge (OFF to ON) of the open command.
Precautions
For the same connection, do not perform open and close processing using the OPEN and CLOSE instructions concurrently
with open and close processing using other means. Concurrent use results in a malfunction.
Operation error
• The communication means of the target connection is fixed buffer communications (with procedure), fixed
buffer communications (without procedure), or predefined protocol. Make settings in (b9, b10) (fixed buffer
communications with/without procedure) of (s2)+2 in control data.
• When the protocol is set to TCP/IP, the alive check method is fixed to KeepAlive.
• The connection numbers that can be specified range from 1 to 16. Connection number 17 and after cannot
be specified.
• If no parameter data is set in "external device connection configuration" of the engineering tool, the
communication data code becomes "binary". If one or more parameter data are set, the instruction follows
the value set in "Communication data code".
• If no parameter data is set in "external device connection configuration" of the engineering tool, the opening
method becomes "Do not open with the program". If one or more parameter data are set, the instruction
follows the value set in "Opening method".
• Completion device (d)
This device turns on during END processing of the scan where the OPEN 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 OPEN 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 OPEN instruction completes, and turns off during the next
END processing.
Error code
((s2)+1)
Description
C000H to CFFFH
MELSEC iQ-R Ethernet User's Manual (Application)
END
0
END
0
END
0
END
0
OFF
OFF
OFF
OFF
ON
ON
Sequence scan
OPEN instruction
Completion device (d)
Completion status
indication device (d)+1
Completed successfully
1 scan
Opening a connection
Execution of the instruction
Completed with an error
Summary of Contents for MELSEC iQ-R Series
Page 1: ...MELSEC iQ R Programming Manual Instructions Standard Functions Function Blocks ...
Page 2: ......
Page 24: ...22 INDEX 2092 INSTRUCTION INDEX 2093 REVISIONS 2104 WARRANTY 2105 TRADEMARKS 2106 ...
Page 34: ...32 MEMO ...
Page 35: ...33 PART 1 PART 1 OVERVIEW This part consists of the following chapter 1 OVERVIEW ...
Page 68: ...66 1 OVERVIEW 1 5 Precautions on Programming MEMO ...
Page 1448: ...1446 14 REDUNDANT SYSTEM INSTRUCTIONS 14 2 Disabling Enabling System Switching MEMO ...
Page 1972: ...1970 33 TIME DATA TYPE FUNCTIONS 33 4 Division MEMO ...
Page 2067: ...APPX Appendix 5 PID Control Program Examples 2065 A 252 Set PID control data for loop 2 ...
Page 2109: ......