SysIntLevel (FUN) ¶ FUNCTION SysIntLevel : RTS_IEC_RESULT <description> This function checks if the processor is actually executing an ISR. This information is necessary, as some functions of an operating system must not be called within the interrupt level. </description> <result><p>RESULT: Returns the runtime system error code (see CmpErrors.library): <ul> <li>ERR_OK: We are still in an interrupt handler</li> <li>ERR_FAILED: not in interrupt context</li> </ul> </p></result> InOut: Scope Name Type Return SysIntLevel RTS_IEC_RESULT
SysIntOpenByName (FUN) ¶ FUNCTION SysIntOpenByName : RTS_IEC_HANDLE <description>Open a valid interrupt specified by name</description> <result><p>RESULT: Handle to the interrupt or RTS_INVALID_HANDLE if failed.</p></result> InOut: Scope Name Type Comment Return SysIntOpenByName RTS_IEC_HANDLE Input pszIntName STRING <param name=”pszIntName” type=”IN”>Interrupt name defined in the settings component</param> Result POINTER TO RTS_IEC_RESULT <param name=”pResult” type=”OUT”>Pointer to runtime system error code (see CmpErrors.library)</param>
SysIntOpen (FUN) ¶ FUNCTION SysIntOpen : RTS_IEC_HANDLE <description>Open a valid interrupt</description> <result><p>RESULT: Handle to the interrupt or RTS_INVALID_HANDLE if failed.</p></result> InOut: Scope Name Type Comment Return SysIntOpen RTS_IEC_HANDLE Input ulInterrupt UDINT <param name=”ulInterrupt” type=”IN”>Interrupt number</param> pIntDescription POINTER TO SYS_INT_DESCRIPTION <param name=”pIntDescription” type=”IN”>Pointer to optional interrupt description</param> pResult POINTER TO RTS_IEC_RESULT <param name=”pResult” type=”OUT”>Pointer to runtime system error code (see CmpErrors.library)</param>
Library Reference ¶ This is a dictionary of all referenced libraries and their name spaces.
File and Project Information ¶ Scope Name Type Content FileHeader creationDateTime date 03.07.2018, 10:34:55 companyName string 3S-Smart Software Solutions GmbH libraryFile SysInt23.library primaryProject True productName CODESYS productProfile CODESYS V3.5 SP13 contentFile SysInt23.clean.json version version 2.0.0.0 ProjectInformation Released bool True Support32BitOnly True LastModificationDateTime date 03.07.2018, 10:34:55 LibraryCategories library-category-list System|SysLibs23 Author string 3S - Smart Software Solutions GmbH Company System Description See: Description Project SysInt23 Title SysInt23 Version version 3.5.13.0
SysMem Library Documentation ¶ Company System Title SysMem Version 3.5.17.0 Categories System|SysLibs Namespace SysMem Author 3S - Smart Software Solutions GmbH Placeholder SysMem Description 1 ¶ This library provides access to the dynamic memory management of the runtim system. Contents: ¶ SysMemAllocData (Function) SysMemCmp (Function) SysMemCpy (Function) SysMemForceSwap (Function) SysMemFreeData (Function) SysMemGetCurrentHeapSize (Function) SysMemIsValidPointer (Function) SysMemMove (Function) SysMemReallocData (Function) SysMemSet (Function) SysMemSwap (Function) Indices and tables ¶ 1 Based on SysMem.library, last modified 20.04.2021, 16:04:25. LibDoc 4.4.0.0-b.27 The content file SysMem.clean.json was generated with CODESYS V3.5 SP16 Patch 3 on 20.04.2021, 16:04:25.
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)
SysMemCmp (FUN) ¶ FUNCTION SysMemCmp : DINT Compares the content of two buffers RETURN: Returns 0 if the buffer contents are equal, else !=0 InOut: Scope Name Type Comment Return SysMemCmp DINT Input pBuffer1 POINTER TO BYTE Address of first memory area (buffer 1) pBuffer2 POINTER TO BYTE Address of second memory area (buffer 2) udiCount __XWORD Number of bytes to be compared
SysMemCpy (FUN) ¶ FUNCTION SysMemCpy : POINTER TO BYTE Copy the content from source (pSrc) to destination buffer (pDest) RETURN: Pointer to the destination buffer, where the copy was done InOut: Scope Name Type Comment Return SysMemCpy POINTER TO BYTE Input pDest POINTER TO BYTE Pointer to memory address to be copied to (target) pSrc POINTER TO BYTE Pointer to memory address to be copied from (source) udiCount __XWORD Number of bytes to be copied
SysMemForceSwap (FUN) ¶ FUNCTION SysMemForceSwap : DINT Routine to force swapping memory independant of the byteorder of the system! RETURN: Number of bytes swapped: -1 = failed (size too large) >0 = Number of bytes swapped InOut: Scope Name Type Comment Return SysMemForceSwap DINT Input pbyBuffer POINTER TO BYTE POINTER TO data TO swap. You can check, which order is selected by calling the routine with pbyBuffer=0 udiSize UDINT Size of one element to swap udiCount UDINT Number of elements to swap