EasyManua.ls Logo

Omron 3G3RX Series - Page 131

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 - 30
Drive Programming User’s Manual (I580-E2)
Example
And (Logical AND)
Command Description Argument
Logical AND on <value 1> and <value 2> in
binary format
and (Logical AND)
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> and <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 4 (binary: 00000100), which is the result of logical AND 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
010
100
111
<result> : <value 1> and <value 2>

Table of Contents

Related product manuals