EasyManua.ls Logo

GE PACSystems RX7i

GE PACSystems RX7i
469 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...
Chapter 5. Function Block Diagram (FBD)
246 PACSystems* RX7i, RX3i and RSTi-EP CPU Programmer's Reference Manual GFK-2950C
5.5.1 Equal, Not Equal, Greater or Equal, Greater Than, Less or Equal,
Less Than
The relational functions compare input IN1 to input IN2. These operands must be the same data
type. If inputs IN1 and IN2 are equal, the function outputs the result to Q, unless IN1 and/or IN2 is
NaN (Not a Number). The following relational functions can be used to compare two numbers:
Function
Definition
Relational
Statement
EQ
Equal
IN1=IN2
NE
Not Equal
IN1≠IN2
GE
Greater Than or Equal
IN1≥IN2
GT
Greater Than
IN1>IN2
LE
Less Than or Equal
IN1≤IN2
LT
Less Than
IN1<IN2
Tip: To compare values of different data types, first use conversion functions to make the types
the same.
Operands
Parameter
Description
Allowed Types
Allowed Operands
Optional
Solve Order
Calculated by the FBD editor.
NA
NA
No
IN1
The first value to be compared;
the value on the left side of the
relational statement.
BOOL (for EQ and NE
functions only), BYTE, DINT,
DWORD, INT, REAL, LREAL,
UINT, WORD
All except S, SA, SB,
SC
No
IN2
The second value to be compared;
the value on the right side of the
relational statement. IN2 must be
the same data type as IN1.
No
Q
If the relational statement is true,
Q=1.
BOOL
I, Q, G, M, T, SA, SB, SC
No
Bit reference in a non-BOOL
variable.
All except constants.

Table of Contents

Other manuals for GE PACSystems RX7i

Related product manuals