352
BKRST, BKRSTP
(2) The following program turns Y40 ON or OFF, depending on the status of the 19th bit of the 2-word data (W0 and W1).
[Ladder Mode]
[List Mode]
[Operation]
Remark
Programs using the bit test instruction can be rewritten as programs using bit designation of word devices.
If the program in example (1) were changed to use bit designation of a word device, it would appear as follows:
: Head number of the devices to be reset (bits)
n
: Number of the devices to be reset (BIN 16 bits)
Function
(1) Resets bit device n-points from the bit device designated by .
(2) If the designated device is OFF, the device status will not change.
BKRST, BKRSTP
Batch reset of bit devices
7.4.3
BKRST, BKRSTP
Setting
Data
Internal Devices
R, ZR
J \
U \G
Zn
Constants
K, H
Other
Bit
Word
Bit
Word
––
––
n
––
Device
Status
Annunciator (F)
• Turns device n-points from annunciator (F) number designated by OFF.
• Deletes annunciator number turned OFF from SD64 to SD79 and compresses remaining data forward.
• Stores number of annunciators stored from SD64 to SD79 at SD63.
Timer (T)
Counter (C)
• Sets the current value n-points from timer (T) or counter c designated by (C) to 0, and turns coil contact
OFF.
Bit devices other than the
above
• Turns OFF coil or contact n-points from the device designated by .
Step
Instruction
Device
1 0 1 1 0 0 1 0 1 0 1 1 0 0 0 0
b31
b19
T
urns
Y4
0
O
FF
s
i
nce
b19
i
s
"
0
."
1 0 1 1 0 1 1 1 0 1 1 1 0 1 1 0
b0
b15
b16
0 1 1 0 1 1 0 1 1 1 0 1 1 0 0 1
b31
b19
T
urns
Y4
0
O
N
s
i
nce
b19
i
s
"
1
."
1 0 1 0 1 1 0 0 0 0 1 0 1 1 0 1
b0
b15
b16
M0
D0
.
A
Des
i
gnat
i
on
of
b10
of
D0
M0
turns
O
N/
O
FF
depend
i
ng
on
the
O
N/
O
FF
status
of
b10
of
D0
(
D0
.
A
).
Basic
Process
High
performance
Redundant Universal
LCPU
Command
Command
BKRSTP
BKRST
n
n
D
D
BKRST
BKRSTP
D
D
D
D
D