any_to_string
ANY_TO_STRING
Inputs
Input |
Data Type |
Range |
Unit |
Default |
Description |
---|---|---|---|---|---|
IN |
ANY |
|
|
|
Input value. |
Outputs
Output |
Data Type |
Range |
Unit |
Description |
---|---|---|---|---|
Q |
STRING |
|
|
Value converted to a string. |
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
FFLD Language
- 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
- In the IL "Instruction list" This is a low-level language and resembles assembly language, the any_to_string function converts the current result.
Op1: FFLD IN
ANY_TO_STRING
ST Q
ST Language
Q := ANY_TO_STRING (IN);
See Also