5-110
5.1 Type Conversion Functions
5.1.36 Time type
→
word (signed), double word (signed) type conversion
TIME_TO_INT(_E), TIME_TO_DINT(_E)
5.1.36 Time type → word (signed), double word (signed) type
conversion
TIME_TO_INT(_E), TIME_TO_DINT(_E)
Function
Operation processing
(1) TIME_TO_INT, TIME _TO_INT_E
Converts time type data input to into word (signed) type data, and outputs the operation
result from .
TIME_TO_INT(_E)
TIME_TO_DINT(_E)
_E: With EN/ENO
indicates any of the following
functions.
TIME_TO_INT TIME _TO_INT_E
TIME _TO_DINT TIME _TO_DINT_E
Input argument, EN:
Executing condition (TRUE: Execution, FALSE: Stop) :Bit
s:
Input :Time
Output argument, ENO:
Output status (TRUE: Normal execution, FALSE: Error or stop) :Bit
d:
Output :Word (signed), double word (signed)
Universal
UD
High
Performance
EN ENO
ds
TIME_TO_INT_E
(EN, s, d);ENO:=
Structured ladder
ST
TIME_TO_INT_E
s
d
Time type
1s234ms
Word (signed)
type
1234