Chapter 16 PLC Function ApplicationsC2000-HS
16-45
Command Function
OUT
Drive coil
Operand
X0–X17 Y0–Y17 M0–M799 T0–159 C0–C79 D0–D399
-
- - -
Outputs result of logical operation before OUT command to the designated element.
Coil contact action:
Result:
Out command
Coil
Access Point:
Contact a (NO) Contact b (NC)
FALSE Off Not conducting Conducting
TRUE On Conducting Not conducting
Ladder diagram:
X0
X
Y1
Command code: Description:
LD X0 Load Contact b of X0
AND X1
Establish parallel
connection to contact a
of X1
OUT Y1
Drive Y1 coil
Command Function
SET
Action continues (ON)
Operand
X0–X17 Y0–Y17 M0–M799 T0–159 C0–C79 D0–D399
-
- - -
When the SET command is driven, the designated element will be set as On, and will
be maintained in an On state, regardless of whether the SET command is still driven.
The RST command can be used to set the element as Off.
Ladder diagram:
Y0
X0
Y1
SET
Command code: Description:
LD X0 Load Contact a of X0
AN Y0
Establish parallel
connection to contact b
of Y0
SET Y1
Action continues (ON)
Command Function
RST
Clear contact or register
Operand
X0–X17 Y0–Y17 M0–M799 T0–159 C0–C79 D0–D399
-
When the RST command is driven, the action of the designated element will be as
follows:
Element Mode
Y, M Both coil and contact will be set as Off.
T, C
The current timing or count value will be set as 0, and both the coil
and contact will be set as Off.
D The content value will be set as 0.
If the RST command has not been executed, the status of the designated element will
remain unchanged.
Ladder diagram:
X0
Y5
RST
Command code: Description:
LD X0
Load Contact a of X0
RST Y5
Clear contact or
register