Yaskawa Ladder Works Programming Manual Manuel d'utilisateur Page 48

  • 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 47
2.18 BINARY CONVERSION Instruction (BIN)
2-31
2.18 BINARY CONVERSION Instruction (BIN)
[Outline]
The BIN instruction converts a binary coded decimal (BCD) value in the Source and into a binary
value (binary conversion) and the result is stored in the Dest. If the 4 - digit BCD value in the integer
is abcd, the output value (Dest) of the BIN instruction can be determined by the following formula:
Dest = (a x 1,000) + (b x 100) + (c x 10) + d
Although the above formula is applicable even if the value in the Source is not in BCD notation (e.g.
123FH), correct results are obtained in such cases.
[Format]
Symbol : BIN
Full Name : Convert to Binary
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 data
Vue de la page 47
1 2 ... 43 44 45 46 47 48 49 50 51 52 53 ... 219 220

Commentaires sur ces manuels

Pas de commentaire