12.39
Converting TIME to INT
TIME_TO_INT
This function converts a value from TIME data type to INT data type.
Structured text
d:=TIME_TO_INT(s);
Setting data
■Description, type, data type
Argument
s (IN)
d
Processing details
■Operation processing
• This function converts the value input to (s) from TIME data type to INT data type, and output the converted value from (d).
(s)
T#1s234ms
TIME
• Input a TIME data type value to (s).
• The upper 16-bit data of the input value (TIME data type) are discarded.
■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
164
12.39 Converting TIME to INT
Description
Input
Output
1234
INT
(d)
Type
Data type
Input variable
TIME
Output variable
INT