EasyManua.ls Logo

Omron 3G3RX Series - Page 136

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 - 35
6 Drive Programming Commands
Drive Programming User’s Manual (I580-E2)
6-5 Arithmetic Operation and Logical Operation Commands
6
Example
Dec (Decrement by 1)
Command Description Argument
Decrements <value> by 1. Value: any variable
Format
Flowchart method Text language method
dec <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 100 to U(02).
2 Subtracts 1 from U(02).
3 Waits for 1.00 second with the “wait” command.
4 Jumps to the block 2: loop_ unconditionally.
dec <value>

Table of Contents

Related product manuals