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://www.rockwellautomation.com/literature) 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.
WARNING: Identifies information about practices or circumstances
that can cause an explosion in a hazardous environment, which may
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.
ATTENTION: Identifies information about practices or circumstances
that can lead to personal injury or death, property damage, or economic
loss. Attentions help you:
• identify a hazard
• avoid the hazard
• recognize the consequences
Shock Hazard labels may be located on or inside the equipment (e.g.,
drive or motor) to alert people that dangerous voltage may be present.
Burn Hazard labels may be located on or inside the equipment (e.g.,
drive or motor) to alert people that surfaces may be at dangerous
temperatures.
Allen-Bradley, PowerFlex, ControlLogix, PLC-5, DriveExplorer, DriveExecutive, DriveTools SP, and ControlFLASH are
either registered trademarks or trademarks of Rockwell Automation, Inc.
RSLogix, RSLinx, and RSNetWorx are trademarks of Rockwell Software.
ControlNet is a trademark of ControlNet International.
Windows and Microsoft are registered trademarks of Microsoft Corporation.
Summary of Changes
The information below summarizes the changes made to this manual
since its last release (May 2005):
Description of New or Updated InformationPage(s)
In the Chapter 4 introduction, added an Important paragraph about I/O
connections.
In the “About Explicit Messaging” section, added an Important paragraph
about “unconnected” and “connected” messages.
In the “Configuring the RS-485 Network” section, corrected the Important
paragraph text. The daisy-chained drive(s) parameter A106 - [Comm Loss
Time] is not used in Multi-Drive mode.
In the “ControlLogix Explicit Messaging” section, corrected these drive
parameter subheading names:
• Parameter D003 from [Current Output] to [Output Current]
• Parameter P039 from [Current Output] to [Accel Time 1]
In the “Environmental” specifications section, corrected the maximum
Farenheit Operating Temperature value from 149°F to 122°F.
RSNetWorx for ControlNet Getting Results Guide,
and online help (installed with the software)
ControlLogix ControlNet Interface Module User Manual 1756-6.5.3
P-1
—
—
22A-UM001…
22A-QS001…
22B-UM001…
22B-QS001…
LINX-GR001…
LG5-GR001…
9399-RLD300GR
CNET-GR001…
Documentation can be obtained online at
http://www.rockwellautomation.com/literature
.
P-2About This Manual
Conventions Used in this Manual
The following conventions are used throughout this manual:
• Parameter names are shown in the format Parameter xx - [*]. The xx
represents the parameter number, and the * represents the parameter
name — for example, Parameter 01 - [Mode].
• Menu commands are shown in bold type face and follow the format
Menu > Command. For example, if you read “Select File > Open,”
you should click the File menu and then click the Open command.
• The firmware release is displayed as FRN X.xxx. The “FRN”
signifies Firmware Release Number. The “X” is the major release
number. The “xxx” is the minor update number.
• RSNetWorx for ControlNet (version 5.11), RSLinx (version 2.43),
RSLogix 5000 (version 13.03) and RSLogix 5 (version 6.30) were
used for the screen shots in this manual. Different versions of the
software may differ in appearance and procedures.
• This manual provides information about the 22-COMM-C ControlNet
adapter and using it with PowerFlex 4-Class drives. The adapter can
be used with other products that support a DSI adapter, such as the
DSI External Comms Kit (22-XCOMM-DC-BASE). Refer to the
documentation for your product for specific information about how it
works with the adapter.
About This ManualP-3
Rockwell Automation Support
Rockwell Automation, Inc. offers support services worldwide, with over
75 sales/support offices, over 500 authorized distributors, and over 250
authorized systems integrators located through the United States alone.
In addition, Rockwell Automation, Inc. representatives are in every
major country in the world.
Local Product Support
Contact your local Rockwell Automation, Inc. representative for:
• Sales and order support
• Product technical training
• Warranty support
• Support service agreements
Technical Product Assistance
If you need to contact Rockwell Automation, Inc. for technical
assistance, please review the information in Chapter 8
first. If you still have problems, then call your local Rockwell
Automation, Inc. representative.
The 22-COMM-C ControlNet adapter is a communication option
intended for installation into a PowerFlex 40 or PowerFlex 400 drive. It
can also be used with other Allen-Bradley products that support a DSI
communication adapter, such as the DSI External Comms Kit
(22-XCOMM-DC-BASE). The External Comms Kit enables PowerFlex
4 drives (which cannot support an internally-mounted adapter) to
connect to a ControlNet network.
TopicPageTopicPage
Components
Features1-2Quick Start1-5
Compatible Products1-3Modes of Operation1-6
Required Equipment1-3
1-1Safety Precautions1-4
Components
Figure 1.1 Components of the Adapter
➊
➋
LEDs are located
on bottom side of
adapter board
➏
➌➍
Item ComponentDescription
Status IndicatorsFour LEDs that indicate the status of the ControlNet connection,
➊
DSI ConnectorA 20-pin, single-row shrouded male header. An Internal Interface
➋
Channel A Coax Receptacle Channel A BNC connection for the ControlNet cable.
➌
Channel B Coax Receptacle Channel B BNC connection for the ControlNet cable.
➍
1x/5x Operating Mode
➎
Jumper (J7)
ControlNet Node Address
➏
Switches
DSI, and the adapter. Refer to Chapter 8, Troubleshooting.
cable is connected to this connector and a connector on the drive.
Selects Single (1x) or Multi-Drive (5x) mode of operation. Refer to
Setting Operating Mode and Node Address Switches
Sets a unique node address for the adapter. Refer to Setting
Operating Mode and Node Address Switches on page 2-1.
➎
on page 2-1.
1-2Getting Started
Features
The ControlNet adapter features the following:
• The adapter is normally installed in a PowerFlex 40 or PowerFlex 400
drive. It can also be used in a DSI External Comms Kit
(22-XCOMM-DC-BASE).
• A jumper lets you select between Single or Multi-Drive mode of
operation. In Single mode (default), the adapter represents a single
drive on one node. In Multi-Drive mode, the adapter represents up to
5 drives on one node.
• A number of configuration tools can be used to configure the adapter
and connected drive. The tools include an external PowerFlex 4-Class
HIM (22-HIM-*) or drive-configuration software such as
DriveExplorer (version 3.01 or higher) or DriveExecutive (version
3.01 or higher).
• Status indicators report the status of drive communications, the
adapter, and network.
• Supports I/O, including Logic Command/Reference, for all drives
connected in Single or Multi-Drive mode.
• The following table shows the various controllers that can be used
with the 22-COMM-C adapter and whether they support explicit
messaging (parameter read/write, etc.) on a ControlNet network:
Due to controller limitations, explicit messaging can only be performed on drive
parameters up to Parameter 256.
• User-defined fault actions determine how the adapter and drive (or
DSI External Comms Kit) respond to communication disruptions on
the network and controllers in program mode.
Single ModeMulti-Drive
YesN oYesNo
(1)
✔
Getting Started1-3
Compatible Products
The adapter is compatible with Allen-Bradley PowerFlex 4-Class
(Component-Class) drives and other products that support an internal
DSI adapter. At the time of publication, compatible products include:
• PowerFlex 4 drives with DSI External Comms Kit
• PowerFlex 40 drives
• PowerFlex 400 drives
Required Equipment
Equipment Shipped with the Adapter
When you unpack the adapter, verify that the package includes:
❑ One ControlNet adapter
❑ One 15.24 cm (6 in.) Internal Interface Cable
❑ This manual
User-Supplied Equipment
To install and configure the adapter, you must supply:
❑ A small flathead screwdriver
❑ Appropriate ControlNet cables (refer to the ControlNet Fiber Media
Planning and Installation Guide, Publication CNET-IN001…, for
details.)
❑ A configuration tool, such as:
– PowerFlex 4-Class HIM (22-HIM-*)
– DriveExplorer (version 3.01 or higher)
– DriveExecutive stand-alone software (version 3.01 or higher) or
bundled with the DriveTools SP suite (version 1.01 or higher)
– RSNetWorx for ControlNet
❑ Controller configuration software (Example: RSLogix 5000)
❑ A PC connection to the ControlNet network
1-4Getting Started
Safety Precautions
Please read the following safety precautions carefully.
ATTENTION: Risk of injury or death exists. The PowerFlex drive
may contain high voltages that can cause injury or death. Remove
!
power from the PowerFlex drive, and then verify power has been
discharged before installing or removing the adapter.
ATTENTION: Risk of injury or equipment damage exists. Only
personnel familiar with drive and power products and the associated
!
machinery should plan or implement the installation, start-up,
configuration, and subsequent maintenance of the product using the
adapter. Failure to comply may result in injury and/or equipment
damage.
ATTENTION: Risk of equipment damage exists. The adapter
contains ESD (Electrostatic Discharge) sensitive parts that can be
!
damaged if you do not follow ESD control procedures. Static control
precautions are required when handling the adapter. If you are
unfamiliar with static control procedures, refer to Guarding Against Electrostatic Damage, Publication 8000-4.5.2.
ATTENTION: Risk of injury or equipment damage exists. If the
adapter is transmitting control I/O to the drive, the drive may fault when
!
you reset the adapter. Determine how your drive will respond before
resetting the adapter.
ATTENTION: Risk of injury or equipment damage exists. Parameters
08 - [Comm Flt Action] and 09 - [Idle Flt Action] let you determine the
!
action of the adapter and connected PowerFlex drive if communications
are disrupted. By default, these parameters fault the drive. You can set
these parameters so that the drive continues to run. Precautions should be
taken to ensure that the settings of these parameters do not create a risk
of injury or equipment damage. When commissioning the drive, verify
that your system responds correctly to various situations (for example, a
disconnected cable or a faulted controller).
ATTENTION: Risk of injury or equipment damage exists. When a
system is configured for the first time, there may be unintended or
!
incorrect machine motion. Disconnect the motor from the machine or
process during initial system testing.
ATTENTION: Risk of injury or equipment damage exists. The
examples in this publication are intended solely for purposes of
!
example. There are many variables and requirements with any
application. Rockwell Automation, Inc. does not assume responsibility
or liability (to include intellectual property liability) for actual use of
the examples shown in this publication.
Getting Started1-5
Quick Start
This section is provided to help experienced users quickly start using the
adapter. If you are unsure how to complete a step, refer to the referenced
chapter.
StepRefer to …
1Review the safety precautions for the adapter.Throughout this
2Verify that the PowerFlex drive is properly installed.Drive User Manual
3Install the adapter.
Verify that the PowerFlex drive is not powered. Then,
connect the adapter to the network using a ControlNet cable
and to the drive using the Internal Interface cable. Use the
captive screw to secure and ground the adapter to the drive.
When installing the adapter in a DSI External Comms Kit,
refer to the 22-XCOMM-DC-BASE Installation Instructions
(Publication No. 22COMM-IN001…) supplied with the kit.
4Apply power to the adapter.
The adapter receives power from the drive. Apply power to
the drive. The status indicators should be green. If they flash
red, there is a problem. Refer to Chapter 8
5Configure the adapter for your application.
Set the following parameters for the adapter as required by
your application:
• I/O configuration
• Fault actions
6Apply power to the ControlNet scanner and other
devices on the network.
Verify that the scanner and network are installed and
functioning in accordance with ControlNet standards, and
then apply power to them.
7Configure the scanner or bridge to communicate with
the adapter.
Use a network tool such as RSNetWorx for ControlNet to
configure the scanner or bridge on the network.
8Create a ladder logic program.
Use a programming tool such as RSLogix to create a ladder
logic program that enables you to:
• Control the adapter and connected drive using I/O.
• Monitor or configure the drive using Explicit Messages.
, Troubleshooting.
manual
,
Chapter 2
Installing the
Adapter
Chapter 2
,
Installing the
Adapter
,
Chapter 3
Configuring the
Adapter
—
Chapter 4
,
Configuring the I/O
,
Chapter 5
Using the I/O
Chapter 6,
Using Explicit
Messaging
1-6Getting Started
Modes of Operation
The adapter uses four status indicators to report its operating status. They
can be viewed on the adapter or through the drive cover (Figure 1.2).
Figure 1.2 Status Indicators (location on drive may vary)
Bottom side
of adapter board
➊
➋
➌
➍
➊
➋
➌
➍
Status
Item
Indicator
PORTGreenNormal Operation. The adapter is properly connected and
➊
MODGreenNormal Operation. The adapter is operational and is
➋
NET A or
➌
NET B
➍
(1)
If all status indicators are off, the adapter is not receiving power. Refer to Chapter 2, Installing the
Adapter, for instructions on installing the adapter.
If any other conditions occur, refer to Chapter 8, Troubleshooting.
Normal
Status
Flashing
Green
GreenNormal Operation. The adapter channel is properly
Flashing
Green
OffNormal Operation. The adapter channel is disabled or not
Description
(1)
is communicating with the drive.
transferring I/O data.
Normal Operation. The adapter is operational but is not
transferring I/O data.
connected and communicating on the network.
Normal Operation. The adapter channel has a temporary
error, or is in listen-only mode.
supported.
Chapter 2
Installing the Adapter
Chapter 2 provides instructions for installing the adapter in a PowerFlex
40 or PowerFlex 400 drive. This adapter can also be installed in a DSI
External Comms Kit. In this case, refer to the 22-XCOMM-DC-BASE Installation Instructions (Publication No. 22COMM-IN001…) supplied
with the kit.
TopicPage
Preparing for an Installation
Setting Operating Mode and Node Address Switches2-1
Connecting the Adapter to the Network2-3
Connecting the Adapter to the Drive2-4
Applying Power2-7
2-1
Preparing for an Installation
Before installing the adapter, verify that you have all required
equipment. Refer to Chapter 1
, Getting Started.
Setting Operating Mode and Node Address Switches
Before installing the adapter, you must set its Operating Mode Jumper
for Single or Multi-Drive operation, and its Node Address Switches to a
unique ControlNet node address.
Important: New settings are recognized only when power is applied to
the adapter, or the adapter is reset. If you change a setting,
cycle power or reset the adapter to invoke the change.
ATTENTION: Risk of equipment damage exists. The adapter
contains ESD (Electrostatic Discharge) sensitive parts that can be
!
damaged if you do not follow ESD control procedures. Static control
precautions are required when handling the adapter. If you are
unfamiliar with static control procedures, refer to Guarding Against Electrostatic Damage, Publication 8000-4.5.2.
2-2Installing the Adapter
1. Set the adapter Operating Mode Jumper (J7) for Single (1x) or
Multi-Drive (5x) operation (see Figure 2.1
below). For complete details on Multi-Drive mode operation, see
Chapter 7, Using Multi-Drive Mode.
Figure 2.1 Setting Single/Multi-Drive Operation and Node Address Switches
and setting descriptions
4
5
6
Node Address
Switches
Operating
Mode Jumper
S2S3
(Tens Digit)(Ones Digit)
2
3
2
1
4
0
6
9
7
8
J7
5x1x
Mode
Jumper Setting Description
Right (1x)
position or jumper
missing
Left (5x) position Sets the adapter for Multi-Drive mode using up to 5 different
Sets the adapter for Single mode (default setting) using a single
drive connection.
Important: In this mode, connections to multiple drives must be
removed since all powered and connected hosts will respond to
any message sent by the adapter.
drives. DSI peripherals (22-HIM-*, 22-SCM-*, etc.) do not
operate with the adapter in this mode.
3
1
5
0
9
7
8
J7
Single ModeMulti-Drive
2. Set the adapter node address by rotating the Node Address Switches
to the desired value for each digit.
Important: Each node on the network must have a unique address.
The node address must be set before power is applied
because the adapter uses the node address it detects
when it first receives power. To change a node address,
you must set the new value. Then remove and reapply
power to the adapter, or reset the adapter.
Switch Settings Description
00-99Node address used by the adapter if switches are enabled. The
default switch setting is 02.
Important: If the address switches are set to “00,” the adapter
will use the setting of Parameter 02 - [CN Addr Cfg] for the
node address. Refer to Setting the Node Address
on page 3-3.
The node address switch settings can be verified using a PowerFlex
4-Class HIM, DriveExplorer, or DriveExecutive to view Diagnostic
Item number 28 (listed on page 8-5
or page 8-6).
Installing the Adapter2-3
Connecting the Adapter to the Network
ATTENTION: Risk of injury or death exists. The PowerFlex drive
may contain high voltages that can cause injury or death. Remove
!
power from the PowerFlex drive, and then verify power has been
discharged before installing or removing an adapter.
1. Remove power from the drive.
2. Use static control precautions.
3. Remove the drive cover.
4. Connect a ControlNet cable to the ControlNet network. See
Figure 2.2
Figure 2.2 Connecting the ControlNet Cable to the Network
for an example of wiring to a ControlNet network.
ControlLogix Controller
with 1756-CNB/R
ControlNet Network
5. Route the ControlNet cable through the bottom of the PowerFlex
drive (Figure 2.3), and insert the cable plug into the adapter’s mating
receptacle.
PowerFlex 40 or PowerFlex 400 Drives
(each with a 22-COMM-C ControlNet Adapter)
(optional redundancy)
2-4Installing the Adapter
Connecting the Adapter to the Drive
PowerFlex 40 Frames B and C, and PowerFlex 400 Frame C
1. Remove power from the drive.
2. Use static control precautions.
3. Mount the adapter on the required special drive cover (ordered
separately — see Figure 2.4
• Frame C: Use the adapter screw to secure the adapter to the cover.
• Frame B: Disregard the screw and snap the adapter in place.
Important: For Frame C drives, tighten the adapter’s lower left
screw to ground the adapter (see Figure 2.4
B drives, install the special drive cover onto the drive
using both cover fasteners to ground the adapter.
4. Connect the Internal Interface cable to the DSI port on the drive and
then to the mating DSI connector on the adapter.
Figure 2.3 Connecting DSI Ports with Internal Interface Cable
for part numbers).
). For Frame
PowerFlex 40 Drive
(Frame C shown
with cover removed)
Item Description
DSI connector
➊
15.24 cm (6 in.) Inter nal Interface cable
➋
ControlNet cable
➌
22-COMM-C Adapter
➊
➋
➌
Back of Required
Special Drive Cover
Installing the Adapter2-5
Figure 2.4 Mounting and Grounding the Adapter – PowerFlex 40 Frames B and C, and
PowerFlex 400 Frame C
Adapter Mounted on Back of
Required Special Drive Cover
(Frame C cover shown)
PowerFlex 40 Frame B -- Part Number 22B-CCB
PowerFlex 40 Frame C -- Part Number 22B-CCC
PowerFlex 400 Frame C -- Part Number 22C-CCC
PowerFlex 40 Drive
(Frame C shown
with cover removed)
Ground for Frame C Drives
For Frame B drives, the lower left
NOTE:
adapter screw does not ground the adapter.
To ground the adapter, install the special drive
cover onto the drive using both cover fasteners.
2-6Installing the Adapter
PowerFlex 400 Frames D, E, and F
1. Remove power from the drive.
2. Use static control precautions.
3. Remove the drive cover.
4. With the adapter board right side up, remove its mounting screw
from the lower left hole. Save the screw for mounting in Step 7.
5. Connect the Internal Interface cable to the DSI port on the drive (see
Figure 2.5
6. With the adapter board oriented bottom side up, route the Internal
Interface cable under the adapter, and then to the mating DSI
connector on the adapter.
7. Install the adapter, bottom side up, to the right side of the display
board by snapping it into place. Then insert the adapter mounting
screw into the lower left hole on the board.
Important: Tighten the mounting screw in the adapter’s lower left
).
hole to ground the adapter to the drive.
Figure 2.5 Mounting and Connecting the Adapter – PowerFlex 400 Frame D, E,
and F Drives
PowerFlex 400
(Frame D shown
with cover removed)
Adapter Installation
(Side View)
Bottom of
Adapter Board
Internal Interface
Ribbon Cable
LEDs
Connector
Installing the Adapter2-7
Applying Power
ATTENTION: Risk of equipment damage, injury, or death exists.
Unpredictable operation may occur if you fail to verify that parameter
!
settings and switch settings are compatible with your application.
Verify that settings are compatible with your application before
applying power to the drive.
1. Install the drive cover. The status indicators can be viewed on the
front of the drive after power has been applied.
2. Apply power to the PowerFlex drive. The adapter receives its power
from the connected drive. When you apply power to the adapter for
the first time, the status indicators should be green or off after an
initialization. If the status indicators are red, there is a problem.
Refer to Chapter 8
, Troubleshooting.
2-8Installing the Adapter
Notes:
Chapter 3
Configuring the Adapter
Chapter 3 provides instructions and information for setting the
parameters in the adapter.
TopicPage
Configuration Tools
Using the PowerFlex 4-Class HIM3-2
Setting the Node Address3-3
Setting the I/O Configuration3-3
Setting a Fault Action3-4
Resetting the Adapter3-6
Viewing the Adapter Configuration3-7
For a list of parameters, refer to Appendix B, Adapter Parameters. For
definitions of terms in this chapter, refer to the Glossary
3-1
.
Configuration Tools
The adapter stores parameters and other information in its own
non-volatile memory. You must, therefore, access the adapter to view
and edit its parameters. The following tools can be used to access the
adapter parameters:
ToolRefer to…
PowerFlex 4-Class HIM
(22-HIM-*)
DriveExplorer Software
(version 3.01 or higher)
DriveExecutive Software
(version 3.01 or higher)
page 3-2
http://www.ab.com/drives/driveexplorer, and
DriveExplorer online help (installed with the software)
http://www.ab.com/drives/drivetools, and
DriveExecutive online help (installed with the software)
3-2Configuring the Adapter
Using the PowerFlex 4-Class HIM
The PowerFlex 4-Class HIM (Human Interface Module) can be used to
access parameters in the adapter (see basic steps shown below). It is
recommended that you read through the steps for your HIM before
performing the sequence. For additional HIM information, refer to the
HIM Quick Reference card.
Note: The HIM will only work when the adapter is set to Single mode.
Using the HIM
StepKey(s)Example Screens
1. Power up the drive.
Then plug the HIM
into the drive. The
Parameters menu for
will be
the drive
displayed.
2. Press Sel key once to
display the Device Select menu.
Sel
Parameters
Groups
Linear List
Changed Params
DIAG PA R A M DSELMEM SEL !
Device Select
DSI Devices
3. Press Enter to display
the DSIDevices
menu. Press Down
Arrow to scroll to
22-COMM-C.
4. Press Enter to select
the adapter. The
Parameters menu for
the adapter
displayed.
5. Press Enter to access
the parameters. Edit
the adapter
parameters using the
same techniques that
you use to edit drive
parameters.
will be
and
DIAG PARAM DSELMEM SEL !
DSI Devices
Powe rF lex 4 0
22-COMM-C
Parameters
Linear List
Changed Params
DIAG PA R A M DSELMEM SEL !
ModeRO
Parameter:#
Single Drv0
VAL UE LIMITSSEL !
001
Configuring the Adapter3-3
Setting the Node Address
If the Node Address Switches on the adapter are set to a node address of
“00,” the value of Parameter 02 - [CN Addr Cfg] determines the
ControlNet node address.
1. Set the value of Parameter 02 - [CN Addr Cfg] to a unique node
address.
Figure 3.1 Node Address Screen on PowerFlex 4-Class HIM (22-HIM-*)
CN Addr Cfg
Param ete r:#
2
VAL UE LIMITSSEL !
2. Reset the adapter (see Resetting the Adapter on Page 3-6).
002
Default = 2
Setting the I/O Configuration
The I/O configuration determines the number of drives that will be
represented on the network as one node by the adapter. If the Operating
Mode Jumper (J7 in Figure 2.1
position, only one drive is represented by the adapter and Parameter 12
- [DSI I/O Cfg] has no effect. If the Operating Mode Jumper is set to the
“5x” (Multi-Drive) position, up to five drives can be represented as one
node by the adapter.
1. Set the value in Parameter 12 - [DSI I/O Cfg].
)is set to the “1x” (Single mode) default
Figure 3.2 I/O Configuration Screen on Powerflex 4-Class HIM (22-HIM-*)
When the adapter is internally mounted in a PowerFlex 40 or 400
drive, this drive is always Drive 0. Drives 1 through 4 are PowerFlex
3-4Configuring the Adapter
4-Class drives that are daisy-chained to the RJ45 (RS-485) port on
Drive 0. When the adapter is externally mounted in a DSI External
Comms Kit, Drives 0 through 4 are daisy-chained to the RJ45
(RS-485) port on the Comms Kit. Refer to Chapter 7
Multi-Drive Mode for more information.
2. If a drive is enabled, configure the parameters in the drive to accept
the Logic Command and Reference from the adapter. For example,
set a PowerFlex 40 drive’s parameter P036 - [Start Source] and
parameter P038 - [Speed Reference] both to “5” (Comm Port). When
using the adapter in Multi-Drive mode, each daisy-chained drive
requires that additional parameters be set. See Configuring the
RS-485 Network on page 7-7 for these parameters and their settings.
3. Reset the adapter (see Resetting the Adapter on page 3-6).
Setting a Fault Action
By default, when communications are disrupted (for example, a cable is
disconnected) or the controller is in program mode, the drive responds
by faulting if it is using I/O from the network. You can configure a
different response to communication disruptions using Parameter 08 - [Comm Flt Action] and a different response to a controller in program
mode using Parameter 09 - [Idle Flt Action].
, Using
ATTENTION: Risk of injury or equipment damage exists.
Parameters 08 - [Comm Flt Action] and 09 - [Idle Flt Action] let you
!
determine the action of the adapter and connected drive if
communications are disrupted or the controller is in program mode. By
default, these parameters fault the drive. You can set these parameters
so that the drive continues to run. Some ControlNet scanners may
operate differently when a controller is in program mode which could
limit the Idle Fault Action’s operating states. Precautions should be
taken to ensure that the settings of these parameters do not create a risk
of injury or equipment damage. When commissioning the drive, verify
that your system responds correctly to various situations (for example, a
disconnected cable or faulted controller).
Configuring the Adapter3-5
To change the fault action
Set the values of Parameters 08 - [Comm Flt Action] and 09 - [Idle Flt
Action] to the desired responses:
Value ActionDescription
0FaultThe drive is faulted and stopped. (Default)
1StopThe drive is stopped, but not faulted.
2Zero DataThe drive is sent 0 for output data. This does not command
3Hold LastThe drive continues in its present state.
4Send Flt Cfg The drive is sent the data that you set in the fault
Figure 3.3 Fault Action Screens on PowerFlex 4-Class HIM (22-HIM-*)
Changes to these parameters take effect immediately. A reset is not
required.
If Multi-Drive mode is used, the same fault action is used by the adapter
for all of the drives (Drive 0 - Drive 4) it controls.
To set the fault configuration parameters
If you set Parameter 08 - [Comm Flt Action] or 09 - [Idle Flt Action]
to “Send Flt Cfg,” the values in the following parameters are sent to the
drive after a communications fault and/or idle fault occurs. You must set
these parameters to values required by your application:
Parameter NameDescription
10Flt Cfg Logic A 16-bit value sent to the drive for Logic Command.
11Flt Cfg RefA 16-bit value (0 – 65535) sent to the drive as a
Changes to these parameters take effect immediately. A reset is not
required.
Reference.
VAL UE LIMITSSEL !
3-6Configuring the Adapter
Resetting the Adapter
Changes to switch settings and some adapter parameters require that you
reset the adapter before the new settings take effect. You can reset the
adapter by cycling power to the drive or by using the following
parameter:
ATTENTION: Risk of injury or equipment damage exists. If the
adapter is transmitting control I/O to the drive, the drive may fault when
!
you reset the adapter. Determine how your drive will respond before
resetting a connected adapter.
Set Parameter 07 - [Reset Module] to Reset Module.
Figure 3.4 Reset Screen on PowerFlex 4-Class HIM (22-HIM-*)
Reset Module
Param ete r:#
VAL UE LIMITSSEL !
When you enter 1 = Reset Module, the adapter will be immediately
reset. When you enter 2 = Set Defaults, the adapter will set all adapter
parameters to their factory-default settings. After performing a Set
Defaults, enter 1 = Reset Module so that the new values take effect. The
value of this parameter will be restored to 0 = Ready after the adapter is
reset.
Ready0
Value Description
007
0Ready (Default)
1Reset Module
2Set Defaults
Configuring the Adapter3-7
Viewing the Adapter Configuration
The following parameters provide information about how the adapter is
configured. You can view these parameters at any time.
Number NameDescription
01ModeThe operating mode in which the adapter is set:
Values
0 = Single Drv
1 = Multiple Drv
03CN Addr Act The node address used by the adapter. This will be one of the
13DSI I/O Act Indicates the drives that are active in the Multi-Drive mode:
following values:
• The address set by the adapter Node Address switches.
• The value of Parameter 02 - [CN Addr Cfg] if the switches
are set to 0.
• An old address of the switches or parameter if they have
been changed and the adapter has not been reset.
Bit Definitions
0 = Drive 0 Active
1 = Drive 1 Active
2 = Drive 2 Active
3 = Drive 3 Active
4 = Drive 4 Active
3-8Configuring the Adapter
Notes:
Chapter 4
Configuring the I/O
Chapter 4 provides instructions on how to configure a ControlLogix
controller with 1756-CNB/R bridge or PLC-5 controller to communicate
with the adapter and connected PowerFlex drive.
TopicPage
ControlLogix Example
PLC-5 Example4-12
Important: The I/O consumes only one connection between the
controller and drive(s) regardless of whether the adapter is
in Single or Multi-Drive mode. When using DriveExecutive
to configure/monitor the drive, an additional I/O connection
will be consumed between the computer and controller.
When using Explicit Messaging for time-critical messages,
you can create additional dedicated message connections to
ensure the timing of their transactions. For more details, see
the Important statement in About Explicit Messaging
Page 6-1.
4-1
on
ControlLogix Example
Example Network
After the adapter is configured, the connected drive and adapter will be a
single node on the network. This section provides the steps that are
needed to configure a simple network like the network in Figure 4.1
our example, we will configure a 1756-CNB/R bridge to communicate
with a drive using Logic Command/Status and Reference/Feedback over
the network.
. In
4-2Configuring the I/O
Figure 4.1 Example ControlNet Network
Node 1
ControlLogix Controller
with 1756-CNB/R Bridge
Adding the Bridge to the I/O Configuration
To establish communications over a ControlNet network, you must first
add the ControlLogix controller and its bridge to the I/O configuration.
Node 2
PowerFlex 40 Drive
with 22-COMM-C
ControlNet Adapter
ControlNet Network
(optional redundancy)
Node 99
Computer with 1784-PCC
Network Interface Card and
RSNetWorx for ControlNet
1. Start RSLogix 5000. The RSLogix 5000 window appears. Select
File > New to display the New Controller screen (Figure 4.2
Figure 4.2 New Controller Screen
).
Select the appropriate choices for the fields in the screen to match
your application. Then click OK. The RSLogix 5000 window
reappears with the project tree in the left pane.
Configuring the I/O4-3
2. In the project tree, right-click the I/O Configuration folder and select
New Module. The Select Module Type screen (Figure 4.3
Figure 4.3 Select Module Type Screen
Step 4
3. In the list, select the ControlNet bridge used by your controller. In
this example (Figure 4.3), we use a 1756-CNBR/D ControlNet
Bridge (Series D), so the 1756-CNBR/D option is selected.
) appears.
Step 3
4. Click OK. The Module Properties screen (Figure 4.4
Figure 4.4 Module Properties Screen
) appears.
5. Edit the following:
BoxSetting
NameA name to identify the bridge.
NodeSelect the node address setting of the ControlNet bridge (default = 1).
SlotThe slot of the ControlNet bridge in the rack.
RevisionThe minor revision of the firmware in the bridge. (You already set the
major revision by selecting the bridge series in Step 3.)
4-4Configuring the I/O
BoxSetting
Electronic
Keying
6. Click Finish>>. The bridge is now configured for the ControlNet
network. It appears in the I/O Configuration folder. In our example, a
1756-CNBR/D bridge appears under the I/O Configuration folder
(Figure 4.5
Figure 4.5 RSLogix 5000: I/O Configuration Folder
Adding the Adapter and Drive to the I/O Configuration
To transmit data between the bridge and the adapter, you must add the
22-COMM-C adapter as a child device to the parent bridge.
1. In the project tree, right-click on the bridge and select New Module
to display the Select Module Type screen (Figure 4.6
example, right-click on the 1756-CNBR/D bridge.
Compatible Module. The “Compatible Module” setting for Electronic
Keying ensures that the physical module is consistent with the software
configuration before the controller and bridge make a connection.
Therefore, ensure that you have set the correct revision in this screen.
Refer to the online help if the controller and bridge have problems
making a connection and you want to change this setting.
) with its assigned name.
). For this
Figure 4.6 Select Module Type Screen
2. Select CONTROLNET-MODULE (Figure 4.6) to configure the
22-COMM-C adapter, and then click OK. The Module Properties
screen (Figure 4.7
) appears.
Configuring the I/O4-5
Figure 4.7 Module Properties Screen
3. Edit the following information about the adapter:
BoxSetting
NameA name to identify the adapter and drive.
Comm FormatData - INT (This setting formats the data in 16-bit words.)
NodeThe node address setting of the adapter.
4. Under Connection Parameters, edit the following:
BoxAssembly Instance Size
Input1 (This value is
required.)
Output2 (This value is
required.)
Configuration 6 (This value is
required.)
The value will vary based on your application
(setting of Parameter 12 - [DSI I/O Cfg]). It will
contain 2 additional words for ControlNet bridge
overhead. Refer to Table 4.A
The value will vary based on your application
(setting of Parameter 12 - [DSI I/O Cfg]). Refer
to Tabl e 4 . A
0 (This value is required.)
.
.
Enter the number of words that are required for your I/O in the Input
Size and Output Size boxes. The size will depend on the I/O that you
enabled in the adapter. This information can be found in Parameter 12 - [DSI I/O Cfg] in the adapter. Table 4.A
configuration Input/Output sizes.
In our example, we entered “4” in the Input Size and “2” in the
Output Size boxes because the Operating Mode Jumper on the
adapter is set to “1x” (Single mode, which is the default). Logic
Status/Feedback uses 2 words of input and an additional 2 words of
input are reserved for ControlNet bridge overhead. Logic Command/
Reference uses 2 words of output.
TIP: For instructions on configuring the I/O for the adapter
(Parameter 12 - [DSI I/O Cfg]), see Setting the I/O
Configuration on page 3-3.
5. Click Next > to display the Requested Packet Interval screen
(Figure 4.8).
Figure 4.8 Requested Packet Interval Screen
Logic Command/
Status
Reference/
Feedback
Parameter 12 [DSI I/O Cfg]
Parameter 01 [Mode]
Multi-Drive
6. In the Requested Packet Interval (RPI) box, set the value to 5.0
milliseconds or greater. This value determines the maximum interval
that a controller should use to move data to and from the adapter. To
conserve bandwidth, use higher values for communicating with low
priority devices.
7. Click Finish >>. The new node (“PowerFlex_40_Drive” in this
example) now appears under the bridge (“1756-CNBR/D” in this
example) in the I/O Configuration folder. If you double-click on the
Controller Tags (Figure 4.9
types and tags have been automatically created. After you save and
download the configuration, these tags allow you to access the Input
and Output data of the adapter via the controller’s ladder logic.
), you will see that module-defined data
Figure 4.9 Controller Tags Overview Window
Configuring the I/O4-7
4-8Configuring the I/O
Saving the I/O Configuration to the Controller
After adding the bridge and the adapter to the I/O configuration, you
must download the configuration to the controller. You should also save
the configuration to a file on your computer.
TIP: If a message box reports that RSLogix 5000 is unable to
go online, select Communications > Who Active to try to
find your controller in the Who Active screen. After finding
the controller, click the Set Project Path button to establish
the path. If your controller does not appear, you need to add or
configure the ControlNet driver in RSLinx. Refer to the
RSLinx online help.
) appears.
2. Click Download to download the configuration to the controller.
When the download is completed successfully, click Ye s . RSLogix
5000 enters the Rem Prog (Remote Program) mode.
3. Select File > Save. If this is the first time that you saved the project,
the Save As dialog box appears. Navigate to a folder, type a file
name, and click Save to save the configuration to a file on your
computer.
Configuring the I/O4-9
Saving the I/O Configuration to the Bridge
You also need to download the I/O configuration to the bridge. You
should also save the configuration to a file on your computer.
1. Launch RSNetWorx for ControlNet. In the RSNetWorx for
ControlNet window, select File > New to display the New File
screen. Then select “ControlNet Configuration” as the network
configuration type, and click OK.
2. Select Network > Online to display the Browse for Network screen
(Figure 4.11
Figure 4.11 Browse for Network Screen
).
3. Expand the communications path from your computer to the
ControlNet bridge. Figure 4.12
devices that are on a ControlNet network. Depending on the
communication link you are using, the navigation path may be
different. After selecting a valid ControlNet path (for this example,
A, ControlNet), click OK.
shows our example navigating to
4-10Configuring the I/O
Figure 4.12 Expanded Browse for Network Screen
4. As the selected ControlNet path is browsed, RSNetWorx for
ControlNet creates a graphical representation of the devices on the
network (Figure 4.13
).
Figure 4.13 RSNetWorx for ControlNet Graph View Screen
Configuring the I/O4-11
5. Select Network > Enable Edits. If the bridge has a different I/O
configuration than the configuration now being saved, the Online /
Offline mismatch dialog box (Figure 4.14
Figure 4.14 Online / Offline mismatch Dialog Box
When both radio button choices are available, use the preselected
default “Use online data (upload).” When this choice is unavailable
(grayed out), you must select “Use offline data (download).” Then
click OK.
6. Select File > Save to save the I/O configuration file to the computer.
If this is the first time that you saved the project, the Save As dialog
box appears. Navigate to a folder, type a file name, and click Save to
save the configuration to a file on your computer. The Save
Configuration dialog box (Figure 4.15
download the I/O configuration to the bridge.
) will appear.
) appears. Then click OK to
Figure 4.15 Save Configuration Dialog Box
TIP: If both Save Type choices are available, it is
recommended to select the “Optimize and re-write schedule
for all connections” radio button.
4-12Configuring the I/O
PLC-5 Example
Example Network
After the adapter is configured, the connected drive and adapter will be a
single node on the network. This section provides the steps that are
needed to configure a simple network like the network in Figure 4.16. In
our example, we will configure a PLC-5/40C controller to communicate
with a drive using Logic Command/Status and Reference/Feedback over
the network.
Figure 4.16 Example ControlNet Network
Node 1
PLC-5/40C Controller
Node 2
PowerFlex 40 Drive
with 22-COMM-C
ControlNet Adapter
ControlNet Network
(optional redundancy)
Node 99
Computer with 1784-PCC
Network Interface Card and
RSNetWorx for ControlNet
Adding the Drive and Adapter I/O to the Controller
To establish an I/O configuration that can be used between the controller
and drive over a ControlNet network, you must first create an I/O image
for the PLC-5/40C controller’s built-in scanner.
1. Launch RSNetWorx for ControlNet. In the RSNetWorx for
ControlNet window, select File > New to display the New File
screen. Then select ControlNet Configuration as the network
configuration type, and click OK.
2. Select Network > Online to display the Browse for Network screen
(Figure 4.17
).
Configuring the I/O4-13
Figure 4.17 Browse for Network Screen
3. Expand the communications path from your computer to the
ControlNet scanner. Figure 4.18
devices that are on a ControlNet network. Depending on the
communication link you are using, the navigation path may be
different. After selecting a valid ControlNet path (for example, A,
ControlNet), click OK.
shows our example navigating to
Figure 4.18 Expanded Browse for Network Screen
4-14Configuring the I/O
4. As the selected ControlNet path is browsed, RSNetWorx for
ControlNet creates a graphical representation of the devices on the
network (Figure 4.19
Figure 4.19 RSNetWorx for ControlNet Graph View Screen
).
5. Select Network > Enable Edits. If the scanner has a different I/O
configuration than the configuration now being saved, the Online /
Offline mismatch dialog box (Figure 4.20
Figure 4.20 Online / Offline mismatch Dialog Box
) will appear.
When both radio button choices are available, use the preselected
default “Use online data (upload).” When this choice is unavailable
(grayed out), you must select “Use offline data (download).” Then
click OK.
Configuring the I/O4-15
6. In the RSNetWorx for ControlNet graph view screen, right-click the
PLC-5/40C icon and select Scanlist Configuration to display the
Scanlist Configuration screen (Figure 4.21
Figure 4.21 Scanlist Configuration Screen
7. Right-click on the PowerFlex 40 drive row in the screen and select
Insert Connection… to display the Connection Properties screen
(Figure 4.22
).
).
Figure 4.22 Connection Properties Screen
In this screen, leave the Connection Name box at the default value
shown. Choose a Requested Packet Interval that is suitable for your
application, but is at least 5 ms. Use the pull-down lists to select the
4-16Configuring the I/O
number of words that are required for your I/O in the Input Size and
Output Size boxes. The size will depend on the I/O that you enabled
in the adapter. This information can be found in Parameter 12 - [DSI I/O Cfg] in the adapter. Table 4.B
configuration Input/Output sizes.
TIP: If necessary, the N9:0, N10:0, and N11:0 address
defaults can be changed to meet processor address
requirements or eliminate address conflicts.
8. Then click OK. An address row (in blue text) will be added below
the PowerFlex 40 drive row.
9. Select File > Save to save the I/O configuration file to the computer.
If this is the first time that you saved the project, the Save As dialog
box appears. Navigate to a folder, type a file name, and click Save to
save the configuration to a file on your computer. The Save
Configuration dialog box (Figure 4.23
download the I/O configuration to the scanner.
Logic Command/
Status
shows common
Reference/
Feedback
Parameter 12 [DSI I/O Cfg]
) appears. Then click OK to
Parameter 01 [Mode]
Multi-Drive
Figure 4.23 Save Configuration Dialog Box
TIP: If both Save Type choices are available, it is
recommended to select the “Optimize and re-write schedule
for all connections” radio button.
10. A warning will appear about communication and I/O disruption on
the network. Click Ye s .
Chapter 5
Using the I/O
Chapter 5 provides information and examples that explain how to use the
I/O to control, configure, and monitor a PowerFlex 4-Class drive.
TopicPage
About I/O Messaging
Understanding the I/O Image5-2
Using Logic Command/Status5-3
Using Reference/Feedback5-3
Example Ladder Logic Program Infor mation5-4
ControlLogix Example5-5
PLC-5 Example5-8
ATTENTION: Risk of injury or equipment damage exists. The
examples in this publication are intended solely for purposes of
!
example. There are many variables and requirements with any
application. Rockwell Automation, Inc. does not assume responsibility
or liability (to include intellectual property liability) for actual use of
the examples shown in this publication.
5-1
About I/O Messaging
On ControlNet, I/O messaging is used to transfer the data which controls
the PowerFlex drive and sets its Reference.
The adapter provides many options for configuring and using I/O,
including configuring the size of I/O by selecting the number of attached
drives (Single or Multi-Drive mode).
Chapter 3
discuss how to configure the adapter and controller on the network for
these options. The Glossary defines the different options. This chapter
discusses how to use I/O after you have configured the adapter and
controller.
, Configuring the Adapter, and Chapter 4, Configuring the I/O,
5-2Using the I/O
Understanding the I/O Image
The terms input and output are defined from the controller’s point of
view. Therefore, output I/O is data that is produced by the controller and
consumed by the adapter. Input I/O is status data that is produced by the
adapter and consumed as input by the controller. The I/O image table
will vary based on the configuration of the adapter:
• Operating Mode Jumper J7 (Figure 2.1
• Parameter 12 - [DSI I/O Cfg]
The image table always uses consecutive words starting at word 0.
Figure 5.1
(16-bit words) for ControlLogix and PLC-5 controllers respectively.
Figure 5.1 Single Drive Example of I/O Image for ControlLogix
Controller
)
and Figure 5.2 illustrate examples of a Single drive I/O image
Scanner
Output
Image
(Write)
Input
Image
(Read)
ControlNet
Adapter
Word and I/O
0 Logic Command
1 Reference
0 Pad Word
1 Pad Word
2 Logic Status
3 Feedback
DSI
PowerFlex 40 Drive
Logic Command
Reference
Logic Status
Feedback
Message
Handler
Figure 5.2 Single Drive Example of I/O Image for PLC-5
ControlNet
Controller
Single mode is the typical configuration, where one node consists of a
PowerFlex 40 or PowerFlex 400 drive with a 22-COMM-C adapter. For
Multi-Drive mode, where one node can consist of up to 5 drives, refer to
Chapter 7
Scanner
Output
Image
(Write)
Input
Image
(Read)
Message
Handler
, Using Multi-Drive Mode.
Message
Buffer
Adapter
Word and I/O
0 Logic Command
1 Reference
0 Logic Status
1 Feedback
Message
Buffer
DSI
Message
Handler
PowerFlex 40 Drive
Logic Command
Reference
Logic Status
Feedback
Message
Handler
Using the I/O5-3
Using Logic Command/Status
The Logic Command word is always word 0 in the output image. The
Logic Command is a 16-bit word of control produced by the controller
and consumed by the adapter. The Logic Status word is input word 2 for
ControlLogix or input word 0 for PLC-5. The Logic Status is a 16-bit
word of status produced by the adapter and consumed by the controller.
This manual contains the bit definitions for compatible products
available at the time of publication in Appendix
Status Words. For other products, refer to their documentation.
Using Reference/Feedback
The Reference word is always word 1 in the output image. The
Reference (16 bits) is produced by the controller and consumed by the
adapter. The Feedback word begins at input word 3 for ControlLogix or
input word 1 for PLC-5. The Feedback (16 bits) is produced by the
adapter and consumed by the controller.
D, Logic Command/
SizeDriveValid Values
PowerFlex 4-240.0 to +240.0 Hz
16-bit
(1)
PowerFlex 40-400.0 to +400.0 Hz
PowerFlex 400-320.00 to +320.00 Hz
The Reference/Feedback for a PowerFlex 4, PowerFlex 40 or Powerflex 400 drive is
set in Hz and not in engineering units like PowerFlex 7-Class drives. For example,
“300” equates to 30.0 Hz (the decimal point is always implied) for PowerFlex 4/40, and
“3000” equates to 30.00 Hz for PowerFlex 400. Also, a minus value equates to reverse
motor direction, and a plus value equates to forward motor direction.
(1)
Example
Figure 5.1
Figure 5.2
or
5-4Using the I/O
Example Ladder Logic Program Information
The example ladder logic programs in the ControlLogix Example and
PLC-5 Example sections of this chapter are intended for and operate
PowerFlex 4-Class drives.
Functions of the Example Programs
The example programs enable an operator to perform the following:
• Obtain status information from the drive.
• Use the Logic Command to control the drive (for example, start, stop).
• Send a Reference to the drive and receive Feedback from the drive.
Adapter Settings for the Example Programs
• Node address 2 is set using parameters.
• The adapter is configured for Single mode operation (Operating Mode
Jumper J7 is set to “1x”).
Scanner Settings for the ControlLogix Example Program
• The scanner is in slot 1 and is node 1 on the ControlNet network.
• Output to the adapter is mapped in word 0 and word 1, and input from
the adapter is in words 2 and 3 (0 and 1 are pad words).
Scanner Settings for the PLC-5 Example Program
• The scanner is node 1 on the ControlNet network.
• Output to the adapter is mapped in N10:0 and N10:1, and input from
the adapter is in N9:0 and N9:1.
Logic Command/Status Words
These examples use the Logic Command word and Logic Status word
for PowerFlex 40 drives. Refer to Appendix
Wor ds to view these. The definition of the bits in these words may vary if
you are using a different DSI product. Refer to the documentation for
your product.
D, Logic Command/Status
Using the I/O5-5
ControlLogix Example
The Drive I/O Control program (Figure 5.3) defines the I/O needed to
control the drive.
The following program tags are used for the Drive I/O Control Routine:
Tag NameTypeDescription
Status_ReadyBOOLReady bit
Status_ActiveBOOLActive bit
Status_ForwardBOOLForward bit
Status_ReverseBOOLReverse bit
Status_FaultedBOOLFaulted bit
Status_At_SpeedBOOLAt speed bit
Speed_FeedbackINTSpeed feedback word
Command_StopBOOLStop bit
Command_StartBOOLStart bit
Command_JogBOOLJog bit
Command_Clear_FaultsBOOLClear faults bit
Command_Forward_ReverseBOOLForward/reverse bit
Speed_ReferenceINTSpeed reference word
5-6Using the I/O
Figure 5.3 ControlLogix Ladder Logic Example for Drive I/O Control
PowerFlex 40 ControlNet Single Mode Example
PowerFlex 40 ControlNet Single Mode Example
This ControlLogix example system consists of a 1756-CNBR/D in Slot 4 communicating on a ControlNet network with a
This ControlLogix example system consists of a 1756-CNBR/D in Slot 4 communicating on a ControlNet network with a
PowerFlex 40 drive with an installed 22-COMM-C ControlNet adapter. You may substitute the "PowerFlex 40" for a
PowerFlex 40 drive with an installed 22-COMM-C ControlNet adapter. You may substitute the "PowerFlex 40" for a
PowerFlex 400, or a PowerFlex 4 using an External DSI Communicaitons Kit (22-XCOMM-DC-BASE).
PowerFlex 400, or a PowerFlex 4 using an External DSI Communicaitons Kit (22-XCOMM-DC-BASE).
The I/O image is as follows:
The I/O image is as follows:
INPUT (4 INT words)
INPUT (4 INT words)
PowerFlex_40_Drive:I.Data[0] = 1756-CNBR Overhead (Not Used)
Logic Status information rungs are provided for display purposes only. The PowerFlex_40_Drive:I.Data[2].x bits could be
Logic Status information rungs are provided for display purposes only. The PowerFlex_40_Drive:I.Data[2].x bits could be
used directly elsewhere in the ladder program.
used directly elsewhere in the ladder program.
PowerFlex_40_Drive:I.Data[2].0
0
Status_Ready
PowerFlex_40_Drive:I.Data[2].1
1
PowerFlex_40_Drive:I.Data[2].3
2
PowerFlex_40_Drive:I.Data[2].3
3/
PowerFlex_40_Drive:I.Data[2].7
4
PowerFlex_40_Drive:I.Data[2].8
5
This rung displays the Speed Feedback word from the PowerFlex 40. Note that it is set in Hz and not in engineering units
This rung displays the Speed Feedback word from the PowerFlex 40. Note that it is set in Hz and not in engineering units
like PowerFlex 7-Class drives. For example, "300" equates to 30.0 Hz (the decimal point is always implied).
like PowerFlex 7-Class drives. For example, "300" equates to 30.0 Hz (the decimal point is always implied).
6
Logic Command bit control rungs are provided for display purposes only. The PowerFlex_40_Drive:O.Data[0].x bits could be
Logic Command bit control rungs are provided for display purposes only. The PowerFlex_40_Drive:O.Data[0].x bits could be
used directly elsewhere in the ladder program.
Figure 5.3 ControlLogix Ladder Logic Example for Drive I/O Control (Continued)
Command_Jog
9
Command_Clear_Faults
10
Command_Forward_Reverse
11
Command_Forward_Reverse
12/
This rung provides the Speed Reference word to the PowerFlex 40. Note that it is set in Hz and not in engineering units like
This rung provides the Speed Reference word to the PowerFlex 40. Note that it is set in Hz and not in engineering units like
PowerFlex 7-Class drives. For example, "300" equates to 30.0 Hz (the decimal point is always implied).
PowerFlex 7-Class drives. For example, "300" equates to 30.0 Hz (the decimal point is always implied).
13
(End)
PowerFlex_40_Drive:O.Data[0].2
PowerFlex_40_Drive:O.Data[0].3
PowerFlex_40_Drive:O.Data[0].4
PowerFlex_40_Drive:O.Data[0].5
Move
SourceSpeed_Reference
600
Dest PowerFlex_40_Drive:O.Data[1]
0
MOV
For a ControlLogix controller explicit message ladder example program,
see Figure 6.4
.
5-8Using the I/O
PLC-5 Example
The Drive I/O Control program (Figure 5.4) defines the I/O needed to
control the drive.
Figure 5.4 PLC-5 Ladder Logic Example for Drive I/O Control
In this example, an operator station is wir ed into the local PLC-5/40C rack as fol lows:
Rungs 0000 through 0005 move the Logic Status fr om the drive to the operator st ation.
Drive Logic Status
READY
0000
0001
0002
0003
0004
0005
N9:0
0
Drive Logic Status
ACTIVE
N9:0
1
Drive Logic Status
ACTUAL FORWARD /
REVERSE DIRECTION
Drive Logic Status
ACTUAL FORWARD /
REVERSE DIRECTION
Drive Logic Status
FAULTED
N9:0
7
Drive Logic Status
AT SPEED
N9:0
8
Open Pushbutton)
N9:0
3
N9:0
3
Operator
Drive Ready Status
Display
O:000
0
Operator
Drive Active Status
Display
O:000
1
Operator
Drive Actual Forward
Status Display
O:000
2
Operator
Drive Actual Reverse
Status Display
O:000
3
Operator
Drive Fault Status
Display
O:000
4
Operator
Drive At Speed
Status Display
O:000
5
Using the I/O5-9
Figure 5.4 PLC-5 Ladder Logic Example for Drive I/O Control (Continued)
Rung 0006 moves the Speed Feedback from the drive to the operator s tation.
0006
Rungs 0007 through 0012 move the Logic Command from the operator stati on to the drive.
Operator
Stop Pushbutton
0007
0008
0009
0010
0011
0012
0013
I:000
0
Operator
Start Pushbutton
I:000
1
Operator
Jog Pushbutton
I:000
2
Operator
Clear Faults
Pushbutton
I:000
3
Operator
Forward / Reverse
Selector Switch
I:000
4
Operator
Forward / Reverse
Selector Switch
I:000
4
Rung 0013 moves the Speed Reference from the operator st ation to the drive.
Drive
Speed Feedback
MOV
MOV
Move
SourceN9:1
0<
DestO:001
0<
Drive Logic Command
STOP
N10:0
0
Drive Logic Command
START
N10:0
1
Drive Logic Command
JOG
N10:0
2
Drive Logic Command
CLEAR FAULTS
N10:0
3
Drive Logic Command
FORWARD
N10:0
4
Drive Logic Command
REVERSE
N10:0
5
Drive
Speed Reference
MOV
MOV
Move
SourceI:001
0<
DestN10:1
0<
0014
END
For a PLC-5 controller explicit message ladder example program, see
Figure 6.5
.
5-10Using the I/O
Notes:
Chapter 6
Using Explicit Messaging
Chapter 6 provides information and examples that explain how to use
Explicit Messaging to configure and monitor the 22-COMM-C adapter
and PowerFlex 4-Class drive to which it is connected.
TopicPageTopicPage
About Explicit Messaging
Performing Explicit Messages 6-2PLC-5 Example6-6
ATTENTION: Risk of injury or equipment damage exists. The
examples in this publication are intended solely for purposes of
!
example. There are many variables and requirements with any
application. Rockwell Automation, Inc. does not assume responsibility
or liability (to include intellectual property liability) for actual use of
the examples shown in this publication.
ATTENTION: Risk of equipment damage exists. If Explicit Messages
are programmed to write parameter data to Non-Volatile Storage (NVS)
!
frequently, the NVS will quickly exceed its life cycle and cause the
drive to malfunction. Do not create a program that frequently uses
Explicit Messages to write parameter data to NVS.
6-1ControlLogix Example6-3
Refer to Chapter 5 for information about the I/O image, using Logic
Command/Status and Reference/Feedback.
About Explicit Messaging
Explicit Messaging is used to transfer data that does not require
continuous updates. With Explicit Messaging, you can configure and
monitor a slave device’s parameters on the ControlNet network.
Important: When an explicit message is performed, by default no I/O
connection is made since it is an “unconnected” message.
When timing of the message transaction is important, you
can create a dedicated message connection between the
controller and drive by checking the “Connected” box on
the Communications tab message configuration screen
6-2Using Explicit Messaging
during message setup. These message connections are in
addition to the I/O connection. However, the tradeoff for
more message connections is decreased network
performance. If your application cannot tolerate this, do not
check the “Connected” box.
Performing Explicit Messages
There are five basic events in the Explicit Messaging process. The details
of each step will vary depending on the type of controller being used.
Refer to the documentation for your controller.
Important: There must be a request message and a response message
for all Explicit Messages, whether you are reading or
writing data.
Figure 6.1 Explicit Message Process
Complete Explicit
➎
➍
Message
Retrieve Explicit
Message Response
Set up and send Explicit
➊
Message Request
➋
➌
Event
1. You format the required data and set up the ladder logic program to
send an Explicit Message request to the scanner or bridge module
(download).
2. The scanner or bridge module transmits the Explicit Message
Request to the slave device over the ControlNet network.
3. The slave device transmits the Explicit Message Response back to
the scanner or bridge. The data is stored in the scanner buffer.
4. The controller retrieves the Explicit Message Response from the
scanner’s buffer (upload).
5. The Explicit Message is complete. Note: When using a PLC-5
controller, delete the transaction ID so that it can be reused.
For information on the maximum number of Explicit Messages that can
be executed at a time, refer to the user manual for the bridge or scanner
and/or controller that is being used.
Using Explicit Messaging6-3
ControlLogix Example
TIP: To display the Message Configuration screen in RSLogix 5000,
add a message instruction (MSG), create a new tag for the message
(Properties: Base tag type, MESSAGE data type, controller scope), and
click the button in the message instruction.
Formatting a Message to Read a Parameter
A Get Attribute Single message is used to read a single parameter. This
example read message is for parameter d003 - [Output Current] for a
PowerFlex 4-Class drive.
Figure 6.2 Get Attribute Single Message Configuration Screens
Configuration TabExample ValueDescription
Message Type
Service Type
Service Code
Class
Instance
Attribute
Destination
Communication Tab Example ValueDescription
(2)
Path
(1)
The default setting for Service Type is “Custom,” enabling entry of a Service Code not available from the Service
Type pull-down menu. When selecting a Service Type other than “Custom” from the pull-down menu, an
appropriate Hex. value is automatically assigned to the Service Code box which grays out (unavailable).
(2)
Click Browse to find the path, or type in the name of the device listed in the I/O Configuration folder.
CIP Generic
(1)
Get Attribute Single
(1)
e (Hex.)
f (Hex.)
3 (Dec.)
1 (Hex.)
Output_Current
PowerFlex_40…The path is the route that the message will follow.
CIP messages are used to access the Parameter object
in the 22-COMM-C.
This service is used to read a parameter value.
The code for the requested service.
The Class ID for the CIP Parameter object.
The instance number is the same as the parameter
number in Single mode operation.
The attribute number for the Parameter Value attribute.
The tag where the data that is read is stored.
6-4Using Explicit Messaging
For supported classes, instances, and attributes, refer to Appendix C,
ControlNet Objects
Formatting a Message to Write to a Parameter
A Set Attribute Single message is used to write to a single parameter.
This example write message is for parameter P039 - [Accel Time 1] for a
PowerFlex 4-Class drive.
Figure 6.3 Set Attribute Single Message Configuration Screens
.
Configuration TabExample ValueDescription
Message Type
Service Type
Service Code
Class
Instance
Attribute
Source Element
Source Length
Communication Tab Example ValueDescription
(2)
Path
(1)
The default setting for Service Type is “Custom,” enabling entry of a Service Code not available from the Service
Type pull-down menu. When selecting a Service Type other than “Custom” from the pull-down menu, an
appropriate Hex. value is automatically assigned to the Service Code box which grays out (unavailable).
(2)
Click Browse to find the path, or type in the name of the device listed in the I/O Configuration folder.
For supported classes, instances, and attributes, refer to Appendix C,
ControlNet Objects
CIP Generic
(1)
Set Attribute Single
(1)
10 (Hex.)
f (Hex.)
39 (Dec.)
1 (Hex.)
Accel_Time_1
2 bytes
PowerFlex_40…The path is the route that the message will follow.
CIP messages are used to access the Parameter object
in the 22-COMM-C.
This service is used to write a parameter value.
The code for the requested service.
The Class ID for the CIP Parameter object.
The instance number is the same as the parameter
number in Single mode operation.
The attribute number for the Parameter Value attribute.
The tag where the data that is written is stored.
The size of a parameter value in a PowerFlex 4-Class
drive is always 2 bytes.
.
Using Explicit Messaging6-5
Table 6.A Tags for the ControlLogix Example Explicit Messaging Program
Figure 6.4 Example ControlLogix Ladder Logic Explicit Messaging Program
Explicit Messaging Examples
Explicit Messaging Examples
Reading a single parameter (Get Attribute Single command)
Reading a single parameter (Get Attribute Single command)
This message example reads from Parameter d003 - [Output Current] and stores its value in the "Output_Current" controller
This message example reads from Parameter d003 - [Output Current] and stores its value in the "Output_Current" controller
tag.
tag.
Perform_Parameter_Read
0
Writing a single parameter (Set Attribute Single command)
Writing a single parameter (Set Attribute Single command)
This message example writes to Parameter P039 - [Accel Time 1] and stores its value in the "Accel_Time_1" controller tag.
This message example writes to Parameter P039 - [Accel Time 1] and stores its value in the "Accel_Time_1" controller tag.
1
Perform_Parameter_Write
Type - CIP Generic
Message ControlParameter_Read_Message
Type - CIP Generic
Message ControlParameter_Write_Message
MSG
MSG
EN
DN
...
ER
EN
DN
...
ER
(End)
For a ControlLogix controller I/O ladder example program, see
Figure 5.3
.
6-6Using Explicit Messaging
PLC-5 Example
Important: Due to controller limitations, explicit messaging can only
be performed on drive parameters up to Parameter 256.
The ControlNet I/O Transfer (CIO) instruction is used for PLC-5
controllers to send explicit messages.
Formatting a Message to Read a Parameter
This read message example is for parameter d003 - [Output Current] for
a PowerFlex 4-Class drive.
Configuration BoxExample Value Description
Communication
Command
Service Code
Class Number
Instance Number
Attribute Number
PLC-5 Data Table
Address
Size in Elements
Por t Numb er
Local ControlNet Node
CIP Generic
e (Hex.)
f (Hex.)
3 (Hex.)
1 (Hex.)
N7:2
1
2
2
For supported classes, instances, and attributes, refer to Appendix
ControlNet Objects
CIP messages are used to access the Parameter object in
the 22-COMM-C.
The code for the Get_Attribute_Single service.
The Class ID for the CIP Parameter object.
The instance number is the same as the parameter number
in Single mode operation.
The attribute number for the Parameter Value attribute.
The user-defined address for any response service data
received by the controller.
The number of elements in the response data.
The channel on the PLC-5 used for the ControlNet network.
The node address of the 22-COMM-C adapter.
.
C,
Formatting a Message to Write to a Parameter
This write message example is for parameter P039 - [Accel Time 1] for a
PowerFlex 4-Class drive.
Configuration BoxExample Value Description
Communication
Command
Service Code
Class Number
Instance Number
Attribute Number
PLC-5 Data Table
Address
Size in Elements
Por t Numb er
Local ControlNet Node
CIP Generic
10 (Hex.)
f (Hex.)
27 (Hex.)
1 (Hex.)
N7:3
1
2
2
CIP messages are used to access the Parameter object in
the 22-COMM-C.
The code for the Set_Attribute_Single service.
The Class ID for the CIP Parameter object.
The instance number is the same as the parameter number
in Single mode operation.
The attribute number for the Parameter Value attribute.
The user-defined address for any request service data sent
by the controller.
The number of elements in the request data.
The channel on the PLC-5 used for the ControlNet network.
The node address of the 22-COMM-C adapter.
Using Explicit Messaging6-7
For supported classes, instances, and attributes, refer to Appendix
ControlNet Objects.
C,
6-8Using Explicit Messaging
Ladder Logic Program
Figure 6.5 Example PLC-5 Ladder Logic Explicit Messaging Program
Rung 0000 enables the user to initiate an explicit message to read from Parameter d003 [Output
Current] in the drive.
Initiate Explicit
Message Parameter
Read
0000
Rung 0001 enables the user to initiate an explicit message to write to Parameter P039 [Accel
Time 1] in the drive.
0001
0002
B3:0
0
Initiate Explicit
Message Parameter
Write
B3:0
1
For a PLC-5 controller I/O ladder example program, see Figure 5.4.
Explicit Message
Parameter Read
CIO
CIO
ControlNet I/O Transfer
ControlCT12:0
Setup Screen
Explicit Message
Parameter Write
CIO
CIO
ControlNet I/O Transfer
ControlCT12:1
Setup Screen
EN
DN
ER
EN
DN
ER
END
Chapter 7
Using Multi-Drive Mode
Chapter 7 provides information on how to use Multi-Drive mode and
includes ControlLogix and PLC-5 ladder examples.
TopicPage
Single Mode vs. Multi-Drive Mode
System Wiring7-4
Understanding the I/O Image7-5
Configuring the RS-485 Network7-7
Example Configuration Settings7-8
ControlLogix I/O Example7-9
ControlLogix Explicit Messaging7-22
PLC-5 I/O Example7-24
Additional Information7-36
7-1
ATTENTION: Risk of injury or equipment damage exists. The
examples in this publication are intended solely for purposes of
!
example. There are many variables and requirements with any
application. Rockwell Automation, Inc. does not assume responsibility
or liability (to include intellectual property liability) for actual use of
the examples shown in this publication.
Single Mode vs. Multi-Drive Mode
Single mode is a typical network installation, where a single ControlNet
node consists of a single drive with a 22-COMM-C adapter (Figure 7.1
).
7-2Using Multi-Drive Mode
Figure 7.1 Single Mode Example for Network
ControlNet Network
PowerFlex 40 or 400 Drive
with 22-COMM-C Adapter
Multi-Drive mode is an alternative to the typical network installation,
where a single ControlNet node can consist of one to five drives. In
Figure 7.2
PowerFlex 40/400 drive, and the remaining PowerFlex 4-Class drives are
daisy-chained from the RS-485 port on the first drive. In Figure 7.3, the
22-COMM-C adapter is externally mounted in a DSI External Comms
Kit, and all PowerFlex 4-Class drives are daisy-chained from it.
Figure 7.2 Multi-Drive Mode Example for Network - PowerFlex 40 Mounting
Terminating Resistor
, the 22-COMM-C adapter is internally mounted in a
ControlNet Network
PowerFlex 40
or 400 Drive
AK-U0-RJ45-TB2P
Connector with
1 drive per node
PowerFlex 40 or 400 Drive
with 22-COMM-C Adapter
up to 5 drives per node
Up to 4 Additional PowerFlex 4-Class Drives
22-COMM-C
Adapter
AK-U0-RJ45-TB2PRS-485
PowerFlex 40 or 400 Drive
with 22-COMM-C Adapter
AK-U0-RJ45-TB2P
Connector with
Terminating Resistor
Figure 7.3 Multi-Drive Mode Example for Network - External Comms Kit Mounting
ControlNet Network
DSI External Comms Kit
(22-XCOMM-DC-BASE)
NOTE: A terminating resistor
is not required for this end of
of the wiring. The resistor is
built into the circuitry of the
DSI External Comms Kit.
up to 5 drives per node
PORT
MOD
NET A
NET B
22-COMM-C
Adapter
Up to 5 PowerFlex 4-Class Drives
AK-U0-RJ45-TB2PRS-485
AK-U0-RJ45-TB2P
Connector with
Terminating Resistor
Using Multi-Drive Mode7-3
Benefits of Multi-Drive mode include:
• Lower hardware costs. Only one adapter is needed for up to five
drives. Any PowerFlex 4-Class drive can be daisy-chained.
• Reduces the network node count. For example, in Single mode 30
drives would consume 30 nodes. In Multi-Drive mode, 30 drives can
be connected in 6 nodes.
• Provides a convenient way to put more than one PowerFlex 4 drive on
the network using only one adapter (PowerFlex 4 drives do not have
an internal communications adapter slot).
• Controller can control, monitor, and read/write parameters for all five
drives.
Trade-offs of Multi-Drive mode include:
• When a PowerFlex 40/400 drive with an internal-mounted adapter is
powered down, communications with the daisy-chained drives is
disrupted and the drives will take the appropriate communications
loss action set in each drive. However, communications will not be
disrupted when the adapter is used in a DSI External Comms Kit and
a daisy-chained drive is powered down.
• Communications throughput to the daisy-chained drives will be
slower than if each drive was a separate node on the network (Single
mode). This is because the adapter must take the network data for the
other drives and sequentially send the respective data to each drive
over RS-485. The approximate additional throughput time for Logic
Command/Reference to be transmitted and received by each drive in
Multi-Drive mode is:
Adapter Mounted In
PowerFlex 40/400 or
DSI External Comms
Kit
• Since the RS-485 ports are used for daisy-chaining the drives, there is
no connection for a peripheral device such as a HIM. The
AK-U0-RJ45-SC1 DSI Splitter cable cannot be used to add a second
connection for a peripheral device.
Drives per
Node
1 drive0 milliseconds
2 drives+24 milliseconds
3 drives+48 milliseconds
4 drives+72 milliseconds
5 drives+96 milliseconds
Additional Throughput
Time versus Single Mode
7-4Using Multi-Drive Mode
System Wiring
The AK-U0-RJ45-TB2P two-position terminal block connector
(Figure 7.4) can be used to conveniently daisy-chain the PowerFlex
4-Class drives. Two terminating resistors are also included with terminal
block connectors in the AK-U0-RJ45-TB2P kit.
To DSI External Comms Kit
(with 22-COMM-C adapter)
NOTE: A terminating resistor
is not required for this end of
of the wiring. The resistor is
built into the circuitry of the
DSI External Comms Kit.
Drive 1
To
Drive 0
To
Drive 1
To
Drive 2
Drive 2
To
To
Drive 3
Drive 3
To
To
Drive 4
120
¼ Watt
Resistor
To
Drive 4
Ω
Ω
120
¼ Watt
Resistor
Using Multi-Drive Mode7-5
Understanding the I/O Image
The terms input and output are defined from the scanner’s point of view.
Therefore, output I/O is data that is output from the scanner and
consumed by the adapter. Input I/O is status data that is produced by the
adapter and consumed as input by the scanner. The I/O image table will
vary based on the configuration of the adapter:
• Operating Mode Jumper J7 (Figure 2.1
• Parameter 12 - [DSI I/O Cfg]
The image table always uses consecutive words starting at word 0.
Figure 7.7
image with 16-bit words for ControlLogix and PLC-5 controllers
respectively.
Figure 7.7 Multi-Drive Example of I/O Image for ControlLogix
Controller
and Figure 7.8 illustrate examples of the Multi-Drive I/O
ControlNet
Scanner
or
Bridge
Output
Image
(Write)
Input
Image
(Read)
Word and I/O
0 Logic Command
1 Reference
2 Logic Command
3 Reference
4 Logic Command
5 Reference
6 Logic Command
7 Reference
8 Logic Command
9 Reference
0 Pad Word
1 Pad Word
2 Logic Status
3 Feedback
4 Logic Status
5 Feedback
6 Logic Status
7 Feedback
8 Logic Status
9 Feedback
10 Logic Status
11 Feedback
)
DSI
Adapter
PowerFlex Drive 0
Power Flex Dr ive 1
PowerFlex Drive 2
PowerFlex Drive 3
PowerFlex Drive 4
PowerFlex Drive 0
PowerFlex Drive 1
PowerFlex Drive 2
Power Flex Dr ive 3
PowerFlex Drive 4
Message
Handler
Message
Buffer
7-6Using Multi-Drive Mode
Figure 7.8 Multi-Drive Example of I/O Image for PLC-5
Controller
Scanner
or
Bridge
Output
Image
(Write)
Input
Image
(Read)
Message
Handler
ControlNet
Adapter
Word and I/O
0 Logic Command
1 Reference
2 Logic Command
3 Reference
4 Logic Command
5 Reference
6 Logic Command
7 Reference
8 Logic Command
9 Reference
0 Logic Status
1 Feedback
2 Logic Status
3 Feedback
4 Logic Status
5 Feedback
6 Logic Status
7 Feedback
8 Logic Status
9 Feedback
Message
Buffer
DSI
PowerFlex Drive 0
Power Flex Dr ive 1
PowerFlex Drive 2
PowerFlex Drive 3
PowerFlex Drive 4
PowerFlex Drive 0
PowerFlex Drive 1
PowerFlex Drive 2
Power Flex Dr ive 3
PowerFlex Drive 4
Note: If a daisy-chained drive is disconnected from the RS-485 (DSI)
network or powered down, the Logic Status and Feedback words for the
affected drive will be set to 0.
Using Multi-Drive Mode7-7
Configuring the RS-485 Network
The following parameters in each daisy-chained drive must be set to
these values:
ParameterValue
P36 - [Start Source]5 (Comm Port)
P38 - [Speed Reference]5 (Comm Port)
A103 - [Comm Data Rate]4 (19.2K)
A104 - [Comm Node Addr]1-247 (must be unique)
A107 - [Comm Format]0 (RTU 8-N-1)
Note that the RS-485 network is fixed at 19.2K baud, 8 data bits, no
parity, and 1 stop bit.
Important: Parameter A105 - [Comm Loss Action] in the drives that
are daisy chained is still used in Multi-Drive mode. If the
RS-485 cable is disconnected or broken, the disconnected
drive(s) will immediately take the corresponding Comm
Loss Action(s). Drive parameter A106 - [Comm Loss
Time] is not used in Multi-Drive mode. For a network
disruption, adapter Parameters 08 - [Comm Flt Action]
and 09 - [Idle Flt Action] determine the action taken for
ALL of the drives on the Multi-Drive node.
The following Multi-Drive parameters must be set in the 22-COMM-C:
After setting the 22-COMM-C parameters, set the Operating Mode
Jumper (J7) from “1x” (Single mode) to “5x” (Multi-Drive) operation,
and reset the adapter or cycle power to invoke the change. Refer to
Setting Operating Mode and Node Address Switches
Important: The 22-COMM-C parameters can be set using a DSI
peripheral (HIM, DriveExplorer with 22-SCM-232, etc.)
ONLY when the Operating Mode Jumper is in the “1x”
(Single mode) position.
The settings for these parameters must match the parameter A104 - [Comm Node
Addr] settings in the respective drives.
(1)
(1)
(1)
(1)
(1)
Drive Settings
Parameters for the five drives are set as follows:
1Address of Drive 0
2Address of Drive 1
3Address of Drive 2
4Address of Drive 3
5Address of Drive 4
Parameter
P36 - [Start Source]55555
P38 - [Speed Reference]55555
A103 - [Comm Data Rate]
A104 - [Comm Node Addr]
A105 - [Comm Loss Action]00000
A106 - [Comm Loss Time]55555
A107 - [Comm Format]
(1)
The drive must be reset for a change to this parameter to take effect.
(2)
The settings for these parameters must match the respective parameter settings in the
adapter (Parameter 14 - [Drv 0 Addr] through Parameter 18 - [Drv 4 Addr]).
Drive 0 Drive 1 Drive 2 Drive 3 Drive 4
(1)
44444
(1)(2)
12345
(1)
00000
Val ue
Using Multi-Drive Mode7-9
ControlLogix I/O Example
This example ladder logic program demonstrates using Multi-Drive
mode with five drives. See Figure 7.2 or Figure 7.3 for a system layout
diagram.
Function of the Example Program
This example program enables you to:
• View status information from the drives such as Ready, Faulted, At
Speed, and Feedback.
• Control the drives using various Logic Command bits (Stop, Start,
etc.) and Reference.
• Perform a single parameter read of drive parameter d003 - [Output
Current] and a single parameter write to drive parameter P039 [Accel Time 1].
Main Routine
The Main Routine reads the network Input Image from the scanner,
initiates Drive 0 through Drive 4 control subroutines, and writes the
network Output Image to the scanner. See Figure 7.9. The Generic
Controller Module is configured for an Input Size of 12 words and an
Output Size of 10 words. For additional information about I/O
connection sizes, see Table 4.A
.
The following controller tags are used:
Tag NameTypeDescription
Drive_Input_ImageINT [10]Input Image Table
Drive_Output_ImageINT [10]Output Image Table
7-10Using Multi-Drive Mode
_
_
Figure 7.9 ControlLogix Main Routine
PowerFlex 40 ControlNet Multi-Drive Mode Example
PowerFlex 40 ControlNet Multi-Drive Mode Example
ControlLogix Multi-Drive Mode example program with a PowerFlex 40 on ControlNet (22-COMM-C adapter). In this example,
ControlLogix Multi-Drive Mode example program with a PowerFlex 40 on ControlNet (22-COMM-C adapter). In this example,
Four (4) PowerFlex 4 drives are daisy-chained to the main PowerFlex 40 (with installed 22-COMM-C adapter) via their RJ-45
Four (4) PowerFlex 4 drives are daisy-chained to the main PowerFlex 40 (with installed 22-COMM-C adapter) via their RJ-45
ports (RS-485). In this mode, a total of up to five (5) PowerFlex 4/40/400's can exist as one (1) ControlNet node on the
ports (RS-485). In this mode, a total of up to five (5) PowerFlex 4/40/400's can exist as one (1) ControlNet node on the
network.
network.
This rung retrieves the Logic Status and Speed Feedback data for all five (5) drives from the scanner (array of INTs), and
This rung retrieves the Logic Status and Speed Feedback data for all five (5) drives from the scanner (array of INTs), and
moves them to specific INT tags for use elsewhere in the ladder program. The input image is as follows:
moves them to specific INT tags for use elsewhere in the ladder program. The input image is as follows:
Drive_Input_Image[0] and Drive_Input_Image[1] = Drive 0 Logic Status and Speed Feedback
Drive_Input_Image[0] and Drive_Input_Image[1] = Drive 0 Logic Status and Speed Feedback
Drive_Input_Image[2] and Drive_Input_Image[3] = Drive 1 Logic Status and Speed Feedback
Drive_Input_Image[2] and Drive_Input_Image[3] = Drive 1 Logic Status and Speed Feedback
Drive_Input_Image[4] and Drive_Input_Image[5] = Drive 2 Logic Status and Speed Feedback
Drive_Input_Image[4] and Drive_Input_Image[5] = Drive 2 Logic Status and Speed Feedback
Drive_Input_Image[6] and Drive_Input_Image[7] = Drive 3 Logic Status and Speed Feedback
Drive_Input_Image[6] and Drive_Input_Image[7] = Drive 3 Logic Status and Speed Feedback
Drive_Input_Image[8] and Drive_Input_Image[9] = Drive 4 Logic Status and Speed Feedback
Drive_Input_Image[8] and Drive_Input_Image[9] = Drive 4 Logic Status and Speed Feedback
This rung writes the output image to the scanner. The output image is as follows:
This rung writes the output image to the scanner. The output image is as follows:
Drive_Output_Image[0] and Drive_Output_Image[1] = Drive 0 Logic Command and Speed Reference
Drive_Output_Image[0] and Drive_Output_Image[1] = Drive 0 Logic Command and Speed Reference
Drive_Output_Image[2] and Drive_Output_Image[3] = Drive 1 Logic Command and Speed Reference
Drive_Output_Image[2] and Drive_Output_Image[3] = Drive 1 Logic Command and Speed Reference
Drive_Output_Image[4] and Drive_Output_Image[5] = Drive 2 Logic Command and Speed Reference
Drive_Output_Image[4] and Drive_Output_Image[5] = Drive 2 Logic Command and Speed Reference
Drive_Output_Image[6] and Drive_Output_Image[7] = Drive 3 Logic Command and Speed Reference
Drive_Output_Image[6] and Drive_Output_Image[7] = Drive 3 Logic Command and Speed Reference
Drive_Output_Image[8] and Drive_Output_Image[9] = Drive 4 Logic Command and Speed Reference
Drive_Output_Image[8] and Drive_Output_Image[9] = Drive 4 Logic Command and Speed Reference
(Note the length of the COP instruction is "10" because the Destination address is an INT)
(Note the length of the COP instruction is "10" because the Destination address is an INT)
6
(End)
Copy File
SourceDrive_Output_Image[0]
5_PowerFlex_4_Class_Drives:O.Data[0]
Dest
Length10
JSR
Jump To Subroutine
Routine Name Drive_3
JSR
Jump To Subroutine
Routine Name Drive_4
COP
Using Multi-Drive Mode7-11
Drive 0 - Drive 4 Control Subroutines
The following Drive Control subroutines provide status information
(Logic Status and Feedback), control (Logic Command and Reference),
and parameter read/write for each of the respective drives:
Control Subroutine Refer to…
Drive 0Figure 7.10
Drive 1Figure 7.11
Drive 2Figure 7.12
Drive 3Figure 7.13
Drive 4Figure 7.14
The following program tags are used for the Drive 0 Control Subroutine:
Tag NameTypeDescription
Drive_0_Status_ReadyBOOLDrive 0 ready bit
Drive_0_Status_ActiveBOOLDrive 0 active bit
Drive_0_Status_ForwardBOOLDrive 0 forward bit
Drive_0_Status_ReverseBOOLDrive 0 reverse bit
Drive_0_Status_FaultedBOOLDrive 0 faulted bit
Drive_0_Status_At_SpeedBOOLDrive 0 at speed bit
Drive_0_Speed_FeedbackINTDrive 0 speed feedback word
Drive_0_Command_StopBOOLDrive 0 stop bit
Drive_0_Command_StartBOOLDrive 0 start bit
Drive_0_Command_JogBOOLDrive 0 jog bit
Drive_0_Command_Clear_FaultsBOOLDrive 0 clear faults bit
Drive_0_Command_Forward_ReverseBOOLDrive 0 forward/reverse bit
Drive_0_Speed_ReferenceINTDrive 0 speed reference word
Drive 1 through Drive 4 program tags are identical except for the naming
convention. For example, “Drive_0_Status_Ready” for Drive 0 would be
“Drive_1_Status_Ready” for Drive 1.
7-12Using Multi-Drive Mode
Figure 7.10 ControlLogix Drive 0 Control Subroutine
Drive 0 Control Subroutine
Drive 0 Control Subroutine
This section takes the data from the input image area and moves it to specific tags (Logic Status bits and Speed Feedback)
This section takes the data from the input image area and moves it to specific tags (Logic Status bits and Speed Feedback)
for use elsewhere in the ladder program.
for use elsewhere in the ladder program.
Drive_Input_Image[0].0
0
Drive_0_Status_Ready
Drive_Input_Image[0].1
1
2
3/
4
5
6Copy File
7
8
9
10
11
12/
Drive_Input_Image[0].3
Drive_Input_Image[0].3
Drive_Input_Image[0].7
Drive_Input_Image[0].8
SourceDrive_Input_Image[1]
This section takes the data from specific tags (Logic Command bits and Speed Reference) and moves them to the output
This section takes the data from specific tags (Logic Command bits and Speed Reference) and moves them to the output
image area for transmission to the scanner.
image area for transmission to the scanner.
Drive_0_Command_Stop
Drive_0_Command_Start
Drive_0_Command_Jog
Drive_0_Command_Clear_Faults
Drive_0_Command_Forward_Reverse
Dest Drive_0_Speed_Feedback
Length1
Drive_0_Command_Forward_Reverse
Drive_0_Status_Active
Drive_0_Status_Forward
Drive_0_Status_Reverse
Drive_0_Status_Faulted
Drive_0_Status_At_Speed
COP
Drive_Output_Image[0].0
Drive_Output_Image[0].1
Drive_Output_Image[0].2
Drive_Output_Image[0].3
Drive_Output_Image[0].4
Drive_Output_Image[0].5
Using Multi-Drive Mode7-13
Figure 7.10 ControlLogix Drive 0 Control Subroutine (Continued)
13Copy File
Explicit Messaging Example
Explicit Messaging Example
Drive 0 parameters are accessed by adding 17408 decimal (4400 hex) to the desired parameter number. This example
Drive 0 parameters are accessed by adding 17408 decimal (4400 hex) to the desired parameter number. This example
reads data from Parameter d003 - [Output Current] by using an Instance of 17411 (17408 + 3).
reads data from Parameter d003 - [Output Current] by using an Instance of 17411 (17408 + 3).
Drive_0_Perform_Parameter_Read
14
Drive 0 parameters are accessed by adding 17408 decimal (4400 hex) to the desired parameter number. This example
Drive 0 parameters are accessed by adding 17408 decimal (4400 hex) to the desired parameter number. This example
writes data to Parameter P039 - [Accel Time 1] by using an Instance of 17447 (17408 + 39).
writes data to Parameter P039 - [Accel Time 1] by using an Instance of 17447 (17408 + 39).
Drive_0_Perform_Parameter_Write
15
Type - CIP Generic
Message ControlDrive_0_Parameter_Read_Message
Type - CIP Generic
Message ControlDrive_0_Parameter_Write_Message
Figure 7.11 ControlLogix Drive 1 Control Subroutine
Drive 1 Control Subroutine
Drive 1 Control Subroutine
This section takes the data from the input image area and moves it to specific tags (Logic Status bits and Speed Feedback)
This section takes the data from the input image area and moves it to specific tags (Logic Status bits and Speed Feedback)
for use elsewhere in the ladder program.
for use elsewhere in the ladder program.
0
Drive_Input_Image[2].0
Drive_1_Status_Ready
Drive_Input_Image[2].1
1
2
3/
4
5
6Copy File
This section takes the data from specific tags (Logic Command bits and Speed Reference) and moves them to the output
This section takes the data from specific tags (Logic Command bits and Speed Reference) and moves them to the output
image area for transmission to the scanner.
image area for transmission to the scanner.
7
8
9
10
11
12/
Drive_Input_Image[2].3
Drive_Input_Image[2].3
Drive_Input_Image[2].7
Drive_Input_Image[2].8
Drive_1_Command_Stop
Drive_1_Command_Start
Drive_1_Command_Jog
Drive_1_Command_Clear_Faults
Drive_1_Command_Forward_Reverse
Drive_1_Command_Forward_Reverse
Source Drive_Input_Image[3]
Dest Drive_1_Speed_Feedback
Length1
Drive_1_Status_Active
Drive_1_Status_Forward
Drive_1_Status_Reverse
Drive_1_Status_Faulted
Drive_1_Status_At_Speed
COP
Drive_Output_Image[2].0
Drive_Output_Image[2].1
Drive_Output_Image[2].2
Drive_Output_Image[2].3
Drive_Output_Image[2].4
Drive_Output_Image[2].5
Using Multi-Drive Mode7-15
Figure 7.11 ControlLogix Drive 1 Control Subroutine (Continued)
13Copy File
Explicit Messaging Example
Explicit Messaging Example
Drive 1 parameters are accessed by adding 18432 decimal (4800 hex) to the desired parameter number. This example
Drive 1 parameters are accessed by adding 18432 decimal (4800 hex) to the desired parameter number. This example
reads data from Parameter d003 - [Output Current] by using an Instance of 18435 (18432 + 3).
reads data from Parameter d003 - [Output Current] by using an Instance of 18435 (18432 + 3).
Drive_1_Perform_Parameter_Read
14
Drive 1 parameters are accessed by adding 18432 decimal (4800 hex) to the desired parameter number. This example
Drive 1 parameters are accessed by adding 18432 decimal (4800 hex) to the desired parameter number. This example
writes data to Parameter P039 - [Accel Time 1] by using an Instance of 18471 (18432 + 39).
writes data to Parameter P039 - [Accel Time 1] by using an Instance of 18471 (18432 + 39).
Drive_1_Perform_Parameter_Write
15
Type - CIP Generic
Message ControlDrive_1_Parameter_Read_Message
Type - CIP Generic
Message ControlDrive_1_Parameter_Write_Message
Figure 7.12 ControlLogix Drive 2 Control Subroutine
Drive 2 Control Subroutine
Drive 2 Control Subroutine
This section takes the data from the input image area and moves it to specific tags (Logic Status bits and Speed Feedback)
This section takes the data from the input image area and moves it to specific tags (Logic Status bits and Speed Feedback)
for use elsewhere in the ladder program.
for use elsewhere in the ladder program.
0
Drive_Input_Image[4].0
Drive_2_Status_Ready
Drive_Input_Image[4].1
1
2
3/
4
5
6Copy File
This section takes the data from specific tags (Logic Command bits and Speed Reference) and moves them to the output
This section takes the data from specific tags (Logic Command bits and Speed Reference) and moves them to the output
image area for transmission to the scanner.
image area for transmission to the scanner.
7
8
9
10
11
12/
Drive_Input_Image[4].3
Drive_Input_Image[4].3
Drive_Input_Image[4].7
Drive_Input_Image[4].8
Drive_2_Command_Stop
Drive_2_Command_Start
Drive_2_Command_Jog
Drive_2_Command_Clear_Faults
Drive_2_Command_Forward_Reverse
Drive_2_Command_Forward_Reverse
Source Drive_Input_Image[5]
Dest Drive_2_Speed_Feedback
Length1
Drive_2_Status_Active
Drive_2_Status_Forward
Drive_2_Status_Reverse
Drive_2_Status_Faulted
Drive_2_Status_At_Speed
COP
Drive_Output_Image[4].0
Drive_Output_Image[4].1
Drive_Output_Image[4].2
Drive_Output_Image[4].3
Drive_Output_Image[4].4
Drive_Output_Image[4].5
Using Multi-Drive Mode7-17
Figure 7.12 ControlLogix Drive 2 Control Subroutine (Continued)
13Copy File
Explicit Messaging Example
Explicit Messaging Example
Drive 2 parameters are accessed by adding 19456 decimal (4C00 hex) to the desired parameter number. This example
Drive 2 parameters are accessed by adding 19456 decimal (4C00 hex) to the desired parameter number. This example
reads data from Parameter d003 - [Output Current] by using an Instance of 19459 (19456 + 3).
reads data from Parameter d003 - [Output Current] by using an Instance of 19459 (19456 + 3).
Drive_2_Perform_Parameter_Read
14
Drive 2 parameters are accessed by adding 19456 decimal (4C00 hex) to the desired parameter number. This example
Drive 2 parameters are accessed by adding 19456 decimal (4C00 hex) to the desired parameter number. This example
writes data to Parameter P039 - [Accel Time 1] by using an Instance of 19495 (19456 + 39).
writes data to Parameter P039 - [Accel Time 1] by using an Instance of 19495 (19456 + 39).
Drive_2_Perform_Parameter_Write
15
Type - CIP Generic
Message ControlDrive_2_Parameter_Read_Message
Type - CIP Generic
Message ControlDrive_2_Parameter_Write_Message
Figure 7.13 ControlLogix Drive 3 Control Subroutine
Drive 3 Control Subroutine
Drive 3 Control Subroutine
This section takes the data from the input image area and moves it to specific tags (Logic Status bits and Speed Feedback)
This section takes the data from the input image area and moves it to specific tags (Logic Status bits and Speed Feedback)
for use elsewhere in the ladder program.
for use elsewhere in the ladder program.
0
Drive_Input_Image[6].0
Drive_3_Status_Ready
Drive_Input_Image[6].1
1
2
3/
4
5
6Copy File
This section takes the data from specific tags (Logic Command bits and Speed Reference) and moves them to the output
This section takes the data from specific tags (Logic Command bits and Speed Reference) and moves them to the output
image area for transmission to the scanner.
image area for transmission to the scanner.
7
8
9
10
11
12/
Drive_Input_Image[6].3
Drive_Input_Image[6].3
Drive_Input_Image[6].7
Drive_Input_Image[6].8
Drive_3_Command_Stop
Drive_3_Command_Start
Drive_3_Command_Jog
Drive_3_Command_Clear_Faults
Drive_3_Command_Forward_Reverse
Drive_3_Command_Forward_Reverse
Source Drive_Input_Image[7]
Dest Drive_3_Speed_Feedback
Length1
Drive_3_Status_Active
Drive_3_Status_Forward
Drive_3_Status_Reverse
Drive_3_Status_Faulted
Drive_3_Status_At_Speed
COP
Drive_Output_Image[6].0
Drive_Output_Image[6].1
Drive_Output_Image[6].2
Drive_Output_Image[6].3
Drive_Output_Image[6].4
Drive_Output_Image[6].5
Using Multi-Drive Mode7-19
Figure 7.13 ControlLogix Drive 3 Control Subroutine (Continued)
13Copy File
Explicit Messaging Example
Explicit Messaging Example
Drive 3 parameters are accessed by adding 20480 decimal (5000 hex) to the desired parameter number. This example
Drive 3 parameters are accessed by adding 20480 decimal (5000 hex) to the desired parameter number. This example
reads data from Parameter d003 - [Output Current] by using an Instance of 20483 (20480 + 3).
reads data from Parameter d003 - [Output Current] by using an Instance of 20483 (20480 + 3).
Drive_3_Perform_Parameter_Read
14
Drive 3 parameters are accessed by adding 20480 decimal (5000 hex) to the desired parameter number. This example
Drive 3 parameters are accessed by adding 20480 decimal (5000 hex) to the desired parameter number. This example
writes data to Parameter P039 - [Accel Time 1] by using an Instance of 20519 (20480 + 39).
writes data to Parameter P039 - [Accel Time 1] by using an Instance of 20519 (20480 + 39).
Drive_3_Perform_Parameter_Write
15
Type - CIP Generic
Message ControlDrive_3_Parameter_Read_Message
Type - CIP Generic
Message ControlDrive_3_Parameter_Write_Message
Figure 7.14 ControlLogix Drive 4 Control Subroutine
Drive 4 Control Subroutine
Drive 4 Control Subroutine
This section takes the data from the input image area and moves it to specific tags (Logic Status bits and Speed Feedback)
This section takes the data from the input image area and moves it to specific tags (Logic Status bits and Speed Feedback)
for use elsewhere in the ladder program.
for use elsewhere in the ladder program.
0
Drive_Input_Image[8].0
Drive_4_Status_Ready
Drive_Input_Image[8].1
1
2
3/
4
5
6Copy File
This section takes the data from specific tags (Logic Command bits and Speed Reference) and moves them to the output
This section takes the data from specific tags (Logic Command bits and Speed Reference) and moves them to the output
image area for transmission to the scanner.
image area for transmission to the scanner.
7
8
9
10
11
12/
Drive_Input_Image[8].3
Drive_Input_Image[8].3
Drive_Input_Image[8].7
Drive_Input_Image[8].8
Drive_4_Command_Stop
Drive_4_Command_Start
Drive_4_Command_Jog
Drive_4_Command_Clear_Faults
Drive_4_Command_Forward_Reverse
Drive_4_Command_Forward_Reverse
Source Drive_Input_Image[9]
Dest Drive_4_Speed_Feedback
Length1
Drive_4_Status_Active
Drive_4_Status_Forward
Drive_4_Status_Reverse
Drive_4_Status_Faulted
Drive_4_Status_At_Speed
COP
Drive_Output_Image[8].0
Drive_Output_Image[8].1
Drive_Output_Image[8].2
Drive_Output_Image[8].3
Drive_Output_Image[8].4
Drive_Output_Image[8].5
Using Multi-Drive Mode7-21
Figure 7.14 ControlLogix Drive 4 Control Subroutine (Continued)
13Copy File
Explicit Messaging Example
Explicit Messaging Example
Drive 4 parameters are accessed by adding 21504 decimal (5400 hex) to the desired parameter number. This example
Drive 4 parameters are accessed by adding 21504 decimal (5400 hex) to the desired parameter number. This example
reads data from Parameter d003 - [Output Current] by using an Instance of 21507 (21504 + 3).
reads data from Parameter d003 - [Output Current] by using an Instance of 21507 (21504 + 3).
Drive_4_Perform_Parameter_Read
14
Drive 4 parameters are accessed by adding 21504 decimal (5400 hex) to the desired parameter number. This example
Drive 4 parameters are accessed by adding 21504 decimal (5400 hex) to the desired parameter number. This example
writes data to Parameter P039 - [Accel Time 1] by using an Instance of 21543 (21504 + 39).
writes data to Parameter P039 - [Accel Time 1] by using an Instance of 21543 (21504 + 39).
Drive_4_Perform_Parameter_Write
15
Type - CIP Generic
Message ControlDrive_4_Parameter_Read_Message
Type - CIP Generic
Message ControlDrive_4_Parameter_Write_Message
Parameter addressing for Explicit messaging is different in Multi-Drive
than with Single mode. In Single mode, the Instance value in the
message equals the desired parameter number in the drive. In
Multi-Drive mode, an Instance table is used to account for the
parameters in the adapter and up to 5 drives. The parameters in the
adapter and each of the drives are offset by 400 hex (1024 decimal):
Instance (Hex.)(Dec.)DeviceParameter
4000 - 43FF16384 - 1740722-COMM-C 0 - 1023
4400 - 47FF17408 - 18431Drive 00 - 1023
4800 - 4BFF18432 - 19455Drive 10 - 1023
4C00 - 4FFF19456 - 20479Drive 20 - 1023
5000 - 53FF20480 - 21503Drive 30 - 1023
5400 - 57FF21504 - 22527Drive 40 - 1023
Explicit messages for Drive 0 through Drive 4 are identical except for
the Instance values. The following PowerFlex 4-Class drive parameters
used for the explicit message example in this section show the different
Instance values required for each drive:
The Explicit message examples in the ControlLogix example program
(Figure 7.10
[Output Current] and a write (Set_Attribute_Single) to parameter P039 [Accel Time 1] for PowerFlex 4-Class drives. The configuration for the
read is shown in Figure 7.15
) perform a read (Get_Attribute_Single) of parameter d003 -
The Class Code is “ f ” for the CIP Parameter Object and the Attribute is
“1” to select the parameter value. See Appendix C, Parameter Object for
more information. The Instance value is “17411” to access parameter
d003 - [Output Current] and “17447” to access parameter P039 - [Accel
Time 1].
7-24Using Multi-Drive Mode
PLC-5 I/O Example
Important: Due to PLC-5 controller limitations, explicit messaging
cannot be performed in Multi-Drive mode.
This example ladder logic program demonstrates using Multi-Drive
mode with five drives. See Figure 7.2
diagram.
Function of the Example Program
This example program enables you to:
• View status information from the drives such as Ready, Faulted, At
Speed, and Feedback.
• Control the drives using various Logic Command bits (Stop, Start,
etc.) and Reference.
Main Routine
The Main Routine reads the network Input Image from the scanner,
initiates Drive 0 through Drive 4 control subroutines (U:3 through U:7
files), and writes the network Output Image to the scanner. See
Figure 7.17
.
or Figure 7.3 for a system layout
Figure 7.17 PLC-5 Main Routine
Using Multi-Drive Mode7-25
Rung 0000 enables the controller to activate the Drive 0 control (DRIVE 0) subroutine (LAD 3)
0000
Rung 0001 enables the controller to activate the Drive 1 control (DRIVE 1) subroutine (LAD 4)
0001
Rung 0002 enables the controller to activate the Drive 2 control (DRIVE 2) subroutine (LAD 5)
0002
Rung 0003 enables the controller to activate the Drive 3 control (DRIVE 3) subroutine (LAD 6)
0003
Rung 0004 enables the controller to activate the Drive 4 control (DRIVE 4) subroutine (LAD 7)
0004
0005
JSR
JSR
Jump To Subroutine
Prog File NumberU:3
JSR
JSR
Jump To Subroutine
Prog File NumberU:4
JSR
JSR
Jump To Subroutine
Prog File NumberU:5
JSR
JSR
Jump To Subroutine
Prog File NumberU:6
JSR
JSR
Jump To Subroutine
Prog File NumberU:7
END
7-26Using Multi-Drive Mode
Drive 0 - Drive 4 Control Subroutines
The following Drive Control Subroutines provide status information
(Logic Status and Feedback) and control (Logic Command and
Reference) for each of the respective drives:
Control Subroutine Refer to…
Drive 0Figure 7.18
Drive 1Figure 7.19
Drive 2Figure 7.20
Drive 3Figure 7.21
Drive 4Figure 7.22
Figure 7.18 PLC-5 Drive 0 Control Subroutine (U:3)
Drive 0 Control Subroutine
In this example, an operator station is wired into the local PLC-5/40C rack as follows: