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
FindBlock (FUN) ¶ FUNCTION FindBlock : UINT Function looks for the first occurence of “MemoryBlockB” within “MemoryBlockA”. Example: abyMemoryBlockA : ARRAY [0..9] OF BYTE := 0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 ; abyMemoryBlockB : ARRAY [0..2] OF BYTE := 6 , 7 , 8 ; -> MEM.FindBlock ( ADR ( abyMemoryBlockA ), 10 , ADR ( abyMemoryBlockB ), 3 ) = 7 InOut: Scope Name Type Comment Return FindBlock UINT function returns 0, if “MemoryBlockB” cannot be found. Otherwise the function returns the position of the first occurence Input pMemoryBlockA POINTER TO BYTE address of MemoryBlockA uiLengthBlockA UINT length of MemoryBlockA in byte pMemoryBlockB POINTER TO BYTE address of MemoryBlockB uiLengthBlockB UINT length of MemoryBlockB in byte
Library Reference ¶ This is a dictionary of all referenced libraries and their name spaces.
Library Reference ¶ This is a dictionary of all referenced libraries and their name spaces. CAA Callback Extern ¶ Library Identification ¶ Placeholder: CAA Callback Default Resolution: CAA Callback Extern, * (CAA Technical Workgroup) Namespace: CB Library Properties ¶ LinkAllContent: False Optional: False PublishSymbolsInContainer: True QualifiedOnly: True SystemLibrary: False Key: CAA Callback CAA Can Low Level Extern ¶ Library Identification ¶ Placeholder: CAA CanL2 Default Resolution: CAA Can Low Level Extern, * (CAA Technical Workgroup) Namespace: CL2 Library Properties ¶ LinkAllContent: False Optional: False PublishSymbolsInContainer: True QualifiedOnly: True SystemLibrary: False Key: CAA CanL2 CAA Can Low Level Imp Extern ¶ Library Identification ¶ Placeholder: CAA CanL2I Default Resolution: CAA Can Low Level Imp Extern, * (CAA Technical Workgroup) Namespace: CL2I Library Properties ¶ LinkAllContent: False Optional: False PublishSymbolsInContainer: True QualifiedOnly: True SystemLibrary: False Key: CAA CanL2I CAA Types Extern ¶ Library Identification ¶ Placeholder: CAA Types Default Resolution: CAA Types Extern, * (CAA Technical Workgroup) Namespace: CAA Library Properties ¶ LinkAllContent: False Optional: False PublishSymbolsInContainer: True QualifiedOnly: True SystemLibrary: False Key: CAA Types
File and Project Information ¶ Scope Name Type Content FileHeader creationDateTime date 20.04.2021, 16:12:23 companyName string 3S-Smart Software Solutions GmbH libraryFile CANbus.library primaryProject True productName CODESYS productProfile CODESYS V3.5 SP16 Patch 3 contentFile CANbus.clean.json version version 2.0.0.0 ProjectInformation IsContainerLibrary bool True Released True SIL2 False LastModificationDateTime date 20.04.2021, 16:12:23 LibraryCategories library-category-list Use Cases Author string 3S - Smart Software Solutions GmbH Company 3S - Smart Software Solutions GmbH CompiledLibraryCompatibilityVersion CODESYS V3.5 SP15 Patch 2 Description See: Description DocFormat reStructuredText Project CANbus Title CANbus Version version 3.5.17.0
GetTick (FUN) ¶ FUNCTION GetTick : CAA.TICK InOut: Scope Name Type Return GetTick CAA.TICK Input xDummy BOOL