preller / OpcUaDeviceRepository

Traditional OPC UA Servers/Clients

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OpcUaDeviceRepository

This repository consists of device driver implementations, each providing an OPC UA interface. The OPC UA interface is implemented using the open62541 C library which is encapsulated within the leightweight C++ Wrapper (see subfolder Open62541CppWrapper). Individual devices might have additional, platform-specific dependencies related to the respectivelly used device library.

This repository is maintained by Servicerobotik Ulm. For more information see:

Installation dependencies

  • open62541 using the github repository (install as described below) ** tested with commit in master branch 755abcfc54f5c7f438d0e1dee91370df28e6c02e
  • CMake min. version 3.0
  • A C++ compiler supporting the C++ 11 standard

Compile instructions for the open62541 library

Arranging prerequisites

$ sudo apt-get install git build-essential gcc pkg-config cmake python python-six

Cloning open62541

$ git clone https://github.com/open62541/open62541.git
$ cd open62541
$ git submodule init
$ git submodule update

IMG01

Building open62541

$ mkdir build
$ cd build
$ cmake -DUA_ENABLE_AMALGAMATION=ON -DUA_ENABLE_METHODCALLS=ON -DUA_ENABLE_SUBSCRIPTIONS=ON -DUA_ENABLE_DISCOVERY_MULTICAST=ON ..
$ make
$ sudo make install

IMG02

Building and running OPCUA examples using single-file release open62541.h

$ cd examples
$ gcc -std=c99 -I../build/ ../build/open62541.c tutorial_server_variable.c -o server
$ ./server

IMG03

Open a Prosys OPC UA client to view/edit server nodes

Address: opc.tcp://<IP address of server / localhost>:4840 IMG04

Compile instructions for this repository

The following instructions will build the Open62541CppWrapper and all the OPC UA enabled Devices:

> mkdir build
> cd build
> cmake ..
> make 
> sudo make install # optional

About

Traditional OPC UA Servers/Clients

License:Other


Languages

Language:C++ 97.4%Language:CMake 2.6%