主要内容

游手好闲者

获取所有聚合类型或项属性ID

语法

ID=getIDList(Obj)

描述

ID=getIDList(Obj)返回OPC HDA聚合类型或项属性对象中存储的所有IDObj.

例子

检索Matrikon提供的聚合类型的ID™ 模拟服务器。

hdaObj=opchda(“本地主机”,“Matrikon.OPC.Simulation”); 连接(hdaObj);allIDs=getIDList(hdaObj.Aggregates)

检索Matrikon仿真服务器提供的项目属性的ID。

hdaObj=opchda(“本地主机”,“Matrikon.OPC.Simulation”); 连接(hdaObj);allIDs=getIDList(hdaObj.ItemAttributes)

另见

功能