dOPC Client Toolkit
Close
ua.client.TdOPCUAClient.MethodsGet

Returns an array of MethodNodeIds for an ObjectNodeId.

function MethodsGet(ObjectId: string): TArray<string>;
__fastcall TArray<string> MethodsGet(AnsiString ObjectId);

If you want to know if an Object has methods.

program MethodsCall; {$APPTYPE CONSOLE} uses ua.client; var OPCClient : TdOPCUAClient; Methods : TArray<string>; M : string; begin OPCClient := TdOPCUAClient.Create(nil); OPCClient.Url := 'opc.tcp://opcuaserver.com:48010'; OPCClient.Active := true; Methods := OPCClient.MethodsGet('ns=2;s=Demo.Method'); for M in Methods do writeln(M); writeln('Press Enter to exit'); Readln; OPCClient.Free; end.
Kassl GmbH Copyright © 2021. All rights reserved.