9.1 BTS (16-bit Data Specified Bit Set)
9.1 BTS (16-bit Data Specified Bit Set)
■
Ladder diagram
■
Available operation units (●: Available)
Operatio
bit
n unit
i
■
List of operands
Operand
Description
D
Device address of target data
n
Bit number (device address or constant) (available range: 0 to 15)
■
Available devices (●: Available)
Operan
d
W
W
X
Y
D
●
●
n
●
●
(Note 1)
Only 16-bit devices, 32-bit devices, and integer constants can be modified. (Real number constants,
and character constants cannot be specified.)
■
Outline of operation
● This instruction turns ON (1) the [n]th bit in the area specified by [D].
● Other bits except the bit specified by [n] do not change.
● [n] is in the range of U0 to U15.
■
Processing
The [n]th bit of the target data is set.
Example 1) Specifying a constant for the bit number
[D]...DT0 [n]...U7
9-2
US
●
16-Bit device:
W
W
W
S
D
L
R
L
S
D
T
D
●
●
●
●
●
●
●
●
SS
UL
32-Bit
device:
TS
TE
U
W
WI
C
C
M
O
S
E
●
●
●
●
●
SL
SF
Real
Integer
numbe
r
D
IX
K
U
H
SF
F
●
●
WUME-FP7CPUPGR-12
DF
St
rin
Index
g
modifie
r
(Note 1)
" "
●
●