DBIN
- 117 -
Execution conditions
The execution conditions for DBIN are as follow.
DBIN command OFF
DBIN
ON
Executed per scan
Executed per scan
Program example
(1) Program to BIN convert the X10 to 23 BCD data when X0 turns ON, and to store in D14, 15.
Coding
No. of
steps
Com-
mand
Device
10 LD X0
11 DBIN K5X10 D14
K5X10
DBIN
D14
X0
10
15
(2) Program to BIN convert the D0, 1 data when X0 turns ON, and store in D18, 19.
No. of
steps
Com-
mand
Device
10 LD X0
11 DBIN D0 D18
D0DBIN
D18
X0
10
15