A SERVICE OF

logo

8. Function Commands
DBIN, DBINP
- 205 -
Execution conditions
The execution conditions for DBIN, DBINP are as follow.
Conversion command OFF
DBIN
ON
Executed per scan
Executed per scan
DBINP
Program example
(1) Program to BIN convert the X10 to X23 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.
Coding
No. of
steps
Com-
mand
Device
10 LD X0
11 DBIN D0 D18
D0DBIN
D18
X0
10
15