4 Basic Instructions
Instruction
code
Function Applicable model
20PM
SET
Keeping a device ON
X0~X377 Y0~Y377 M0~M4,095 S0~S1,023 T0~T255 C0~C255 D0~D9,999
Operand
-
- - -
Explanation
When the instruction SET is driven, the device specified is set to ON. Whether
the instruction SET is still driven or not, the device specified remains ON. Users
can set the device specified to OFF by means of the instruction RST.
Example
Ladder diagram:
X0 Y0
Y1
SET
Instruction code: Description:
LD X0 Loading the Form A
contact X0
ANI Y0 Connecting the
Form B contact Y0
SET Y1
Y01 remains ON.
Instruction
code
Function Applicable model
20PM
RST
Resetting a contact or a register
X0~X377 Y0~Y377 M0~M4,095 S0~S1,023 T0~T255 C0~C255 D0~D9,999
Operand
-
Explanation
When the instruction RST is driven, the device specified acts in the way
described below.
Device State
S, Y, M The coil and the contact are set to OFF.
T, C
The present timer value or the present counter value becomes 0. The
coil and the contact are set to OFF.
D, V, Z The value becomes 0.
If the instruction RST is not executed, the state of the device specified will
remain unchanged.
Example
Ladder diagram:
X0
Y5
RST
Instruction code: Description:
LD X0 Loading the Form A
contact X0
RST Y5
Resetting Y5
DVP-20PM Application Manual
4-8