Equal, Not Equal, Greater Or Equal, Greater Than, Less Or Equal, Less Than - GE PACSystems RX7i Cpu Programmer's Reference Manual

Hide thumbs Also See for PACSystems RX7i:
Table of Contents

Advertisement

Chapter 5. Function Block Diagram (FBD)
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
Parameter Description
Solve Order Calculated by the FBD editor.
IN1
The first value to be compared;
the value on the left side of the
relational statement.
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.
If the relational statement is true,
Q
Q=1.
246
PACSystems* RX7i, RX3i and RSTi-EP CPU Programmer's Reference Manual
Function
Definition
EQ
Equal
NE
Not Equal
GE
Greater Than or Equal
GT
Greater Than
LE
Less Than or Equal
LT
Less Than
Allowed Types
NA
BOOL (for EQ and NE
functions only), BYTE, DINT,
DWORD, INT, REAL, LREAL,
UINT, WORD
BOOL
Bit reference in a non-BOOL
variable.
Relational
Statement
IN1=IN2
IN1≠IN2
IN1≥IN2
IN1>IN2
IN1≤IN2
IN1<IN2
Allowed Operands
NA
All except S, SA, SB,
SC
I, Q, G, M, T, SA, SB, SC
All except constants.
Optional
No
No
No
No
GFK-2950C

Advertisement

Table of Contents
loading

This manual is also suitable for:

Pacsystems rx3iPacsystems rsti-ep

Table of Contents