EasyManua.ls Logo

Omron 3G3RX Series - Page 132

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 - 31
6 Drive Programming Commands
Drive Programming User’s Manual (I580-E2)
6-5 Arithmetic Operation and Logical Operation Commands
6
Example
Or (Logical OR)
Command Description Argument
Logical OR on <value 1> and <value 2> in
binary format
or (Logical OR)
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> or <value 2>
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 6 to U(02).
2 Assigns 12 to U(03).
3 Assigns 14 (binary: 00001110), which is the result of logical OR on 6 (U(02) binary: 00000110) and
12 (U(03) binary: 00001100), to U(04).
4 Jumps to the block 3: loop_ unconditionally.
Value 1 Value 2 Result
000
011
101
111
<result> : <value 1> or <value 2>

Table of Contents

Related product manuals