Lenze PLC Designer PLC Designer (R2-x) Instrukcja Użytkownika Strona 465

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 844
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 464
L-force | PLC Designer
IEC Operators and additional norm extending functions
DMS 3.2 EN 02/2011 TD29 463
9.2.4 DIV
PLC Designer IEC operator: Division of one variable by another of the types: BYTE,
WORD, DWORD, SINT, USINT, INT, UINT, DINT, UDINT, REAL and LREAL.
Example in IL:
LD 8
DIV 2
ST Var1 (* Result is 4 *)
Example in ST:
var1 := 8/2;
Example in FBD:
Note!
If you define functions in your project with the names CheckDivByte,
CheckDivWord, CheckDivDWord and CheckDivReal, you can use them to check the
value of the divisor if you use the operator DIV, for example to avoid a division by 0.
The functions must have the above listed names.
Stop!
Please regard, that different target systems may behave differently concerning a
division by zero !
Przeglądanie stron 464
1 2 ... 460 461 462 463 464 465 466 467 468 469 470 ... 843 844

Komentarze do niniejszej Instrukcji

Brak uwag