Bit Processing Instructions - Mitsubishi MELSEC Q Series Programming Manual

Common instruction 1/2
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

7.4

Bit processing instructions

7.4.1
Bit set and reset for word devices (BSET(P),BRST(P))
BSET(P),BRST(P)
BSET, BRST
BSETP, BRSTP
Setting
Data
D
n
Function
BSET
(1) Sets (sets "1" at) the nth bit in the word device designated at
(2) If n exceeds "15", bit set/reset is performed with the lower 4 bits of the data.
BRST
(1) Resets the nth bit of a word device designated by
(2) If n exceeds "15", bit set/reset is performed with the lower 4 bits of the data.
Command
Command
: Number of the device whose bits are set/reset (BIN 16 bits)
D
n
: Number of the bit to be set/reset (0 to 15) (BIN 16 bits)
Internal Devices
R, ZR
Bit
Word
Before execution
D10
After execution
D10
Before execution
D10
After execution
D10
High
Basic
performance
indicates an instruction symbol of BSET/BRST.
P
J
\
U
\G
Bit
Word
D
BSETP
D10
K6
b15
b6
b1
1 1 0 0 1 0 1 1 0 0 1 1 1 0 1 1
b15
b6
b1
1 1 0 0 1 0 1 1 0 1 1 1 1 0 1 1
1 is set
to 0.
D
BRSTP
D10
K11
b15
b11
b1
1 1 0 0 1 0 1 1 0 0 1 1 1 0 1 1
b15
b11
b1
1 1 0 0 0 0 1 1 0 0 1 1 1 0 1 1
0 is set.
BSET(P),BRST(P)
Process
Redundant Universal
LCPU
n
D
n
D
Constants
Zn
Other
K, H
––
––
––
.
b0
b0
b0
b0
7-59
1
2
3
4
6
6
7
8

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents