
Chapter 5. Application instructions
5-131
5.20.4 BOUT
BOUT
(Bit output)
FUN(236) BOUT
Applicable
CPU
K200S
K300S
K1000S
Available Device
Flag
Instructions
M
P
K
L
F
T
C
S
D
#D Integer
Steps
Error
(F110)
Zero
(F111)
Carry
(F112)
O O
BOUT
O
5
O
1) Function
-
Outputs the current operation result to the the n
th
bit from the bit 0 of [ D ].
2) Program example
- Program that turns on the bit 2 of D0001 when M0002 is on.
Operand setting
BOUT
D
The start address of source
data
D
n
Offset from the bit 0 to the
des tination bit
n
n
D
BOUT D0001 7
M0002