
Chapter 5. Application instructions
5-128
5.20 Bit contact instructions
5.20.1 BLD, BLDN
BLD
(Bit load)
FUN(248) BLD
FUN(249) BLDN
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
BLD
BLDN
O
O
5
O
1) Functions
-
BLD : Start a NO contact. Draw the on/off status of the n
th
bit from the bit 0 of [ D ] and use the data
as an operation result.
-
BLDN : Start a NC contact. Draw the on/off status of the n
th
bit from the bit 0 of [ D ] and use the
data as an operation result.
2) Program example
-
Program that turns P01E on when the 5
th
bit of the D0001 word is on.
Operand setting
B
BN
D
D
The start address of source
data
D
n
n
Offset from the bit 0 to the
destination bit
n
n
D
1
0
1
0
0
0
1
1
0
1
0
0
0
1
0
1
bit 0
bit 1
bit 2
bit 3
bit 4
bit n
D
1
0
1
D +1
MOV h0010 D0001
M000A
BN D0001 0005
( P001E )