Method Handler interaction

The following figure describes the general usage of the function block inside the PLC application and the interaction with the Lenze OPC UA Method Handler. To connect the function block with the OPC UA Method Handler, it is necessary to publish the function block via the symbol configuration and to map it to a specific OPC UA Method.

It is expected to extend an application specific function block with the L_IOSP_MethodCall. The application specific function block can be enhanced with local variables for the arguments of the OPC UA method, which must be of the same name and data type.

Sequence:

  1. An OPC UA Client requests a specific Method call with any input arguments.

  2. The OPC UA Server receives this call and performs a conversion and an alignment into a generic data format to distribute it further in the system.

  3. A subsequent Method Handler stores and manages the method call, e. g. timeout handling. The Method Handler sets the function block variables, with which the method operation can be triggered (e.g. xExecute). The MethodCall InputArguments are assigned to the functions blocks local variables (Local Vars). If a positive edge occurs on xExecute, the arguments of the method call are provided by the Method Handler.

  4. The method operation can be done in any suitable none realtime application specific IEC task. The operation may take several cycles. For the operation automatically called IEC methods are provided. Not needed methods can be deleted.

    • StartMethod()

    • ExecuteMethod()

    • FinalizeMethode()

    • ResetMethod()

  5. After the Start-, Execute- and FinalizeMethod operation variables are provided for the OPC UA Method output arguments.

  6. The OPC UA Server responds to the Method call of the client and the xExecute variable is set to false.

Ein Bild, das Text, Screenshot, Diagramm, Zahl enth-lt.

Automatisch generierte Beschreibung

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_MethodCall should be executed in a low prio task without watchdog or free-wheeling task.