Iai-america XSEL-KET Uživatelský manuál Strana 123

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 436
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 122
104
INTELLIGENT ACTUATOR
Part 4 Commands
MULT (Multiply)
Command, declaration
Extension condition
(LD, A, O, AB, OB)
Input condition
(I/O, flag)
Command,
declaration
Operand 1 Operand 2
Output
(Output, flag)
Optional Optional MULT
Variable
number
Data ZR
[Function] Multiply the content of the variable specified in operand 1 by the value specified in
operand 2, and assign the result to the variable specified in operand 1.
The output will turn ON when the operation result becomes 0.
[Example 1] LET 1 3 Assign 3 to variable 1.
MULT 1 2 Multiply the content of variable 1 (3) by 2.
6 (3x2=6) will be stored in variable 1.
[Example 2] LET 1 2 Assign 2 to variable 1.
LET 2 3 Assign 3 to variable 2.
LET 3 2 Assign 2 to variable 3.
MULT *1 *3 Multiply the content of variable 1 (variable 2) by
the content of variable 3 (2).
6 (3x2=6) will be stored in variable 2.
DIV (Divide)
Command, declaration
Extension condition
(LD, A, O, AB, OB)
Input condition
(I/O, flag)
Command,
declaration
Operand 1 Operand 2
Output
(Output, flag)
Optional Optional DIV
Variable
number
Data ZR
[Function] Divide the content of the variable specified in operand 1 by the value specified in operand
2, and assign the result to the variable specified in operand 1.
The output will turn ON when the operation result becomes 0.
(Note) If the variable specified in operand 1 is an integer variable, any decimal places will be
rounded off.
[Example 1] LET 1 6 Assign 6 to variable 1.
DIV 1 2 Divide the content of variable 1 (6) by 2.
3 (62=3) will be stored in variable 1.
[Example 2] LET 1 2 Assign 2 to variable 1.
LET 2 6 Assign 6 to variable 2.
LET 3 2 Assign 2 to variable 3.
DIV *1 *3 Divide the content of variable 1 (variable 2) by the
content of variable 3 (2).
3 (62=3) will be stored in variable 2.
Zobrazit stránku 122
1 2 ... 118 119 120 121 122 123 124 125 126 127 128 ... 435 436

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

Žádné komentáře