1 sample controllogix ladder logic program – Rockwell Automation RECOMM-DNET DeviceNet Adapter for use with DPI AC Drives User Manual
Page 61

Using I/O Messaging
6-7
6.6.1 Sample ControlLogix Ladder Logic Program
Table 6.1 – Tags for the Sample ControlLogix 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
Figure 6.3 – Sample ControlLogix Ladder Logic Program
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.