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/).
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:
The following section describes how the delivered application can be built. The demo application is located inside the __
> cd <opcua2powerlink>/build/linux
> cmake ../..
> make
> make install
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.
CFG_DEBUG_LVL
Debug level to be used for openPOWERLINK debugging functions.
CMAKE_INSTALL_PREFIX
Specifies the installation directory where your files will be installed. Default directory is:
CMAKE_BUILD_TYPE
Specifies your build type. Valid build types are: Debug, Release If the build type Debug is specified, the code is compiled with debugging options.
__CFG_BUILD_KERNEL_STACK__
Determines how to build the kernel stack. Depending on your system and architecture different options may be available. Please refer to the platform specific options.
__OPCUA_NAMESPACE__
Defines the OPC UA namespace name which the gateway should use. Default name is (http://opcua2powerlink.org/demo/)
XDD
Select the POWERLINK device description file (xdd) which should be used. The xdd file describes the Input's and Output's which are available for the device via POWERLINK. The project contains the default xdd file used by the openPOWERLINK stack.
__PYTHON_EXECUTABLE__
Path to the python executable which should be used for the project.
__CFG_BUILD_KERNEL_STACK__
Determines how to build the kernel stack. The following options are available:
Link to Application
The openPOWERLINK kernel part will be directly linked to the user part and application. libpcap will be used as Ethernet driver.
Linux Userspace Daemon
The library liboplkappXn-userintf.a will be used. It contains the interface to a Linux user space daemon. The kernel part of the openPOWERLINK stack is located in the separate user space daemon driver.
Linux Kernel Module
The library liboplkappXn-kernelintf.a will be used. It contains the interface to a Linux kernel module. The kernel part of the openPOWERLINK stack is located in the separate kernel module driver.
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")
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
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
__CFG_POWERLINKEDRV
Selects the Ethernet driver used for the kernel-based application. Valid options are:
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.