Operator - Converts the input into string value.
IN : ANY Input value
Q : STRING Value converted to string
For BOOL input data types, the output is '1' or '0' for TRUE and FALSE respectively. For DINT, REAL or TIME input data types, the output is the string representation of the input number. This is a number of milliseconds for TIME inputs. In LD language, the conversion is executed only if the input rung (EN) is TRUE. The output rung (ENO) keeps the same value as the input rung. In IL language, the ANY_TO_STRING function converts the current result.
Q := ANY_TO_STRING (IN);
(* The conversion is executed only if EN is
TRUE *)
(* ENO keeps the same value as EN *)
Op1: LD IN
ANY_TO_STRING
ST Q
ANY_TO_BOOL ANY_TO_SINT ANY_TO_INT ANY_TO_DINT ANY_TO_LINT ANY_TO_REAL ANY_TO_LREAL ANY_TO_TIME