20.3.21 Subtractor details
20.3.21.1 Behaviour
The module subtracts the value of the Input 1 from the value of the Input 0 and outputs the re-
sult on the Output 0 (Input 0 - Input 1 = Output 0).
If necessary, incoming values are converted into the internal data type of the module before the
subtraction (see conversion table below). Thus, observe the selection of a correct internal data
type!
The comparison is dependent on the internal data type of the module and is executed in the fol-
lowing way:
Internal data type Procedure
Number
Time
Date
20.3.21.2 Extended settings
Internal data type
Via the
the module.
Only send with change
Via the
value shall only be sent if the result of the calculation is different to the previ-
ously calculated result.
20.3.21.3 Conversion table
Boolean
(converted)
Boolean ---
Number 0
→ true ---
185/240
Mathematical addition 3 - 2
Calendrical addition
Calendrical addition
parameter, you can specify the internal data type of
Number
DPTTime
(converted)
(converted)
true
1
every va-
→
false
0
lue
→
every va-
Example
16:40 - 01:10
08.02.2009 - 03.00.0000 = 05.02.2009
parameter, you can specify whether an output
--
Current
-
time
→ Time of
= 1
= 15:30
DPTDate
String
(converted)
(converted)
Current
true
→
date
false
→
Date, if
Text analo-
"1"
"0"