Rockwell Automation DeviceLogix System User Manual User Manual
Page 45

Publication RA-UM003B-EN-P - February 2010
45
Navigate the Function Block Editor Interface Chapter 2
Comparison output for Infinity Input
Operation rules [Mask (MEQ) only]
The Mask process is outlined below.
IF (Source AND Mask) == (Compare AND Mask)
Output is Set
ELSE
Output is Clear
END
Data ranges [Mask (MEQ) only]
The valid data ranges for the MEQ instructions are as follows.
IMPORTANT
When data values are large, switching between REAL and DINT
data types may cause a minimal loss of accuracy. For example,
a value of 99999999 DINT will be rounded up to 100000000
REAL when you switch to a REAL data type and then back to a
DINT data type.
Value of
Source A
Value of
Source B
Comparison Output
GRT
GEQ
EQU
NEQ
LES
LEQ
(+) Infinity
(+) Infinity
0
1
1
0
0
1
(+) Infinity
(-) Infinity
1
1
0
1
0
0
(+) Infinity
Any finite
number
1
1
0
1
0
0
(-) Infinity
(+) Infinity
0
0
0
1
1
1
(-) Infinity
(-) Infinity
0
1
1
0
0
1
(-) Infinity
Any finite
number
0
0
0
1
1
1
Any finite
number
(+) Infinity
0
0
0
1
1
1
Any finite
number
(-) Infinity
1
1
0
1
0
0
Any finite
number
Any finite
number
Refer to operation rules
Parameters
Data Range
Source
16#0 ~ 16#FFFFFFFF
Mask
16#0 ~ 16#FFFFFFFF
Compare
16#0 ~ 16#FFFFFFFF