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-85
2 Instruction Descriptions
NJ-series Instructions Reference Manual (W502)
Comparison Instructions
2
EQ (=)
The functions of the EQ instruction and the = instruction are exactly the same. Use the form that is
easier to use.
Use the EQascii instruction (page 2-91) to determine if text strings are equal.
If the data types of In1 to InN are different, they will be expanded to a data type that includes the
ranges of all of the data types.
You cannot compare bit string data (BYTE, WORD, DWORD, or LWORD) with integers. You cannot
compare bit string data to real number data (SINT, INT, DINT, LINT, USINT, UDINT, ULINT, REAL,
and LREAL).
Signed integers (SINT, INT, DINT, and LINT) cannot be compared to unsigned integers (USINT, UINT,
UDINT, and ULINT).
You can compare enumerations only to other enumerations.
If In1 to InN are real numbers, error may cause unexpected processing results. This can occur, for
example, when they contain non-terminating decimal numbers.
Two values that are positive infinity or two values that are negative infinity are equivalent.
If any of the values of In1 to InN is nonnumeric data, the value of Out is FALSE.
If this instruction is used in a ladder diagram, the value of Out changes to FALSE if an error occurs in
the previous instruction on the rung.
Additional Information
Precautions for Correct Use
abc:=(INT#3=INT#5)&(INT#5=INT#10);
LD ST
INT#3
INT#5
INT#10
abc
EQ
EN
In1
In2
In3

Table of Contents

Related product manuals