SysSharedMemoryReadByte (FUN)

FUNCTION SysSharedMemoryReadByte : __UXINT

This function can be used to read “byte-wise” a defined number of bytes, starting at a certain offset. RETURN: Number of bytes read from the shared memory

InOut:

Scope

Name

Type

Comment

Return

SysSharedMemoryReadByte

__UXINT

Input

hShm

RTS_IEC_HANDLE

Handle to the shared memory

ulOffset

__UXINT

Offset in the shared memory, where reading should start

pbyData

POINTER TO BYTE

Pointer to buffer to read in data

ulSize

__UXINT

Number of bytes to read

pResult

POINTER TO RTS_IEC_RESULT

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