EasyManua.ls Logo

Omron 3G3MX2 Series - 6-5 Arithmetic Operation and Logical Operation Commands

Omron 3G3MX2 Series
196 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
6 - 23
6 Drive Programming Commands
Drive Programming User’s Manual (I580-E2)
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 Drive Programming 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).
<result> : <value>

Table of Contents

Other manuals for Omron 3G3MX2 Series

Related product manuals