Chapter 5. Function Block Diagram (FBD)246 PACSystems* RX7i, RX3i and RSTi-EP CPU Programmer's Reference Manual GFK-2950C5.5.1 Equal, Not Equal, Greater or Equal, Greater Than, Less or Equal,Less ThanThe relational functions compare input IN1 to input IN2. These operands must be the same datatype. If inputs IN1 and IN2 are equal, the function outputs the result to Q, unless IN1 and/or IN2 isNaN (Not a Number). The following relational functions can be used to compare two numbers:Function Definition RelationalStatementEQ Equal IN1=IN2NE Not Equal IN1≠IN2GE Greater Than or Equal IN1≥IN2GT Greater Than IN1>IN2LE Less Than or Equal IN1≤IN2LT Less Than IN1Tip: To compare values of different data types, first use conversion functions to make the typesthe same.OperandsParameter Description Allowed Types Allowed Operands OptionalSolve Order Calculated by the FBD editor. NA NA NoIN1 The first value to be compared;the value on the left side of therelational statement. BOOL (for EQ and NEfunctions only), BYTE, DINT,DWORD, INT, REAL, LREAL,UINT, WORDAll except S, SA, SB,SCNoIN2 The second value to be compared;the value on the right side of therelational statement. IN2 must bethe same data type as IN1.NoQ If the relational statement is true,Q=1.BOOL I, Q, G, M, T, SA, SB, SCNoBit reference in a non-BOOLvariable.All except constants.