_RLstCreateP (FUN) ¶ FUNCTION _RLstCreateP : CAA.HANDLE Take SIZEOF(RLST) bytes from a PLC(IEC) provided memory and build a Ready List InOut: Scope Name Type Return _RLstCreateP CAA.HANDLE Input szMemory CAA.SIZE pMemory CAA.PVOID peError POINTER TO ERROR
_RLstDelete (FUN) ¶ FUNCTION _RLstDelete : ERROR free all allocated resources of a ready list InOut: Scope Name Type Return _RLstDelete ERROR Input hRLst CAA.HANDLE
_RLstGetHighestPrio (FUN) ¶ FUNCTION _RLstGetHighestPrio : USINT find the higest priority level in the ready list InOut: Scope Name Type Return _RLstGetHighestPrio USINT Input hRLst CAA.HANDLE peError POINTER TO ERROR
_RLstGetSize (FUN) ¶ FUNCTION _RLstGetSize : CAA.SIZE InOut: Scope Name Type Return _RLstGetSize CAA.SIZE Input xDummy BOOL
_RLstRemovePrio (FUN) ¶ FUNCTION _RLstRemovePrio : ERROR remove the priority level usiPrio from the ready list InOut: Scope Name Type Comment Return _RLstRemovePrio ERROR Input hRLst CAA.HANDLE usiPrio USINT [0..63] priority level. 255 :=> remove all levels from the list
CAA Memory Library Documentation ¶ Company CAA Technical Workgroup Title CAA Memory Version 3.5.12.0 Categories Intern|CAA|Utilities Namespace MEM Author CAA Technical Workgroup Placeholder CAA Memory Description 1 ¶ Utility functions for memory manipulation and checksum calculation Contents: ¶ CAA_Memory Analysis Checksum Internal functions Manipulation Packing Reverse Bit, Swap Byte,Word order GetSupplierVersion (Function) VersionConstants (GVL) Indices and tables ¶ 1 Based on CAA_Memory.library, last modified 15.12.2017, 11:36:55. LibDoc 4.4.0.0-b.27 The content file CAA_Memory.clean.json was generated with CODESYS V3.5 SP12 on 15.12.2017, 11:37:02.
Analysis ¶ ARRAY and MemoryBlock Compare (Function) FindBlock (Function) FindByte (Function) simple TYPE HighByte (Function) HighWord (Function) LowByte (Function) LowWord (Function)
CAA_Memory ¶ Analysis ARRAY and MemoryBlock Compare (Function) FindBlock (Function) FindByte (Function) simple TYPE HighByte (Function) HighWord (Function) LowByte (Function) LowWord (Function) Checksum CRC16_CCITT (Function) CRC16_Modbus (Function) CRC16_generic (Function) CRC16_standard (Function) CRC32 (Function) MD5 (FunctionBlock) Finale (Action) Init (Action) Update (Action) Internal functions MD5_FF (Function) MD5_GG (Function) MD5_HH (Function) MD5_II (Function) MD5_Transform (Function) Manipulation Decode (Function) Encode (Function) MemFill (Function) MemMove (Function) Packing PackArrayOfBoolToArrayOfByte (Function) PackBitsToByte (Function) PackBitsToDword (Function) PackBitsToWord (Function) PackBytesToDword (Function) PackBytesToWord (Function) PackWordsToDword (Function) UnpackArrayOfByte (Function) UnpackByte (FunctionBlock) UnpackDWord (FunctionBlock) UnpackWord (FunctionBlock) Reverse Bit, Swap Byte,Word order ReverseBYTEsInDWORD (Function) ReverseBYTEsInWORD (Function) ReverseBitsInBYTE (Function) ReverseBitsInDWORD (Function) ReverseBitsInWORD (Function) ReverseWORDsInDWORD (Function)
ARRAY and MemoryBlock ¶ Compare (Function) FindBlock (Function) FindByte (Function)
Compare (FUN) ¶ FUNCTION Compare : UINT Function compares “MemoryBlockA” with “MemoryBlockB”. Up to “uiNumberOfBytes” will be compared. Example: abyMemoryBlockA : ARRAY [0..9] OF BYTE := 0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 ; abyMemoryBlockB : ARRAY [0..9] OF BYTE := 0 , 1 , 2 , 0 , 4 , 5 , 6 , 7 , 8 , 9 ; -> MEM.Compare ( ADR ( abyMemoryBlockA ), ADR ( abyMemoryBlockB ), 10 ) = 4 InOut: Scope Name Type Comment Return Compare UINT function return 0 if the blocks are identical. If they are different then function returns the first position that differ Input pMemoryBlockA POINTER TO BYTE address of MemoryBlockA pMemoryBlockB POINTER TO BYTE address of MemoryBlockB uiNumberOfBytes UINT number of bytes to compare