OpenOPC for Python 1.2.0 Copyright (c) 2008-2012 by Barry Barnreiter (barry_b@users.sourceforge.net) Copyright (c) 2014 by Anton D. Kachalov (mouse@yandex.ru)
http://openopc.sourceforge.net/ https://github.com/ya-mouse/openopc
Please go through the following post installation steps and functional checks to verify your installation of OpenOPC for Python is working correctly.
opc -q
OPC_SERVER=Matrikon.OPC.Simulation
opc -i
opc -m open -i
opc
To read an item from your OPC server, just include the item name as one of your arguments. For example, if you're using Matrikon's Simulation server you could do:
opc Random.Int4
To read items from a specific OPC server you have installed, include the -s switch followed by the OPC server name. For example:
opc -s Matrikon.OPC.Simulation Random.Int4
If you experience any unexpected errors during these tests, please check the FAQ on http://openopc.sourceforge.net for additional help.
If after reading through the FAQ you still require additional help, then the author of this package would be happy to assist you via e-mail. Please see the project website for current contact information.
If you elected to install the OpenOPC Development library during the installation process, then you'll need to also download and install the following packages in order to develop your own Python programs which use the OpenOPC library:
Python 3.4+ http://www.python.org/download/
Python for Windows Extensions (pywin32) http://sourceforge.net/projects/pywin32/
Of course, Python is necessary on all platforms. However the other packages may be optional depending on your configuration:
Pywin32: optional Pyro4: required
Pywin32: required Pyro4: optional
Pywin32: not applicable Pyro4: required
In order to get the most from the OpenOPC package, Windows developers are encouraged to install both Pywin32 and Pyro. Using Pyro to talk to the Gateway Service provides a quick and easy method for bypassing the DCOM security nightmares which are all too common when using OPC.
A PDF manual for OpenOPC is included in this installation inside the "doc" folder. Users are encouraged to also look at the OpenOPC web site for additional usage examples that may not be contained in the manual.
If you have any questions, bug reports, or suggestions for improvements please feel free to contact the author at:
barry_b@users.sourceforge.net
While I cannot always guarantee a quick response, I eventually respond to all e-mails and will do my best to slove any issues which are discovered.
Thanks for using OpenOPC for Python!