Chapter 8 Logic Instructions
8.8.8 MODABS
FC
MODABS finds the unsigned modulo value for modulo division of two
floating-point variables or constants.
DVP15MC11T
Parameters
Meaning Input/ Output Description Valid range
In1 Input value Input Input value
Depends on the data type of
the variable that the input
parameter is connected to.
In2 Modulo range Input Modulo range
Depends on the data type of
the variable that the input
parameter is connected to.由0
Out Modulo value Output Modulo value
Depends on the data type of
the variable that the output
parameter is connected to.
Boolean
Bit string Integer
Real
number
Time, date
String
BOOL
BYTE
WORD
DWORD
LWORD
USINT
UINT
UDINT
ULINT
SINT
INT
DINT
LINT
REAL
LREAL
TIME
DATE
TOD
DT
STRING
In1
● ●
In2
● ●
Out
●
Note:
The symbol ● indicates that the parameter is allowed to connect to the variable or constant of the data type.
Function Explanation
MODABS is used to perform modulo division of two floating-point variables or constants and get the
unsigned modulo value. The result is output to Out. The modulo position can be calculated
according to the absolute position of the axis.
The input variable and input variable or the input variable and output variable are allowed to be of
different data types in this instruction.
8-71