
User Manual
Chapter 10
GFK-1503F
Jan 2020
Instruction Set Reference
144
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.
Example
In the example, the remainder of the integer division of BOXES into PALLETS is placed into
NT_FULL whenever %I0001 is ON.
Figure 126