OPC Server in Python

Ville Vainio ville at spammers.com
Mon May 17 05:44:41 EDT 2004


>>>>> "Geiger" == F GEIGER <fgeiger at datec.at> writes:

    Geiger> Could I do this in Python too? At the core an OPC Server
    Geiger> is a COM server, isn't it? Did anyone in this group do
    Geiger> anything like that already? And if so, are you willing to
    Geiger> share your experience?

I've written an OPC client (in C++), and used a Wintech OPC client
library (proprietary). I kinda regret that I didn't use the OPC COM
interface directly, but I didn't know enough Python at the time (and
didn't have the Python for win32 book). I guess technically OPC uses
DCOM, but it ought to work the same way...

    Geiger> Any hint welcome!

OPC is rather unpleasant. Systems that use OPC should rather use
CORBA, which is an open standard. Many people in automation industry
seem to be rather backward in the sense that they consider Windows,
COM and such things "standard" in some perverse fashion.

I would expose the variables that you do in your OPC server in some
more open fashion (CORBA is great w/ Python), and then implement a
small wrapper application that exposes the variables to OPC clients.


-- 
Ville Vainio   http://tinyurl.com/2prnb



More information about the Python-list mailing list