Omron RX2 Series User Manual page 126

Driveprogramming, cx-drive
Hide thumbs Also See for RX2 Series:
Table of Contents

Advertisement

6 DriveProgramming Commands
And (Logical AND)
Command
Logical AND on <value 1> and <value 2> in
binary format
and (Logical AND)
<result> :
Note If an overflow or underflow occurs, the DriveProgramming detects it as an error. Take neces-
 Example
Block number
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.
6 - 30
Description
Value 1
Value 2
0
0
0
1
1
0
1
1
Flowchart method
=
<value 1> and <value 2>
sary measures in the application so that they do not occur.
Flowchart
Result: any variable
Value 1: any variable or constant
(range −128 to 127)
Value 2: any variable or constant
Result
(range −2,147,483,648 to 2,147,483,647)
0
0
0
1
Format
<result> : = <value 1> and <value 2>
Operation
DriveProgramming User's Manual (I622-E1)
Argument
Text language method
Text

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

3g3rx2 series

Table of Contents