Online Forums
Technical support is provided through Support Forums below. Anybody can view them; you need to Register/Login to our site (see links in upper right corner) in order to Post questions. You do not have to be a licensed user of our product.
Please read Rules for forum posts before reporting your issue or asking a question. OPC Labs team is actively monitoring the forums, and replies as soon as possible. Various technical information can also be found in our Knowledge Base. For your convenience, we have also assembled a Frequently Asked Questions page.
Do not use the Contact page for technical issues.
Variable info in delphi
Please Log in or Create an account to join the conversation.
procedure TFormBrowser.ReadAttribute(Attributeid: Integer);
var
Count: Cardinal;
Element: OleVariant;
EndpointDescriptor: _UAEndpointDescriptor;
NodeDescriptor: _UANodeDescriptor;
NodeElement: _UANodeElement;
NodeElementEnumerator: IEnumVariant;
NodeElements: _UANodeElementCollection;
tempendpoint,tempnode :string;
temp :TUAReadArguments;
tempread :_UAReadParameters;
begin
tempendpoint := 'opc.tcp://127.0.0.1:45320';
tempnode := 'nsu=KEPServerEX;ns=2;s=TEST.000000.COMANDO';
EndpointDescriptor := CoUAEndpointDescriptor.Create;
EndpointDescriptor.UrlString := tempendpoint;
NodeDescriptor := CoUANodeDescriptor.Create;
NodeDescriptor.NodeId.NamespaceUriString := tempnode;
temp := TUAReadArguments.Create(nil);
temp.EndpointDescriptor := EndpointDescriptor;
temp.NodeDescriptor := NodeDescriptor;
temp.AttributeId := Attributeid;
temp.Connect;
tempread := temp.ReadParameters;
showmessage(tempread.tostring);
end;
Please Log in or Create an account to join the conversation.
I m working on it but I don t have successfully read attributeid can you write a small example to read Attributeid in Delphi?
Thanks
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
How can I read variable info in Delphi?(Variable type,value,description and so on)
Thanks Alessandro
Please Log in or Create an account to join the conversation.