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