Function Block ¶ createJWT (FunctionBlock)
ConnectionDiagnostics (FB) ¶ FUNCTION_BLOCK PUBLIC FINAL ConnectionDiagnostics EXTENDS Diagnostics IMPLEMENTS IConnectionDiagnostics Data structure for reporting diagnostic information See IConnectionDiagnostics for more details InOut: Scope Name Type Comment Inherited from Input Const eDiagnosticsLevel DiagnosticsLevel Diagnostics Output itfTotalInformation IDiagnosticsCounter Provides the sum of all counters in this Objectdiagnostics with DiagnosticsClassification.Information Diagnostics itfTotalError IDiagnosticsCounter Provides the sum of all counters in this Objectdiagnostics with DiagnosticsClassification.Error Diagnostics xSubError BOOL Indicates if any statistics Object of the next PubSublayer Objects shows a value > 0 in itfTotalError Diagnostics itfStateError IDiagnosticsCounter PubSub state machine changed to STATE.ERROR Diagnostics itfStateOperationalByMethod IDiagnosticsCounter State changed to STATE.OPERATIONAL triggered by Enable Method call. Diagnostics itfStateOperationalByParent IDiagnosticsCounter State changed to STATE.OPERATIONAL triggered by an operational parent. Diagnostics itfStateOperationalFromError IDiagnosticsCounter State changed from STATE.ERROR to STATE.OPERATIONAL Diagnostics itfStatePausedByParent IDiagnosticsCounter State changed to STATE.PAUSED triggered by a paused or disabled parent. Diagnostics itfStateDisabledByMethod IDiagnosticsCounter State changed to STATE.DISABLED triggered by Disable Method call. Diagnostics ipResolvedAddress IPADDRESS
ReaderDiagnostics (FB) ¶ FUNCTION_BLOCK PUBLIC FINAL ReaderDiagnostics EXTENDS Diagnostics IMPLEMENTS IReaderDiagnostics Data structure for reporting diagnostic information See IReaderDiagnostics for more details InOut: Scope Name Type Comment Inherited from Input Const eDiagnosticsLevel DiagnosticsLevel Diagnostics Output itfTotalInformation IDiagnosticsCounter Provides the sum of all counters in this Objectdiagnostics with DiagnosticsClassification.Information Diagnostics itfTotalError IDiagnosticsCounter Provides the sum of all counters in this Objectdiagnostics with DiagnosticsClassification.Error Diagnostics xSubError BOOL Indicates if any statistics Object of the next PubSublayer Objects shows a value > 0 in itfTotalError Diagnostics itfStateError IDiagnosticsCounter PubSub state machine changed to STATE.ERROR Diagnostics itfStateOperationalByMethod IDiagnosticsCounter State changed to STATE.OPERATIONAL triggered by Enable Method call. Diagnostics itfStateOperationalByParent IDiagnosticsCounter State changed to STATE.OPERATIONAL triggered by an operational parent. Diagnostics itfStateOperationalFromError IDiagnosticsCounter State changed from STATE.ERROR to STATE.OPERATIONAL Diagnostics itfStatePausedByParent IDiagnosticsCounter State changed to STATE.PAUSED triggered by a paused or disabled parent. Diagnostics itfStateDisabledByMethod IDiagnosticsCounter State changed to STATE.DISABLED triggered by Disable Method call. Diagnostics itfFailedDataSetMessages IDiagnosticsCounter e.g. because of unknown MajorVersion uiMessageSequenceNumber UINT SequenceNumber of last DataSetMessage eStatusCode ERROR Status of last DataSetMessage udiMajorVersion UDINT MajorVersion of available DataSet Meta Data udiMinorVersion UDINT MinorVersion of available Data Set Meta Data
ReaderGroupDiagnostics (FB) ¶ FUNCTION_BLOCK PUBLIC FINAL ReaderGroupDiagnostics EXTENDS Diagnostics IMPLEMENTS IReaderGroupDiagnostics Data structure for reporting diagnostic information See IReaderGroupDiagnostics for more details InOut: Scope Name Type Comment Inherited from Input Const eDiagnosticsLevel DiagnosticsLevel Diagnostics Output itfTotalInformation IDiagnosticsCounter Provides the sum of all counters in this Objectdiagnostics with DiagnosticsClassification.Information Diagnostics itfTotalError IDiagnosticsCounter Provides the sum of all counters in this Objectdiagnostics with DiagnosticsClassification.Error Diagnostics xSubError BOOL Indicates if any statistics Object of the next PubSublayer Objects shows a value > 0 in itfTotalError Diagnostics itfStateError IDiagnosticsCounter PubSub state machine changed to STATE.ERROR Diagnostics itfStateOperationalByMethod IDiagnosticsCounter State changed to STATE.OPERATIONAL triggered by Enable Method call. Diagnostics itfStateOperationalByParent IDiagnosticsCounter State changed to STATE.OPERATIONAL triggered by an operational parent. Diagnostics itfStateOperationalFromError IDiagnosticsCounter State changed from STATE.ERROR to STATE.OPERATIONAL Diagnostics itfStatePausedByParent IDiagnosticsCounter State changed to STATE.PAUSED triggered by a paused or disabled parent. Diagnostics itfStateDisabledByMethod IDiagnosticsCounter State changed to STATE.DISABLED triggered by Disable Method call. Diagnostics itfReceivedNetworkMessages IDiagnosticsCounter Received and processed NetworkMessages itfReceivedInvalidNetworkMessages IDiagnosticsCounter Invalid format of NetworkMessageHeader uiConfiguredDataSetReaders UINT Number of configured Reader FB’s in this group uiOperationalDataSetReaders UINT Number of Reader FB’s with state Operational
RootDiagnostics (FB) ¶ FUNCTION_BLOCK PUBLIC FINAL RootDiagnostics EXTENDS Diagnostics IMPLEMENTS IRootDiagnostics Data structure for reporting diagnostic information See IRootDiagnostics for more details InOut: Scope Name Type Comment Inherited from Input Const eDiagnosticsLevel DiagnosticsLevel Diagnostics Output itfTotalInformation IDiagnosticsCounter Provides the sum of all counters in this Objectdiagnostics with DiagnosticsClassification.Information Diagnostics itfTotalError IDiagnosticsCounter Provides the sum of all counters in this Objectdiagnostics with DiagnosticsClassification.Error Diagnostics xSubError BOOL Indicates if any statistics Object of the next PubSublayer Objects shows a value > 0 in itfTotalError Diagnostics itfStateError IDiagnosticsCounter PubSub state machine changed to STATE.ERROR Diagnostics itfStateOperationalByMethod IDiagnosticsCounter State changed to STATE.OPERATIONAL triggered by Enable Method call. Diagnostics itfStateOperationalByParent IDiagnosticsCounter State changed to STATE.OPERATIONAL triggered by an operational parent. Diagnostics itfStateOperationalFromError IDiagnosticsCounter State changed from STATE.ERROR to STATE.OPERATIONAL Diagnostics itfStatePausedByParent IDiagnosticsCounter State changed to STATE.PAUSED triggered by a paused or disabled parent. Diagnostics itfStateDisabledByMethod IDiagnosticsCounter State changed to STATE.DISABLED triggered by Disable Method call. Diagnostics uiConfiguredDataSetWriters UINT Number of configured Writer FB’s uiConfiguredDataSetReaders UINT Number of configured Reader FB’s uiOperationalDataSetWriters UINT Number of Writer FB’s with state Operational uiOperationalDataSetReaders UINT Number of Reader FB’s with state Operational
WriterDiagnostics (FB) ¶ FUNCTION_BLOCK PUBLIC FINAL WriterDiagnostics EXTENDS Diagnostics IMPLEMENTS IWriterDiagnostics Data structure for reporting diagnostic information See IWriterDiagnostics for more details InOut: Scope Name Type Comment Inherited from Input Const eDiagnosticsLevel DiagnosticsLevel Diagnostics Output itfTotalInformation IDiagnosticsCounter Provides the sum of all counters in this Objectdiagnostics with DiagnosticsClassification.Information Diagnostics itfTotalError IDiagnosticsCounter Provides the sum of all counters in this Objectdiagnostics with DiagnosticsClassification.Error Diagnostics xSubError BOOL Indicates if any statistics Object of the next PubSublayer Objects shows a value > 0 in itfTotalError Diagnostics itfStateError IDiagnosticsCounter PubSub state machine changed to STATE.ERROR Diagnostics itfStateOperationalByMethod IDiagnosticsCounter State changed to STATE.OPERATIONAL triggered by Enable Method call. Diagnostics itfStateOperationalByParent IDiagnosticsCounter State changed to STATE.OPERATIONAL triggered by an operational parent. Diagnostics itfStateOperationalFromError IDiagnosticsCounter State changed from STATE.ERROR to STATE.OPERATIONAL Diagnostics itfStatePausedByParent IDiagnosticsCounter State changed to STATE.PAUSED triggered by a paused or disabled parent. Diagnostics itfStateDisabledByMethod IDiagnosticsCounter State changed to STATE.DISABLED triggered by Disable Method call. Diagnostics itfFailedDataSetMessages IDiagnosticsCounter Number of failed DataSetMessages uiMessageSequenceNumber UINT Sequencenumber of last DataSetMessage eStatusCode ERROR Status of last DataSetMessage udiMajorVersion UDINT MajorVersion used for DataSet udiMinorVersion UDINT MinorVersion used for DataSet
WriterGroupDiagnostics (FB) ¶ FUNCTION_BLOCK PUBLIC FINAL WriterGroupDiagnostics EXTENDS Diagnostics IMPLEMENTS IWriterGroupDiagnostics Data structure for reporting diagnostic information See IWriterGroupDiagnostics for more details InOut: Scope Name Type Comment Inherited from Input Const eDiagnosticsLevel DiagnosticsLevel Diagnostics Output itfTotalInformation IDiagnosticsCounter Provides the sum of all counters in this Objectdiagnostics with DiagnosticsClassification.Information Diagnostics itfTotalError IDiagnosticsCounter Provides the sum of all counters in this Objectdiagnostics with DiagnosticsClassification.Error Diagnostics xSubError BOOL Indicates if any statistics Object of the next PubSublayer Objects shows a value > 0 in itfTotalError Diagnostics itfStateError IDiagnosticsCounter PubSub state machine changed to STATE.ERROR Diagnostics itfStateOperationalByMethod IDiagnosticsCounter State changed to STATE.OPERATIONAL triggered by Enable Method call. Diagnostics itfStateOperationalByParent IDiagnosticsCounter State changed to STATE.OPERATIONAL triggered by an operational parent. Diagnostics itfStateOperationalFromError IDiagnosticsCounter State changed from STATE.ERROR to STATE.OPERATIONAL Diagnostics itfStatePausedByParent IDiagnosticsCounter State changed to STATE.PAUSED triggered by a paused or disabled parent. Diagnostics itfStateDisabledByMethod IDiagnosticsCounter State changed to STATE.DISABLED triggered by Disable Method call. Diagnostics itfSentNetworkMessages IDiagnosticsCounter Number of sent NetworkMessages itfFailedTransmissions IDiagnosticsCounter Number of failed NetworkMessage transmissions uiConfiguredDataSetWriters UINT Number of configured Writer FB’s in this group uiOperationalDataSetWriters UINT Number of configured Writer FB’s with state Operational
Reader (FB) ¶ FUNCTION_BLOCK PUBLIC FINAL Reader EXTENDS Component IMPLEMENTS IReader , IGroupElement, IReader_Internal This Function Block is used to represent the Data Set Reader Parameters. See IReader for more details. If necessary create a ReaderDiagnostics instance and connect it to itfReaderDiagnostics . It will offer the diagnostic data of an Data Set Reader via the itfDiagnostics output. See: DataSetReader at OPC Foundation . InOut: Scope Name Type Comment Inherited from Output eErrorID ERROR Reason for STATE.ERROR Component xActive BOOL True 🠖 STATE.OPERATIONAL Component eState State See: State Transition Diagram at STATE Component Input Const uiPublisherId UINT uiWriterGroupId UINT uiDataSetWriterId UINT udiGroupVersion UDINT itfReaderDiagnostics IReaderDiagnostics Input itfReaderGroup IReaderGroup Output itfDiagnostics IReaderDiagnostics itfReader IReader Methods: SetInitialValue Structure: SetInitialValue (Method)
Function Blocks ¶ Configuration (FunctionBlock) SetInitialValue (Method) Connection (FunctionBlock) SetInitialValue (Method) DataSet (FunctionBlock) PrepareValues (Method) SetInitialValue (Method) Diagnostics Base Diagnostics (Folder) DiagnosticsCounter (FunctionBlock) ConnectionDiagnostics (FunctionBlock) ReaderDiagnostics (FunctionBlock) ReaderGroupDiagnostics (FunctionBlock) RootDiagnostics (FunctionBlock) WriterDiagnostics (FunctionBlock) WriterGroupDiagnostics (FunctionBlock) Reader (FunctionBlock) SetInitialValue (Method) ReaderGroup (FunctionBlock) SetInitialValue (Method) Writer (FunctionBlock) SetInitialValue (Method) WriterGroup (FunctionBlock) SetInitialValue (Method)
Configuration (FB) ¶ FUNCTION_BLOCK PUBLIC FINAL Configuration EXTENDS Component IMPLEMENTS IConfiguration , IGroup, IConfiguration_Internal This Function Block is used to represent the Pub/Sub Configuration of an OPC UA Application See IConfiguration for more details. If necessary create a RootDiagnostics instance and connect it to itfRootDiagnostics . It will offer the diagnostic data of an OPC UA Application via the itfDiagnostics output. An example of an common configuration: See: PubSub Configuration Model at OPC Foundation . InOut: Scope Name Type Comment Inherited from Output eErrorID ERROR Reason for STATE.ERROR Component xActive BOOL True 🠖 STATE.OPERATIONAL Component eState State See: State Transition Diagram at STATE Component Input Const itfRootDiagnostics IRootDiagnostics Output itfDiagnostics IRootDiagnostics itfConfiguration IConfiguration Methods: SetInitialValue Structure: SetInitialValue (Method)