COPY_TO_STRING (FUN)ΒΆ

FUNCTION COPY_TO_STRING : UDINT

Copies an IStringRepresentation into a memory block of a string.
Type of the itfString can be IBuilder, IString or just an IStringRepresentation.
InOut:

Scope

Name

Type

Initial

Comment

Return

COPY_TO_STRING

UDINT

Input

itfString

IStringRepresentation

pbyValue

POINTER TO BYTE

Pointer to the first byte of string instance, e.g. pbyValue := ADR(myStringInstance)

udiSize

UDINT

Size of the string in bytes, e.g. udiSize := SIZEOF(myStringInstance)

itfCharmap

ICharmap

0

The default depends on the project setting for string encoding

Output

eErrorID

ERROR

Check error output value for better diagnostics