any_to_string

PLCopen motion icon

Operator - Converts the input into a character string value.

  • 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.

Inputs

Input

Data Type

See Data Types.

Range

Unit

Default

Description

IN

ANY

 

 

 

Input value.

Outputs

Output

Data Type

See Data Types.

Range

Unit

Description

Q

STRING

 

 

Converts the input into a character string value.

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

Not available.

ST Language Example

Q := ANY_TO_STRING (IN);

See Also