Function - Copy an array of SINT to a STRING.

Inputs

Input

Data type

Description

SRC

SINT

Source array of SINT small integers (USINT for ArrayToStringU).

DST

STRING

Destination STRING.

COUNT

DINT

Numbers of characters to be copied.

Outputs

Output

Data type

Description

Q

DINT

Number of characters copied.

Remarks

In LD language, the operation is executed only if the input rung (EN) is TRUE. The output rung (ENO) keeps the same value as the input rung.

This function copies the COUNT first elements of the SRC array to the characters of the DST string. The function checks the maximum size of the destination string and adjust the COUNT number if necessary.

ST Language

Q := ArrayToString (SRC, DST, COUNT);

FBD Language

Fixed_Image

LD Language

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

Fixed_Image

Fixed_Image See also

StringToArray

ArrayToString / ArrayToStringU

IEC 61131-3 Automation platform > Programming - Reference guide > String operations > ArrayToString / ArrayToStringU

Previous chapterNext chapter


Created with the Personal Edition of HelpNDoc: Leave the tedious WinHelp HLP to CHM conversion process behind with HelpNDoc