OPC HDA客户端对象在创建时不会自动连接到服务器。你可以从“状态”
属性。
使用连接
命令行连接OPC HDA客户端对象到服务器:
连接(hdaClient)
当连接时,客户端属性更新以显示某些服务器属性:
>> hdclient hdclient = OPC HDA Client localhost/Matrikon.OPC.Simulation. >> hdclient hdclient = OPC HDA Client localhost/Matrikon.OPC.Simulation.1: Host: localhost ServerID: Matrikon.OPC.Simulation.1超时:10秒状态:connected Aggregate: 6 Aggregate Types ItemAttributes: 10 ItemAttributes Methods