ICmpIoDrvParameter2.IoDrvReadParameterById (METH) ¶ METHOD IoDrvReadParameterById : UDINT InOut: Scope Name Type Return IoDrvReadParameterById UDINT Input pConnector POINTER TO IoConfigConnector dwParamId DWORD pData POINTER TO BYTE dwBitSize DWORD dwBitOffset DWORD
InterfaceIDs (GVL) ¶ InOut: Scope Name Type Initial Constant ITFID_ICmpIoDrvParameter DWORD 16#23
File and Project Information ¶ Scope Name Type Content FileHeader creationDateTime date 20.04.2021, 14:49:43 companyName string 3S-Smart Software Solutions GmbH libraryFile IoDrvParameter2_Itfs.library primaryProject True productName CODESYS productProfile CODESYS V3.5 SP16 Patch 3 contentFile IoDrvParameter2_Itfs.clean.json version version 2.0.0.0 ProjectInformation IsInterfaceLibrary bool True Released True LastModificationDateTime date 20.04.2021, 14:49:43 LibraryCategories library-category-list Intern|IoDriverBase Author string 3S - Smart Software Solutions GmbH Company System CompiledLibraryCompatibilityVersion CODESYS V3.5 SP16 DefaultNamespace IIoDrvParameter Description See: Description Project IoDrvParameter2_Itfs Title IoDriver Parameter2 Interfaces Version version 3.5.17.0
Library Reference ¶ This is a dictionary of all referenced libraries and their name spaces. CmpIoMgr Interfaces ¶ Library Identification ¶ Name: CmpIoMgr Interfaces Version: newest Company: System Namespace: CmpIoMgr_Interfaces Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: False SystemLibrary: False Key: CmpIoMgr Interfaces, * (System)
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)