Controllogix example, Controllogix example -17, Figure 6.14 – Rockwell Automation 160-DN2 160-DN2 DeviceNet Communication Module FRN 3.xx User Manual

Page 55: Using i/o messaging (continued)

Advertising
background image

Publication 0160-5.18 - June 2003

Using 160-DN2 with DeviceNet Scanner

6-17

Using I/O Messaging (Continued)

ControlLogix Example

Figure 6.14
Example ControlLogix Ladder Logic Program

Table 6.C Tags for the Example Program

Tag Name

Type

Tag Name

Type

Local:1:I

DINT[]

DriveFeedback

INT

Local:1:O

DINT[]

DriveInputImage

INT[2]

DriveCommandClearFault

BOOL

DriveOutputImage

INT[2]

DriveCommandJog

BOOL

DriveReference

INT

DriveCommandStart

BOOL

DriveStatusFaulted

BOOL

DriveCommandStop

BOOL

DriveStatusRunning

BOOL

0

Local:1:O.CommandRegister.Run

1

Copy File
Source Local:1:I.Data[0]
Dest DriveInputImage[0]
Length

2

COP

2

DriveInputImage[0].1

DriveStatusRunning

3

DriveInputImage[0].7

DriveStatusFaulted

4

Copy File
Source DriveInputImage[1]
Dest

DriveFeedback

Length

1

COP

5

DriveCommandStart

DriveOutputImage[0].1

6

DriveCommandStop

DriveOutputImage[0].0

7

DriveCommandJog

DriveOutputImage[0].2

This rung enables the DeviceNet scanner.

This rung copies the 32-bit DeviceNet scanner input image into
an array of two 16-bit words. The length in this instruction is two
because two 16-bit array elements of the destination are used.

These rungs read the Running and Faulted status bits from the
input image of the drive and place the data in respective tags.

This rung reads the drive’s Feedback word and places it in
the Feedback tag.

These rungs move the inputs of the operator from the
operator station to the drive’s output image.

Advertising