EasyManua.ls Logo

Omron NJ501-1500

Omron NJ501-1500
990 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...
2-287
2 Instruction Descriptions
NJ-series Instructions Reference Manual (W502)
Bit String Processing Instructions
2
AND (&), OR, and XOR
These instructions perform processing on Boolean variables or corresponding bits in bit strings. The
data to process is in In1 to InN. In1 to InN and Out must be the same data types.
If there are more than two data to process, processing is performed with the following procedure.
1
Processing is performed for In1 and In2.
2
Processing is performed for the results of step 1 and In3.
3
Processing is performed for the results of step 2 and In4.
The relationships between input and output variables are given in the following tables.
z AND (&)
If both bits are TRUE, then the processing result is TRUE. Otherwise, the processing result is FALSE.
z OR
If both bits are FALSE, then the processing result is FALSE. Otherwise, the processing result is TRUE.
z XOR
If both bits are the same, then the processing result is FALSE. If one bit is TRUE and the other is
FALSE, then the processing result is TRUE.
Function
In1 bit In2 bit Out bit
FALSE FALSE FALSE
FALSE TRUE FALSE
TRUE FALSE FALSE
TRUE TRUE TRUE
In1 bit In2 bit Out bit
FALSE FALSE FALSE
FALSE TRUE TRUE
TRUE FALSE TRUE
TRUE TRUE TRUE
In1 bit In2 bit Out bit
FALSE FALSE FALSE
FALSE TRUE TRUE
TRUE FALSE TRUE
TRUE TRUE FALSE
···
···

Table of Contents

Related product manuals