POUs ¶ SysShmClose (Function) SysShmOpen (Function) SysShmRead (Function) SysShmWrite (Function)
SysShmOpen (FUN) ¶ FUNCTION SysShmOpen : DWORD InOut: Scope Name Type Comment Return SysShmOpen DWORD Input stName STRING Name of shared memory object dwPhysicalAddress DWORD Physical address of shared memory (must exist!) pdwSize DWORD Address of size. Will be filled by function, if shared memory exists
SysShmRead (FUN) ¶ FUNCTION SysShmRead : DWORD InOut: Scope Name Type Comment Return SysShmRead DWORD Input hShm DWORD Handle to shared memory dwOffset DWORD Offset in shared memory pData DWORD Address of databuffer to read dwSize DWORD Number of bytes to read
SysShmWrite (FUN) ¶ FUNCTION SysShmWrite : DWORD InOut: Scope Name Type Comment Return SysShmWrite DWORD Input hShm DWORD Handle to shared memory dwOffset DWORD Offset in shared memory pData DWORD Address of databuffer to write dwSize DWORD Number of bytes to write
SysSem23 Library Documentation ¶ Company System Title SysSem23 Version 3.5.15.0 Categories System|SysLibs23 Author 3S - Smart Software Solutions GmbH Description 1 ¶ Compatibility library for CoDeSys 2.3 projects, to get access to semaphores. Contents: ¶ POUs SysSemCreate (Function) SysSemDelete (Function) SysSemEnter (Function) SysSemLeave (Function) SysSemTry (Function) extern30 GVL (GVL) SysSemCreate30 (Function) SysSemDelete30 (Function) SysSemEnter30 (Function) SysSemLeave30 (Function) SysSemTry30 (Function) Indices and tables ¶ 1 Based on SysSem23.library, last modified 24.07.2019, 09:09:31. LibDoc 4.4.0.0-b.27 The content file SysSem23.clean.json was generated with CODESYS V3.5 SP15 on 24.07.2019, 09:09:33.
POUs ¶ SysSemCreate (Function) SysSemDelete (Function) SysSemEnter (Function) SysSemLeave (Function) SysSemTry (Function)
SysSemCreate (FUN) ¶ FUNCTION SysSemCreate : DWORD This function can be used to create a semaphore (synchronization object). InOut: Scope Name Type Comment Return SysSemCreate DWORD Handle to the semaphore or RTS_INVALID_HANDLE if failed. Input bDummy BOOL Dummy variable, not used
SysSemDelete (FUN) ¶ FUNCTION SysSemDelete : BOOL This function deletes the semaphore which is identified by its handle. InOut: Scope Name Type Comment Return SysSemDelete BOOL Return the runtime system error code (see CmpErrors.library) Input dwHandle DWORD Handle of the semaphore
SysSemEnter (FUN) ¶ FUNCTION SysSemEnter : BOOL This function must be called before a task accesses data which also are used by other tasks. Thus the data will be bocked for other tasks, which also use SysSemEnter until by function SysSemLeave the semaphore will be set free again. The semaphore is identified by its handle. InOut: Scope Name Type Comment Return SysSemEnter BOOL Returns the runtime system error code (see CmpErrors.library) Input dwHandle DWORD Handle of the semaphore
SysSemLeave (FUN) ¶ FUNCTION SysSemLeave : BOOL This function must be called after an access on data which are also used by other tasks. This is necessary to release the semaphore, which has been blocked before the access by function SysSemEnter. The semaphore is identified by its handle. InOut: Scope Name Type Comment Return SysSemLeave BOOL Returns the runtime system error code (see CmpErrors.library) Input dwHandle DWORD Handle of the semaphore