Bkrst, Bkrstp - Mitsubishi MELSEC-Q/L Programming Manual

Table of Contents

Advertisement

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]
[Operation]
b31
b19
1 0 1 1 0 0 1 0 1 0 1 1 0 0 0 0
b31
b19
0 1 1 0 1 1 0 1 1 1 0 1 1 0 0 1
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:
D0.A
7.4.3
BKRST, BKRSTP
Batch reset of bit devices
7.4.3
BKRST, BKRSTP
BKRST
BKRSTP
: Head number of the devices to be reset (bits)
D
n
: Number of the devices to be reset (BIN 16 bits)
Internal Devices
Setting
Data
Bit
D
n
Function
(1) Resets bit device n-points from the bit device designated by
Device
Annunciator (F)
Timer (T)
Counter (C)
Bit devices other than the
above
(2) If the designated device is OFF, the device status will not change.
352
[List Mode]
Step
b16
b15
1 0 1 1 0 1 1 1 0 1 1 1 0 1 1 0
Turns Y40 OFF since b19 is "0."
b16
b15
1 0 1 0 1 1 0 0 0 0 1 0 1 1 0 1
Turns Y40 ON since b19 is "1."
M0
Designation of b10 of D0
Command
Command
R, ZR
Word
Bit
• Turns device n-points from annunciator (F) number designated by
• 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.
• Sets the current value n-points from timer (T) or counter c designated by (C) to 0, and turns coil contact
OFF.
• Turns OFF coil or contact n-points from the device designated by
Instruction
Device
b0
b0
M0 turns ON/OFF depending on the ON/OFF
status of b10 of D0 (D0.A).
High
Basic
performance
BKRST
BKRSTP
J
\
U
\G
Word
––
.
D
Status
Process
LCPU
Redundant Universal
n
D
n
D
Constants
Zn
Other
K, H
––
––
OFF.
D
.
D

Advertisement

Table of Contents
loading

Table of Contents