201
CHAPTER 15 DEDICATED INSTRUCTIONS
15
15.5 ZP.OPEN
(3) Functions
• This instruction performs the open process for a connection specified by (S1) for the module specified by Un.
The setting value used for the open process is selected by (S2)+0.
• Completion of the OPEN instruction can be checked with Completion device (D1)+0 and (D1)+1.
[Operation while the OPEN instruction is being executed]
• The ZP.OPEN instruction is executed on the rising edge (OFF ON) of the open command.
Do not perform an open or close process using I/O signals and the dedicated instruction together for the same connection.
Doing so will result in malfunction.
(4) Errors
If a dedicated instruction ends with an error, Completion device (D1)+1 turns on, and the error code is stored in
Completion status (S2)+1.
Item Description
Completion device (D1)+0:
Turns on at the END process of the scan where the OPEN instruction is completed and
turns off at the next END process.
Completion device (D1)+1:
Turns on and off depending on the completion status of the OPEN instruction.
• Normal completion: Stays off and does not change.
• Abnormal end: Turns on at the END process of the scan where the OPEN instruction is
completed and turns off at the next END process.
Scan Scan
END
process
END
process
Scan
END
process
Connection
opened
Executed
Program
Completion device
Completion device + 1
OPEN instruction
Abnormally ended