Rockwell Automation 1769-ADN Compact I/O 1769-ADN DeviceNet Adapter User Manual

Page 131

Advertising
background image

Publication 1769-UM001B-EN-P - October 2002

Application Examples 6-19

DINT 1:O.CommandRegister is used for control information to the
scanner. Bit 1:O.CommandRegister.RUN is the RUN/IDLE bit which
must be set to a logical 1 to place the 1756-DNB into the Run mode
when the controller is in the Run mode. 1:O.Data.0 is the first actual
output address. There is no offset for the output data as there was for
input data.

Note that words 1:O.Data.0 through 1:O.Data.4L are mapped. These
4.5 DINTs correspond to the 18 bytes we entered into the 1756-DNB
scanner’s scanlist/Edit I/O Parameters screen (which originally came
from the 1769-ADN adapter’s Summary screen). Choose the Summary
tab to view a summary of the mapped I/O data.

Choose Apply. Choose Yes to download your configuration to the
1756-DNB.

You have successfully configured your 1756-DNB scanner to
exchange I/O data with your 1769-ADN adapter.

Accessing the I/O Data from
the 1769-ADN in the
Logix5550 Controller

Start your RSLogix 5000 Programming Software. Create a minimal
program that includes configuring the I/O with the 1756-DNB in slot 1
of the controller chassis as described in Configuring the Logix5550TM
Controller System on page 6-12.

Add a single ladder rung to the MainRoutine: an unconditional rung
with an OTE addressed to 1:O.CommandRegister.RUN. This is the
RUN/IDLE bit for the 1756-DNB. When the Logix5550 controller is
placed into the RUN mode, the 1756-DNB will also then be placed
into the RUN mode. Save and download the program to the Logix5550
controller.

Place the controller into the RUN mode and follow the I/O maps
below to determine where each input module’s data will reside as
well as which output word(s) are for each output module. Use the
Controller Tags screen in the programming software to experiment
with viewing inputs and manipulating outputs, until you are
comfortable enough with the I/O mapping to write your Logix 5550
controller program.

Advertising