EasyManuals Logo

Omron NJ501-1500 User Manual

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
Page #336 background imageLoading...
Page #336 background image
2 Instruction Descriptions
2-288
NJ-series Instructions Reference Manual (W502)
The following example shows the AND instruction when In1 is BYTE#16#3A, In2 is BYTE#16#28 and
In3 is BYTE#16#73.
The functions of the AND instruction and the & instruction are exactly the same. Use the form that is
easier to use.
In ST, there is no limit to the number of input variables if you use the following notation.
Out:=In1 AND In2 AND In3 AND In4 AND In5 AND In6 ···
Out:=In1 & In2 & In3 & In4 & In5 & In6 ···
Out:=In1 OR In2 OR In3 OR In4 OR In5 OR In6 ···
Out:=In1 XOR In2 XOR In3 XOR In4 XOR In5 XOR In6 ···
The data types of In1 to InN and Out must all be the same. Otherwise, a building error will occur.
Additional Information
Precautions for Correct Use
abc:=BYTE#16#3A AND BYTE#16#28 AND BYTE#16#73;
LD ST
abc
BYTE#16#3A
BYTE#16#28
AND
EN ENO
In1
In2
In3
BYTE#16#73
0 0 1 0 0 0 0 0
0 1 1 1 0 0 1 1
0 0 1 0 1 0 0 0
0 0 1 1 1 0 1 0
Out=abc
In3=BYTE#16#73
In2=BYTE#16#28
In1=BYTE#16#3A
Logical ANDs between bits

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron NJ501-1500 and is the answer not in the manual?

Omron NJ501-1500 Specifications

General IconGeneral
BrandOmron
ModelNJ501-1500
CategoryController
LanguageEnglish

Related product manuals