A SERVICE OF

logo

8. Function Commands
LDBII, ANDBII, ORBII
- 297 -
Program example
(1) Program to test bit 3 of D10.
Coding
No. of
steps
Com-
mand
Device
10 LD<> D10 K3
12 OUT Y33
10
< >
K3D10
Y33
13
(2) Program to test bit 15 of D10.
Coding
No. of
steps
Com-
mand
Device
10 LD M3
11 AND<> D10 K15
10
< >
K15
D10
Y33
M3
13 OUT Y33
14
(3) Program to test bit 15 of D10.
Coding
No. of
steps
Com-
mand
Device
10 LD M3
11 LD<> D10 HF
13 OR M8
14 ANB
15 OUT Y33
< >
HFD10
Y33
M3
M8
10
16
(4) Program to test bit 10 of D10.
Coding
No. of
steps
Com-
mand
Device
10 LD M3
11 AND M8
10
K10D10
Y33
M3
M8
< >
12 OR<> D10 K10
14 OUT Y33
15