Specifications

App - 63
Functions
(1) This instruction closes the connection specified by (S1) for the module designated
by Un. (Disconnection)
(2) Whether or not the CLOSE instruction has been completed can be checked by the
complete bit devices (D1) + 0 and (D1) + 1.
(a) Complete bit device (D1) + 0
Turns on at the END processing of the scan where the CLOSE instruction is
completed, and turns off at the next END processing.
(b) Complete bit device (D1) + 1
Turns on and off depending on the completion status of the CLOSE instruction.
Normal completion : Stays off and does not change.
Abnormal completion : Turns on at the END processing of the scan where
the CLOSE instruction is completed, and turns off at
the next END processing.
[Operation when the CLOSE instruction is being executed]
Sequence program
Complete device
Complete device +1
END
processing
END
processing
END
processing
Scan Scan Scan
Instruction execution
Abnormal completion
CLOSE instruction
Connection
closed
(3) The ZP.CLOSE is executed when the close instruction switches from off to on.
Important
Never execute the open/close processing using input/output signals and the
open/close processing using the OPEN or CLOSE dedicated instruction
simultaneously for the same connection. It will result in malfunctions.
Errors
(1) When a dedicated instruction ends with an error, the abnormal completion signal,
(D1) + 1, turns on and the error code is stored in the complete status area (S2) + 1.
Refer to the following manuals regarding the error codes, check the errors and take
corrective actions.
<Error codes>
4FFF
H or less : QCPU (Q Mode) User's Manual (Hardware Design, Maintenance
and Inspection)
C000
H or higher : Q Corresponding Ethernet Interface Module User's Manual
(Basic)