Sub - Delta Electronics DVP15MC11T Operation Manual

Table of Contents

Advertisement

DVP15MC11T Operation Manual
8.8.2

SUB

FB/FC
FC
SUB is used for the subtraction operation of two variables or constants.
Parameters
Parameter
name
In1
Minuend
In2
Subtrahend
Out
Difference
In1
In2
Out
Note:
The symbol ● indicates that the parameter is allowed to connect to the variable or constant of the data type.
_8
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.
8-56
Input/
Meaning
Output
Input
Input
Output
Bit string
Explanation
S UB
E N
ENO
In1
O ut
In2
Description
Minuend
Subtrahend
The subtraction result of In1
and In2
Integer
Applicable
DVP15MC11T
Valid range
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.
Depends on the data type of
the variable that the output
parameter is connected to.
Real
Time, date
number
model

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents