Nj-Series Instructions Reference Manual (W502 - Omron NJ501-1500 Reference Manual

Machine automation controller nj-series
Hide thumbs Also See for NJ501-1500:
Table of Contents

Advertisement

2 Instruction Descriptions
The following example shows the AND instruction when In1 is BYTE#16#3A, In2 is BYTE#16#28 and
In3 is BYTE#16#73.
LD
BYTE#16#3A
BYTE#16#28
BYTE#16#73
In1=BYTE#16#3A
In2=BYTE#16#28
In3=BYTE#16#73
Out=abc
The functions of the AND instruction and the & instruction are exactly the same. Use the form that is
easier to use.
Additional Information
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 ···
Precautions for Correct Use
The data types of In1 to InN and Out must all be the same. Otherwise, a building error will occur.
2-288
AND
EN
ENO
In1
abc
In2
In3
0 0 1 1 1 0 1 0
0 0 1 0 1 0 0 0
0 1 1 1 0 0 1 1
Logical ANDs between bits
0 0 1 0 0 0 0 0
ST
abc:=BYTE#16#3A AND BYTE#16#28 AND BYTE#16#73;

NJ-series Instructions Reference Manual (W502)

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Nj501-1300Nj501-1400

Table of Contents