12.29
Converting DINT to TIME
DINT_TO_TIME
This function converts a value from DINT data type to TIME data type.
Structured text
d:=DINT_TO_TIME(s);
Setting data
■Description, type, data type
Argument
s (IN)
d
Processing details
■Operation processing
• This function converts the value input to (s) from DINT data type to TIME data type, and output the converted value from
(d).
(s)
1234567
DINT
• Input a DINT data type value to (s).
■Operation result
The operation processing is performed. The operation result is output from (d).
Operation error
There is no operation error.
12 TYPE CONVERSION FUNCTIONS
154
12.29 Converting DINT to TIME
Description
Input
Output
T#20m34s567ms
TIME
(d)
Type
Data type
Input variable
DINT
Output variable
TIME