# OpenOPC-python3.6 **Repository Path**: iovVis/OpenOPC-python3.6 ## Basic Information - **Project Name**: OpenOPC-python3.6 - **Description**: No description available - **Primary Language**: Unknown - **License**: GPL-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-04-25 - **Last Updated**: 2024-05-30 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # OpenOPC-python3.6 OpenOPC for python3.6 enviroment This porcedure is for OpenOPC functional test,set your localhost as OPC server. MatrikonOPC Server for Simulation is recommended,you can download from [here](https://www.matrikonopc.com/downloads/178/index.aspx). Make sure these environment variables in your Windows box are set as shown: `OPC_CLASS=Matrikon.OPC.Automation;Graybox.OPC.DAWrapper;HSCOPC.Automation;RSI.OPCAutomation;OPC.Automation` `OPC_CLIENT=OpenOPC` `OPC_GATE_HOST=127.0.0.1` `OPC_GATE_PORT=7766` `OPC_HOST=localhost` `OPC_MODE=dcom` `OPC_SERVER=OPCServer.WinCC.1;Hci.TPNServer;HwHsc.OPCServer;opc.deltav.1;AIM.OPC.1;Yokogawa.ExaopcDAEXQ.1;OSI.DA.1;OPC.PHDServerDA.1;Aspen.Infoplus21_DA``.1;National Instruments.OPCLabVIEW;RSLinx OPC Server;KEPware.KEPServerEx.V4;Matrikon.OPC.Simulation;Prosys.OPC.Simulation` Please download and install the following packages in order to develop your own Python programs. 1. Miniconda https://docs.conda.io/en/latest/miniconda.html Get Miniconda3 Windows 32-bit package to install and create a virtual env. `(base) PS c:\pyproj> conda create -n py368 python-3.6.8` `(base) PS c:\pyproj> conda activate py368` 2. Python for Windows Extensions (pywin32) You can do pip install through command line by running :`pip install pywin32` 3. Pyro4 You can do pip install through command line by running :`pip install pyro4` 4. Clone or download the repository,extract the compressed file to a folder in your **windows wincc7.0sp2 box** (i.e.`C:\OpenOPC36`). 5. Run following command in the src directory to start the gateway server. `python OpenOPCService.py --foreground` 6. Run following command in another terminal at the same directory to get variables in wincc. `python cli.py` 7. The authors of this package are: `Copyright (c) 2008-2012 by Barry Barnreiter (barry_b@users.sourceforge.net)` `Copyright (c) 2014 by Anton D. Kachalov (mouse@yandex.ru)` `Copyright (c) 2017 by José A. Maita (jose.a.maita@gmail.com)` `Copyright (c) 2021 by Awen (shitongnet@gmail.com)` For more details please check Mr.joseamaita's repository about OpenOPC [here](https://github.com/joseamaita/openopc120)