any_to_string
Inputs
Input |
Data Type |
Range |
Unit |
Default |
Description |
---|---|---|---|---|---|
IN |
ANY |
|
|
|
Input value. |
Outputs
Output |
Data Type |
Range |
Unit |
Description |
---|---|---|---|---|
Q |
STRING |
|
|
Converts the input into a character string value. |
Remarks
- For BOOL input data types, the output is
- 0 for FALSE.
- 1 for TRUE.
- 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.
FBD Language Example
FFLD Language Example
- In the FFLD 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.
IL Language Example
- In the IL Language, the any_to_string function converts the current result.
Op1: FFLD IN
ANY_TO_STRING
ST Q
ST Language Example
Q := ANY_TO_STRING (IN);
See Also