Here you will find a technical description of how to configure the KUNBUS gateway Ethernet/IP with Codesys.
System overview
these devices have been used for this application note
KUNBUS Gateway EtherNet/IP
Revolution PI Core 3 / 3+ / S or Connect / + / SE
please connect your devices as shown in the illsutration below
Preparation
Please follow the instructions of the checklists:
follow the checklist below
install Packages on Codesys IDE
Install runtime on the Revolution Pi Connect
1 hour test lizence.
optional: install codesys lizence
Set ETH 1 with a static IP 192.168.1.100
#sudo nano /etc/dhcpcd.conf
# Example static IP configuration: interface eth1 static ip_address=192.168.1.100/24
install KUNBUS EtherNet/IP EDS file into Codesys IDE
Download the necessary ESI file → KUNBUS Gateway EtherNet/IP | EDS file
Create a Codesys Project
Create Project
Implementation
PROGRAM PLC_PRG VAR status: BYTE; res1: BYTE; res2: BYTE; END_VAR
Output_EthernetIP_GW:=33; Output_EthernetIP_Exclusive:=44; res1:=Input_EthernetIP_GW; res2:=Input_EthernetIP_Exclusive;