5-10
5.1 Type Conversion Functions
5.1.4 Bit type
→
time type conversion
BOOL_TO_TIME(_E)
5.1.4 Bit type → time type conversion
BOOL_TO_TIME(_E)
Function
Operation processing
Converts bit type data input to into time type data, and outputs the operation result from
.
When the input value is FALSE, 0 is output in time type data.
When the input value is TRUE, 1 is output in time type data.
BOOL_TO_TIME(_E)
_E: With EN/ENO
indicates any of the following
functions.
BOOL_TO_TIME BOOL_TO_TIME_E
Input argument, EN:
Executing condition (TRUE: Execution, FALSE: Stop) :Bit
s:
Input :Bit
Output argument, ENO:
Output status (TRUE: Normal execution, FALSE: Error or stop) :Bit
d:
Output :Time
Universal
UD
High
Performance
EN ENO
ds
BOOL_TO_TIME_E
(EN, s, d);ENO:=
Structured ladder
ST
BOOL_TO_TIME_E
s
d
Bit type
TRUE
FALSE
Time type
1
ms
0