ArrayToString / ArrayToStringU
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
LD Language
The function is executed only if EN is TRUE.
ENO keeps the same value as EN.
|
ArrayToString / ArrayToStringU |
IEC 61131-3 Automation platform > Programming - Reference guide > String operations > ArrayToString / ArrayToStringU |
Created with the Personal Edition of HelpNDoc: Leave the tedious WinHelp HLP to CHM conversion process behind with HelpNDoc