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


 
4-28 Series 90-30/20/Micro Programmable Controllers Reference Manual September 1998 GFK-0467K
4
Parameters:
Parameter Description
enable When the function is enabled, the operation is performed.
I1 I1 contains a constant or reference for the first value used in the operation.
(I1 is on the left side of the mathematical equation, as in I1 — I2).
I2 I2 contains a constant or reference for the second value used in the operation.
(I2 is on the right side of the mathematical equation, as in I1 — I2).
ok The ok output is energized when the function is performed without overflow, unless an
invalid operation occurs.
Q Output Q contains the result of the operation.
Valid Memory Types:
Parameter flow %I %Q %M %T %S %G %R %AI %AQ const none
enable
I1 o o o o o •†
I2 o o o o o •†
ok
Q o o o o o
Valid reference or place where power may flow through the function.
o Valid reference for INT data only; not valid for DINT or REAL.
Constants are limited to values between –32,768 and +32,767 for double precision signed integer operations.
Note
The default type is INT for 16-bit or single register operands. Press F10 to
change the Types selection to DINT, 32-bit double word, or REAL (for the 350
and 360 series CPUs only). PLC INT values occupy a single 16-bit register, %R,
%AI or %AQ. DINT values require two consecutive registers with the low 16 bits
in the first word and the upper 16 bits with the sign in second word. REAL
values, in the 350 and 360 series CPUs only—Release 9 or later, plus all releases
of CPU352, also occupy a 32-bit double register with the sign in the high bit
followed by the exponent and mantissa.
Example:
In the following example, whenever input %I0001 is set, the integer content of %R0002 is
decremented by 1 and coil %Q0001 is turned on, provided there is no overflow in the subtraction.
| _____
|%I0001 | | %Q0001
|——| |———| SUB_|———————————————————————————————————————————————————————————( )—
| | |
| | INT |
| | |
|%R0002 —|I1 Q|—%R0002
| +00095 | |
| | |
| CONST —|I2 |
| +00001 |_____|
|