6 - 23
6 DriveProgramming Commands
DriveProgramming User’s Manual (I622-E1)
6-5 Arithmetic Operation and Logical Operation Commands
6
6-5 Arithmetic Operation and
Logical Operation Commands
Example
= (Substitution)
Command Description Argument
Assigns <value> to <result>. Result: any variable
Value: any variable or constant
(range −2,147,483,648 to 2,147,483,647)
Format
Flowchart method Text language method
↓
<result> : = <value>
Note If an overflow or underflow occurs, the DriveProgramming detects it as an error. Take neces-
sary measures in the application so that they do not occur.
Flowchart Text
Block number
Operation
1 Assigns 200 to U(00).
2 Assigns the value of U(00) to U(01).
3 Assigns the sum of U(00) and U(01) to U(02).
4 Assigns the difference between U(00) and 100 to U(03).
5 Assigns the product of U(03) and 2 to U(04).
6 Assigns the quotient of U(00) and U(03) to U(05).
7 Assigns the remainder after dividing 17 by U(05) to U(06).
8 Assigns the absolute value of UL(07) to U(07).