BUS_INFO (STRUCT) ¶ TYPE BUS_INFO : STRUCT This structure provides basic information on a fieldbus: eType : Type of fieldbus. See BUS_TYPE . idSystem : Unique system ID for the identification of the fieldbus. Bus Type Interpretation CANbus Network ID Profibus DP MasterID (see also Master-FB Property) DeviceNet Network ID EtherCAT low DWORD of the MAC address of the master Sercos III CAA.gc_idMAX_IDENT Profinet IO MasterID (see also Controller-FB Property) Modbus TCP CAA.gc_idMAX_IDENT Modbus RTU CAA.gc_idMAX_IDENT EtherNet/IP IP address AS Interface CAA.gc_idMAX_IDENT Ethernet IP address Serial Line number of COM port idInstance : Instance number in I/O configuration (starting by 0). Example First CANbus has instance number 0, second CANbus instance number 1, … Attributes: qualified_only InOut: Name Type Comment eType BUS_TYPE Unique ID of the fieldbus type (e.g. CANopen, ProfiBus) idSystem CAA.IDENT Unique system ID for the identification of the fieldbus. The interpretation of this value is fieldbus dependent (e.g. NetID for CANBus). If the value gc_idMAX_IDENT is returned the system ID could not be determined. idInstance CAA.IDENT Instance number in I/O configuration.
DEVICE_INFO (STRUCT) ¶ TYPE DEVICE_INFO : STRUCT This structure provides the basic information on a device. eType : Type of device. See DEVICE_TYPE . idSystem : Unique address within the bus system. Device Type Interpretation CANopen Node ID J1939 Manager CAA.gc_idMAX_IDENT J1939 ECU Preferred Address Profibus MasterID (see also Master-FB Property) DeviceNet MAC ID EtherCAT Master Last 4 Bytes of the Mac address EtherCAT Slave Physical address of slave Sercos III Master CAA.gc_idMAX_IDENT Sercos III Slave active Sercos address Profinet MasterID (see also Controller-FB Property) Modbus TCP CAA.gc_idMAX_IDENT Modbus RTU Master CAA.gc_idMAX_IDENT Modbus RTU Slave slave address EtherNet/IP IP address ASI Master CAA.gc_idMAX_IDENT ASI Slave ASI address I/O Modules CAA.gc_idMAX_IDENT Safety Device CAA.gc_idMAX_IDENT SoftMotion Device CAA.gc_idMAX_IDENT SoftVision Device CAA.gc_idMAX_IDENT PLC CAA.gc_idMAX_IDENT Safety PLC CAA.gc_idMAX_IDENT Drive CAA.gc_idMAX_IDENT Parameterizable device CAA.gc_idMAX_IDENT HMI CAA.gc_idMAX_IDENT SoftMotion PLC CAA.gc_idMAX_IDENT idInstance : Instance number in I/O configuration (starting by 0). Example First EtherNet/IP Scanner has instance number 0, second EtherNet/IP Scanner instance number 1, … Attributes: qualified_only InOut: Name Type Comment eType DEVICE_TYPE Unique ID of the device type (e.g. CANopen, ProfiBus) idSystem CAA.IDENT Unique address within the bus system. The interpretation of this value is fieldbus dependent (e.g. NodeID for CANopen). idInstance CAA.IDENT Instance number in I/O configuration.
ERROR_INFO (STRUCT) ¶ TYPE ERROR_INFO : STRUCT This structure contains an error code for a bus or device. The error information can be retrieved by GetBusError and GetDeviceError . Attributes: qualified_only InOut: Name Type Comment idErrorCode CAA.IDENT unique error code; see ERROR_CODES for detailed information
LOG_ENTRY (STRUCT) ¶ TYPE LOG_ENTRY : STRUCT This structure contains information of a log entry delivered by ILogger . Attributes: qualified_only InOut: Name Type Comment tkTimestamp CAA.TICK Timestamp idMessage CAA.IDENT Message code idSource CAA.IDENT Unique system Id of source
QOS_INFO (STRUCT) ¶ TYPE QOS_INFO : STRUCT This structure provides Quality of Service information for a bus. Attributes: qualified_only InOut: Name Type Comment ctError CAA.COUNT Total sum of bus errors usiBusload USINT Busload in percentage (0..100)
VersionConstants (GVL) ¶ InOut: Scope Name Type Initial Constant gc_byVersion BYTE 1 gc_byVersion_1 BYTE 1
File and Project Information ¶ Scope Name Type Content FileHeader creationDateTime date 24.07.2019, 08:33:40 companyName string 3S-Smart Software Solutions GmbH libraryFile CAA_DeviceDiagnosis.library primaryProject True productName CODESYS productProfile CODESYS V3.5 SP15 contentFile CAA_DeviceDiagnosis.clean.json version version 2.0.0.0 ProjectInformation Released bool True ShowSmartCodingInfo True LastModificationDateTime date 24.07.2019, 08:33:34 LibraryCategories library-category-list Intern|CAA|Fieldbus Author string 3S - Smart Software Solutions GmbH Company CAA Technical Workgroup DefaultNamespace DED Description See: Description DocFormat reStructuredText DocLanguages en, de Placeholder CAA Device Diagnosis Project CAA_DeviceDiagnosis Title CAA Device Diagnosis SpecVersion version 3.0.0.0 Version 3.5.15.0
Library Reference ¶ This is a dictionary of all referenced libraries and their name spaces. Base Interfaces ¶ Library Identification ¶ Name: Base Interfaces Version: newest Company: System Namespace: IBaseLibrary Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: False SystemLibrary: False Key: Base Interfaces, * (System) CAA Behaviour Model ¶ Library Identification ¶ Placeholder: CAA Behaviour Model Default Resolution: CAA Behaviour Model, * (CAA Technical Workgroup) Namespace: CBM Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: True SystemLibrary: False Key: CAA Behaviour Model 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 CmpAsyncMgr ¶ Library Identification ¶ Placeholder: CmpAsyncMgr Default Resolution: CmpAsyncMgr, * (System) Namespace: CmpAsyncMgr Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: False SystemLibrary: False Key: CmpAsyncMgr CmpErrors2 Interfaces ¶ Library Identification ¶ Name: CmpErrors2 Interfaces Version: newest Company: System Namespace: CmpErrors Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: False SystemLibrary: False Key: CmpErrors2 Interfaces, * (System) CmpEventMgr ¶ Library Identification ¶ Placeholder: CmpEventMgr Default Resolution: CmpEventMgr, * (System) Namespace: CmpEventMgr Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: False SystemLibrary: False Key: CmpEventMgr CommFB ¶ Library Identification ¶ Placeholder: CommFB Default Resolution: CommFB, * (3S - Smart Software Solutions GmbH) Namespace: CommFB Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: True SystemLibrary: False Key: CommFB IoDriver Interfaces ¶ Library Identification ¶ Name: IoDriver Interfaces Version: newest Company: System Namespace: IIoDrv Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: False SystemLibrary: False Key: IoDriver Interfaces, * (System) IoStandard ¶ Library Identification ¶ Placeholder: IoStandard Default Resolution: IoStandard, * (System) Namespace: IoStandard Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: False SystemLibrary: False Key: IoStandard 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)
IBus.GetSpecificBusState (METH) ¶ METHOD GetSpecificBusState : ERROR Returns the fieldbus specific bus state. Note The interpretation of pData is fieldbus dependent and will be specified by the associated fieldbus driver. InOut: Scope Name Type Comment Return GetSpecificBusState ERROR Input pData CAA.PVOID Pointer to memory szSize CAA.SIZE Size of memory in bytes where pData is pointing to Output szCount CAA.SIZE Number of Bytes written to pData
IDevice.GetSpecificDeviceErrorAsync (METH) ¶ METHOD GetSpecificDeviceErrorAsync : PROC_STATE Returns the fieldbus specific device error. Note This is an asynchronous method. For easier handling use function block GetSpecificDeviceError . Note The interpretation of pData is fieldbus dependent and will be specified by the associated fieldbus driver. InOut: Scope Name Type Comment Return GetSpecificDeviceErrorAsync PROC_STATE Input eCmd PROC_CMD pData CAA.PVOID Pointer to memory szSize CAA.SIZE Size of memory in bytes where pData is pointing to Output szCount CAA.SIZE Number of Bytes written to pData eError ERROR error code if method fails