Program example
(1) Program to subtract the D10 BCD data from D3 and output to D20.
M0
10
(ON)
(2) Program to output the difference of the timer T3 setting value and current value to D20 BCD data.
X3
10
M0
13
(ON)
8. Function Commands
B–, B–P
B-
D3
D10
D20
T3 K1800
MOV
K1800
D2
BCD
T3
D3
D2
D3
B-
D20
- 181 -
Get other manuals https://www.bkmanuals.com
Coding
No. of
Com-
Device
steps
mand
10
LD
M0
11
B-
D3
16
Coding
No. of
Com-
Device
steps
mand
10
LD
X3
K1800
11
OUT
T3
13
LD
M0
K1800
14
MOV
D2
17
BCD
T3
D3
20
B-
D2
D3
25
D10
D20
D20