The example is prepared to run on an Allen-Bradley CompactLogix 5370 controller communicating with an EtherNet/IP Adapter implementing a General Purpose Discrete I/O Device profile running on a Texas Instruments LP-AM261 LaunchPad™ development kit.
Both Explicit and Implicit messaging are demonstrated in the example.
Allen-Bradley CompactLogix 5370, model 1769-L16ER, controller is programmed using Studio 5000 development environment.
To add a different EDS file that is not listed in the known EDS files click on "Tools → Device Description Installation Tool".
The project is created in Structured Text and divided into three routines that are run from the main routine and triggerred by a timer every 100 milliseconds.
The subroutines are:
Please make sure to enable the Time Synchronization in controller properties, as can be seen in the picture below:


The program employs a simple counter mechanism that increments from 0 to 15 before resetting to 0 and repeating the cycle.
Each bit within the payload byte corresponds to a specific Discrete Output Point. As the counter value changes, the binary representation in the payload updates accordingly, creating visible patterns across the LEDs.

Verify the the hardware swith on the PLC (RUN/REM/PROG) is set into REM position. To download the example to the PLC, from dropdown menu click "Download".

After downloading if you are not automatically prompted to move to "Rem Run", from the dropdown menu click "Run Mode".

When online, you can observe these Implicit messages changes from Controller Tags on the left menu bar. In this example we can specifically observe "AM261x_LP_DiscreteIO:O.Data[0]" and "AM261x_LP_DiscreteIO:I.Data[0]" changing.
