EasyManua.ls Logo

Omron 3G3RX Series - Page 129

Omron 3G3RX 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 Drive Programming Commands
6 - 28
Drive Programming User’s Manual (I580-E2)
Example
Mod (Modulo-division)
Command Description Argument
Remainder for division of <value 1> by <value 2>.
Result: any variable
Value 1
: any variable or constant (range
128 to 127)
Value 2: any variable or constant
(range 2,147,483,648 to 2,147,483,647)
Format
Flowchart method Text language method
<result> : <value 1> mod <value 2>
Note If an overflow, underflow, or division by zero occurs, the Drive Programming detects it as an
error. Take necessary measures in the application so that they do not occur.
Flowchart Text
Block number
Operation
1 Assigns 2 to U(00).
2 Assigns 500 to U(01).
3 Assigns the remainder for division of U(01) and U(00) to U(02).
<result> : <value 1> mod <value 2>

Table of Contents

Related product manuals