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:
Tip: To compare values of different data types, first use conversion functions to make the types
the same.
Operands
Calculated by the FBD editor.
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
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.
If the relational statement is true,
Q=1.
I, Q, G, M, T, SA, SB, SC
Bit reference in a non-BOOL
variable.