Sercos3Master_GetVersion (FUN) ¶ FUNCTION Sercos3Master_GetVersion : DWORD Returns the current version of the Sercos stack Example: 16#03050800 Each byte is one version number part InOut: Scope Name Type Return Sercos3Master_GetVersion DWORD
Utils ¶ /// for internal use only
File and Project Information ¶ Scope Name Type Content FileHeader creationDateTime date 20.04.2021, 15:05:39 companyName string 3S-Smart Software Solutions GmbH libraryFile IoDrvSercos3.library primaryProject True productName CODESYS productProfile CODESYS V3.5 SP16 Patch 3 contentFile IoDrvSercos3.clean.json version version 2.0.0.0 ProjectInformation Released bool True ShowSmartCodingInfo True Support32BitOnly True LastModificationDateTime date 20.04.2021, 15:05:39 LibraryCategories library-category-list Intern|IoDrivers Author string 3S - Smart Software Solutions GmbH Company 3S - Smart Software Solutions GmbH CompiledLibraryCompatibilityVersion CODESYS V3.5 SP16 DefaultNamespace Description See: Description Placeholder IoDrvSercos3 Project IoDrvSercos3 Title IoDrvSercos3 Version version 3.5.17.0
Library Reference ¶ This is a dictionary of all referenced libraries and their name spaces. 3SLicense ¶ Library Identification ¶ Placeholder: 3SLicense Default Resolution: 3SLicense, * (3S - Smart Software Solutions GmbH) Namespace: _3S_LICENSE Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: False SystemLibrary: False Key: 3SLicense 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 Device Diagnosis ¶ Library Identification ¶ Placeholder: CAA Device Diagnosis Default Resolution: CAA Device Diagnosis, * (CAA Technical Workgroup) Namespace: DED Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: False SystemLibrary: False Key: CAA Device Diagnosis 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 CmpBinTagUtilIec ¶ Library Identification ¶ Placeholder: CmpBinTagUtilIec Default Resolution: CmpBinTagUtilIec, * (System) Namespace: CmpBinTagUtilIec Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: False SystemLibrary: False Key: CmpBinTagUtilIec 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) CmpLog ¶ Library Identification ¶ Placeholder: CmpLog Default Resolution: CmpLog, * (System) Namespace: CmpLog Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: False SystemLibrary: False Key: CmpLog CmpSercos3Master ¶ Library Identification ¶ Placeholder: CmpSercos3Master Default Resolution: CmpSercos3Master, * (3S - Smart Software Solutions GmbH) Namespace: CmpSercos3Master Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: False SystemLibrary: False Key: CmpSercos3Master CmpSrv ¶ Library Identification ¶ Placeholder: CmpSrv Default Resolution: CmpSrv, * (System) Namespace: CmpSrv Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: False SystemLibrary: False Key: CmpSrv Component Manager ¶ Library Identification ¶ Placeholder: Component Manager Default Resolution: Component Manager, * (System) Namespace: Component_Manager Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: False SystemLibrary: False Key: Component Manager IoDriver Interfaces ¶ Library Identification ¶ Name: IoDriver Interfaces Version: newest Company: System Namespace: IoDriver_Interfaces Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: False SystemLibrary: False Key: IoDriver Interfaces, * (System) IoDriver Parameter Interfaces ¶ Library Identification ¶ Name: IoDriver Parameter Interfaces Version: newest Company: System Namespace: IoDriver_Parameter_Interfaces Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: False SystemLibrary: False Key: IoDriver Parameter Interfaces, * (System) IoDrvBase ¶ Library Identification ¶ Placeholder: IoDrvBase Default Resolution: IoDrvBase, * (System) Namespace: IoDrvBase Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: False SystemLibrary: False Key: IoDrvBase IoStandard ¶ Library Identification ¶ Placeholder: IoStandard Default Resolution: IoStandard, * (System) Namespace: IoStandard Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: False SystemLibrary: False Key: IoStandard Rts Service Handler ¶ Library Identification ¶ Placeholder: Rts Service Handler Default Resolution: Rts Service Handler, * (3S - Smart Software Solutions GmbH) Namespace: GSH Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: False SystemLibrary: False Key: Rts Service Handler Standard ¶ Library Identification ¶ Placeholder: Standard Default Resolution: Standard, * (System) Namespace: Standard Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: False SystemLibrary: False Key: Standard SysCpuHandling ¶ Library Identification ¶ Placeholder: SysCpuHandling Default Resolution: SysCpuHandling, * (System) Namespace: SysCpuHandling Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: False SystemLibrary: False Key: SysCpuHandling SysEvent ¶ Library Identification ¶ Placeholder: SysEvent Default Resolution: SysEvent, * (System) Namespace: SysEvent Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: False SystemLibrary: False Key: SysEvent SysInt ¶ Library Identification ¶ Placeholder: SysInt Default Resolution: SysInt, * (System) Namespace: SysInt Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: False SystemLibrary: False Key: SysInt SysMem ¶ Library Identification ¶ Placeholder: SysMem Default Resolution: SysMem, * (System) Namespace: SysMem Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: False SystemLibrary: False Key: SysMem SysPci ¶ Library Identification ¶ Placeholder: SysPci Default Resolution: SysPci, * (System) Namespace: SysPci Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: False SystemLibrary: False Key: SysPci SysShm ¶ Library Identification ¶ Placeholder: SysShm Default Resolution: SysShm, * (System) Namespace: SysShm Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: False SystemLibrary: False Key: SysShm SysTarget ¶ Library Identification ¶ Placeholder: SysTarget Default Resolution: SysTarget, * (System) Namespace: SysTarget Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: False SystemLibrary: False Key: SysTarget SysTask ¶ Library Identification ¶ Placeholder: SysTask Default Resolution: SysTask, * (System) Namespace: SysTask Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: False SystemLibrary: False Key: SysTask 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)
IoDrvUtility Library Documentation ¶ Company 3S - Smart Software Solutions GmbH Title IoDrvUtility Version 3.5.18.0 Categories Intern|IoDriverBase Namespace IoDrvUtility Author 3S - Smart Software Solutions GmbH Placeholder IoDriver Utility Description 1 ¶ Helper functions/FBs to write IoDrivers (ConnectorFlagControler) Contents: ¶ IoDrvUtility ConnectorFlagController Indices and tables ¶ 1 Based on IoDrvUtility.library, last modified 01.04.2022, 08:07:56. LibDoc 4.4.0.0-b.27 The content file IoDrvUtility.clean.json was generated with CODESYS V3.5 SP16 Patch 3 on 01.04.2022, 08:07:56.
IoDrvUtility ¶ ConnectorFlagController Enums ConnectorState (Enum) FunctionBlocks ConnectorFlagController (FunctionBlock) AutoFlush (Property) AutoSetErrorClearedFlag (Property) Connector (Property) DemolicenseActive (Property) DiagProvider (Property) DiagnosticAvailable (Property) ErrorClearedActive (Property) Flush (Method) Init (Method) SetChildren (Property) SkipDisabledChildConnectors (Property) State (Property) nCount (Property) GlobalConstants CONNECTOR_FLAG_STATES_RS (GVL) _ExternalFilesDoku
ConnectorFlagController ¶ Code example for setting: myCf : IoDrvUtility.ConnectorFlagController ; // Define in FB of IoDrv /// In UpdateConfiguration: myCf.Init ( m_pConnector , nCount , TRUE ); // Last parameter is _xSetChildren /// Somewhere else (UpdateConfiguration, IoDrvStartBusCycle, AsyncTask, ...): myCf.State := IoDrvUtility.ConnectorState.NO_DRIVER_FOUND ; myCf.DiagnosticAvailable := FALSE ; myCf.DemolicenseActive := FALSE ; Code example for reading: myCf : ConnectorFlagController ; // Define in FB of IoDrv /// In UpdateConfiguration: myCf.Init ( m_pConnector , 0 , FALSE ); // Last parameter is _xSetChildren, nCount dosen´t matter -> no Children are set /// Somewhere in your code, e.g. PLG_PRG if ( myCf.State = IoDrvUtility.ConnectorState.RUNNING ) THEN ; END_IF if ( myCf.DiagnosticAvailable ) THEN ; END_IF if ( myCf.DemolicenseActive ) THEN ; END_IF This lib/folder/project simplifies the use of the ConnectorFlags, which are processed in 4 different locations: In AutomationPlatform\Implementation\Sources and Projects\DefaultNavigators\Common.cs are set the pictures in the tree and the color for the text in the tree: In AutomationPlatform\Implementation\Sources and Projects\DeviceEditor\StatusControl.cs is set the status text over “_tbStatus.Text”: In AutomationPlatform\Implementation\Sources and Projects\DeviceEditor\IOMappingEditorPage.cs in UpdateModuleStatus is set a warning in the I/O Mapping tab, if an errorflag is set: In the Device Diagnosis (Enduser can wait until the bus is in “running”-state to start his programm or can react, if the bus has crashed) : DED can be activated over the PLC settings: The following table shows the result of the 4 different locations to the 3 changeable properties ( ConnectorFlagController.State , ConnectorFlagController.DiagnosticAvailable , ConnectorFlagController.DemolicenseActive ) in the version 3.5 SP9: In the version 3.5 SP8 and before it is: Enums ConnectorState (Enum) FunctionBlocks ConnectorFlagController (FunctionBlock) AutoFlush (Property) AutoSetErrorClearedFlag (Property) Connector (Property) DemolicenseActive (Property) DiagProvider (Property) DiagnosticAvailable (Property) ErrorClearedActive (Property) Flush (Method) Init (Method) SetChildren (Property) SkipDisabledChildConnectors (Property) State (Property) nCount (Property) GlobalConstants CONNECTOR_FLAG_STATES_RS (GVL) _ExternalFilesDoku
Enums ¶ ConnectorState (Enum)
ConnectorState (ENUM) ¶ TYPE ConnectorState : Represents the different states of a connector, which can be set and get over ConnectorFlagController.state . The effect of the different states are shown in the image in ConnectorFlagController . Attributes: qualified_only InOut: Name Initial Comment NO_DRIVER_FOUND No driver found NOT_FOUND Module not found CONFIGURED Not Running RUNNING Running STOPPED Not running. Set this state also if no license. CONFIGURATION_ERROR Configuration error ERROR Module reports an error BUSERROR Bus failure PASSIVE Redundancy mode passive DISABLED Device dactivated UNDEFINED 16#FFFF Unknown state
FunctionBlocks ¶ ConnectorFlagController (FunctionBlock) AutoFlush (Property) AutoSetErrorClearedFlag (Property) Connector (Property) DemolicenseActive (Property) DiagProvider (Property) DiagnosticAvailable (Property) ErrorClearedActive (Property) Flush (Method) Init (Method) SetChildren (Property) SkipDisabledChildConnectors (Property) State (Property) nCount (Property)