Position Control Via HMI Connected Components Building Block
Position Control Via HMI Connected Components Building Block
Quick Start
Important User Information
Solid state equipment has operational characteristics differing from those of electromechanical equipment. Safety Guidelines
for the Application, Installation and Maintenance of Solid State Controls (publication SGI-1.1 available from your local
Rockwell Automation sales office or online at http://literature.rockwellautomation.com) describes some important differences
between solid state equipment and hard-wired electromechanical devices. Because of this difference, and also because of the
wide variety of uses for solid state equipment, all persons responsible for applying this equipment must satisfy themselves
that each intended application of this equipment is acceptable.
In no event will Rockwell Automation, Inc. be responsible or liable for indirect or consequential damages resulting from the
use or application of this equipment.
The examples and diagrams in this manual are included solely for illustrative purposes. Because of the many variables and
requirements associated with any particular installation, Rockwell Automation, Inc. cannot assume responsibility or liability
for actual use based on the examples and diagrams.
No patent liability is assumed by Rockwell Automation, Inc. with respect to use of information, circuits, equipment, or
software described in this manual.
Reproduction of the contents of this manual, in whole or in part, without written permission of Rockwell Automation, Inc., is
prohibited.
Throughout this manual, when necessary, we use notes to make you aware of safety considerations.
Identifies information about practices or circumstances that can cause an explosion in a hazardous environment, which may
WARNING
lead to personal injury or death, property damage, or economic loss.
IMPORTANT Identifies information that is critical for successful application and understanding of the product.
Identifies information about practices or circumstances that can lead to personal injury or death, property damage, or economic
ATTENTION
loss. Attentions help you identify a hazard, avoid a hazard, and recognize the consequence.
SHOCK HAZARD Labels may be on or inside the equipment, for example, a drive or motor, to alert people that dangerous voltage may be present.
BURN HAZARD Labels may be on or inside the equipment, for example, a drive or motor, to alert people that surfaces may reach dangerous
temperatures.
Allen-Bradley, MicroLogix, PanelView, PanelView™ Component, PowerFlex, PowerFlex 40P, TechConnect, and Rockwell Automation are trademarks of Rockwell Automation, Inc.
Trademarks not belonging to Rockwell Automation are property of their respective companies.
Where to Start
Follow the path below to complete your Position Control via HMI application.
Connected Components
Building Blocks, publication
CC-QS001
A/C+
Notes:
Preface
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Conventions Used in This Manual . . . . . . . . . . . . . . . . . . . . 9
Additional Resources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Chapter 1
PowerFlex 40P Drive Integration Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Before You Begin . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
What You Need. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Follow These Steps . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Download Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Test the Drive . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Change Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Reconnect to Network . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Chapter 2
System Validation and Application Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Tips Before You Begin . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
What You Need. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Follow These Steps . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Verify Connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Configure and Validate PVc Terminal to PowerFlex 40P Drive
Communication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
Network Overview Screen Functionality . . . . . . . . . . . . . . . . 21
Option Screen Functionality . . . . . . . . . . . . . . . . . . . . . . . . . 23
Velocity Control Functionality . . . . . . . . . . . . . . . . . . . . . . . 24
Verify the Velocity Control Functionality. . . . . . . . . . . . . . . . 25
Adjust the Speed . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
Position Control Functionality . . . . . . . . . . . . . . . . . . . . . . . 26
Verify the Position Control Functionality . . . . . . . . . . . . . . . . 27
Verify the Hold and Restart Functionality . . . . . . . . . . . . . . . 27
Verifying Homing the Position System (Optional) . . . . . . . . . 28
Verify the Fault Condition Look-up Display . . . . . . . . . . . . . 29
Understanding the PVc Modbus Master Configuration . . . . . . 30
Multiple Drive Configuration . . . . . . . . . . . . . . . . . . . . . . . . 32
Configuring a Second Drive . . . . . . . . . . . . . . . . . . . . . . 32
Configuring Additional Drives . . . . . . . . . . . . . . . . . . . . 33
Notes:
Introduction This Position Control via HMI Connected Components Building Block
Quick Start is designed to provide a way to implement a connected
component for position control. Although this may appear similar to
the Position Control Connected Components Building Block Quick
Start, publication CC-QS003, which uses a MicroLogix controller, there
are several differences when connecting directly to the PanelView
Component terminal.
The drive has many configurable parameters, but only a few have
been modified in this simple positioning building block example. In
fact, it uses the same parameter configuration as the Position Control
Connected Components Building Block Quick Start, which uses a
MicroLogix controller, except that E249 is set to 'Position' and E216 is
set to ‘Quad Check’.
This Quick Start provides you with control of a one- and two-axis
system via the PanelView Component terminal without a MicroLogix
controller. To make this implementation smooth, files for both one-
axis and two-axis control are provided on the Connected Component
Building Blocks Overview CD, publication CC-QR001. Follow the
steps in Chapter 1 and Chapter 2 to complete the one-axis system first.
Then follow the steps in Multiple Drive Configuration on page 32 if
you want to complete a two-axis system. To add additional drives,
you must modify your PanelView Component application.
• Before You Begin - This section lists the steps that must be
completed and decisions that must be made before starting that
chapter. The chapters in this quick start do not have to be
completed in the order in which they appear, but this section
defines the minimum amount of preparation required before
completing the current chapter.
• What You Need - This section lists the tools that are required to
complete the steps in the current chapter. This includes, but is
not limited to, hardware and software.
• Follow These Steps - This illustrates the steps in the current
chapter and identifies which steps are required to complete the
examples.
Additional Resources
Resource Description
Connected Components Building Blocks Quick Start, Provides information on how to select products and gain access to panel and wiring
publication CC-QS001 information.
Connected Component Building Blocks Overview Provides files for the Connected Component Building Blocks.
CD, publication CC-QR001
PanelView Component Operator Terminals User Provides information on using the PanelView Component HMI Terminals.
Manual, publication 2711C-UM001
PowerFlex 40P User Manual, publication 22D- Provides information on installing the PowerFlex 40P Adjustable Frequency AC Drive
UM001 including wiring and parameter setup.
1203-USB Converter User Manual DRIVES-UM001 Provides information on communicating between a computer and Allen-Bradley
DPI/DSI/Scanport devices.
AIC+ Advanced Interface Converter User Manual, Provides information on using the 1761-NET-AIC.
publication 1761-UM004
Bulletin 842 Encoder Accessories, publication 845- Provides descriptions and specifications for accessories for encoders.
CA500
Allen-Bradley Control Matched Motor Catalog, Provides information on factors important to the proper selection, use, and service
publication RAPS-CA001 of motors and their components and accessories.
http://www.ab.com/drives/driveexplorer Provides access to DriveExplorerLite software.
http://www.ab.com Provides access to the Allen-Bradley website.
http://www.rockwellautomation.com/ Provides access to self-service support.
knowledgebase
http://www.rockwellautomation.com/components/ Provides access to the Connected Components website.
connected
Introduction
This chapter explains how to download parameters to and test a PowerFlex 40P drive with
simple-position logic control created in the StepLogic Setup Position Wizard within DriveExplorer
software.
This application example simulates a smart position sequence using an encoder where position,
logic, and dwell time at position depend on the operations being performed on the motor shaft.
USB Cable
1203-USB
Converter
Module
Personal Computer
22-HIM-H10 Cable
Download Parameters,
page 13
Change Configuration,
page 15
Reconnect to Network,
page 15
Download Parameters
1. Disconnect the network cable connected to the RJ45 port on the PowerFlex 40P drive.
2. Connect your personal computer to the RJ45 port on the PowerFlex 40P drive using the 1203-
USB Converter Module.
6. Select Serial.
7. Select COM x.
9. Click OK.
11. Download the default parameters set from the file provided on the Connected Components
Building Blocks Overview CD, publication CC-QR001.
1. Click Start.
• If after five seconds, the drive does not fault, click Stop. Skip to Change Configuration.
• If F091 flashes on the drive denoting Encoder Loss, perform the following steps.
a. Verify all encoder connections are secure or swap channel inputs since Parameter 1:0.216
is configured for ‘Quad Check’.
b. Choose Explore>Device Properties.
c. Click the Faults tab.
d. Select Clear Faults.
e. Click Yes.
f. Click Close.
Change Configuration
1. In the left column, select Parameter List.
2. Click in the white space in the right column, but do not click on any parameter.
4. In the 127 - Autotune window, in the Value drop-down list, select Rotate Tune.
5. Click OK.
8. After the Autotune function has completed, verify that the Value for parameter 1:0.127
Autotune has returned to Ready/Idle.
9. (Optional) Save all the configuration changes to your personal computer for future reference.
Reconnect to Network
1. Disconnect the 1203-USB Converter Module from the PowerFlex 40P drive.
2. Reconnect the network cable, which was disconnected in Download Parameters, to the RJ45
port on the PowerFlex 40P drive.
3. Cycle power to the drive to accept the new node address in the parameter file that was
downloaded.
Additional Resources
Refer to page 10 for a listing of product and information resources.
Introduction
In this chapter, you validate that communication is occurring as intended between the PanelView
Component (PVc) terminal and the PowerFlex 40P drive.
This is a complete Modbus configuration. The PVc terminal is the Modbus master. No other
network protocol can be configured at the same time.
Start
(1) When using 12V Encoder power, 24V I/O power, maximum output current at
2711C-T6C I/O Terminal 11 is 60 mA.
1761-NET-AIC
AK-U0-RJ45-TB2P
120 ohm
1/4 Watt
Resistor
19
Chapter 2 System Validation and Application Tips
If your application has multiple drives, you should perform the same steps for each subsequent
drive. Refer to Multiple Drive Configuration, page 32.
Follow the steps in the next sections to verify or change the settings.
This 6-inch color touchscreen PanelView Component (PVc) terminal communicates with the
PowerFlex 40P drive via the 1761-NET-AIC RS232 to 485 network. The PVc application reads from
and writes to the address of the PowerFlex 40P drive directly via tags created in the PVc
application.
3. Click OK.
c. After the application is finished loading, disconnect the Ethernet cable from the PVc
terminal.
You may eject the Connected Component Building Blocks Quick Start CD now.
The object on the left side of the screen is a status indicator. This provides the state of the drive
via the Logic Status word. Within the object for this indicator is a second status indicator used to
display if the drive is running or stopped. So the following combinations can occur:
TIP For diagnostic information on faults, refer to step 2 in Verify the Fault Condition Look-up
Display, page 29, for information on how to identify Fault Type, Description, and
Actions.
Any objects in the center of the screen above the Start and Stop buttons are GoTo buttons which
take you to additional functions for that axis.
The object on the right side of the screen displays the commanded mode: Position or Velocity.
If communication is broken when the PVc application is running, the Ready status indicator
objects will be replaced by X marks and there will be a yellow banner message similar to the
illustration below. This indicates the PVc application is not able to communicate with the network
at the configured Modbus address. To correct this communication error, resolve the wiring
connection issue. When you re-establish communication, the Ready status objects return to
normal status. Then press OK on all instances of the banner until they are all closed.
Error
Banner
Communication
Broken
TIP During a communication loss, the drive’s fault code F081 [Comm Loss] will never appear on the
screen above and neither will the CLR Fault object button. The PVc terminal can only read from a
connected device. If communication is lost, the read function is lost. When communication is
reestablished, the fault is cleared automatically.
This is a three-wire control function. Pressing the Start button enables all drives connected and in
a ready state to start at once. Pressing the Stop button stops all drives and also clears applicable
faults.
You can execute a broadcast Start and Stop from the Network Overview screen also.
TIP Before starting, verify which mode and associated position your drive is in, to make sure it is safe.
The button in the top-right corner of the Network Overview screen lets you enter the PVc
File Manager screen. Your application will continue to run. To re-enter the Network Overview
screen, press Run on the File Manager screen.
IMPORTANT We recommend that the broadcast Stop be issued before proceeding with any deliberate action to
enter the File Manager screen. To eliminate the option to enter the File Manager screen, you can
remove the X button GoTo object from the Network Overview screen in your final application.
To access the Control functionality, press the Axis #1 button on the Network Overview screen.
Upon entering this screen, you may notice a flashing caution message displayed on the lower
portion of the screen. This only appears if the drive is active. Because of the design of the PVc
terminal, all buttons for both Position and Velocity functions are visible and available at all times
on this screen. At any time, it is possible to change the mode (Position or Velocity), but doing so
while the motor is running is not recommended. The caution message is provided to notify you
to prevent unwanted changes to your process. This screen is the only place where this caution is
needed because this screen is the only one with the capability to change the mode.
Pressing the button in the top-right corner of the Axis #1 Option Screen takes you back to
the previous screen.
This screen also displays the current status of that specific drive as follows.
The drive provides these values to the PVc terminal as integer values, so the text ‘x100’ and
‘x10’ are shown to help clarify the value. (So, for example, 6000 Hz is actually 60.00 Hz.)
The Hz Ref display is also a numeric entry button. Refer to Adjust the Speed, page 25. When
you press this button, a numeric keypad is displayed to let you enter a new reference
frequency. This value is an integer. So, for example, entering 3520 is actually 35.20 Hz to the
drive. Only the Velocity screen has this numeric keypad function.
1. Press Forward and then Reverse. Using the built-in display, verify that the drive is switching
between these two states as indicated by a green status indicator. The text object identifies
the actual state. If the drive is not switching between forward and reverse, go back to Verify
Connections on page 19 and Configure and Validate PVc Terminal to PowerFlex 40P Drive
Communication on page 20 to verify there is communication to this drive.
2. With the motor disconnected from the load (open shaft), test the jog function by pressing
and holding Jog. The drive will ramp up to the 10 Hz (default) Jog frequency.
4. Press Start. The drive should accelerate up to the reference frequency displayed in Hz Ref.
5. Press the reference frequency button (Hz Ref) and enter a new reference frequency. The
drive accepts the new reference frequency and the Hz Ref value updates to the new value.
3. Press Enter.
This screen also displays the current status of that specific drive as follows.
The drive provides these values to the PVc terminal as integer values, so the text ‘x100’ and
‘x10’ are shown to help clarify the values. (So, for example, 3000 Hz is actually 30.00 Hz.)
4. Press Start.
6. Press Lgc2 Enable within five seconds of pressing Lgc1 Enable. The drive jumps to step 7
(end sequence) and the drive stops and resets to step 0.
If you do not press Lgc2 Enable within five seconds of pressing Lgc1 Enable, the drive goes
to step 0 and repeats.
1. Press Start.
2. Press HOLD.
The button displays ‘HOLDING’ while flashing. This is a maintain function button.
3. Press HOLDING.
The drive releases the hold bit and resumes to the next step.
4. Press Stop.
The HOME button displays Homing while flashing. This is a maintain function button.
2. Press Start.
The motor rotates at 10 Hz looking for the home location. Once the object has reached the
sensor, the At Home indicator turns green.
The Homed indicator changes state to green unless the system has been previously Homed.
4. Press Start.
The Pos Step # now displays 0 and the system begins stepping through the sequence.
5. Verify that values for ‘I load x100’, ‘V out x10’, and ‘Hz Act x100’ are displayed while
running.
The text on this fault indicator button is specific to each individual fault. Pressing this button
takes you to the Fault Type, Description and Action display for that fault.
Upon return to the previous screen, notice that the fault is still active.
4. Press to clear the fault. The fault clears, as indicated by the fault display button
disappearing, along with the CLR Fault button.
The Timing Options section for each controller in the Communication tab has been modified to
optimize communication transfer.
Item Description
1 Axis 1
2 Axis 2 (with terminating resistor)
Multiple drive configuration uses a second Position Control routine example. This example (HMI
to 2 PF40Ps-Position C0_01.cha) supports Modbus communication with two PowerFlex 40P drives
without any modifications. Since a Modbus network supports communication with only one
device at a time, the more drives on the network, the longer it takes to communicate with all the
drives. With the default communication settings, the PVc terminal takes approximately 40 ms to
get a status update from each enabled drive because two separate read requests are required.
Multiple drive configuration includes a Broadcast Start/Stop function. On the Network Overview
screen, there are buttons for Start and Stop. These buttons simultaneously start or stop all drives
on the network that are connected, configured, and ready.
Follow this procedure to add a second PowerFlex 40P drive to your Modbus network.
1. Remove power.
3. Apply power.
8. Daisy-chain the RJ45 connector from drive 1 to drive 2, making sure to move the termination
resistor to the end drive.
9. On the Network Overview screen, verify that the status indicators on the left side indicate
the drive is ready.
10. Test the newly-configured network by pressing the Start and Stop broadcast buttons to
command simultaneous Start/Stop to all drives on the network.
11. Test the second drive by performing all the test functions in preceding sections of this
chapter.
Application Changes
To add additional drives, you must modify your PanelView Component application as
appropriate for your system needs. Except for understanding the drive status indicator, described
below, application changes are beyond the scope of this Quick Start.
As you add more drives, one of these objects is needed on every screen pointing to one of each
other axis. So for a three-axis configuration, two drive objects are needed on Axis 1-related
screens to point to the Ready bit in the drive status word for Axis 2 and Axis 3 respectively.
Similarly, the two drive objects on Axis 2-related screens must point to the Ready bit in the drive
status word for Axis 1 and Axis 3 respectively.
If you choose, you can make these drive status indicator objects visible.
Additional Resources
For detailed steps for various configurations, refer to CCBB Simple Positioning Examples PF40P
StepLogic setup document, which uses DriveExplorer software, located on the Connected
Components Building Blocks Overview CD, publication CC-QR001, in the Building Blocks Folder
for Simple Position.
Installation Assistance
Rockwell tests all of its products to ensure that they are fully operational
when shipped from the manufacturing facility. However, if your product is
not functioning, it may need to be returned.
United States Contact your distributor. You must provide a Customer Support case
number (see phone number above to obtain one) to your distributor in
order to complete the return process.
Outside United Please contact your local Rockwell Automation representative for
States return procedure.