9 sample controllogix ladder logic program – Rockwell Automation RECOMM-ENET EtherNet/IP Communications Module User Manual
Page 70

6-12
EtherNet/IP Communications Module
6.9
Sample ControlLogix Ladder Logic
Program
Figure 6.7 – Sample ControlLogix Ladder Logic Program for I/O Messaging
0
S600
Logic Status
Word
bit 01 (ACTIVE)
SP600:I.Data[2].1
DriveStatusRunning
1
SP600
Logic Status
Word
bit 07 (FAULT)
SP600:I.Data[2].7
DriveStatusFaulted
2
Copy File
Source
SP600:I.Data[3]
Dest
DriveFeedback
Length
1
COP
SP600
Speed Feedback
3
DriveCommandStop
SP600
Logic Command
bit 00 (STOP)
SP600:O.Data[0].0
4
DriveCommandStart
SP600
Logic Command
bit 01 (START)
SP600:O.Data[0].1
5
DriveCommandJog
SP600
Logic Command
bit 02 (JOG)
SP600:O.Data[0].2
6
DriveCommandClearFault
SP600
Logic Command
bit 03
(CLEAR FAULTS)
SP600:O.Data[0].3
Transfer Speed Reference data to the SP600 drive.
7
Copy File
Source
DriveReference
Dest
SP600:O.Data[1]
Length
1
COP
SP600
Reference
Read Datalink A-D data from the SP600 drive (Data Out A1 - Data Out D2).
8
Copy File
Source
SP600:I.Data[4]
Dest
DatalinkDataFromDrive[0]
Length
8
COP
SP600
Datalink A1 Out