Writer.SetInitialValue (METH) ¶ METHOD FINAL SetInitialValue : ERROR SetInititalValue is a helper method in cases a static initialization in the context of a declaration can not working properly due the initialization sequences of the compiler. As soon as the FB Writer is embedded when designing own function blocks and parameters from the embedded FB’s VAR_INPUT CONSTANT area are to be provided with initial values, it is time to consider the using of SetInitialValue . For a description of the individual parameters, please refer to the VAR_INPUT CONSTANT section of Writer . InOut: Scope Name Type Return SetInitialValue ERROR Input uiDataSetWriterId UINT itfWriterDiagnostics IWriterDiagnostics
WriterGroup (FB) ¶ FUNCTION_BLOCK PUBLIC FINAL WriterGroup EXTENDS Component IMPLEMENTS IWriterGroup , IGroup, IGroupElement, IWriterGroup_Internal This Function Block is used to represent the configuration parameters for Writer Groups . See IWriterGroup for more details. If necessary create a WriterGroupDiagnostics instance and connect it to itfWriterGroupDiagnostics . It will offer the diagnostic data of an Writer Group via the itfDiagnostics output. See: WriterGroup 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 uiWriterGroupId UINT udiGroupVersion UDINT itfWriterGroupDiagnostics IWriterGroupDiagnostics Input itfConnection IConnection udiPublishingInterval UDINT The time in µs between two Networkmessages The Networkmessage will be sent via the configured task when the udiPublishingInterval time is reached. The value must be greater than the configured cycle time and has no influence on the cycle time. Output itfDiagnostics IWriterGroupDiagnostics itfWriterGroup IWriterGroup Methods: SetInitialValue Structure: SetInitialValue (Method)
WriterGroup.SetInitialValue (METH) ¶ METHOD FINAL SetInitialValue : ERROR SetInititalValue is a helper method in cases a static initialization in the context of a declaration can not working properly due the initialization sequences of the compiler. As soon as the FB WriterGroup is embedded when designing own function blocks and parameters from the embedded FB’s VAR_INPUT CONSTANT area are to be provided with initial values, it is time to consider the using of SetInitialValue . For a description of the individual parameters, please refer to the VAR_INPUT CONSTANT section of WriterGroup . InOut: Scope Name Type Return SetInitialValue ERROR Input uiWriterGroupId UINT udiGroupVersion UDINT itfWriterGroupDiagnostics IWriterGroupDiagnostics
Functions ¶ DT_TO_UAVersionTime (Function) GetAsChar (Function) GetAsWChar (Function) STRING_SIZE_TO_UALEN (Function) WSTRING_SIZE_TO_UALEN (Function)
UDP (GVL) ¶ Attributes: qualified_only InOut: Scope Name Type Initial Comment Constant MTU UDINT 1500 Maximum Transmission Unit The size of the largest protocol data unit ( PDU ) that can be communicated in a single network layer transaction PORT UINT 4840 The IANA registered OPC UA port for UDP communication is 4840. This is the default and recommended port for broadcast, multicast and unicast communication. Alternative ports may be used.
Enums ¶ BIT_OFFSET (Alias) BIT_SIZE (Enum) DiagnosticsClassification (Enum) DiagnosticsLevel (Enum) ERROR (Enum) STATE (Enum)
BIT_OFFSET (ALIAS) ¶ TYPE BIT_OFFSET : UDINT(0..63)
BIT_SIZE (ENUM) ¶ TYPE BIT_SIZE : Attributes: qualified_only InOut: Name Initial SIZE_BYTE 0 SIZE_WORD SIZE_DWORD SIZE_LWORD
DiagnosticsClassification (ENUM) ¶ TYPE DiagnosticsClassification : Attributes: qualified_only InOut: Name Comment INFORMATION This diagnostics counter indicates events, which are not considered as errors ERROR This diagnostics counter indicates errors
DiagnosticsLevel (ENUM) ¶ TYPE DiagnosticsLevel : Attributes: qualified_only InOut: Name Comment BASIC Diagnostic objects from this level cannot be disabled, and thus objects from this level are the minimum diagnostic feature set that can be expected on any device that supports PubSub diagnostics at all. ADVANCED Diagnostic objects related to exceptional behaviour are contained in the ADVANCED diagnostic level. INFO The INFO diagnostic level contains high-level diagnostic objects related to the normal operation of a PubSub system. LOGGING Diagnostic objects for the detailed logging of the operation of a PubSub system are contained in the LOGGING diagnostic level. DEBUG Diagnostic objects with debug information specific to a given implementation of PubSub are contained in the DEBUG diagnostic level. As this level is intended for implementation specific diagnostics, no such objects are specified by the standard.