Chapter 7 Second Development Platform VP3000
326
API Instruction code Operand Function
40 ZRST P D
1
, D
2
Zone reset
Type
Operand
Bit devices Word devices
16-bit instruction (5 steps)
ZRST
Continuous
execution
type
ZRSTP
Pulse
execution
type
32-bit instruction
- - - -
Associated flag: none
X Y M K H KnX KnY KnM T C D
D
1
D
2
Caution for using operand
Number of operand D
1
number of operand D
2
Operand D
1
and D
2
have to designate devices of the same type.
See the specification of each model for the scope of device’s usage.
Description
D
1
: the start device of zone reset
D
2
: the end device of zone reset
When number of operand D
1
> number of operand D
2
, only operand designated by D
2
will be
reset.
Example
When X0 = ON, auxiliary relay M300 to M399 will be reset to OFF.
When X1 = ON, 16-bit counter C0 to C127 will all be reset.
(write in 0 and reset the contact and coil to OFF)
When X10 = ON, timer T0 to T127 will be reset to OFF.
(write in 0 and reset the contact and coil to OFF)
When X3 = ON, data register D0 to D100 will be reset to 0
ZRST M300 M399
ZRST C0 C127
ZRST T0 T127
ZRST D0 D100
X0
X1
X10
X3
Remark
Devices (i.e. bit device Y, M; and word device T, C, D) can be individually reset by RST
instruction.
RST M0
X0
RST T0
RST Y0