Alexhll / OpenOPC-python3.6

OpenOPC for python3.6 enviroment
Other
34 stars 21 forks source link

How can I get data from an opc server? #6

Closed Voolodimer closed 4 years ago

Voolodimer commented 4 years ago

Hello! I can’t get the data as it is written in the documentation on the official site. Does the OpenOPC library only work with the Matrilon server? How can I get data from my OPC server? I will attach pictures below OpenOPC tree

Voolodimer commented 4 years ago

I figured out how to do it. I hope someone will be useful

  1. We get the tag testTag = opc.list("COM4.TRM_202(adr=104)T_слой_Ср_р-ра.Оперативные параметры")[3]
  2. Read data val = opc.read(testTag, update=1, include_error=True)