6 sample ladder logic program, 1 function of the sample program – Rockwell Automation RECOMM-ENET EtherNet/IP Communications Module User Manual
Page 67

Using I/O Messaging
6-9
6.6
Sample Ladder Logic Program
The sample ladder logic program works with a ControlLogix
controller and an SP600 drive.
6.6.1 Function of the Sample Program
With this program, you can perform the following actions:
•
Obtain Logic Status information from the drive.
•
Use the Logic Command to control the drive (for example, start).
•
Send a Reference to the drive and receive Feedback from the
drive.
•
Transmit Datalink data to and from the drive.
Table 6.1 – Parameter Settings for the Sample Program
Device
Parameter
Name
Value
Description
SP600 Drive
90
Speed Ref A Sel
22
‘DPI Port 5’ (RECOMM-ENET)
300
Data In A1
140
Points to Par. 140 -(Accel Time 1)
301
Data In A2
142
Points to Par. 142 - (Decel Time 1)
302
Data In B1
100
Points to Par. 100 - (Jog Speed)
303
Data In B2
155
Points to Par. 155 - (Stop Mode A)
304
Data In C1
101
Points to Par. 101 - (Preset Speed 1)
305
Data In C2
102
Points to Par. 102 - (Preset Speed 2)
306
Data In D1
103
Points to Par. 103 - (Preset Speed 3)
307
Data In D2
104
Points to Par. 104 - (Preset Speed 4)
310
Data Out A1
140
Points to Par. 140 - (Accel Time 1)
311
Data Out A2
142
Points to Par. 142 - (Decel Time 1)
312
Data Out B1
100
Points to Par. 100 - (Jog Speed)
313
Data Out B2
155
Points to Par. 155 - (Stop Mode A)
314
Data Out C1
101
Points to Par. 101 - (Preset Speed 1)
315
Data Out C2
102
Points to Par. 102 - (Preset Speed 2)
316
Data Out D1
103
Points to Par. 103 - (Preset Speed 3)
317
Data Out D2
104
Points to Par. 104 - (Preset Speed 4)
04 – 07
IP Addr Cfg 1 – 4 131.200
.130.178
IP Address for the module
RECOMM-
ENET Module
23
DPI I/O Cfg
xxx1 1111
Enables Cmd/Ref, Datalinks A-D
35
M-S Input
xxx1 1111
Configures the I/O Data to be
transferred from the controller on the
network to the drive.
36
M-S Output
xxx1 1111
Configures the I/O Data to be
transferred from the drive to the
controller on the network.