Attach external OPC client to PLCnext controller
Hello,
I'm trying to connect a python OPC UA client to AXC F 2152 controller with enabled OPC UA server to establish a both side communication and data exchange, primary data from PLC to pytthon3 OPC client module and after them to Rpi App like Openhab.
User:admin, PW:devicePW, security policy: Basic256 SHA256 algorithm.
Using OPC UA OPC UA-self-signed_certificate.crt and OPC UA-self-signed_publickey.pem downloaded via WBM to external device directory.
How should be programmed correct client file please ?
On a external Raspberry Pi is Python3 and module for python client installed.
pip install opcua
Thanks for help.
P.S.
I'm trying to make it work without security policy.
Comments
Using opcua-asyncio installed on Rpi is working well (without SHA256 - non secure communication).
Installing internal on PLC controller isn't working :0(
Maybe native opc client module would be OK, but I'm not a company, so I can't download it.
If it's not instalable, then using nodered PLC app is a way.
Important question is if nodered has openhab modules (standart has some OH modules) and how can be information transfered from the opc client module to openhab2 running on PLC.
Additional pip install
root@axcf2152:~# curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
root@axcf2152:~# python3 get-pip.py
root@axcf2152:~# pip3 install requests