BSET, BRST
7.4
Bit Processing Instructions
7.4.1
Bit set and reset of word devices
BSET(P)
BRST(P)
Structured ladder
BSET
EN
ENO
n
Input argument,
EN:
n:
Output argument,
ENO:
d:
Setting
data
n
d
Function
BSET(P)
(1) Sets (to 1) the nth bit of the word device specified for
(2) If n exceeds 15, bit set/reset is performed with the lower 4 bits of the data.
7.4 Bit Processing Instructions
7-50
7.4.1 Bit set and reset of word devices
ST
ENO:=
BSET
d
Executing condition
Bit number to be set or reset (0 to 15)
Execution result
Device number whose bit is set or reset
Internal device
R, ZR
Bit
Word
Before execution
After execution
P: Executing condition
instructions.
BSET
BRST
(EN, n, d);
:Bit
:ANY16
:Bit
:ANY16
J
\
U
\G
Bit
Word
.
d
BSETP
EN ENO
6
n
d
D10
b15
b6
D10
1 1 0 0 1 0 1 1 0 0 1 1 1 0 1 1
b15
b6
1 1 0 0 1 0 1 1 0 1 1 1 1 0 1 1
D10
1 is set
BSET, BRST
High
Universal
Performance
UD
:
indicates any of the following
BSETP
BRSTP
Constant
Zn
Others
K, H
−
−
−
b1
b0
b1
b0