OPC UA Python SIMATIC S7 Siincos Blog Tutorial
OPC UA Python SIMATIC S7 Siincos Blog Tutorial
a) Setting up security mechanisms based on X.509 certificates to enable authentication and encryption in TIA Portal
TCP/IP Ethernet
TCP/IP Ethernet
TCP/IP Ethernet
Client needs to „know“ the server‘s certificate and has to have it Server presents its certificate to
marked as „trusted“ to accept the connection request. the server.
Setting up OPC UA security mechanisms
Create a python virtualenv and install opcua, opcua-client and PyQt5 into using pip:
• pip install opcua opcua-client PyQt5
opcua – client library – https://github.com/FreeOpcUa/python-opcua
opcua-client – demo application – https://github.com/FreeOpcUa/opcua-client-gui
PyQt5 – GUI framework required by opcua-client – https://pypi.org/project/PyQt5/
Install optional libraries to support cryptographic schemes which we have set up in TIA project:
pip install crypto cryptography
Install optional libraries to get full benefit using the opcua-client application
pip install pyqtgraph numpy
Test your installation by starting the demo application from within your virtualenv: opcua-client
You can access only the variables/tags you have allowed access to in TIA portal!
Web: https://siincos-remote-connect.de
Mail: siincos@spektrum-engineering.de
linkedin.com/company/siincos/
instagram.com/spektrum.engineering/