5-106
5.1 Type Conversion Functions
5.1.34 BCD type
→
string type conversion
BCD_TO_STR(_E)
Operation Error
No operation error occurs in the execution of the BCD_TO_STR(_E) function.
Program Example
The program which converts word (unsigned)/16-bit string type data input to into string type
data, and outputs the operation result from .
(a) Function without EN/ENO (BCD _TO_STR)
[Structured ladder]
[ST]
g_string1 := BCD_TO_STR (g_word1);
(b) Function with EN/ENO (BCD_TO_STR_E)
[Structured ladder]
[ST]
g_bool3 := BCD_TO_STR_E (g_bool1, g_word1, g_string1);
s
d