EasyManua.ls Logo

Omron 3G3RX Series - Page 133

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 - 32
Drive Programming User’s Manual (I580-E2)
Example
XOr (Logical exclusive OR)
Command Description Argument
Logical exclusive OR on <value 1> and <value
2> in binary format.
XOr (Logical exclusive 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> xor <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 10 (binary: 00001010), which is the result of logical exclusive 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
110
<result> : <value 1> xor <value 2>

Table of Contents

Related product manuals