SysSharedMemoryGetPointer (FUN) ¶ FUNCTION SysSharedMemoryGetPointer : POINTER TO BYTE Get the pointer to the shared memory RETURN: Returns the runtime system error code (see CmpErrors.library) InOut: Scope Name Type Comment Return SysSharedMemoryGetPointer POINTER TO BYTE Input hShm RTS_IEC_HANDLE Handle to the shared memory pResult POINTER TO RTS_IEC_RESULT Pointer to runtime system error code (see CmpErrors.library)
SysSharedMemoryRead (FUN) ¶ FUNCTION SysSharedMemoryRead : __UXINT This function can be used to read a defined number of bytes from a Shared Memory, starting at a certain offset. RETURN: Number of bytes read from the shared memory InOut: Scope Name Type Comment Return SysSharedMemoryRead __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)
SysSharedMemoryOpen2 (FUN) ¶ FUNCTION SysSharedMemoryOpen2 : RTS_IEC_HANDLE Opens an existing shared memory object specified by name. NOTE: If shared memory object not exists, an error code is returned an it is not created! RETURN: Handle to the shared memory object or RTS_INVALID_HANDLE if failed InOut: Scope Name Type Comment Return SysSharedMemoryOpen2 RTS_IEC_HANDLE Inout Const pszName STRING Name of the shared memory Input ulPhysicalAddress __UXINT Optional physical address: pulSize POINTER TO __UXINT Pointer to requested size of the shared memory. pResult POINTER TO RTS_IEC_RESULT Pointer to runtime system error code (see CmpErrors.library):
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)
SysSharedMemoryWrite (FUN) ¶ FUNCTION SysSharedMemoryWrite : __UXINT This function can be used to write a defined number of bytes to a Shared Memory area, starting at a certain offset address. RETURN: Number of bytes written to the shared memory InOut: Scope Name Type Comment Return SysSharedMemoryWrite __UXINT Input hShm RTS_IEC_HANDLE Handle to the shared memory ulOffset __UXINT Offset in the shared memory pbyData POINTER TO BYTE Pointer to buffer with write data ulSize __UXINT Number of bytes to write pResult POINTER TO RTS_IEC_RESULT Pointer to runtime system error code (see CmpErrors.library)
SysSharedMemoryWriteByte (FUN) ¶ FUNCTION SysSharedMemoryWriteByte : __UXINT This function can be used to write a defined number of bytes in “byte-wise” manner to a Shared Memory area, starting at a certain offset address. RETURN: Number of bytes written to the shared memory InOut: Scope Name Type Comment Return SysSharedMemoryWriteByte __UXINT Input hShm RTS_IEC_HANDLE Handle to the shared memory ulOffset __UXINT Offset in the shared memory pbyData POINTER TO BYTE Pointer to buffer with write data ulSize __UXINT Number of bytes to write pResult POINTER TO RTS_IEC_RESULT Pointer to runtime system error code (see CmpErrors.library)
File and Project Information ¶ Scope Name Type Content FileHeader creationDateTime date 20.04.2021, 16:08:07 companyName string 3S-Smart Software Solutions GmbH libraryFile SysShm Implementation.library primaryProject True productName CODESYS productProfile CODESYS V3.5 SP16 Patch 3 contentFile SysShm Implementation.clean.json version version 2.0.0.0 ProjectInformation IsEndUserLibrary bool False Released True LastModificationDateTime date 20.04.2021, 16:08:07 LibraryCategories library-category-list System|SysLibs Author string CODESYS Development GmbH Company System CompiledLibraryCompatibilityVersion CODESYS V3.5 SP15 Patch 3 DefaultNamespace Description See: Description DocFormat reStructuredText Placeholder SysShm Implementation Project SysShm Implementation Title SysShm Implementation Version version 3.5.17.0
POUs ¶ SysGetProjectId (Function) SysGetProjectInfo (Function) SysGetProjectInfoPrepare (Function) SysGetProjectRetainSize (Function)
SysGetProjectInfo (FUN) ¶ FUNCTION SysGetProjectInfo : BOOL To use this Lib, the flag “automatically generate POUs for Property Access” must be activated and the function must be called, before the project info could be read out. dtDate is not supported InOut: Scope Name Type Return SysGetProjectInfo BOOL Input ProjectInfo POINTER TO PROJECT_INFO
SysGetProjectInfoPrepare (FUN) ¶ FUNCTION SysGetProjectInfoPrepare : BOOL This function must be called at least one time, before the function SysGetProjectInfo could be called. InOut: Scope Name Type Return SysGetProjectInfoPrepare BOOL Input pGetBooleanProperty DWORD pGetTextProperty DWORD pGetNumberProperty DWORD pGetVersionProperty DWORD