L_IOSP - BaseEventType
For the execution of Methods via OPC UA corresponding objects must be existing in the OPC UA information model as well as in the PLC application. In addition to this, both entities must then be mapped. This can be done with the Lenze Mapping Editor.
This generic function block L_IOSP_BaseEventType represents an OPC UA BaseEventType in the IEC application, which can be mapped to an BaseEventType in the OPC UA Nodeset.
This basic function block contains all the variables necessary for the mapping of the event to the OPC UA Server. In addition to this, it provides a few sub-methods for the event operation in the PLC application.
|
|
|
|
L_IOSP_BaseEventType |
|
|
|
|
|---|---|---|---|---|---|---|---|
|
BOOL |
– |
|
xExecute |
xDone |
|
– |
BOOL |
|
BOOL |
– |
|
xEventTriggered |
xBusy |
|
– |
BOOL |
|
|
|
|
|
xTriggerEvent |
|
– |
BOOL |
|
|
|
|
|
EventID |
|
– |
L_IOSP_ByteString |
|
|
|
|
|
Message |
|
– |
L_IOSP_LocalizedText |
|
|
|
|
|
Severity |
|
– |
USINT |
|
|
|
|
|
SourceName |
|
– |
String |
|
|
|
|
|
SourceNode |
|
– |
L_IOSP_NodeID |
Inputs
|
Name Data type |
Information/possible settings |
|
|---|---|---|
|
xExecute BOOL |
FALSEäTRUE |
Executes the event operation. |
|
xEventTriggered BOOL |
FALSEäTRUE |
The event has been fired by the Server. If the function block is mapped, this variable is internally connected to the OPC UA Server. |
Outputs
|
Name Data type |
Value/meaning |
|---|---|
|
xDone BOOL |
If TRUE, signals the PLC application that the event is sent by the OPC UA Server. |
|
xBusy BOOL |
If TRUE, signals the PLC application that the event operation is in progress. |
|
xTriggerEvent BOOL |
If TRUE,Signals the OPC UA Server that the event shall be fired. If the function block is mapped, this variable is internally connected to the OPC UA Server. |
|
EventID L_IOSP_ByteString |
OPC UA specific value.1) Shall be generated by the Server application to uniquely identify a particular Event Notification.
|
|
Message L_IOSP_LocalizedText |
OPC UA specific value.1) Shall provide a human-readable and localizable text description of the Event. If not set the BrowseName will be used.
|
|
Severity USINT L_IE1P_Error |
OPC UA specific value.1) It is an indication of the urgency of the Event. Values will range from 1 to 1 000, with 1 being the lowest severity and 1 000 being the highest. Here you can find information on error or warning messages. |
|
SourceName String |
OPC UA specific value.1) SourceName provides a description of the source of the Event. If the Event is not specific to a source the SourceName can be empty. |
|
SourceNode L_IOSP_NodeID |
OPC UA specific value.1) The SourceNode Property identifies the Node that the Event originated from. If the Event is not specific to a Node the SourceNode can be empty. |
|
1) |
For more information, see: |
Sub-Methods
This function block provides following methods for the method operation in the PLC application.
|
Name |
Description |
|---|---|
|
StartEvent()
|
This method is called automatically once, if the OPC UA Event is executed by the PLC application (xExecute FALSEäTRUE). It is used to prepare the event operation, e. g. to determine the EventId, to initialize additional function blocks or to prepare a consistent data input set. This method is optional. |
|
ExecuteEvent() Output variable: xComplete BOOL |
This method is called automatically cyclically, after the StartEvent() call. It is used to provide the event properties, e. g. getting device parameter via an additional function block for an application specific property. The cyclic call of this method is terminated if xComplete is set to TRUE by the application. The OPC UA Server is triggered to send the event. |
|
ResetEvent()
|
This method is called automatically once, after the ExecuteEvent () calls and the OPC UA Server signals, that the event is sent. It is used to reset the event operation, e. g. to reset additional output variables. This method is optional. |
The OPC UA Client Server connection is a none realtime communication. Thus, the PLC application is not synchronized with the communication. In order not to disturb the PLC realtime task, the Server FB L_IOSP_BaseEventType should be executed in a low prio task without watchdog or free-wheeling task.