Operator - Converts the input into string value.

Inputs

Input

Data type

Description

IN

ANY

Input value.

Outputs

Output

Data type

Description

Q

STRING

Value converted to string.

Remarks

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.

ST Language

Q := ANY_TO_STRING (IN);

FBD Language

Fixed_Image

LD Language

The conversion is executed only if EN is TRUE.
ENO keeps the same value as EN.

Fixed_Image


Created with the Personal Edition of HelpNDoc: Easily create Help documents