Relational Functions; Relational Functions Equal, Not Equal, Less Than, Less/Equal, Greater Than, Greater/Equal - GE VersaMax PLC User Manual

Table of Contents

Advertisement

10.6 Relational Functions

• Equal
• Not Equal
• Greater Than
• Greater Than or Equal
• Less Than
• Less Than or Equal
• Range
Input/ Output
enable
IN1
Instruction Set Reference
For public disclosure
The Relational functions can be used to compare two numbers and to determine whether a
number lies within a specified range.
When the function receives power flow, it compares input IN1 to input IN2. These
parameters must be the same data type.
EQ_
Enable
INT
Input 1
I1 Q
I2
Input 2
If inputs IN1 and IN2 match the specified relational condition, output Q receives power
flow and is set ON (1); otherwise, it is set OFF (0).
Data Types for Relational Functions
Relational functions operate on these types of data:
Signed integer
INT
Double precision signed integer
DINT
Floating Point
REAL
The %S0020 bit is set ON when a relational function using Real data executes
successfully. It is cleared when either input is NaN (Not a Number).
10.6.1 Relational Functions Equal, Not Equal, Less
Than, Less/Equal, Greater Than, Greater/Equal
10.6.1.1 Parameters for the Relational Functions
Choices
flow
When the function is enabled, the operation is
performed.
R, AI, AQ, constant
IN1 contains a constant or reference for the first
For INT data only: I, Q,
value to be compared. IN1 must be a valid
M, T, G
number. Constants must be integers for double
precision signed integer operations.
IN1 is on the left side of the relational equation,
as in IN1 < IN2.
Test two numbers for equality
Test two numbers for non-equality
Test whether one number is greater than another
Test whether one number is greater than or equal to
another
Test whether one number is less than another
Test whether one number is less than or equal to another
Tests whether one number lies between two other numbers
Output
Description
GFK-1503E User Manual 171

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents