Yaskawa MotionSuite Series Machine Controller Programming Manuel d'utilisateur Page 170

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 187
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 169
MotionSuite™ Series Machine Controller Motion Programming Manual Chapter 4: Sequence Commands
4-38
4.6.9 BIN
BCD (BCD)
!
!!
! Outline
The BCD command converts a binary number (BIN code) to the BCD code. It can only be
used for the integer number data. If the BIN data is greater than 9999, or it is a negative
value, the correct result cannot be obtained.
!
!!
! Detailed Explanation
Command Method
Data Type
$
= Yes
×
= No
!
!!
! Program Example
Supplement
If the BIN data is greater than 9999, the correct result cannot be obtained.
Bit (B) Integer (W) 32-bit Integer (L) Real (F) Constant
×
$$
×
$
Type Motion Program Ladder Program
B—
W MW00101=BCD(MW00100);
L ML00102=BCD(MW00100);
F—
MW00100=BCD(MW00101);
MW00100=BCD(1234);
MF00200=BCD(ML00202);
MW00100
BCD
MW00101
ML00100
BCD
ML00102
(Example 1)
04D2
MW00101
1234
MW00100
Convert
1234 (Decimal) (1234H)
(Example 2)
3039
MW00101
C345
MW00100
Convert
12345 (Decimal) (C345H)
Vue de la page 169
1 2 ... 165 166 167 168 169 170 171 172 173 174 175 ... 186 187

Commentaires sur ces manuels

Pas de commentaire