any_to_string

ANY_TO_STRING

PLCopen motion icon

Operator - Converts the input into string value.

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

Any_To_StringFbd.gif (1300 octets)

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.

Any_To_StringLd.gif (1533 octets)

IL Language

Op1: FFLD  IN
     ANY_TO_STRING
     ST  Q

ST Language

Q := ANY_TO_STRING (IN);

See Also