StringToArray / StringToArrayU
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
LD Language
The function is executed only if EN is TRUE.
ENO keeps the same value as EN.
|
StringToArray / StringToArrayU |
IEC 61131-3 Automation platform > Programming - Reference guide > String operations > StringToArray / StringToArrayU |
Created with the Personal Edition of HelpNDoc: Experience the Power and Ease of Use of a Help Authoring Tool