Document toolboxDocument toolbox

Commissioning RevPi Gate EtherNet/IP with CODESYS

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 (+, S, 4)

Please connect your devices as shown in the illustration below

Preparation

Follow the steps of the following checklists

https://revolutionpi.com/en/tutorials/revpi-connect-installieren/wlan-und-bluetooth-einrichten

Create the CODESYS Project

Note

  • The older version 1.2.1.0 is used here, as CODESYS version 3.5 SP17 is used.

  • If SP18 is used, the latest version 1.3.0.0 must be selected.

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;