I have huge problem with OPCDA and OpenOPC. I should (must) read a set of tags from a remote server, I have no access to the machine in any way. I only know the IP and the OPC server name.
Testing OpenOPC locally with this code all work fine. Otherwise, changing the hostname with the remote one nothing work with 0x800706BA error.
0x800706BA means The RPC server is unavailable. Typically, that means you need do some DCOM configuration in remote box. To avoid this kind of headache, you can take a look at WebSocket4OPC, which brings back OPC data without any DCOM configuration. It supports Python and other popular languages to return OPC data in JSON format.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have huge problem with OPCDA and OpenOPC. I should (must) read a set of tags from a remote server, I have no access to the machine in any way. I only know the IP and the OPC server name.
Testing OpenOPC locally with this code all work fine. Otherwise, changing the hostname with the remote one nothing work with 0x800706BA error.
import OpenOPC
import time
try:
opc = OpenOPC.client()
Anyone have any ideas on this?
Not having access to the server (set with anonymous logon), I have done DCOM configurations as much as possible.
Does anyone know a procedure for a possible solution?
Thanks!
0x800706BA means The RPC server is unavailable. Typically, that means you need do some DCOM configuration in remote box. To avoid this kind of headache, you can take a look at WebSocket4OPC, which brings back OPC data without any DCOM configuration. It supports Python and other popular languages to return OPC data in JSON format.