Loopbackexamplepolling.l5k – Comtrol UP DeviceMaster User Guide User Manual
Page 106

106 -
Chapter 5. Programming the PLC
DeviceMaster UP EtherNet/IP User Guide: 2000424 Rev. L
loopbackExamplePolling.L5K
5.3.5. loopbackExamplePolling.L5K
This example program demonstrates an RSLogix 5000 loopback PLC program using the Polling receive
method. This program configures a DeviceMaster UP 1-port at startup and then loops data through the
loopback plug on the serial port. The Request Data Message transmits and receives the data and increments
the sequence numbers.
You can configure and run the loopbackExamplePolling.L5K program through RSLogix 5000. For additional
information on the RSLogix 5000, see
5.3.7. RSLogix 5000 Screen Examples
1.
Attach a loopback plug to the serial port. (If necessary, see the
DeviceMaster UP Hardware Installation
2.
Open RSLogix 5000.
3.
Import the loopbackExamplePolling.L5K file.
Note: If you have problems loading the PLC program example, see
5.3.8. Modifying an RSLogix 5000 PLC
Program Example (Older Versions)
on Page 114 for a solution.
4.
Modify the PLC program (loopbackExamplePolling.L5K) for your system.
2.3. EtherNet/IP Interface Profile (ControlLogix)
on Page 14 provides a description of the objects in the
PLC program.
Note that this PLC program is configured to run on a ControlLogix 5550 controller Virtual Chassis, so you
may need to make the following changes:
a.
From the Controller Organizer panel, click Controller ComtrolCLX and select Properties.
b.
Click Change Controller, select your PLC controller and revision.
c.
Right-click the I/O Configuration, select New Module, and add your EtherNet/IP interface to the
project.
d.
Double-click MainRoutine under Tasks > MainTask > MainProgram in the Controller Organizer panel and
modify the message communication paths. Click each message and change the communication path
to:
Where
5.
Use one of the following procedures:
For the embedded Web page configuration (recommended): Perform the steps outlined in
Configuring the DeviceMaster UP for the RSLogix 5000 Example Programs Using the Web Page
For the optional PLC Configuration: Enable DoSetConfig on rung one of the example PLC program.
6.
Download the PLC program to your PLC and run the program.