Bit Processing Instructions - Mitsubishi Electric M800VW Series Programming Manual

Plc programming
Hide thumbs Also See for M800VW Series:
Table of Contents

Advertisement

M800V/M80V Series PLC Programming Manual (1/2)
8 Function Instructions

8.8 Bit Processing Instructions

8.8 Bit Processing Instructions
BSET, BSETP, BRST, BRSTP: Bit set for word devices, bit reset for word devices
Setting
Bit devices
data
X
Y
M
L
F
S
D
[Instruction symbol] [Execution condition]
BSET, BRST
BSETP, BRSTP
 Setting data
Setting data
D
Device whose bits are set/reset.
n
Position of the bit to be set/reset (0 to 15).
 Functions
BSET
 Sets (sets "1" at) the nth bit in the word device designated by (D).
 If n exceeds "15", bit set/reset is executed with the lower 4 bits of the data.
Before execution
D10
After execution
D10
Usable devices
B SB
T SM V
T
C
Command
Command
Meaning
BSETP
b15
b6
1
0
0
1
1
0 0 1 1
1
0
1
b15
b6
1
1
0
0
1
0
1
1
0 1 1 1
1 is set
Word devices
D
R/ZR W SW SD
Z
D10
K6
b1b0
1
0
1
1
b1b0
1
0
1
1
293
Digit
Con-
Pointer
designa-
Index
stant
tion
K
H
P
indicates the signs "BSET"/"BRST".
D
n
P
D
n
Data type
BIN 16 bits
IB-1501667-B

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents