OpenOPC ライブラリを使用して OPC サーバーに接続しています。ローカルの Matrikon OPC サーバーからは正常に読み書きできますが、別のマシン (別のホスト) から読み込もうとするとエラーが発生しますPyro.errors.ProtocolError: connection failed
接続用のコードはこちらです。
import OpenOPC
class OPC_tag_reader:
opc = OpenOPC.open_client('<remote host>')
#breaks here!!!!
def __init__(self):
print 'connecting to server'
self.opc.connect('Matrikon.OPC.Simulation.1', '<remote host')
コードはコンストラクターに到達しません。
ありがとう!