DVP-15MC Series Motion Controller Operation Manual
8-64
FB/FC
Explanation
FC
SUB is used for the subtraction operation of two variables or constants.
DVP15MC11T-06
Parameters
Meaning
Description Valid range
In1 Minuend Input Minuend
Depends on the data type of
the variable that the input
parameter is connected to.
In2 Subtrahend Input Subtrahend
Depends on the data type of
the variable that the input
parameter is connected to.
Out Difference Output
The subtraction result of In1
and In2
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
The instruction is used for the subtraction of two or more variables or constants. The result is
output to Out, that is, Out= In1 - In2.
The input parameters In1 and In2 in this instruction are allowed to be the variables of different data
types among bits, integers and real numbers. When In1 and In2 are the variables of different types,
the subtraction operation will be performed based on the data type which can contain valid ranges
of In1 and In2 values. For example, the data type of Out is DINT if the data type of In1 is INT and
In2 is DINT.
In1 In2
Result
assignment
Input parameter
Subtraction
Out
Output
parameter