SysMemAllocData (FUN)

FUNCTION SysMemAllocData : POINTER TO BYTE

Allocates data memory of the specified size RETURN: Pointer to the memory block. 0 if no memory is not available

InOut:

Scope

Name

Type

Comment

Return

SysMemAllocData

POINTER TO BYTE

Input

szComponent

STRING

Can be the library- or POU-name from IEC

udiSize

__XWORD

Requested size of the memory block

pResult

POINTER TO RTS_IEC_RESULT

Pointer to runtime system error code (see CmpErrors_Itfs.library)