Delta-electronics Extension Digital I/O Module DOP-EXIO14RAE Manual de usuario Pagina 107

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 157
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 106
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
Vista de pagina 106
1 2 ... 102 103 104 105 106 107 108 109 110 111 112 ... 156 157

Comentarios a estos manuales

Sin comentarios