emersbergerl / opcua2powerlink

Open source implementation of gateway for OPC UA (OPC Unified Architecture) to the real-time Industrial Fieldbus POWERLINK
22 stars 4 forks source link
c canopen ethernet gateway iiot iiot-gateway industrial-automation iot iot-gateway opc opc-ua opcua-gateway openpowerlink powerlink powerlink-protocol python realtime xdd

opcua2powerlink

opcua2powerlink is an open source gateway using OPC UA (OPC Unified Architecture) and the industrial real-time fieldbus protocol POWERLINK for data communication from OT (operation technology) to IT (information technology) The program is usable with all major compilers and provides necessary tools for a fast development process. Currently it is planned that the tool will support both Windows and Linux operation systems. In the first version only the Windows version is available, the linux version will be available within the next 2 weeks.

opcua2powerlink is based on the open source free implementation of the OPC UA open62541 library (http://open62541.org) and the open source implementation of POWERLINK (http://openpowerlink.sourceforge.net/web/).

Project Information

Dependencies

Features

Requirements

Documentation and Support

A general introduction to OPC UA and the open62541 documentation can be found at http://open62541.org/doc/current also the general introduction to POWERLINK and the stack documentation can be found at http://openpowerlink.sourceforge.net/web/

For discussion and support the following channel is available:

Building

Building Application

The following section describes how the delivered application can be built. The demo application is located inside the __/opcua2powerlink/ directory. The default binary installation path is: /bin//

Building on Linux

> cd <opcua2powerlink>/build/linux
> cmake ../..
> make
> make install

Build on Windows

Open a Visual Studio command line and enter the following commands:

> cd <opcua2powerlink>\build\windows
> cmake -G"NMake Makefiles" ..\..
> nmake
> nmake install

NOTE: You can also generate a Visual Studio Solution and compile the libraries in Visual Studio. Please refer to the CMAKE documentation for generating Visual Studio solution files.

Configuration Options

Generic Options
Linux Specific Options

Building Drivers

For highest performance in linux systems with the POWERLINK Slave (CN) the option to build a seperate driver using kernel and PCAP User Space Daemon is possible. The drivers are located in the directory drivers. To build a driver, the following steps are required.

NOTE: You don't need to compile a driver if you are using a single process solution. (e.q. Linux/Windows "Link to Application")

Building a Linux PCAP User Space Daemon

To build an user space daemon:

> cd <opcua2powerlink_dir>/drivers/linux/drv_daemon_pcap/build
> cmake ..
> make
> make install

Sucessfull installation will create an executable inside the /bin///oplk-pcap.

Building a Linux Edrv Kernel Drivers

To build the kernel driver(e.g for a CN using the intel 82753 network interface):

> cd <opcua2powerlink_dir>/drivers/linux/drv_kernelmod_edrv/build
> cmake -DCFG_POWERLINK_EDRV_82573=TRUE ..
> make
> make install

Sucessfull installation will create an executable inside the /bin///oplk-edrv.

CMake Configuration Options

InProgress

Examples

Overview of the default tags available via OPC UA from the opcua2powerlink tool. Some of the values are written by an POWERLINK master and forwarded to the OPC UA Server.

image