There is a sample for the AsOpcUac library as the OPC UA project in the Getting Started section of Automation Studio. It includes a method call section (see help). Some parts could be a bit tricky:
- Parameterizing FUB UA_MethodGetHandle
- ObjectNodeID and MethodNodeID Identifier and IdentifierType must be specified
- find a method in UaExpert and see these information in the Attribute window
- MethodNodeID
- ObjectNodeID
- method parent node (“Control” node is a parent of SetBrightness method)
- method parent node (“Control” node is a parent of SetBrightness method)
- ObjectNodeID and MethodNodeID Identifier and IdentifierType must be specified
- Parameterizing of InputArguments of FUB UA_MethodCall
- one argument Brightness in our case of data type UInt32 (check UaExpert)
- the information is set in AS
- one argument Brightness in our case of data type UInt32 (check UaExpert)
ArSim (OPC UA client) and T50 (OPC UA server enabled in service pages) were used in the test.