Library Reference ¶ This is a dictionary of all referenced libraries and their name spaces.
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
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
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)
ConnectorFlagController (FB) ¶ FUNCTION_BLOCK ConnectorFlagController Documentation is on folder ConnectorFlagController Properties: AutoFlush AutoSetErrorClearedFlag Connector DemolicenseActive DiagProvider DiagnosticAvailable ErrorClearedActive SetChildren SkipDisabledChildConnectors State nCount Methods: Flush Init Structure: 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)
CONNECTOR_FLAG_STATES_RS (GVL) ¶ Representation of the states in ConnectorState as a masked bit combination in dwFlags. Attributes: qualified_only InOut: Scope Name Type Initial Comment Constant STATE_BITS DWORD 2#101111110000 NO_DRIVER_FOUND_SET DWORD 0 AND STATE_BITS; NOT_FOUND_SET DWORD (CF_DRIVER_AVAILABLE AND STATE_BITS) CONFIGURED_SET DWORD (((CF_DRIVER_AVAILABLE OR CF_CONNECTOR_FOUND) OR CF_CONNECTOR_CONFIGURED) AND STATE_BITS) RUNNING_SET DWORD ((((CF_DRIVER_AVAILABLE OR CF_CONNECTOR_FOUND) OR CF_CONNECTOR_CONFIGURED) OR CF_CONNECTOR_ACTIVE) AND STATE_BITS) STOPPED_SET DWORD ((((CF_DRIVER_AVAILABLE OR CF_CONNECTOR_FOUND) OR CF_CONNECTOR_CONFIGURED) OR CF_CONNECTOR_BUS_ERROR) AND STATE_BITS) CONFIGURATION_ERROR_SET DWORD (((CF_DRIVER_AVAILABLE OR CF_CONNECTOR_FOUND) OR CF_CONNECTOR_ERROR) AND STATE_BITS) ERROR_SET DWORD (((((CF_DRIVER_AVAILABLE OR CF_CONNECTOR_FOUND) OR CF_CONNECTOR_CONFIGURED) OR CF_CONNECTOR_ERROR) OR CF_CONNECTOR_ACTIVE) AND STATE_BITS) BUSERROR_SET DWORD (((((CF_DRIVER_AVAILABLE OR CF_CONNECTOR_FOUND) OR CF_CONNECTOR_CONFIGURED) OR CF_CONNECTOR_BUS_ERROR) OR CF_CONNECTOR_ACTIVE) AND STATE_BITS) PASSIVE_SET DWORD (((((CF_DRIVER_AVAILABLE OR CF_CONNECTOR_FOUND) OR CF_CONNECTOR_CONFIGURED) OR CF_CONNECTOR_ACTIVE) OR CF_CONNECTOR_PASSIVE) AND STATE_BITS)
File and Project Information ¶ Scope Name Type Content FileHeader creationDateTime date 01.04.2022, 08:07:56 companyName string 3S-Smart Software Solutions GmbH libraryFile IoDrvUtility.library primaryProject True productName CODESYS productProfile CODESYS V3.5 SP16 Patch 3 contentFile IoDrvUtility.clean.json version version 2.0.0.0 ProjectInformation IsEndUserLibrary bool False Released True LastModificationDateTime date 01.04.2022, 08:07:56 LibraryCategories library-category-list Intern|IoDriverBase Author string 3S - Smart Software Solutions GmbH Company 3S - Smart Software Solutions GmbH CompiledLibraryCompatibilityVersion CODESYS V3.5 SP16 Patch 3 DefaultNamespace IoDrvUtility Description See: Description DocFormat reStructuredText LanguageModelAttribute qualified-access-only Placeholder IoDriver Utility Project IoDrvUtility Title IoDrvUtility Version version 3.5.18.0