EasyManua.ls Logo

Omron 3G3RX2 Series - Page 125

Omron 3G3RX2 Series
176 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 - 29
6 DriveProgramming Commands
DriveProgramming User’s Manual (I622-E1)
6-5 Arithmetic Operation and Logical Operation Commands
6
Example
Abs (Absolute value)
Command Description Argument
Finds the absolute value of <value>. Result: any variable
Value: any variable or constant
(Range 2,147,483,647 to 2,147,483,647)
Format
Flowchart method Text language method
<result> : = abs <value>
Note 1. If an overflow or underflow occurs, the DriveProgramming detects it as an error. Take necessary mea-
sures in the application so that they do not occur.
2. If the variable or the constant is the maximum negative value, 2,147,483,648, it is not possible to
convert it to an absolute value. The value 2,147,483,648 is recognized as a negative number as it is.
Flowchart Text
Block number
Operation
1 Assigns 200 to UL(00).
2 Assigns the absolute value of UL(00) to UL(01).
<result> : = abs <value>

Table of Contents

Other manuals for Omron 3G3RX2 Series

Related product manuals