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
GlobalConstants ¶ PropertyConstants (GVL)
PropertyConstants (GVL) ¶ InOut: Scope Name Type Initial Constant gc_wRESEXP WORD 1 gc_wRESNUM WORD 2 gc_wRESDENOM WORD 3 gc_wMAXINTERVAL WORD 10
GetSupplierVersion (FUN) ¶ FUNCTION GetSupplierVersion : WORD InOut: Scope Name Type Return GetSupplierVersion WORD Input xDummy BOOL