GE 90-30/20/Micro Universal Remote User Manual


 
4-44 Series 90-30/20/Micro Programmable Controllers Reference Manual September 1998 GFK-0467K
4
RANGE (INT, DINT, WORD)
The RANGE function is used to determine if a value is between the range of two numbers.
Note
This function is available only to Release 4.41 or later CPUs.
The RANGE function operates on these types of data:
Data Type Description
INT Signed integer.
DINT Double precision signed integer.
WORD Word data type.
The default data type is signed integer; however, it can be changed after selecting the function. For
more information on data types, please refer to chapter 2, section 2, “Program Organization and
User References/Data.”
When the function is enabled, the RANGE function block will compare the value in input parameter
IN against the range specified by limit parameters L1 and L2. When the value is within the range
specified by L1 and L2, inclusive, output parameter Q is set ON (1). Otherwise, Q is set OFF (0).
_____
| |
(enable) –|RANGE|
| |
| INT |
| |
(limit parameter L1) –|L1 Q|– (output parameter Q)
| |
(limit parameter L2) –|L2 |
| |
(value to be compared) –|IN |
|_____|
Note
Limit parameters L1 and L2 represent the end points of a range. There is no
minimum/maximum or high/low connotation assigned to either parameter. Thus,
a desired range of 0 to 100 could be specified by assigning 0 to L1 and 100 to L2
or 0 to L2 and 100 to L1.