API
ZRST
40
P
bit device
X
Y
M
K
*
*
D1
*
*
D2
Notes on operand usage:
Number of operand D
operand ≤ number of operand D
1
Operands D
, D
must designate the same type of device. Refer to
1
2
the function specifications table for each device in series for the
scope of device usage.
D1: Clear range's initial device. D2: Clear range's final device.
When the number of operand D1 > number of operand D2, only the operand
designated by D2 is cleared.
When X0 is ON, clears auxiliary relays M300–M399, changes them to OFF.
When X1 is ON, 16-bit clears counters C0–C79 (writes 0, and clears and changes
contact and coil to OFF).
When X10 is ON, clears timer T0–T127 (writes 0, and clears and changes contact
and coil to OFF).
When X3 is ON, clears the data in data registers D0–D100 (sets to 0).
Devices such as bit device Y, M and word device T, C, D can independently use
the clear command (RST).
Word device
H
KnX KnY KnM
T
*
*
X0
Chapter 16 PLC Function ApplicationsMS300
Clear range
16-bit command (5 STEP)
C
D
ZRST
Continuous
*
*
execution type
*
*
32-bit command
-
.
2
Flag signal: none
RST
RST
RST
721
ZRSTP
Pulse
execution type
-
-
-
M0
T0
Y0