10.5.2.1
Parameters of the Modulo Division Function
Input/ Output
Choices
Description
enable
flow
When the function is enabled, the operation is
performed.
I1
All data types: R, AI, AQ,
constant
INT data type only: I, Q, M,
T, G
I1 contains a constant or reference for the value
to be divided by I2. Range for constants in
double precision signed integer operations is
minimum/maximum DINT.
I2
All data types: R, AI, AQ,
constant
INT data type only: I, Q, M,
T, G
I2 contains a constant or reference for the value
to be divided into I1. Range for constants in
double precision signed integer operations is
minimum/maximum DINT.
ok
flow, none
The OK output is energized when the function is
performed without overflow.
Q
All data types: R, AI, AQ
INT data type only: I, Q, M,
T, G
Output Q contains the result of dividing I1 by I2
to obtain a remainder.
10.5.2.2
Example
In the example, the remainder of the integer division of BOXES into PALLETS is placed
into NT_FULL whenever %I0001 is ON.
%I0001
PALLETS
-00017
BOXES
+0006
MOD_
INT
I1 Q
I2
NT_FULL
-0005
10.5.3
Math and Numerical Functions Scaling
The Scaling function scales an input parameter and places the result in an output location.
For integer-type data, all parameters must be integer-based (signed). For wordtype data,
all parameters must be word-based (unsigned).
Max. Input Value
Min. Input Value
Max. Output Value
Min. Output Value
Input
OK
Enable
ILO
OHI
OLO
IN
Output
OUT
SCALE
_
INT
IHI
Instruction Set Reference
GFK-1503E User Manual 165
For public disclosure
Summary of Contents for VersaMax PLC
Page 16: ...Notes 16 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Page 38: ...Notes 38 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Page 50: ...Notes 50 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Page 92: ...Notes 92 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Page 112: ...Notes 112 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Page 224: ...Notes 224 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Page 292: ...Notes 292 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Page 316: ...Notes 316 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Page 317: ......