Skip to content

Commit edbc961

Browse files
committed
POWERLINK + ModbusTCP added
1 parent 26240d8 commit edbc961

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+13962
-29
lines changed

Dockerfile

+17-5
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ RUN [ "cross-build-start" ]
66

77
#labeling
88
LABEL maintainer="[email protected]" \
9-
version="V0.9.4" \
10-
description="Debian(jessie) with netX real-time ethernet programming examples"
9+
version="V1.0.0" \
10+
description="netX real-time ethernet programming examples"
1111

1212
#version
13-
ENV HILSCHERNETPI_NETX_PROGRAMMING_EXAMPLES_VERSION 0.9.4
13+
ENV HILSCHERNETPI_NETX_PROGRAMMING_EXAMPLES_VERSION 1.0.0
1414

1515
#install ssh, gcc, create user "pi" and make him sudo
1616
RUN apt-get update \
@@ -21,12 +21,18 @@ RUN apt-get update \
2121
&& adduser pi sudo
2222

2323
#create needed folders
24-
RUN mkdir /home/pi/manuals /home/pi/firmwares /home/pi/driver /home/pi/includes /home/pi/sources \
25-
/home/pi/includes/EtherNetIP /home/pi/includes/PROFINET /home/pi/includes/EtherCAT \
24+
RUN mkdir /home/pi/manuals /home/pi/firmwares /home/pi/driver /home/pi/sources \
25+
/home/pi/includes \
26+
/home/pi/includes/EtherNetIP \
27+
/home/pi/includes/PROFINET \
28+
/home/pi/includes/EtherCAT \
29+
/home/pi/includes/POWERLINK \
30+
/home/pi/includes/ModbusTCP \
2631
/home/pi/devicedescriptions/ \
2732
/home/pi/devicedescriptions/PROFINET \
2833
/home/pi/devicedescriptions/EtherNetIP \
2934
/home/pi/devicedescriptions/EtherCAT \
35+
/home/pi/devicedescriptions/POWERLINK \
3036
/home/pi/objs
3137

3238
#set the working directory
@@ -45,16 +51,21 @@ COPY ./driver/* driver/
4551
COPY examples/includes/EtherCAT/* includes/EtherCAT/
4652
COPY examples/includes/EtherNetIP/* includes/EtherNetIP/
4753
COPY examples/includes/PROFINET/* includes/PROFINET/
54+
COPY examples/includes/POWERLINK/* includes/POWERLINK/
55+
COPY examples/includes/ModbusTCP/* includes/ModbusTCP/
4856
COPY examples/includes/SystemPackets.h includes/
4957
COPY examples/includes/App.h includes/
5058
COPY examples/includes/PacketHandlerPNS.h includes/
5159
COPY examples/includes/PacketHandlerEIS.h includes/
5260
COPY examples/includes/PacketHandlerECS.h includes/
61+
COPY examples/includes/PacketHandlerPLS.h includes/
62+
COPY examples/includes/PacketHandlerOMB.h includes/
5363

5464
#copy the device description files such as GSDML, EDS
5565
COPY electronic-data-sheets/PROFINET/* devicedescriptions/PROFINET/
5666
COPY electronic-data-sheets/EtherNetIP/* devicedescriptions/EtherNetIP/
5767
COPY electronic-data-sheets/EtherCAT/* devicedescriptions/EtherCAT/
68+
COPY electronic-data-sheets/POWERLINK/* devicedescriptions/POWERLINK/
5869

5970
#copy the makefile and the application source codes
6071
COPY examples/Makefile ./
@@ -77,3 +88,4 @@ STOPSIGNAL SIGTERM
7788

7889
#stop processing ARM emulation (comment out next line if built on Raspberry)
7990
RUN [ "cross-build-end" ]
91+

README.md

+13-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Made for [netPI RTE 3](https://www.netiot.com/netpi/), the Raspberry Pi 3B Architecture based industrial suited Open Edge Connectivity Ecosystem
44

5-
### netX programmin exsample applications for PROFINET, EtherNet/IP and EtherCAT
5+
### netX programming example applications for PROFINET, EtherNet/IP, EtherCAT, POWERLINK and Modbus/TCP
66

77
Base of this image builds [debian](https://www.balena.io/docs/reference/base-images/base-images/) with enabled [SSH](https://en.wikipedia.org/wiki/Secure_Shell) and created user 'pi'.
88

@@ -11,6 +11,8 @@ Additionally the image provides netX programming examples in source code (and as
1111
* PROFINET IO-device
1212
* EtherNet/IP adapter
1313
* EtherCAT slave
14+
* POWERLINK slave
15+
* Modbus/TCP server
1416

1517
#### Container prerequisites
1618

@@ -66,6 +68,8 @@ The login directs you to the pi user home directory /home/pi with following stru
6668
| PNS_simpleConfig - precompiled and executable PROFINET IO device example
6769
| EIS_simpleConfig - precompiled and executable EtherNet/IP adapter example
6870
| ECS_simpleConfig - precompiled and executable EtherCAT slave example
71+
| PLS_simpleConfig - precompiled and executable POWERLINK slave example
72+
| OMB_simpleConfig - precompiled and executable Modbus/TCP server example
6973
```
7074
##### netX driver installation
7175

@@ -86,6 +90,8 @@ To install a firmware package move to the folder `firmwares` and call
8690
* `dpkg -i netx-docker-pi-pns-3.12.0.2.deb` for PROFINET IO device firmware or
8791
* `dpkg -i netx-docker-pi-eis-2.12.5.0.deb` for EtherNet/IP adapter firmware or
8892
* `dpkg -i netx-docker-pi-ecs-4.7.0.2.deb` for EtherCAT slave firmware
93+
* `dpkg -i netx-docker-pi-pls-3.3.0.0.deb` for POWERLINK slave firmware
94+
* `dpkg -i netx-docker-pi-omb-2.6.0.6.deb` for Modbus/TCP server firmware
8995

9096
Any firmware package extracts its firmware into the folder `/opt/cifx/deviceconfig/FW/channel0`.
9197

@@ -102,6 +108,8 @@ The following executables will be compiled
102108
* `PNS_simpleConfig` as PROFINET IO device demo
103109
* `EIS_simpleConfig` as EtherNet/IP adapter demo
104110
* `ECS_simpleConfig` as EtherCAT slave demo
111+
* `PLS_simpleConfig` as POWERLINK slave demo
112+
* `OMB_simpleConfig` as Modbus/TCP server demo
105113

106114
You may be faced with the following warning during compilation process
107115

@@ -124,6 +132,8 @@ To start the compiled examples call the following executeables in the pi home di
124132
* `sudo ./PNS_simpleConfig` for the PROFINET IO device example
125133
* `sudo ./EIS_simpleConfig` for the EtherNet/IP adapter example
126134
* `sudo ./ECS_simpleConfig` for the EtherCAT slave example
135+
* `sudo ./PLS_simpleConfig` for the POWERLINK slave example
136+
* `sudo ./OMB_simpleConfig` for the Modbus/TCP server example
127137

128138
Each example checks if its corresponding firmware package has been installed properly and loaded into netX, else it will install and load it automatically.
129139

@@ -158,6 +168,8 @@ The protocol specific dependencies are described in the manuals
158168
* `PROFINET_IO-Device_V3.12_Protocol_API_17_EN.pdf` for PROFINET IO device
159169
* `EtherNetIP_Adapter_Protocol_API_19_EN.pdf` for EtherNet/IP adapter
160170
* `EtherCAT Slave V4 Protocol API 09 EN.pdf` for EtherCAT slave
171+
* `POWERLINK Slave V4 Protocol API 09 EN.pdf` for POWERLINK slave
172+
* `OpenModbusTCP Protocol API 10 EN.pdf` for Modbus TCP server
161173

162174
located in the `manuals` folder.
163175

electronic-data-sheets/ModbusTCP/NotNecessary

Whitespace-only changes.

0 commit comments

Comments
 (0)