5-82
5.1 Type Conversion Functions
5.1.27 String type
→
bit type conversion
STR_TO_BOOL(_E)
5.1.27 String type → bit type conversion
STR_TO_BOOL(_E)
Function
Operation processing
Converts string type data input to into bit type data, and outputs the operation result from
.
When the input value is 0, FALSE is output in bit type data.
When the input value is other than 0, TRUE is output in bit type data.
STR_TO_BOOL(_E)
_E: With EN/ENO
indicates any of the following
functions.
STR_TO_BOOL STR_TO_BOOL_E
Input argument, EN:
Executing condition (TRUE: Execution, FALSE: Stop) :Bit
s:
Input :String
Output argument, ENO:
Output status (TRUE: Normal, FALSE: Error) :Bit
d:
Output :Bit
Universal
UD
High
Performance
EN ENO
ds
STR_TO_BOOL_E
(EN, s, d);ENO:=
Structured ladder
ST
STR_TO_BOOL_E
s
d
String type
' 1 '
'0'
Bit
type
TRUE
FALSE