Usage of OPC UA Methods
OPC UA Methods are represented in the PLC application as Function Blocks with specific input and output variables for handshaking with the OPC UA Server.
If a client calls the OPC UA Method, the Server will set the Function Block input variables, with which the method operation can be triggered. The Function Block output variables signals the OPC UA Server, that the operation has been finished and the calculated output values.
The Lenze IEC library L_IOSP_OpcUaServer provides for this purpose the generic Function Block L_IOSP_MethodCall. This Function Block is used to extend an application specific Function Block with method specific input and output arguments.
The application specific Function Block (with all the input and output variables) has to be published via the symbol configuration to grant access by the OPC UA Server.
For further information see the L_IOSP_OpcUaServer documentation. To realize projects with methods please contact your local Lenze sales representative.