使用OpenOPC Python打印标签

问题描述

PICTURE Matrikon OPC Server

你好

因此,有一个与Matriko一起运行的OPC DA服务器(参见图片)。 我有这段代码

import OpenopC

opc = OpenopC.client()

print(opc.servers())

opc.connect("Matrikon.OPC.Simulation.1")
print(opc.list())
print(opc.list("Configured Aliases"))
print(opc.read(list('Linx8900_01')))

输出

['CLARiNET.OPC_Server.DA.1','Matrikon.OPC.Simulation.1']
['Simulation Items','Configured Aliases']
['Linx8900_01']

[('L',None,'Error',None),('i',('n',('x',('8',('9',('0',('_',('1',None)]

图中的测试是随机布尔值。我想读这个布尔值,但是我不知道如何。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)