![opc python to kepserverex opc python to kepserverex](https://docs.microsoft.com/en-us/samples/azure-samples/iot-hub-how-to-kepware-edge/azure-iot-edge-connect-ptc/media/kepware-agent-config-broker.png)
You will need to close git BASH by clicking the red cross. If you are using edge you will need to make sure you type the in front of the web adress or it will probably not work. Try browsing to and you should see the following. Open the browser and browse to any of the routes. We want to allow incoming connections so we need to make sure both boxes are checked like in the image below.
OPC PYTHON TO KEPSERVEREX WINDOWS
On the first time you run this program you may be prompted by Windows about allowing python to communicate through the firewall.
OPC PYTHON TO KEPSERVEREX INSTALL
Open git BASH and run the following command to install the app. Uncheck the OPC Gateway service.Īfter all pre-requisites the following steps should get the API up and running Install the app OpenOPCĭuring the installation you'll be asked to choose the components you want to install. My Kepware OPC-UA server is installed locally, so first I'm just going to put localhost. Here, Ignition can actually discover the OPC-UA server for us, provided we give it an IP address and a port number. Install the 32-bit version of pywin32 for python 2.7. Since I'm going to be connecting to Kepware's OPC-UA server, I'm going to leave OPC-UA selected and click the Next button. Make sure the small symbol next to Add python.exe to Path does not have a cross through.Ĭheck the installation is working by opening git BASH and executing the following. Install Python 2.7 32-bit (if it is not already).Įnsure that python gets added to Path. The installer will also ask you which terminal emulator you would like to use, we will use Winows' default console. Select the option the same as the image below. When installing git BASH the installer will ask you how you would like to use it from the command line. There is no need to change any of the default settings during the installation process except the below caveats.
![opc python to kepserverex opc python to kepserverex](https://www.opclabs.com/media/kunena/attachments/8048/MatrikonOPCcertificate.jpg)
![opc python to kepserverex opc python to kepserverex](https://img-blog.csdnimg.cn/20181213131350507.png)
We will use this terminal emulator to run our program that will communicate with the PLC server. Make sure everything installed is 32-bit (even on a 64-bit os) Git BASH Routes GET / OR /api Test if the API is alive Pre-requisites This app will make the following routes available at: Depending on the router configuration you will be able to access this gateway from outside the local network as well, i.e. This is a simple API that exposes a few routes to request information from the KEP