Вы находитесь на странице: 1из 15

MicroLogix 1100 communications via ModBus

to PowerFlex 4/40 drive and EtherNet to V1.2


Page 1of 15 PanelView Plus

This document will describe in detail how to configure and Creation Date:
11/30/2005
program the MicroLogix 1100 for ModBus communications to
a PowerFlex 4/40 drive. This document will also illustrate
communications via EtherNet to a PanelView Plus for control.

Because of the variety of uses for this information, the user of and those responsible for applying this
information must satisfy themselves as to the acceptability of each application and use of the
program. In no event will Rockwell Automation be responsible or liable for indirect or consequential
damages resulting from the use or application of this information.

The illustrations, charts and examples shown in this application note are intended solely to illustrate
the principles of programmable controllers and some of the methods used to apply them. Particularly
because of the many variables and requirements associated with any particular installation, Rockwell
Automation cannot assume responsibility or liability for actual use based upon the illustrations used
and applications.

Rockwell Automation assumes no patent liability with respect to use of information, circuits,
equipment, or software described in this text.

Reproductions of the contents of this application note, in whole or in part, without the express written
consent of Rockwell Automation are prohibited.

Software and Firmware Used


All examples shown were developed using RSLogix 500 v7.0 and RSView Studio v4.0

Document Purpose
This document is not a manual or training material, but an Application Note, which could be
useful in helping a Rockwell Automation customer with configuring and programming
communications via ModBus to a PowerFlex 4/40 drive and via Ethernet to a PanelView Plus.

Intended Audience
This document is to be used by Rockwell Automation employees and customers supporting
and selling the MicroLogix 1100, PowerFlex 4/40 and/or PanelView Plus.

Users are expected to have a through understanding and programming experience with
RSLogix 500 and RSView Studio. This document is not intended for beginning programmers,
many assumptions of knowledge and how to program are made within this document.
MicroLogix 1100 communications via ModBus
to PowerFlex 4/40 drive and EtherNet to V1.2
Page 2of 15 PanelView Plus

System Layout

Ethernet

9300-RADES

FRONT
Ethernet

Locator Pin 1

Pin 4
ModBus
Pin 5
RS485

Connect pin 4 & 5 of RJ45 to Pin


4 & 5 of 1763-NC01
1763-NC01

NOTE: Multi-Drop or Daisy Chaining of devices is permitted. Proper installation and termination of
multi-drop network is required. See specific product documentation for proper installation.
MicroLogix 1100 communications via ModBus
to PowerFlex 4/40 drive and EtherNet to V1.2
Page 3of 15 PanelView Plus

Programming the MicroLogix 1100


NOTE: The RSLogix 500 v7.0 project can be downloaded from the Rockwell Automation Knowledge
database and used as is or edited to fit your exact application needs.

1. Create a new RSLogix 500 application for a MicroLogix 1100.

2. Configure Channel 0 communications for ModBus as shown below.

IMPORTANT NOTE(s):

o The Baud rate and parity of the MicroLogix 1100 must match the Modbus device.

o Use of the 1763-CBL-NC01 device on Channel 0 of the MicroLogix 1100 automatically


converts from RS232 to RS485.

o When making your Protocol Control selection under Control line you must be sure to properly
select “ NO Handshaking (485 Network)” when using the 1761-CBL-NC01 otherwise you may
encounter issues such as MSG instructions generating error codes of 37H.
MicroLogix 1100 communications via ModBus
to PowerFlex 4/40 drive and EtherNet to V1.2
Page 4of 15 PanelView Plus

3. Configure Channel 1 (EtherNet) communications as shown below.

NOTE: If using a MicroLogix 1100 out of the box you must download the program via the RS232
cable (1761-CBL-PM02) or using the BOOTP utility first configure the MicroLogix 1100 for the above
IP address in order to download via EtherNet.
MicroLogix 1100 communications via ModBus
to PowerFlex 4/40 drive and EtherNet to V1.2
Page 5of 15 PanelView Plus
4. Enter the following rungs for Program File : LAD 2 - Main_Prog

5. Create the following subroutine LAD files


a. LAD 3 – LCD
b. LAD 4 – MODBUS
c. LAD 5 – PF4_CNTRL

6. Enter the following ladder logic for LAD 3 – LCD. This subroutine will place onto the LCD
display of the MicroLogix 1100 the actual output frequency of the PowerFlex drive.
MicroLogix 1100 communications via ModBus
to PowerFlex 4/40 drive and EtherNet to V1.2
Page 6of 15 PanelView Plus
7. Enter the following ladder logic for LAD 4 – MODBUS. This subroutine will perform the
ModBus messaging to and from the PowerFlex drive.
MicroLogix 1100 communications via ModBus
to PowerFlex 4/40 drive and EtherNet to V1.2
Page 7of 15 PanelView Plus
8. Configure each of the MSG instructions as shown below. Remember for PowerFlex 4/40
drives you must add a value of “ 1 “ to the ModBus register (MB Data Address) that is listed
in the PowerFlex manual.

MSG Command Word

MSG Speed Reference


MicroLogix 1100 communications via ModBus
to PowerFlex 4/40 drive and EtherNet to V1.2
Page 8of 15 PanelView Plus
MSG Logic Status

MSG Feedback (Output Frequency)


MicroLogix 1100 communications via ModBus
to PowerFlex 4/40 drive and EtherNet to V1.2
Page 9of 15 PanelView Plus
MSG Drive Faults

9. Enter the following ladder logic for LAD 5 – PF4_CNTRL. This ladder links objects on the
PanelView Plus to the ladder logic for control of the PowerFlex drive.
MicroLogix 1100 communications via ModBus
to PowerFlex 4/40 drive and EtherNet to V1.2
Page 10of 15 PanelView Plus

That completes the MicroLogix programming.

Configuring the PanelView Plus EtherNet address.


1. Using the PanelView Terminal configure your PanelView Plus for
the following IP Address and sub-net mask.

IP ADDRESS: 192.168.1.5
SUB-NET MASK: 255.255.255.0
MicroLogix 1100 communications via ModBus
to PowerFlex 4/40 drive and EtherNet to V1.2
Page 11of 15 PanelView Plus

2. Programming the PanelView Plus


NOTE: The following is a good example of a typical control screen for a drive. There are many
objects contained in this screen. We will highlight the creation of just a few. The RSView Studio
application back-up file can be downloaded from the Rockwell Automation Knowledge database and
used as is or edited to fit your exact application needs.

1. Create a new PanelView Plus application For this example a PanelView Plus 700 will be used.

2. Configure RSLinx Enterprise for communications to the MicroLogix 1100. If you have the
MicroLogix 1100 connect it to the Ethernet switch along with your computer, this will allow you to
browse directly to the controller. If you do not have the controller connected to your computer
then you will need to manually add the MicroLogix 1100.

3. Locate the RSLinx Enterprise branch on your project tree and double-click on the
“Communications Setup”.

4. Under shortcuts click “Add” and enter the shortcut name “Micro1”
MicroLogix 1100 communications via ModBus
to PowerFlex 4/40 drive and EtherNet to V1.2
Page 12of 15 PanelView Plus
5. Click on “Ethernet,Ethernet” under the local tab. If connected and properly configured the
MicroLogix 1100 will appear. Again if you do not have the controller you will need to manually add
the device. This can be done by Right-Clicking on “Ethernet,Ethernet”.

6. Now click “Copy” to copy this configuration to the “Target” tab. The “Target” configuration is what
the PanelView Plus will use for communications when the project is downloaded to the device.

7. Click “OK” and accept the RSLinx Enterprise configuration changes.

8. Now create a new display screen

9. Add a “Close Screen” button. This will close the running application and allow you to return to the
terminal configuration screen. Normally this button may be hidden behind a graphic or placed on
a maintenance screen so only authorized users can actually close the running application.
MicroLogix 1100 communications via ModBus
to PowerFlex 4/40 drive and EtherNet to V1.2
Page 13of 15 PanelView Plus
10. Now add a momentary “Start” button to allow for starting the PowerFlex Drive.

11. Configure this button State 0 caption to read “Start” and change the back color to green.

12. Click on the connections tab and enter the following path to the MicroLogix 1100.

(Note: In the CPR9 release of RSView, browsing directly to the MicroLogix 1100 for addresses will be available)

The Value,Tag/Expression = {::[micro1]b23:0/0}

13. Add additional Momentary Push Buttons for STOP, JOG, FORWARD, REVERSE using the
Connections paths shown below.

a. STOP = {::[micro1]b23:0/1}
b. FORWARD = {::[micro1]b23:0/3}
c. REVERSE = {::[micro1]b23:0/2}
d. JOG = {::[micro1]b23:0/4}
MicroLogix 1100 communications via ModBus
to PowerFlex 4/40 drive and EtherNet to V1.2
Page 14of 15 PanelView Plus
14. Add a Trend object to trend the output frequency of the PowerFlex drive as shown below.

15. Double-Click on the object and open the connections tab. Enter the following path for the
PowerFlex output frequency. {::[micro1}N12:3}

16. There are several ways to show drive faults. Here is just one possible way. Create a Text Object
and enter the text “Communications Loss”.

17. Now right-click on the Text Object and select visibility as shown below.
MicroLogix 1100 communications via ModBus
to PowerFlex 4/40 drive and EtherNet to V1.2
Page 15of 15 PanelView Plus
18. Enter the path to the MicroLogix 1100 and the Data Table address of the MicroLogix that contains
the Drives Fault code. Include the fault code number for a “Communications Loss” fault in the
PowerFlex Drive as shown below.

Additional Text Objects can be added and placed directly one on top of the other for each PowerFlex
fault you wish to display. Only when a fault is present in the drive will the Text Object actually be
displayed.

In the RSView Studio application include on the Rockwell Automation Knowledge Database other
areas of the screen also show some techniques used to build advanced screens.

Examine how the Commanded Speed is being displayed and how the Increase and Decrease buttons
are connected back to the speed control of the PowerFlex drive.

Examine the LEDs and Display of the PowerFlex drive. Each LED as well as the Display of the
PowerFlex has been over-laid with objects to exactly imitate how the real PowerFlex display will look
when viewed in the mounting enclosure/panel.