Lenze PLC Designer PLC Designer (R2-x) Uživatelský manuál Strana 491

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 844
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 490
L-force | PLC Designer
IEC Operators and additional norm extending functions
DMS 3.2 EN 02/2011 TD29 489
9.9.4 Conversion between Integral Number Types
Conversion from an integral number type to another number type:
When you perform a type conversion from a larger to a smaller type, you risk losing
some information. If the number you are converting exceeds the range limit, the first
bytes for the number will be ignored.
Example in ST:
si := INT_TO_SINT(4223); (* Result is 127 *)
If you save the integer 4223 (16#107f represented hexadecimally) as a SINT variable, it
will appear as 127 (16#7f represented hexadecimally).
Example in IL:
LD 2
INT_TO_REAL
MUL
Example in FBD:
Zobrazit stránku 490
1 2 ... 486 487 488 489 490 491 492 493 494 495 496 ... 843 844

Komentáře k této Příručce

Žádné komentáře