5.8 Functions of Time Data Type
5.8.2 Subtraction
5-175
5
APPLICATION
FUNCTIONS
SUB_TIME(_E)
SUB_TIME(_E)
5.8.2 Subtraction
SUB_TIME(_E)
Function
Operation processing
Performs subtraction ( − ) on time type data input to and , and outputs the operation
result from in time type.
SUB_TIME(_E)
_E: With EN/ENO
indicates any of the following
functions.
SUB_TIME SUB_TIME_E
Input argument, EN:
Executing condition (TRUE: Execution, FALSE: Stop) :Bit
s1:
Input :Time
s2:
Output argument, ENO:
Output status (TRUE: Normal, FALSE: Error) :Bit
d:
Output :Time
Universal
UD
High
Performance
Structured ladder
EN ENO
ds1
s2
ST
(EN, s1, s2, d);ENO:=
SUB_TIME_E
SUB_TIME_E
s1
s2
s1
s2
d