Yaskawa Ladder Works Programming Manual Manuel d'utilisateur Page 49

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 220
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 48
2.19 BCD CONVERSION Instruction (BCD)
2-32
2.19 BCD CONVERSION Instruction (BCD)
[Outline]
The BCD instruction converts a binary value in the Source into a BCD value (BCD conversion) and
the result is stored in the Dest. If the 4 - digit decimal value in the Source is abcd, the output value
(Dest) of the BCD instruction can be determined by the following formula:
Dest = (a × 4096) + (b × 256) + (c × 16) + d
Although the above formula is applicable even if the value in the Source cannot be expressed in BCD
notation (e.g. numbers greater than 9999 or negative numbers), correct results are obtained in such
cases.
[Format]
Symbol : BCD
Full Name : Convert to BCD
Category : MATH
Icon :
[Parameter]
Parameter Name Setting
Source · Any integer type and double-length integer type register
· Any integer type and double-length integer type register with subscript
· Subscript register
Dest · Any integer type and double-length integer type register (except for # and
C registers)
· Any integer type and double-length integer type register with subscript
(except for # and C registers)
· Subscript register
[Program Example]
Integer type data
Double-length integer type data
Vue de la page 48
1 2 ... 44 45 46 47 48 49 50 51 52 53 54 ... 219 220

Commentaires sur ces manuels

Pas de commentaire