Mod - Delta Electronics DVP15MC11T Operation Manual

Table of Contents

Advertisement

8.8.5

MOD

FB/FC
FC
MOD finds the remainder for division of two integer variables or constants.
Parameters
Parameter
Meaning
name
In1
Dividend
In2
Divisor
Out
Remainder
Bit 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
The instruction is used to get the remainder of the division of two integer variables or constants. The
result is output to Out, that is, Out= In1 – (In1/ In2)*In2.
The input variable and input variable or the input variable and output variable are allowed to be of
different data types in this instruction. When the data types of input and output variables are
different, the data type of the output variable must include the valid ranges of data types of all input
variables. Otherwise, there will be an error during the compiling of the software. For example, if the
data types of In1 and In2 are INT and DINT respectively, the data type of Out is DINT. There will be
an error during the compiling of the software if the data type of Out is INT. No error will occur during
the compiling of the software if the data type of Out is LINT.
Explanation
MOD
E N
In1
In2
Input/
Output
Input
Dividend
Input
Divisor
The remainder got by dividing
Output
In1 by In2
Integer
Chapter 8 Logic Instructions
ENO
O ut
Description
Depends on the data type of
the variable that the input
parameter is connected to.
Depends on the data type of
the variable that the input
parameter is connected to. 0 is
excluded.
Depends on the data type of
the variable that the output
parameter is connected to.
Real
number
Applicable model
DVP15MC11T
Valid range
Time, date
8-65
8_

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents