/
EtherNet/IP Scanner PLC - CODESYS

EtherNet/IP Scanner PLC - CODESYS

The CODESYS software from CODESYS Group is a powerful and simple-to-use choice for running PLC software without special hardware requirements. Therefore, it can be easily used for establishing a network communication to GOAL network stacks.

Requirements

  • GOAL DUT (device under test)

  • CODESYS Group V3.5 SP16 Patch 4 or later

  • Windows PC

Initial Setup and configuration

  • Run CODESYS Control Win V3 - x64 SysTray and choose Run PLC from the System Tray menu

  • Run CODESYS Control Win V3 - x64 and choose Run Gateway from the System Tray menu

  • The red element on the symbol signs active software.

Gateway and PLC in RUN mode
  • make sure both your PC and the DUT have an IP Address that belong to the same subnet

Creating a CODESYS project

  • start CODESYS

  • click File → New Project

  • select Projects → Empty Project

  • choose a name for your project

  • click Button OK

  • choose Tools->Device Repositority… and Install (1) the EDS file of the appropriate sample application.
    It can be found in the directory appl/goal_eip/*/*.eds.
    Afterwards, it is available in the list of Installed Device Descriptions (2)

    eds_import.png

     

  • close the dialoge

  • in the Device Window right click the project name and select “Add Device

  • select PLCs → CODESYS Control Win V3 x64 and add the device

  • choose device configuration (1) and Scan Network (2) for detecting the local PLC (3) after confirming the controller by OK, the state switches from grey to green (4)
    You might need to create a User account for the PLC and assign a Password. Please remember your credentials.

  • right click CODESYS Control Win V3 x64 and select “Add Device“

  • select Fieldbuses → EtherNet/IP → Ethernet Adapter → Ethernet and click button “Add Device“

  • double click the new device (1) and select the appropriate interface of your PC (2)
    (Note: the interface needs an active link to show the correct IP Address)

  • right click Ethernet and select Add Device

  • choose Fieldbuses → EtherNet/IP → EtherNet/IP IP Scanner

  • right click Ethernet_IP_Scanner and select Add Device

  • add the DUT

  • double click the new device and adjust its IP address

  • in the section “Connections“ you can add and configure the Implicit connections supported by the DUT
    By default the connection “Exclusive Owner“ is active

  • in the section “EtherNet/IP IO Mapping“ you can see the process data of the configured connection.
    In order to see the actual values you have to set the option “Always Update Variables“ to “Enabled“

Running PLC software

  • Build (1) the PLC software and Login (2) afterwards.

  • Confirm requests about performing a download resp. Login with download if PLC program is already running.

  • Start the PLC by pressing the Play Button next to the Log In Button