Using reference/feedback, Example ladder logic programs, Example ladder logic programs 5-3 – Rockwell Automation 22-COMM-D DeviceNet Adapter User Manual

Page 47

Advertising
background image

Using I/O Messaging

5-3

When enabled, Reference/Feedback begins at word 1 in the I/O image.
The Reference (16 bits) is produced by the controller and consumed by
the adapter. The Feedback (16 bits) is produced by the adapter and
consumed by the controller.

These example ladder logic programs (

Figure 5.3

Figure 5.6

) work

with PowerFlex 40 drives.

Functions of the Example Programs

The example programs enable an operator to perform the following
actions:

• Obtain status information from the drive.
• Use the Logic Command to control the drive (for example, start,

stop).

• Send a Reference to the drive.

Adapter Settings for the Example Programs

• Node address 1 is set using the switches.
• The adapter is configured for Single drive mode (mode jumper is set

to “Single”).

• Polled I/O was enabled during the scanner configuration.

Scanner Settings for the Example Programs

• The scanner is node 0 on the DeviceNet network.
• The scanner is in slot 1.
• The adapter I/O is mapped in word 0 and word 1.
• Data files, when used, are pointed out in the examples.

Using Reference/Feedback

Size

Valid Values

In I/O Image

Example

16-bit

-32768 to 32767

Word 1

Figure 5.1

Example Ladder Logic Programs

Advertising