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
IDevice.GetSpecificDeviceState (METH) ¶ METHOD GetSpecificDeviceState : ERROR Returns the fieldbus specific device state. Note The interpretation of pData is fieldbus dependent and will be specified by the associated fieldbus driver. InOut: Scope Name Type Comment Return GetSpecificDeviceState 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
CAADiagDeviceDefault.GetDeviceInfo (METH) ¶ METHOD GetDeviceInfo : ERROR Returns the device information of the current node InOut: Scope Name Type Comment Return GetDeviceInfo ERROR Inout deiInfo DEVICE_INFO device information
CAADiagDeviceDefault.GetDeviceState (METH) ¶ METHOD GetDeviceState : DEVICE_STATE Returns the state of the device. InOut: Scope Name Type Comment Return GetDeviceState DEVICE_STATE current device state Output xDiagnosisInfoAvailable BOOL if true: diagnostic info is available. eError ERROR
CAA FB Factory Library Documentation ¶ Company CAA Technical Workgroup Title CAA FB Factory Version 3.5.13.0 Categories Intern|CAA|Foundation Namespace FBF Author 3S - Smart Software Solutions GmbH Placeholder CAA FB Factory Description 1 ¶ This library provides a base implementation of an function block factory. For further information about how to use the FactoryBase function block please download FBFactoryTest.projectarchive There you will find a test project which uses a test library that demonsrates the usage of the FactoryBase function block. It is recommended to look at how the exemple programm (PLC_PRG) works by setting a breakpoint and stepping into each action of the program. Do not go online in simulation mode! Moreover the documentation of the FB Factory Test Library (which is already added to the Library Manager in the test project) explains what is done in each part of the library. There is a template for libraries in CODESYS which is called CODESYS Library which assists you building your own FB Factory. Therefore please open a new project and choose the category Libraries and afterwads the template CODESYS Library . In this project the folder Templates contains the subfolder FBFactory with all the important FBs, methods and properties. All relevant function blocks should be copied in the folder with the title Function Blocks in order to be able to modify them. Afterwards change the names of every element to suitable expressions. By clicking on each element with the right mouse button and choosing Properties -> Build you can deactivate Exclude from build Moreover it is advisable to adapt the array abyPoolMemory in the function block TestFBFactory to ones own needs. Make sure that everywhere in TestFBFactory (for exemple in the first line of the method TestFBFactory.Create ) the expression Custom is substituted by the name you chose for these elements. By calling up the method Create it is now possible to dynamically create a FB instance. Contents: ¶ ERROR (Enum) Factory FactoryBase (FunctionBlock) Instance InstanceBase (FunctionBlock) InstanceData (FunctionBlock) Interfaces IData (Interface) IFactory (Interface) IInstance (Interface) Indices and tables ¶ 1 Based on CAA_FBFactory.library, last modified 03.07.2018, 09:54:35. LibDoc 4.4.0.0-b.27 The content file CAA_FBFactory.clean.json was generated with CODESYS V3.5 SP13 on 03.07.2018, 09:54:38.
ERROR (ENUM) ¶ TYPE ERROR : Attributes: qualified_only InOut: Name Initial Comment NO_ERROR 0 FIRST_ERROR 1500 INVALID_PARAMETER 1502 TIME_OUT := 1501, WRONG_INTERFACE 1503 WRONG_INSTANCE_DATA 1504 WRONG_POOL_SIZE 1505 WRONG_INSTANCE_COUNT 1506 NO_MEMORY 1507 FIRST_MF 1525 LAST_ERROR 1549
Factory ¶ FactoryBase (FunctionBlock) FB_EXIT (Method) FB_INIT (Method) Private prvInstCount (Property) prvInstInit (Method) prvInstPoolAdr (Property) prvInstPoolExtendsFactor (Property) prvInstPoolSize (Property) prvInstSize (Property)