Delta Electronics Extension Digital I/O Module DOP-EXIO14RAE User Manual
Page 107
![background image](/manuals/79046/107/background.png)
Appendix D Use of Application Instructions|DOP-EXIO Series
D-26
Revision March, 2008, Doc. Name: 2007PDD23000014
Mnemonic
Operands Function
BCD
D
S
D
Binary Coded Decimal
Bit Devices
Word Devices
X Y M S K H
KnX
KnY
KnM KnS
T
C
D
E
F
S
D
y
Note:
1. If S and D are used in device F, only 16-bit instruction is applicable.
16-bit instruction (5 Steps)
BCD
Continuous
execution
32-bit instruction (9 Steps)
DBCD
Continuous
execution
y
Flags: M1067 (Calculation error)
M1068 (Calculation error locked)
Operands:
S
: Source of data
D
: Conversion result
Explanations:
1. The
content
in
S
(BIN value) is converted into BCD value and stored in D.
2. As a 16-bit instruction, when the conversion result exceeds the range of 0 ~ 9,999, M1067 and
M1068 will be On.
3. As a 32-bit instruction, when the conversion result exceeds the range of 0 ~ 99,999,999, M1067
and M1068 will be On.
4. The four arithmetic operations and applications in DOP-EXIO series and the execution of INC and
DEC instructions are performed in BIN format. Therefore, if the user needs to see the decimal
value display, simply use this instruction to convert the BIN value into BCD value.
Program Example:
When X0 = On, the binary value of D10 will be converted into BCD value, and the 1s digit of the
conversion result will be stored in K1Y0 (Y0 ~ Y3, the 4 bit devices).
X0
BCD
D10
K1Y0