Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hilch/demo-br-asyncua

simple example how to get access to B&R control with asyncua (asyncio based OPC-UA stack)
https://github.com/hilch/demo-br-asyncua

Last synced: about 2 months ago
JSON representation

simple example how to get access to B&R control with asyncua (asyncio based OPC-UA stack)

Awesome Lists containing this project

README

        

# demo-br-asyncua
simple example how to get access to B&R PLC with [asyncua: Python asyncio based OPC-UA stack](https://github.com/FreeOpcUa/opcua-asyncio)

## Installation

### Python
tested with Python 3.9.5 under Win10/64Bit

### asyncua library
`pip install asyncua`

### VNC-Viewer
Many VNC viewers work but B&R VNC Viewer is already reasonably preconfigured:
[B&R VNC Viewer](https://www.br-automation.com/en/downloads/software/hmi-software/vnc-viewer/vnc-viewer-winxp-win7-win81-win10/?noredirect=1)

## Prepare Automation Studio project

### B&R 'coffeemachine'
I used Automation Studio 4.1 which can be used without a licence since 4.1.14 and its demo project 'Coffeemachine' for testing.
OPC-UA server is already configured in this version.

![coffeemachine1](/doc/coffeemachine1.png)

### insert an OPC-UA Default Configuration and enable Tags

![coffeemachine2](/doc/coffeemachine2.png)

### create a simulated PLC (ArSim)

![coffeemachine3](/doc/coffeemachine3.png)

## Test

- connect VNC viewer (IP:127.0.0.1, password 'c')
- open console and start script

![coffeemachine4](/doc/coffeemachine4.png)