IndicatorConstants (GVL) ¶ This GVL defines the states of the two device LEDs according to CiA 303-3. These states are returned by GetCiAState and set by SetCiAState . The Error LED gc_usiERR_... (red) is represented by the lower 4 bit of CiA State, the RUN LED gc_usiRUN_... (green) by the higher 4 bit. InOut: Scope Name Type Initial Comment Constant gc_usiERR_OFF USINT 16#0 led off = no error gc_usiERR_ON USINT 16#1 led on = Bus off gc_usiERR_FLK USINT 16#2 flickering = LSS/Auto-bitrate detection gc_usiERR_BLK USINT 16#3 blinking = Invalid Configuration gc_usiERR_SFL USINT 16#4 single flash = Warning LIMIT reached gc_usiERR_DFL USINT 16#5 double flash = Error control event gc_usiERR_TFL USINT 16#6 triple flash = Sync error gc_usiERR_QFL USINT 16#7 quadruple flash = Event timer error gc_usiRUN_OFF USINT 16#0 led off = not running gc_usiRUN_ON USINT 16#10 led on = Operational gc_usiRUN_FLK USINT 16#20 flickering = LSS/Auto-bitrate detection gc_usiRUN_BLK USINT 16#30 blinking = Preoperational gc_usiRUN_SFL USINT 16#40 single flash = Stopped gc_usiRUN_DFL USINT 16#50 double flash = PROGRAM/Firmeware download gc_usiRUN_TFL USINT 16#60 triple flash = reserved gc_usiRUN_QFL USINT 16#70 quadruple flash = reserved
Structures ¶ DIAGNOSIS_INFO (Struct)
File and Project Information ¶ Scope Name Type Content FileHeader creationDateTime date 27.04.2020, 15:47:03 companyName string 3S-Smart Software Solutions GmbH libraryFile CAA_CanL2_Extern.library primaryProject True productName CODESYS productProfile CODESYS V3.5 SP16 contentFile CAA_CanL2_Extern.clean.json version version 2.0.0.0 ProjectInformation Depends on PS bool False Depends on RTS True Released True SIL2 False LastModificationDateTime date 27.04.2020, 15:46:57 LibraryCategories library-category-list Intern|CAA|Fieldbus Author string 3S - Smart Software Solutions GmbH Company CAA Technical Workgroup CompiledLibraryCompatibilityVersion CODESYS V3.5 SP15 Patch 2 DefaultNamespace CL2 Description See: Description DocFormat reStructuredText LanguageModelAttribute qualified-access-only Placeholder CAA CanL2 Project CAA_CanL2_Extern Title CAA Can Low Level Extern SpecVersion version 3.0.0.0 Version 3.5.16.0
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 QualifiedOnly: True SystemLibrary: False Key: CAA Callback 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 QualifiedOnly: True SystemLibrary: False Key: CAA CanL2I CAA Memory Block Manager Extern ¶ Library Identification ¶ Placeholder: CAA MemBlockMan Default Resolution: CAA Memory Block Manager Extern, * (CAA Technical Workgroup) Namespace: MBM Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: True SystemLibrary: False Key: CAA MemBlockMan CAA Ressource Manager Extern ¶ Library Identification ¶ Placeholder: CAA ResMan Default Resolution: CAA Ressource Manager Extern, * (CAA Technical Workgroup) Namespace: RSM Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: True SystemLibrary: False Key: CAA ResMan CAA Types Extern ¶ Library Identification ¶ Placeholder: CAA Types Default Resolution: CAA Types Extern, * (CAA Technical Workgroup) Namespace: CAA Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: True SystemLibrary: False Key: CAA Types
_CloneMessage (FUN) ¶ FUNCTION _CloneMessage : CAA.HANDLE Unmanaged implementation of CloneMessage InOut: Scope Name Type Comment Return _CloneMessage CAA.HANDLE cloned message handle Input hMessage CAA.HANDLE handle of message to clone peError POINTER TO ERROR optional pointer to error enum
_CreateArrayReceiver (FUN) ¶ FUNCTION _CreateArrayReceiver : CAA.HANDLE Creates an Array Receiver. InOut: Scope Name Type Comment Return _CreateArrayReceiver CAA.HANDLE new receiver handle or CAA.gc_hINVALID in case of failure Input hDriver CAA.HANDLE handle of CAN interface paSortedCOBIDs POINTER TO CL2I.ARRAY_RECV_ENTRY array filled with COBIDs of interest sorted by COBID ctCOBIDs CAA.COUNT number of COBIDs contained in paSortedCOBIDs eEvent CB.EVENT trigger event when message received xEnableSyncWindow BOOL use SYNC window ==> not implemented peError POINTER TO ERROR optional pointer to error enum
_CreateIdAreaReceiver (FUN) ¶ FUNCTION _CreateIdAreaReceiver : CAA.HANDLE Unmanaged implementation of CreateIdAreaReceiver InOut: Scope Name Type Comment Return _CreateIdAreaReceiver CAA.HANDLE Input hDriver CAA.HANDLE handle of CAN interface xAlwaysNewest BOOL TRUE: returns only the newest message; FALSE: receiver with queue. eEvent CB.EVENT trigger event when message received xEnableSyncWindow BOOL use SYNC window: not implemented ==> do not care peError POINTER TO ERROR optional pointer to error enum
_CreateMaskReceiver (FUN) ¶ FUNCTION _CreateMaskReceiver : CAA.HANDLE Unmanaged implementation of CreateMaskReceiver InOut: Scope Name Type Comment Return _CreateMaskReceiver CAA.HANDLE new receiver handle or CAA.gc_hINVALID in case of failure Input hDriver CAA.HANDLE handle of CAN interface cobIdValue CL2I.COBID CobID value cobIdMask CL2I.COBID CobID mask xRTRValue BOOL RTR value xRTRMask BOOL RTR mask x29BitIdValue BOOL 29 Bit Id value x29BitIdMask BOOL 29 Bit Id mask xTransmitValue BOOL Transmit message value xTransmitMask BOOL Transmit message mask xAlwaysNewest BOOL TRUE: returns only the newest message; FALSE: receiver with queue. eEvent CB.EVENT trigger event when message received xEnableSyncWindow BOOL use SYNC window: not implemented ==> do not care peError POINTER TO ERROR optional pointer to error enum
_CreateMessage (FUN) ¶ FUNCTION _CreateMessage : CAA.HANDLE Unmanaged implementation of CreateMessage InOut: Scope Name Type Comment Return _CreateMessage CAA.HANDLE new message handle Input hDriver CAA.HANDLE handle of CAN interface cobID CL2I.COBID cob ID usiLength USINT length of valid data bytes xRTR BOOL RTR bit x29BitID BOOL 29 Bit ID peError POINTER TO ERROR optional pointer to error enum
Library Reference ¶ This is a dictionary of all referenced libraries and their name spaces. CAA Memory Block Manager Extern ¶ Library Identification ¶ Placeholder: CAA MemBlockMan Default Resolution: CAA Memory Block Manager Extern, * (CAA Technical Workgroup) Namespace: MBM Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: True SystemLibrary: False Key: CAA MemBlockMan CAA Types Extern ¶ Library Identification ¶ Placeholder: CAA Types Default Resolution: CAA Types Extern, * (CAA Technical Workgroup) Namespace: CAA Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: True SystemLibrary: False Key: CAA Types SysSem ¶ Library Identification ¶ Placeholder: SysSem Default Resolution: SysSem, * (System) Namespace: SysSem Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: False SystemLibrary: False Key: SysSem SysTypes2 Interfaces ¶ Library Identification ¶ Name: SysTypes2 Interfaces Version: newest Company: System Namespace: SysTypes Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: False SystemLibrary: False Key: SysTypes2 Interfaces, * (System)