You are on page 1of 9

Setting up communications from a MicroLogix to a PowerFlex 40 via Ethernet

This document details how to control a PowerFlex 40 drive over Ethernet using a
MicroLogix processor.

1. Devices used
2. Setting up the Network
3. Setting up the PC
4. Setting up the PowerFlex 40
5. Setting up the 1761-NET-ENI
6. Setting up MSG’s
1. Devices used
These were the materials used in the set up:
 PowerFlex 40 (22B-D2P3N104 Series A Firmware 1.01)
 PowerFlex 40 Ethernet/IP Adapter (22-COMM-E Series A Firmware 1.004)
 DF1 to Ethernet/IP converter (1761-NET-ENI Series B)
 8pin mini din to 8 pin mini din cable (1761-CBL-AM00 Series C)
 MicroLogix 1500 (1764-LRP Series C Firmware 11 with 1764-24BWA base)
 Ethernet Cables / Switch
 Laptop
 9pin Dshell to 8 pin mini din crossover cable (1761-CBL-PM02 Series C)
 RSLogix 500 Pro Version 7.00.00

2. Setting up the Network

1761-CBL-AM00

1761-CBL-PM02
for setting up the
ENI only
3. Setting up the PC
Right click on the network Icon for your Local Area Network in the bottom right hand
corner of the screen, and follow these steps to set your Computers IP address.
Click Properties

Select “Internet Protocol (TCP/IP) and press properties.

Type in the IP address for your computer. This should be an unused address on your
Ethernet network
4. Setting up the PowerFlex 40
Drive Paramaters
Using the HIM, you might want to set P036 [Start Source] = 5 “Comm Port” and P038
[Speed Reference] = 5 “Comm Port” to allow the MicroLogix to Start the drive, and
control the speed.
This however can be done from the MicroLogix.

Drive IP Address VIA BOOTP


Straight out of the box the 22-COMM-E should be set for bootp.
Run BOOTP-DHCP Server from the “Start\All Programs\Rockwell Software\BOOTP-
DHCP Server” directory.
If this is the first time using the software, you will have to set Network Settings. The
only thing required is the Subnet mask.

If set up for BOOTP the 22-COMM-E will be broadcasting BOOTP requests. These
requests can be seen in the “Request History”.
Select on of the requests, and press the Add to Relation List button.
A box will pop up allowing you to enter the IP address of the drive. Again use an IP
address not already in use.

You should then see the entry in the relation list as below. If you want the Drive to retain
this IP address permanently, then select the “Disable BOOTP/DHCP” button. Otherwise
the Drive will lose it’s IP address on Power Cycle.
5. Setting up the ENI
Connect the 1761-CBL-PM02 from your computer’s comm. Port to the ENI’s 8 pin mini
DIN port. Start up the ENI utility.
Configure your COM port number from the utilities tab.

Go to the ENI IP Addr tab, and select Load from ENI


Set the IP address and subnet mask
Disable BOOTP

Go to the Message Routing tab and configure one of the nodes to be the IP address of the
Drive
Select Save To ENI ROM to write this data to the ENI

The ENI is now configured and can be plugged back into the MicroLogix
6. Setting up MSG’s
Page C-17 to Page C-20 of the 22-COMM-E user manual contains all the N files we can
reference in our MSG instructions from the MicroLogix.
Appendix D of the 22-COMM-E user manual details the Logic Command and
Logic Status words.
This example reads and writes some of the drive parameters and also the Control
I/O messages.

The S:1/15 bit will trigger the messages that you wish to send to initialize the drive.
S:1/15 is true for the first scan of the program.
MG10:5 sets the timeout value for the 22-COMM-E.
This register (N42:3) must be set to a non zero value in order to use the Logic
command words. If the adapter does not receive a message in the specified time, it
performs the fault action configured in its [Comm Flt Action] parameter.
MG10:4 and MG10:6 set up parameters in the drive needed for MicroLogix Control
of the drive. These values could however be set from the Drive’s HIM.
Communicating with a 22-COMM-C
This rung initiates the adapter so we can communicate with it
It:
- Sets paramater 36 to a value of 5, allowing the MicroLogix to initiate start commands
- Sets the message interval timout in seconds to the value in N7:5.
- Sets paramater 38 to a value of 5, allowing the MicroLogix to provide speed references
First Pass START_SOURCE
S:1/15 MOV
0000 Move
Source 5
5<
Dest N9:36
5<

Writes N9:36 to
paramter 36 "start
source"
START_SOURCE_MSG
MSG
Read/Write Message EN
MSG File MG10:4 DN
SetupSetup
Screen
Screen< ER

Writes N7:5 into


message
timeout (seconds)
word of 22-COMM-E
TIMEOUT_WRITE_MSG
MSG
Read/Write Message EN
MSG File MG10:5 DN
SetupSetup
Screen
Screen< ER

SPEED_REFERENCE
MOV
Move
Source 5
5<
Dest N9:38
5<

Writes N9:38 to
paramter 38 "speed
reference source"
SPEED_REFERENCE_MSG
MSG
Read/Write Message EN
MSG File MG10:6 DN
SetupSetup
Screen
Screen< ER
This is the setup to write to parameter 36 of the drive.
N10:xxx is the register corresponding to parameter xxx in the drive.
You can read or write these parameters.

The remaining messages read or write the Logic Command / Logic Status / Reference /
Feedback for the drive.
They are set to be triggered every time the INTERVAL_TIMER is done. I have also set
them so that multiple instances of the message can’t be triggered at once (using the
message’s /EN bit). This prevents the communications locking up due to message
overflows.
The next four rungs transmit the Logic command, Logic status, Speed Reference and Speed Feedback
These values are placed in N7:0, N7:1, N7:2, N7:3 respectively
writes N7:0 to the
logic command word
INTERVAL_TIMER/DN LOGIC_COMMAND/EN LOGIC_COMMAND
T4:0/DN MG10:0/EN MSG
0002 Read/Write Message EN
MSG File MG10:0 DN
SetupSetup
Screen
Screen< ER
Logic command message set up.
Note that we are messaging to node 2, as set up in the routing table of the ENI.

Here is the example project used.

Ml22come.rss

You might also like