Function - Copies the characters of a STRING to an array of SINT.

Inputs

Input

Data type

Description

SRC

STRING

Source STRING.

DST

SINT

Destination array of SINT small integers (USINT for StringToArrayU).

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 characters of the SRC string to the first characters of the DST array. The function checks the maximum size destination arrays and reduces the number of copied characters if necessary.

ST Language

Q := StringToArray (SRC, DST);

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

ArrayToString

StringToArray / StringToArrayU

IEC 61131-3 Automation platform > Programming - Reference guide > String operations > StringToArray / StringToArrayU

Previous chapterNext chapter


Created with the Personal Edition of HelpNDoc: Experience the Power and Ease of Use of a Help Authoring Tool