5.1 Type Conversion Functions
5.1.2 Bit type
→
string type conversion
5-5
5
APPLICATION
FUNCTIONS
BOOL_TO_STR(_E)
BOOL_TO_STR(_E)
5.1.2 Bit type → string type conversion
BOOL_TO_STR(_E)
Function
Operation processing
Converts bit type data input to into string type data, and outputs the operation result from
.
When the input value is FALSE, 0 is output in string type data.
When the input value is TRUE, 1 is output in string type data.
BOOL_TO_STR(_E)
_E: With EN/ENO
indicates any of the following
functions.
BOOL_TO_STR BOOL_TO_STR_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 :String
Universal
UD
High
Performance
EN ENO
ds
BOOL_TO_STR_E
(EN, s, d);ENO:=
Structured ladder
ST
BOOL_TO_STR_E
s
d
Bit type
TRUE
FALSE
String type
'1'
'0'