Relational Functions Equal, Not Equal, Less Than, Less/Equal, Greater Than, Greater/Equal; Relational Functions Range - Emerson PaCSystems VersaMax Series User Manual

Table of Contents

Advertisement

User Manual
GFK-1503F
10.6.1
Relational Functions Equal, Not Equal, Less Than,
Less/Equal, Greater Than, Greater/Equal
Parameters for the Relational Functions
Input/
Output
enable
IN1
IN2
Q
Example
In the example, two double precision signed integers are tested for equality. When the relay
%I0001 passes power flow to the LE (Less or Equal) function, the value presently in the
reference nicknamed PWR_MDE is compared to the value presently in the reference
BIN_FUL. If the value in PWR_MDE is less than or equal to the value in BIN_FUL, coil %Q0002
is turned on.
Figure 138
10.6.2

Relational Functions Range

The Range function determines if a value is within the range of two numbers.
Data Types for the Range Function
The Range function operates on these types of data:
INT
DINT
WORD
Instruction Set Reference
Choices
Description
flow
When the function is enabled, the operation is performed.
R, AI, AQ, constant
IN1 contains a constant or reference for the first value to be
compared. IN1 must be a valid number. Constants must be
For INT data only: I,
integers for double precision signed integer operations.
Q, M, T, G
IN1 is on the left side of the relational equation, as in IN1 < IN2.
R, AI, AQ, constant
IN2 contains a constant or reference for the second value to be
compared. IN2 must be a valid number. Constants must be
For INT data only: I,
integers for double precision signed integer operations.
Q, M, T, G
IN2 is on the right side of the relational equation, as in IN1 < IN2.
flow, none
Output Q is energized when IN1 and IN2 match the specified
relation.
Signed integer (default).
Double precision signed integer.
Word data type.
Chapter 10
Jan 2020
152

Advertisement

Table of Contents
loading

Table of Contents