STRING_COPY
Type | Function |
Description | Performs a bytewise copy of each character of an input string (STRING, WSTRING data type) into a buffer (any array, typically an array of bytes).The array index where the copy of the first character of the input string has to start is specified using the BUF_OFF parameter. This parameter determines the byte offset inside the buffer. The offset is calculated as follows: BUF_OFF = Array index at which copying has to start x Size in bytes occupied by each array element Example:If you have an array of DINT elements (each element occupies 4 bytes) and you want to start copying from array index [3], BUF_OFF must have the following value (see also the examples below): MyArray : ARRAY[0..5] OF DINT; BUF_OFF = 3 x SIZEOF(DINT) = 3 x 4 = 12 |
Notes |
|
Parameters | Inputs
![]() ![]() ![]() ![]() ![]() |
Error behavior | ![]() |
Additional information | ![]() |
Examples | ![]() |