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) 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 the Allen-Bradley Company 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, the Allen-Bradley Company cannot assume responsibility
or liability for actual use based on the examples and diagrams.
No patent liability is assumed by Allen-Bradley Company 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 the Allen-Bradley Company is prohibited.
Throughout this manual we use notes to make you aware of safety considerations.
ATTENTION:
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
Important:
Identifies information that is especially important for successful
application and understanding of the product.
Shock Hazard
people that dangerous voltage may be present.
Identifies information about practices or
labels may be located on or inside the drive to alert
Preface
About This Manual
To pi cP ag e
Related Documentation
Conventions Used in this Manual P-2
Rockwell Automation SupportP-2
Summary of ChangesP-4
PowerFlex 70 User Manual
PowerFlex 70 Reference Manual
PowerFlex 700 User Manual
PowerFlex 700 Reference Manual
Installation and Operation Manual
Set
P-1
9306-GR001B-EN-E
20A-UM001…
20A-RM001…
20B-UM001…
20B-RM001…
1747-6.2
1747-6.15
Documentation for the above and this manual can be obtained online at
http://www.ab.com/manuals.
Documentation from SST / Woodhead can be obtained online at
http://www.mysst.com/download.
P-2
About This Manual
Conventions Used in this Manual
The following conventions are used throughout this manual:
• Parameter names are shown in the following format
- [*]
. The xxx represents the parameter number. The * represents the
parameter name. For example
• Menu commands are shown in bold type face and follow the format
Menu > Command
you should click the
• 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. This manual is for
Firmware release 1.xxx.
• This manual provides information about the Interbus adapter and
using it with PowerFlex drives. The adapter can be used with other
products that implement DPI. Refer to the documentation for your
product for specific information about how it works with the adapter.
. For example, if you read “Select
File
Parameter 01 - [DPI Port]
menu and then click the
Parameter xxx
.
File > Open
Open
command.
Rockwell Automation Support
Rockwell Automation 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 representatives are in every major
country in the world.
Local Product Support
,”
Contact your local Rockwell Automation representative for sales and
order support, product technical training, warranty support, and support
service agreements.
Technical Product Assistance
If you need to contact Rockwell Automation for technical assistance,
please review the information in Chapter 7, Troubleshooting first. If you
still have problems, then call your local Rockwell Automation
representative.
This is the first release of the 20-COMM-I manual.
TopicPageTopicPage
Chapter
Getting Started
The 20-COMM-I Interbus adapter is an embedded communication
option for any one drive in the PowerFlex family. It can also be used
with other Allen-Bradley products implementing DPI™, a functional
enhancement to SCANport™.
TopicPageTopicPage
Components
Features1-2Quick Start1-5
Compatible Products1-2Modes of Operation1-6
Required Equipment1-3
Components
Figure 1.1 Components of the Adapter
➊
➋
1-1Safety Precautions1-4
1
#PartDescription
➊Status
Indicators
➋DPI
Connector
➌Bus In
Interbus
Connector
➍Bus Out
Interbus
Connector
Five LEDs that indicate the status of the connected drive,
adapter, and network. Refer to Chapter
A 20-pin, single-row shrouded male header. An Internal
Interface cable is connected to this connector and a
connector on the drive.
One 6-pin plug-in connector.
One 7-pin plug-in connector.
➌
➍
7, Troubleshooting.
1-2
Getting Started
Features
The Interbus adapter features the following:
• The adapter is mounted in the PowerFlex drive and receives the
required power from the drive. Captive screws are used to secure the
adapter to the drive.
• A number of configuration tools can be used to configure the adapter
and connected drive. The tools include the PowerFlex HIM on the
drive, or drive-configuration software such as DriveExplorer
(version 2.01 or higher) or DriveExecutive (version 1.01 or higher).
• Status indicators report the status of the drive, adapter, and network.
• I/O, including Logic Command/Reference and Datalinks, may be
configured for your application using a parameter.
• Explicit messages are supported (PCP Read/Write).
• User-defined fault actions determine how the adapter and PowerFlex
drive respond to communication disruptions on the network.
Compatible Products
The Interbus adapter is compatible with Allen-Bradley PowerFlex drives
and other products that support DPI. DPI is a second generation
peripheral communication interface. It is a functional enhancement to
SCANport. At the time of publication, compatible products include:
• PowerFlex 70 drives
• PowerFlex 700 drives
• PowerFlex 7000 drives
Getting Started
Required Equipment
Equipment Shipped with the Adapter
When you unpack the adapter, verify that the package includes:
❑One Interbus adapter
❑A 2.54 cm (1 in.) and a 15.24 cm (6 in.) Internal Interface cable
(only one cable is needed to connect the adapter to the drive)
To install and configure the Interbus adapter, you must supply:
❑ A small flathead screwdriver
❑ Interbus cable
❑ Configuration tool, such as:
–PowerFlex HIM
– DriveExplorer (version 2.01 or higher)
- with 1203-SSS Serial Converter (version 3.001 or higher)
– DriveExecutive (version 1.01 or higher)
- with 1203-SSS Serial Converter (version 3.001 or higher)
❑ Configuration tool, such as:
– Interbus configuration software (CMD)
1-4
Getting Started
Safety Precautions
Please read the following safety precautions carefully.
ATTENTION:
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 a
Interbus adapter. Failure to comply may result in injury and/or
equipment damage.
ATTENTION:
may contain high voltages that can cause injury or death. Remove all
!
power from the PowerFlex drive, and then verify power has been
removed before installing or removing a Interbus adapter.
ATTENTION:
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:
Interbus 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 an adapter.
ATTENTION:
Parameters 6 - [Comm Flt Action]
!
the adapter and connected PowerFlex drive if communications are
disrupted. By default, this parameter faults the PowerFlex drive. You
can set this parameter so that the PowerFlex drive continues to run.
Precautions should be taken to ensure that the setting of this parameter
does not create a hazard of injury or equipment damage.
ATTENTION:
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.
Risk of injury or equipment damage exists. Only
Risk of injury or death exists. The PowerFlex drive
Risk of equipment damage exists. The Interbus adapter
Risk of injury or equipment damage exists. If the
Risk of injury or equipment damage exists.
lets you determine the action of
Risk of injury or equipment damage exists. When a
Getting Started
1-5
Quick Start
This section is designed to help experienced users start using the
Interbus adapter. If you are unsure about 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.
3Install the adapter.
Verify that the PowerFlex drive is not powered. Then,
connect the adapter to the network using an Interbus
cable and to the drive using the Internal Interface
cable. Use the captive screws to secure and ground the
adapter to the drive.
4Apply power to the adapter.
The adapter receives power from the drive. Apply
power to the drive. If there is a problem, refer to
7, Troubleshooting.
Chapter
5Configure the adapter for your application.
Set the parameters for the following features as
required by your application:
• I/O configuration.
• Fault actions.
6Apply power to the Interbus master and other
devices on the network.
Verify that the master and network are installed and
functioning in accordance with Interbus standards,
and then apply power to them.
7Configure the scanner to communicate with the
adapter.
Use a network tool for Interbus to configure the
master on the network.
8Create a ladder logic program.
Use a programming tool to create a ladder logic
program that enables you to do the following:
• Control the adapter and connected drive.
• Monitor or configure the drive using Explicit
Messages.
Manual
Drive User
Manual
2,
Chapter
Installing the
Adapter
Chapter
2,
Installing the
Adapter
3,
Chapter
Configuring the
Adapter
4,
Chapter
Configuring the
Interbus Scanner
5, Using
Chapter
I/O Messaging
Chapter 6, Using
Explicit
Messaging (PCP
Communications)
1-6
PWR
STS
CC
RD
TR
BA
Getting Started
Modes of Operation
The adapter uses five status indicators to report its operating status.
They can be viewed on the adapter or through the drive cover.
(See Figure 1.2
Figure 1.2 Status Indicators
.)
➊
➋
➌
➍
➎
➊
➋
➌
➍
# Status
Indicator
➊ CC Cable CheckGreenCable connections good.
➋ RD Remote Bus Disable OffOutgoing remote bus is not switched off.
➌ TR Transmit/ReceiveOffNo PCP connections are carried out
➍ BA Bus ActiveGreenBus is active.
➎ UL Bus VoltageGreenBus Voltage is OK.
(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.
Note:
The UL indicator is not viewable when the drive cover is installed
or closed.
Note:
Interbus compliance requires different LED functions than what is
normally displayed on the front of the drive (Port, Mod, Net A, and Net
B Led’s). LED labels are provided with the adapter for application to the
drive cover.
Normal
Status
GreenPCP connection are being carried out.
Description
(1)
If any other conditions occur, refer to Chapter 7
, Troubleshooting .
Getting Started
1-7
1-8
Getting Started
Chapter
2
Installing the Adapter
Chapter 2 provides instructions for installing the adapter on a PowerFlex
drive.
TopicPage
Preparing for an Installation
Connecting the Adapter to the Network2-2
Connecting the Adapter to the Drive2-4
Applying Power2-6
Preparing for an Installation
Before installing the Interbus adapter:
2-1
• Verify that you have all required equipment. Refer to Chapter 1
Getting Started.
ATTENTION: Risk of equipment damage exists. The Interbus 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
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 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. Route the Interbus cables through the bottom of the PowerFlex drive.
(See Figure 2.3
.)
4. Connect the Interbus connectors to the cables. (See Figure 2.1
Bus In Connector (from previous node on the network).
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. Close the door or reinstall the cover on the drive. Key status
indicators can be viewed on the front of the drive after power has
been applied.
Note: Interbus compliance requires different LED functions than what is
normally displayed on the front of the drive (Port, Mod, Net A, and Net
B Leds). LED labels are provided with the adapter for application to the
drive cover.
2. Apply power to the PowerFlex drive. The adapter receives its power
from the connected drive. When you apply power to the product for
the first time, the status indicators should be green or off after
initialization. Refer to Chapter
information.
7, Troubleshooting for more
3. Apply power to the master device and other devices on the network.
Chapter
3
Configuring the Adapter
Chapter 3 provides instructions and information for setting the
parameters in the adapter.
TopicPageTopicPage
Configuration Tools
Using the PowerFlex HIM3-2Resetting the Adapter3-7
Setting the I/O Configuration3-3
For a list of parameters, refer to Adapter Parameters. For definitions of
terms in this chapter, refer to the Glossary.
Configuration Tools
The Interbus 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:
3-1Setting a Fault Action3-6
ToolRefer To:
DriveExplorer Software (version 2.01
or higher)
Drive Tools 2000 Software (version
1.01 or higher)
PowerFlex HIMpage 3-2
DriveExplorer Getting Results Manual
Publication 9306-GR001B-EN-E, or the online
help
DriveExecutive Online Help
,
3-2Configuring the Adapter
Using the PowerFlex HIM
If your drive has either an LED or LCD HIM (Human Interface Module),
access parameters in the adapter as follows:
Using an LED HIM
StepKey(s)Example Screens
1. Press the ALT and then Sel
(Device) to display the Device
Screen.
2. Press the Up Arrow or Down
Arrow to scroll to the Interbus
adapter. Letters represent files in
the drive, and numbers represent
ports. The adapter is usually
connected to port 5.
3. Press the Enter key to enter your
selection. A parameter database
is constructed, and then the first
parameter is displayed.
4. Edit the parameters using the
same techniques that you use to
edit drive parameters.
ALT
Device
Sel
OR
Using an LCD HIM
StepKey(s)Example Screens
1. In the main menu, press the Up
Arrow or Down Arrow to scroll to
Device Select.
2. Press Enter to enter your
selection.
3. Press the Up Arrow or Down
Arrow to scroll to the Interbus
(20-COMM-I) adapter.
4. Press Enter to select the
Interbus adapter. A parameter
database is constructed, and
then the main menu for the
adapter is displayed.
5. Edit the parameters using the
same techniques that you use to
edit drive parameters.
OR
OR
F->StoppedAuto
0.00Hz
Main Menu:
Diagnostics
Para met er
Device Select
Port 5 Device
20-COMM-I
Main Menu:
Diagnostics
Parame ter
Device Select
Configuring the Adapter3-3
Setting the I/O Configuration
The I/O configuration determines the data that is sent to and from the
drive. This is a two part process: enabling/disabling the data transmitted
between the adapter and drive, and identifying the data transmitted
between the adapter and the scanner.
1. Enable or disable the data transmitted between the adapter and drive.
0Logic Command/Reference (Default)
1Datalink A
2Datalink B
3Datalink C
4Datalink D
5 - 16 Not Used
Bit 0 is the right-most bit. In Figure 3.1, it is highlighted and equals
“1.”
2. If Logic Command/Reference is enabled, configure the parameters in
the drive to accept the logic and Reference from the adapter. For
example, set Parameter 90 - [Speed Ref A Sel] in a PowerFlex 70
or 700 drive to “DPI Port 5” so that the drive uses the Reference from
the adapter. Also, verify that the mask parameters (for example,
Parameter 276 - [Logic Mask]) in the drive are configured to
receive the desired logic from the adapter.
3. If you enabled one or more Datalinks, configure parameters in the
drive to determine the source and destination of data in the
Datalink(s). Also, ensure that the Interbus adapter is the only adapter
using the enabled Datalink(s).
3-4Configuring the Adapter
4. Interbus requires the network I/O mapping to be configured first in
the adapter. CMD software will read this configuration online when
it is configuring the scanner.
Process Input Data Description (PIDD) words map input data on the
network (data seen as inputs to the scanner and controller program).
Example input data includes Logic Status, Feedback and Datalinks
(Datalink x1 Out). Up to 9 words of input data can be mapped.
Process Output Data Description (PODD) words map output data on
the network (data sent as outputs from the scanner and controller
program). Example output data includes Logic Command, Reference
and Datalinks (Datalink x1 In). Up to 9 words of output data can be
mapped.
The following indexes are used to select the I/O data:
Table 3.1 PIDD/PODD Indexes
Input
Val ue
Val ue
(Dec)
Selects
(Hex)
2F9A12186 Logic Status
2F9B12187 Feedback
2FA412196 Datalink A1 Out
2FA512197 Datalink A2 Out
2FA612198 Datalink B1 Out
2FA712199 Datalink B2 Out
2FA812200 Datalink C1 Out
2FA912201 Datalink C2 Out
2FAA12202Datalink D1 Out
2FAB12203Datalink D2 Out
Output
Val ue
Val ue
(Dec)
Selects
(Hex)
2F9812184 Logic Command
2F9912185 Reference
2F9C12188 Datalink A1 In
2F9D12189 Datalink A2 In
2F9E12190 Datalink B1 In
2F9F12191 Datalink B2 In
2FA012192 Datalink C1 In
2FA112193 Datalink C2 In
2FA212194 Datalink D1 In
2FA312195 Datalink D2 In
Configuring the Adapter3-5
To configure the adapter for Logic Command/Status, Reference/
Feedback and the maximum number of Datalinks enabled:
Parameter #NameValue
(Hex)
20PIDD W0 Cfg2F9A12186Logic Status (default)
22PIDD W1 Cfg2F9B12187Feedback (default)
24PIDD W2 Cfg2FA412196Datalink A1 Out
26PIDD W3 Cfg2FA512197Datalink A2 Out
Input28PIDD W4 Cfg2FA612198Datalink B1 Out
30PIDD W5 Cfg2FA712199Datalink B2 Out
32PIDD W6 Cfg2FA812200Datalink C1 Out
34PIDD W7 Cfg2FA912201Datalink C2 Out
36PIDD W8 Cfg2FAA12202Datalink D1 Out
38PODD W0 Cfg2F9812184Logic Command (default)
40PODD W1 Cfg2F9912185Reference (default)
42PODD W2 Cfg2F9C12188Datalink A1 In
44PODD W3 Cfg2F9D12189Datalink A2 In
Output46PODD W4 Cfg2F9E12190Datalink B1 In
48PODD W5 Cfg2F9F12191Datalink B2 In
50PODD W6 Cfg2FA012192Datalink C1 In
52PODD W7 Cfg2FA112193Datalink C2 In
54PODD W8 Cfg2FA212194Datalink D1 In
Value
(Dec)
Description
Note that Datalink D2 is not used in this example because maximum
configuration has been reached. The maximum configuration is shown to
illustrate utilizing all 9 words of inputs and 9 words of outputs.
Depending on your application needs, any subset of the above example
can be implemented.
The corresponding Parameter 8 - [DPI I/O Config] setting would be
“11111” for all of the above information to transfer between the adapter
and the drive.
5. Reset the adapter. Refer to the Resetting the Adapter
section in this
chapter.
The adapter is ready to receive I/O from the master (i.e., scanner). You
must now configure the scanner to recognize and transmit I/O to the
adapter. Refer to Chapter
4, Configuring the Interbus Scanner.
3-6Configuring the Adapter
Setting a Fault Action
By default, when communications are disrupted (for example, a cable is
disconnected) 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 6 - [Comm Flt Action].
ATTENTION:
Parameters 6 - [Comm Flt Action]
!
the adapter and connected PowerFlex drive if communications are
Risk of injury or equipment damage exists.
lets you determine the action of
disrupted. By default, this parameter faults the PowerFlex drive. You
can set this parameter so that the PowerFlex drive continues to run.
Precautions should be taken to ensure that the setting of this parameter
does not create a hazard of injury or equipment damage.
To change the fault action
• Set the values of Parameters to the desired responses:
ValueActionDescription
0Fault (default)The drive is faulted and stopped. (Default)
1StopThe drive is stopped, but not faulted.
2Zero DataThe drive is sent 0 for output data after a
3Hold LastThe drive continues in its present state after a
4Send Flt CfgThe drive is sent the data that you set in the fault
Figure 3.2 Fault Action Screen on an LCD HIM
Port 5 Device
20-COMM-I
Parameter #6:
Comm Flt Action
0
Fault
communications disruption. This does not
command a stop.
Changes to the parameter take effect immediately. A reset is not
required.
Configuring the Adapter3-7
To set the fault configuration parameters
If you set Parameter 6 - [Comm Flt Action] to the “Send Flt Cfg,” the
values in the following parameters are sent to the drive after a
communications fault occurs. You must set these parameters to values
required by your application.
NumberNameDescription
10Flt Cfg LogicA 16-bit value sent to the drive for Logic Command.
11Flt Cfg RefA 32-bit value (0 – 4294967295) sent to the drive as a
12 – 19Flt Cfg x1 In
Reference or Datalink.
Important: If the drive uses a 16-bit Reference or 16-bit
Datalinks, the most significant word of the value must be
set to zero (0) or a fault will occur.
Changes to these parameters take effect immediately. A reset is not
required.
Resetting the Adapter
Changes to switch settings or 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 product will respond before
resetting a connected adapter.
• Set the Parameter 05 - [Reset Module] to Reset Module:
Figure 3.3 Reset Screen on an LCD HIM
Port 5 Device
20-COMM-I
Parameter #: 5
Reset Module
1
Reset Module
ValueDescription
0Ready (Default)
1Reset Module
2Set Defaults
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. The value of this parameter
will be restored to 0 = Ready after the adapter is reset.
3-8Configuring the Adapter
The following parameters provide information about how the adapter is
configured. You can view these parameters at any time.
Parameter
No. Name and DescriptionDetails
01[DPI Port]
Port to which the adapter is connected. This will
usually be port 5.
03[Ref/Fdbk Size]
Size of the Reference/Feedback. The drive
determines the size of the Reference/Feedback.
04[Datalink size]
Size of each Datalink word. The drive determines
the size of Datalinks.
09[DPI I/O Active]
I/O that the adapter is actively transmitting. The
value of this parameter will usually be equal to the
value of Parameter 13 - DPI I/O Config.
Bit
Default
21PIDD W0 Actual
Actual Process Input Description for Word 0
Displays the Actual PIDD Config being transmitted
to word 0 in the Interbus Master.
23PIDD W1 Actual
Actual Process Input Description for Word 1
Displays the Actual PIDD Config being transmitted
to word 1 in the Interbus Master.
25PIDD W2 Actual
Actual Process Input Description for Word 2
Displays the Actual PIDD Config being transmitted
to word 2 in the Interbus Master.
27PIDD W3 Actual
Actual Process Input Description for Word 3
Displays the Actual PIDD Config being transmitted
to word 3 in the Interbus Master.
29PIDD W4 Actual
Actual Process Input Description for Word 4
Displays the Actual PIDD Config being transmitted
to word 4 in the Interbus Master.
31PIDD W5 Actual
Actual Process Input Description for Word 5
Displays the Actual PIDD Config being transmitted
to word 5 in the Interbus Master.
Default:0
Minimum:0
Maximum:7
Type:Read Only
Default:0 = 16-bit
Values:0 = 16-bit
Type:Read/Write
Default:0 = 16-bit
Values:0 = 16-bit
Type:Read Only
Default:xxx0 0001
Bit Values:0 = I/O disabled
Type:Read Only
Bit Definitions
01234576
0 = Cmd/Ref
10000xxx
1 = Datalink A
2 = Datalink B
3 = Datalink C
4 = Datalink D
5 = Not Used
6 = Not Used
7 = Not Used
Val ue :S ee Ta bl e B. 1
Type:Read Only
Val ue :S ee Ta bl e B. 1
Type:Read Only
Val ue :S ee Ta bl e B. 1
Type:Read Only
Val ue :S ee Ta bl e B. 1
Type:Read Only
Val ue :S ee Ta bl e B. 1
Type:Read Only
Val ue :S ee Ta bl e B. 1
Type:Read Only
1 = 32-bit
1 = 32-bit
1 = I/O enabled
Parameter
No. Name and DescriptionDetails
33PIDD W6 Actual
Actual Process Input Description for Word 6
Displays the Actual PIDD Config being transmitted
to word 6 in the Interbus Master.
35PIDD W7 Actual
Actual Process Input Description for Word 7
Displays the Actual PIDD Config being transmitted
to word 7 in the Interbus Master.
37PIDD W8 Actual
Actual Process Input Description for Word 8
Displays the Actual PIDD Config being transmitted
to word 8 in the Interbus Master.
39PODD W0 Actual
Actual Process Output Description for Word 0
Displays the actual PODD Configuration being
received from word 0 in the Interbus Master.
41PODD W1 Actual
Actual Process Output Description for Word 1
Displays the actual PODD Configuration being
received from word 1 in the Interbus Master.
43PODD W2 Actual
Actual Process Output Description for Word 2
Displays the actual PODD Configuration being
received from word 2 in the Interbus Master.
45PODD W3 Actual
Actual Process Output Description for Word 3
Displays the actual PODD Configuration being
received from word 3 in the Interbus Master.
47PODD W4 Actual
Actual Process Output Description for Word 4
Displays the actual PODD Configuration being
received from word 4 n the Interbus Master.
49PODD W5 Actual
Actual Process Output Description for Word 5
Displays the actual PODD Configuration being
received from word 5 in the Interbus Master.
51PODD W6 Actual
Actual Process Output Description for Word 6
Displays the actual PODD Configuration being
received from word 6 in the Interbus Master.
53PODD W7 Actual
Actual Process Output Description for Word 7
Displays the actual PODD Configuration being
received from word 7 in the Interbus Master.
55PODD W8 Actual
Actual Process Output Description for Word 8
Displays the actual PODD Configuration being
received from word 8 in the Interbus Master.
57PCP Comm Act
Actual PCP configuration
Val ue :S ee Ta bl e B. 1
Type:Read Only
Val ue :S ee Ta bl e B. 1
Type:Read Only
Val ue :S ee Ta bl e B. 1
Type:Read Only
Val ue :S ee Ta bl e B. 1
Type:Read Only
Val ue :S ee Ta bl e B. 1
Type:Read Only
Val ue :S ee Ta bl e B. 1
Type:Read Only
Val ue :S ee Ta bl e B. 1
Type:Read Only
Val ue :S ee Ta bl e B. 1
Type:Read Only
Val ue :S ee Ta bl e B. 1
Type:Read Only
Val ue :S ee Ta bl e B. 1
Type:Read Only
Val ue :S ee Ta bl e B. 1
Type:Read Only
Val ue :S ee Ta bl e B. 1
Type:Read Only
ENUM: Enabled, Disabled
Configuring the Adapter3-9
3-10Configuring the Adapter
Notes:
Chapter
4
Configuring the Interbus Scanner
Interbus scanners are available from several manufacturers, including
SST. Chapter 4 provides instructions on how to utilize Phoenix Contact
CMD software to configure the network on an SST scanner.
To pi cPa ge
Example Network
Using CMD Software to Configure the Network4-4
Adapter Configuration Settings to use with Ladder Examples4-3
PowerFlex 70 Settings to use with Ladder Examples4-15
RSLogix 500 SST Interbus Scanner Configuration4-15
Example Network
All examples in this manual are based on the following:
4-1
• SLC controller with a SST Interbus scanner (SST-IBS-SLC)
in slot 1.
• PowerFlex 70 at Device 1.0 / CR 2 (CR# is needed for PCP
commands).
• Power Flex 70 at Device 2.0 / CR 3 (CR# is needed for PCP
commands).
• Logic Command / Status, Reference / Feedback and Datalinks A-D
are enabled in the 20-COMM-I and mapped to network I/O.
• Phoenix Contact CMD software is used to configure the network.
This chapter describes the steps to configure a simple network like what
is featured in Figure 4.1
.
4-2Configuring the Interbus Scanner
Figure 4.1 Example Interbus Network
Interbus
REMOTE OUT
Config
RS232 Port
Fault LED
COMM LED
PowerFlex 70
Station 1.0
(CR=2)
Powe rFlex 70
Station 2.0
(CR=3)
Configuring the Interbus Scanner4-3
Adapter Configuration Settings to use with Ladder
Examples
Prior to setting up the SST Interbus scanner with CMD software, the
following parameters need to be configured to use the example ladder
logic program:
20-COMM-I
Parameter NameValueDescription
Binary/
Decimal
8DPI I/O Configxxx1 1111001FEnable Cmd/Ref,
20PIDD W0 Cfg121862F9ALogic Status
22PIDD W1 Cfg121872F9BFeedback
24PIDD W2 Cfg121962FA4Datalink A1 Out
26PIDD W3 Cfg121972FA5Datalink A2 Out
28PIDD W4 Cfg121982FA6Datalink B1 Out
30PIDD W5 Cfg121992FA7Datalink B2 Out
32PIDD W6 Cfg122002FA8Datalink C1 Out
34PIDD W7 Cfg122012FA9Datalink C2 Out
36PIDD W8 Cfg122022FAADatalink D1 Out
38PODD W0 Cfg121842F98Logic Command
40PODD W1 Cfg121852F99Reference
42PODD W2 Cfg121882F9CDatalink A1 In
44PODD W3 Cfg121892F9DDatalink A2 In
46PODD W4 Cfg121902F9EDatalink B1 In
48PODD W5 Cfg121912F9FDatalink B2 In
50PODD W6 Cfg121922FA0Datalink C1 In
52PODD W7 Cfg121932FA1Datalink C2 In
54PODD W8 Cfg121942FA2Datalink D1 In
Hexadecimal
Datalinks A-D
PIDD and PODD parameters are used to identify what will be
transmitted on the network and the amount of network I/O the CMD
software will allocate on the scanner.
4-4Configuring the Interbus Scanner
Using CMD Software to Configure the Network
Before starting the configuration, make sure the PC running CMD
software is connected to the SST scanner (a null modem cable is
supplied with the scanner). The SLC and drives need to be connected to
the Interbus network and powered in order for CMD to configure the
network. If it does not already exist, CMD software tool automatically
creates an Allen-Bradley sub-folder (in the Slaves folder).
CMD needs to be in Extended Mode to configure the network. A
password (supplied by Phoenix Contact along with the CMD software),
is requested for this functionality each time CMD is started. After CMD
has started, you can also click O
enter the password.
ptions/Extended (Function Scope) to
1. Select F
Figure 4.2 Creating a new Interbus project
2. Right-click on the Project icon and select Description. Enter a
ile / New from the pull-down menu to create a new project.
(See Figure 4.2.)
name for the project and any additional information desired, as
shown in Figure 4.3
. Click OK when complete.
Configuring the Interbus Scanner4-5
Figure 4.3 Entering a name for the new Interbus project
3. Right-click on the PLC/PC icon and select Description. Enter
a name for the controller and any additional information desired, as
shown in Figure 4.4
Figure 4.4 Entering a name for the Interbus controller
. Click OK when complete.
4. Right-click on the Program icon and select Description. Enter
a name for the program (using the actual RSLogix500 file name is
recommended), and any additional information desired, as shown in
Figure 4.5
Figure 4.5 Entering a name for the Interbus program.
. Click OK when complete.
4-6Configuring the Interbus Scanner
5. When complete, the representation area will look as shown in
Figure 4.6
Figure 4.6 Example Interbus CMD Project
.
This provides useful information regarding the CMD project being
created:
•“PowerFlex 70 Interbus Demo” indicates what this project is for.
•“SLC 5/05” indicates the controller used.
•“Interbus_SLC_Demo” indicates that Interbus_SLC_Demo.RSS
is the associated RSLogix500 program used with this system.
6. To configure the PC Com Port that CMD will use to communicate
with the SST scanner, click on Options/Settings and then the Driver
tab.
7. Click on the Communication Path icon and then the Standard tab.
8. Select the type of port of communication path used. Typically, this is
“Serial Port” and “Com1” respectively, as shown in Figure 4.7
. Click
OK until you return to the main screen.
Figure 4.7 Selecting the Port Communication path.
Configuring the Interbus Scanner4-7
9. Right-click on the Controller Board icon and select Type. Set
the type to “IBS USC/4(4K)” and click OK. This identifies the type
of Interbus controller used on the SST scanner. (See Figure 4.8
Figure 4.8 Selecting the Interbus Controller type
.)
10. Right-click on the Controller Board icon and select Description.
Enter “SST-IBS-SLC” in the name field, as shown in Figure 4.9
Figure 4.9 Entering a Description for the Controller Board
.
4-8Configuring the Interbus Scanner
11. When complete, the representation area will look as shown in Figure
4.10.
Figure 4.10 Example Interbus CMD Project
12. From the pull-down menu select C
onfiguration/Configuration
Frame/Read In and answer Yes to changing the operating state to
Configuration Online. If there are additional prompts, answer OK or
Yes to perform the read anyway. CMD will then read the bus
configuration. (See Figure 4.11
Figure 4.11 CMD Bus Configuration
.)
Configuring the Interbus Scanner4-9
The gray PCP icons represent each PowerFlex 70 drive. The first
PowerFlex 70 has a Device Number of 1.0 and the second has a Device
Number of 2.0.
13. Right-click on the SST-IBS-SLC scanner and select Process Data.
This shows the Interbus I/O mapping for each device on the network,
as shown in Figure 4.12
Figure 4.12 Example Interbus I/O Mapping
.
In the example, the length is 144 bits (9 words) because the 20-COMM-I
was previously configured for the maximum I/O configuration (See
Chapter 3, Setting the I/O Configuration on page 3-3. Depending on
your application needs, this length may be less.
4-10Configuring the Interbus Scanner
The scanner mapping correlates to SLC addressing as follows:
Scanner Scanner
(USC/4) Output SLC (USC/4) Input SLC
0
1
63
64
65
511
The mapping in the scanner is set up in bytes. Inputs to the scanner start
at byte #512 and outputs start at byte #0.
PIDD/PODD parameter settings in the adapter determine the length of
I/O data mapped. In the example, each device is configured for 9 words
(144 bits) of inputs and 9 words (144 bits) of outputs, the maximum
allowed for each device.
O:x.0(high)
O:x.0(low)
O:x.31(low)
M0:x.0(high)
M0:x.0(low)
M0:x.223(low)
512
513
575
576
1023
I:x.0(high)
I:x.0(low)
I:x.31(low)
M1:x.0(high)
M1:x.0(low)
M1:x.223(low)
Configuring the Interbus Scanner4-11
Using the PIDD/PODD values previously set in the 20-COMM-I, the I/O
layout in the scanner is as follows:
Device 2.0’s SLC addressing starts immediately after 1.0 addressing
(I:1.9 and O:1.9).
14. Right-click on the 1.0 PCP icon and select D
escription. Enter a
Station Name such as “PowerFlex 70 Demo #1”. Note the
Communication Reference (CR) is 2. The CR needs to be known
when using PCP communication services (explicit messaging). (See
Figure 4.13.)
4-12Configuring the Interbus Scanner
Figure 4.13 Entering a Station Name
15. Click on the Parameter Channel button. Set the Transmit and Receive
to 128 bytes and enable Read, Write, and Get-0D (long format)
services, as shown in Figure 4.14
. Click OK when complete.
Figure 4.14 Selecting data for the Parameter Channel screen
Configuring the Interbus Scanner4-13
16. Repeat steps #14 and #15 using the 2.0 PCP icon . Enter a
Station name such as “PowerFlex 70 Demo #2”. Note the
Communication Reference (CR) is 3. The CR needs to be known
when using PCP communication services (explicit messaging). Click
OK when complete.
17. When complete, the representation area will look as shown in Figure
4.15.
Figure 4.15 Example PowerFlex 70 Demo #2
18. Right-click on the SST-IBS-SLC icon and select P
arameterization/
Execute. Select “Startup without PDP” as shown in Figure 4.16 and
click OK. This uses the mapping already set up in the scanner and
does not allow re-mapping by the software tool.
4-14Configuring the Interbus Scanner
Figure 4.16 Selecting data for Parameterization/Execute screen
If parameterization execution is successful, there will be a prompt to
click OK. Click OK.
19. When complete, the representation area will look as shown in Figure
4.17.
Figure 4.17 Example Parameterization Execution
20. Click F
ile/Save from the pull-down menu and save the project.
Configuring the Interbus Scanner4-15
PowerFlex 70 Settings to use with Ladder Examples
The following parameters should be configured to use the example
ladder logic program.
PowerFlex 70
Parameter NameValueDescription
90Speed Ref A Sel22DPI Port 5 (20-COMM-I) provides the
300Data In A1140Pr. 140 [Accel Time 1]
301Data In A2142Pr. 142 [Decel Time 1]
302Data In B1100Pr. 100 [Jog Speed]
303Data In B2155Pr. 155 [Stop Mode A]
304Data In C1101Pr. 101 [Preset Speed 1]
305Data In C2102Pr. 102 [Preset Speed 2]
306Data In D1103Pr. 103 [Preset Speed 3]
310Data Out A1140Pr. 140 [Accel Time 1]
311Data Out A2142Pr. 142 [Decel Time]
312Data Out B1100Pr. 100 [Jog Speed]
313Data Out B2155Pr. 155 [Stop Mode A]
314Data Out C1101Pr. 101 [Preset Speed 1]
315Data Out C2102Pr. 102 [Preset Speed 2]
316Data Out D1103Pr. 103 [Preset Speed 3]
Reference
RSLogix 500 SST Interbus Scanner Configuration
The SST Interbus scanner is configured by clicking on the I/O
Configuration in RSLogix500. The SST-IBS-SLC has an ID Code of
13635. The following settings are used by the example ladder logic
program, as shown in Figure 4.18
and Figure 4.19.
4-16Configuring the Interbus Scanner
Figure 4.18 Scanner I/O Configuration
Figure 4.19 Scanner_G_ files
G File Data Information:
WordValue
(Decimal)
082242020Fixed to 2020h by the SLC
140961000Enables the command interface between the SLC
200Use the CMD specified Bus Update Time
300Use the CMD specified Bus Warning Time
400Use the CMD specified Bus Timeout
500The number of words used at the beginning of the
612880Maximum data size for commands and replies sent
Val ue
(Hexadecimal)
Description
and the USC/4
M files for Inputs and Outputs
between the SLC and the scanner
Refer to the SST-IBS-SLC User’s Guide for more information.
Notes:
Configuring the Interbus Scanner4-17
4-18Configuring the Interbus Scanner
Notes:
Chapter
Using I/O Messaging
Chapter 5 provides information and examples that explain how to use
I/O Messaging to control a PowerFlex drive.
TopicPageTopicPage
About I/O Messaging
Understanding the I/O Image5-2SLC Ladder Logic Example - Main
Using Logic Command/Status5-4SLC Ladder Logic Example - Station
Using Reference/Feedback5-4SLC Ladder Logic Example - Station
Using Datalinks5-4
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 does not assume responsibility or
liability (to include intellectual property liability) for actual use of the
examples shown in this publication.
5-1SLC Example Ladder Logic Program 5-6
Program
1 Program
2 Program
5
5-8
5-9
5-11
About I/O Messaging
On Interbus, I/O messaging is used to transfer the data which controls
the PowerFlex drive and sets its Reference. I/O can also be used to
transfer data to and from Datalinks in PowerFlex drives.
The Interbus adapter provides options for configuring and using I/O,
including the following:
• The size of I/O can be configured by enabling or disabling the Logic
Command/Reference and Datalinks.
Chapter
Interbus Scanner discuss how to configure the adapter and scanner 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 scanner.
3, Configuring the Adapter and Chapter 4, Configuring the
5-2Using I/O Messaging
Understanding the I/O Image
The terms input and output are defined from scanner’s point of view.
Therefore, Output I/O is data that is output from the scanner and
consumed by the Interbus 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 following:
• Size (either 16-bit or 32-bit) of the Reference/Feedback word and
Datalink words used by the drive.
• Configuration of Parameter 8 - [DPI I/O Config] in the adapter. If
all I/O is not enabled, the image table is truncated. The image table
always uses consecutive words starting at word 0.
Figure 5.1
Figure 5.1 Example I/O Image with All I/O Enabled
Controller
illustrates an example of an I/O image with 16-bit words.
Interbus
Scanner
Output
Image
(Write)
M0/M1
Files
Input
Image
(Read)
AdapterPowerFlex Drive
Word and I/O
0 Logic Command
1 Reference
2 Datalink In A1
3 Datalink In A2
4 Datalink In B1
5 Datalink In B2
6 Datalink In C1
7 Datalink In C2
8 Datalink In D1
PCP Communications
0 Logic Status
1 Feedback
2 Datalink Out A1
3 Datalink Out A2
4 Datalink Out B1
5 Datalink Out B2
6 Datalink Out C1
7 Datalink Out C2
8 Datalink Out D1
DPI
Logic Command
Reference
Data In A1
Data In A2
Data In B1
Data In B2
Data In C1
Data In C2
Data In D1
Message
Handler
Logic Status
Feedback
Data Out A1
Data Out A2
Data Out B1
Data Out B2
Data Out C1
Data Out C2
Data Out D1
M0/M1
Files
PCP Communications
Message
Handler
Using I/O Messaging5-3
An image that uses 32-bit words for Reference and Datalinks would
change the I/O image as follows:
illustrates an example of an I/O image that does not use all of
the I/O data. Only the Logic Command/Reference and Datalink B are
enabled. In this example, the Reference is a 32-bit word, and Datalinks
are 16-bit words.
Figure 5.2 Example I/O Image with Only Logic/Reference and Datalink B Enabled
Reference
Data In A1
Data In A2
Data In B1
Data In B2
Data In C1
Data In C2
Data In D1
Logic Status
Feedback
Data Out A1
Data Out A2
Data Out B1
Data Out B2
Data Out C1
Data Out C2
Data Out D1
LSW = Least Significant Word (Bits 15 - 0)
MSW = Most Significant Word (Bits 31 - 16)
5-4Using I/O Messaging
Using Logic Command/Status
When enabled, the Logic Command/Status word is always word 0 in the
I/O image. The Logic Command is a 16-bit word of control produced by
the scanner and consumed by the adapter. The Logic Status is a 16-bit
word of status produced by the adapter and consumed by the scanner.
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
When enabled, Reference/Feedback always begins at word 1 in the I/O
image. The Reference (16 bits or 32 bits) is produced by the controller
and consumed by the adapter. The Feedback (16 bits or 32 bits) is
produced by the adapter and consumed by the controller. The size of the
Reference/Feedback is determined by the product and displayed in
Parameter 03 - [Ref/Fdbk Size] in the adapter.
SizeValid ValuesIn I/O ImageExample
16-bit-32768 to 32767Word 1Figure 5.1
32-bit-2147483648 to 2147483647Word 1 and Word 2Figure 5.2
C, Logic Command/
Using Datalinks
A Datalink is a mechanism used by PowerFlex drives to transfer data to
and from the controller. Datalinks allow a parameter value to be changed
without using an Explicit Message. When enabled, each Datalink
consumes either two 16-bit or 32-bit words in both the input and output
image depending on its size. The size of Datalinks (16-bit words or
32-bit words) is determined by the drive and displayed in Parameter 04
- [Datalink Size] in the adapter.
Rules for Using Datalinks
• Each set of Datalink parameters in a PowerFlex drive can be used by
only one adapter. If more than one adapter is connected to a single
drive, multiple adapters must not try to use the same Datalink.
• Parameter settings in the drive determine the data passed through the
Datalink mechanism. Refer to the documentation for your product.
• When you use a Datalink to change a value, the value is not written
to the Non-Volatile Storage (NVS). The value is stored in volatile
memory and lost when the drive loses power.
Using I/O Messaging5-5
32-Bit Parameters using 16-Bit Datalinks
To read (and/or write) a 32-bit parameter using 16-bit Datalinks,
typically both Datalinks (x1 and x2) are set to the 32-bit parameter. For
example, to read Parameter 09 - [Elapsed MWh] in a PowerFlex 70,
both Datalink A1 and A2 are set to “9”. Datalink A1 will contain the
least significant word (LSW) and Datalink A2 the most significant word
(MSW). In this example, the parameter 9 value of 5.8MWh is read as a
“58” in Datalink A1.
DatalinkMost/Least Significant WordParameter Data (decimal)
A1LSW958
A2MSW90
Regardless of the Datalink combination, x1 will always contain the LSW
and x2 will always contain the MSW. In the following examples
Parameter 242 - [Power Up Marker] contains a value of 88.4541
hours.
DatalinkMost/Least Significant WordParameter Data (decimal)
A1LSW24232573
A2- Not Used -00
DatalinkMost/Least Significant WordParameter Data (decimal)
A1- Not Used -00
A2MSW24213
DatalinkMost/Least Significant WordParameter Data (decimal)
A2MSW24213
B1LSW24232573
32-bit data is stored in binary as follows:
MSW2
LSW215 through 2
31
through 2
16
0
Example:
Parameter 242 - [Power Up Marker] = 88.4541 hours
MSW = 13
decimal
= 1101
= 219 + 218 + 216 = 851968
binary
LSW = 32573
851968 + 32573 = 884541
5-6Using I/O Messaging
SLC Example Ladder Logic Program
The Interbus example program uses a SLC processor with an SST
Interbus scanner (SST-IBS-SLC) in the first slot of the rack and will
work with PowerFlex 70 or PowerFlex 700 drives.
Function of the Example Program
The program is written for (2) drives on the network and demonstrates
using:
• Logic Command / Reference
• Logic Status / Feedback
• Datalinks
• PCP Read / Write (See Chapter
Adapter Settings
The 20-COMM-I node addresses are set via CMD software to:
• “1.0” (CR=2) for Station 1
• “2.0” (CR=3) for Station 2
6.)
See Chapter
Examples.
PowerFlex 70 Settings
See Chapter 4, PowerFlex 70 Settings to use with Ladder Examples.
SST Scanner Settings
See Chapter
4, Adapter Configuration Settings to use with Ladder
These examples use the Logic Command word and Logic Status word
for PowerFlex 70 and PowerFlex 700 drives. Refer to Appendix C,
Logic Command/Status Words to view these. The definition of the bits in
these words may vary if you are using a different DPI product. Refer to
the documentation for your product.
5-8Using I/O Messaging
SLC Ladder Logic Example - Main Program
Figure 5.3 Example SLC Ladder Logic - Main Program
The following rung performs power-up initialization of the PCP Read and PCP Write routines.
First Pass
0000
0001
0002
0003
0004
0005
S:1
15
Execute LAD 3 - Station 1.0 Drive Logic (Logic Command / Status, Reference / Feedback and Datalinks).
Execute LAD 4 - Station 2.0 Drive Logic (Logic Command / Status, Reference / Feedback and Datalinks).
Execute LAD 5 - PCP Read Subroutine (Explicit Messaging)
Can Read OR Write at any one time. B3:47/0 will be turned off by the subroutine when the reading is complete and signals that
another read (or write) cycle can take place.
Execute
PCP Read
Subroutine
B3:47
0
Execute LAD 6 - PCP Write Subroutine (Explicit Messaging)
Can only Write OR Read at any one time. B3:47/10 will be turned off by the subroutine when the writing is complete and
signals that another write (or read) cycle can take place.
Execute
PCP Read
Subroutine
B3:47
0
Execute
PCP Write
Subroutine
B3:47
10
Execute
PCP Write
Subroutine
B3:47
10
Execute
PCP Read
Subroutine
B3:47
U
0
PCP Read
Routine
1-shot
B3:47
U
1
PCP Read
Reply Msg
1-Shot
B3:47
U
2
Execute
PCP Write
Subroutine
B3:47
U
10
PCP Write
Routine
1-shot
B3:47
U
11
PCP Write
Reply Msg
1-Shot
B3:47
U
12
JSR
JSR
Jump To Subroutine
SBR File NumberU:3
JSR
JSR
Jump To Subroutine
SBR File NumberU:4
JSR
JSR
Jump To Subroutine
SBR File NumberU:5
JSR
JSR
Jump To Subroutine
SBR File NumberU:6
END
Using I/O Messaging5-9
SLC Ladder Logic Example - Station 1 Program
Figure 5.4 Example SLC Ladder Logic - Station 1 Program
Controlling the Logic Command to the drive at Station 1.0.
Station 1.0
Start
Command
0000
0001
0002
0003
0004
0005
0006
0007
B3:20
1
Station 1.0
Stop
Command
B3:20
0
Station 1.0
Jog
Command
B3:20
2
Station 1.0
Clear Faults
Command
B3:20
3
Station 1.0
Reverse
Command
B3:20
4
Station 1.0
Reverse
Command
B3:20
4
Station 1.0 Speed Reference
PowerFlex 70 Speed Ref A Sel (Pr.90) needs to be set to 'DPI Port 5'
Station 1.0 Datalink A1
Datalink A1 (Pr. 300) set to Acceleration Time 1 (Pr. 140)
Station 1.0
Logic Command
START
Station 1.0
Logic Command
STOP
Station 1.0
Logic Command
JOG
Station 1.0
Logic Command
CLEAR FAULTS
Station 1.0
Logic Command
FORWARD
Station 1.0
Logic Command
REVERSE
Station 1.0
Speed Reference
MOV
MOV
Move
SourceN19:1
8192<
DestO:1.1
8192<
Station 1.0
Datalink A1
MOV
MOV
Move
SourceN19:2
50<
DestO:1.2
50<
O:1.0
OTHER
O:1.0
OTHER
O:1.0
OTHER
O:1.0
OTHER
O:1.0
OTHER
O:1.0
OTHER
1
0
2
3
4
5
5-10Using I/O Messaging
Figure 5.4 Example SLC Ladder Logic - Station 1 Program (Continued)
Station 1.0 Datalink A2
Datalink A2 (Pr. 301) set to Deceleration Time 1 (Pr. 142)
0008
Station 1.0 Datalink B1
Datalink B1 (Pr. 302) set to Jog Speed (Pr. 100)
0009
Station 1.0 Datalink B2
Datalink B2 (Pr. 303) set to Stop Mode A (Pr. 155)
0010
Station 1.0 Datalink C1
Datalink C1 (Pr. 304) set to Preset Speed 1 (Pr. 101)
0011
Station 1.0 Datalink C2
Datalink C2 (Pr. 305) set to Preset Speed 2 (Pr. 102)
0012
Station 1.0 Datalink D1
Datalink D1 (Pr. 306) set to Preset Speed 3 (Pr. 103)
0013
0014
Station 1.0
Datalink A2
MOV
MOV
Move
SourceN19:3
50<
DestO:1.3
50<
Station 1.0
Datalink B1
MOV
MOV
Move
SourceN19:4
100<
DestO:1.4
100<
Station 1.0
Datalink B2
MOV
MOV
Move
SourceN19:5
1<
DestO:1.5
1<
Station 1.0
Datalink C1
MOV
MOV
Move
SourceN19:6
100<
DestO:1.6
100<
Station 1.0
Datalink C2
MOV
MOV
Move
SourceN19:7
200<
DestO:1.7
200<
Station 1.0
Datalink D1
MOV
MOV
Move
SourceN19:8
300<
DestO:1.8
300<
END
Using I/O Messaging5-11
SLC Ladder Logic Example - Station 2 Program
Figure 5.5 Example SLC Ladder Logic - Station 2 Program
Controlling the Logic Command to the drive at Station 2.0.
Station 2.0
Start
Command
0000
0001
0002
0003
0004
0005
0006
0007
B3:21
1
Station 2.0
Stop
Command
B3:21
0
Station 2.0
Jog
Command
B3:21
2
Station 2.0
Clear Faults
Command
B3:21
3
Station 2.0
Reverse
Command
B3:21
4
Station 2.0
Reverse
Command
B3:21
4
Station 2.0 Speed Reference
PowerFlex 70 Speed Ref A Sel (Pr.90) needs to be set to 'DPI Port 5'
Station 2.0 Datalink A1
Datalink A1 (Pr. 300) set to Acceleration Time 1 (Pr. 140)
Station 2.0
Logic Command
START
Station 2.0
Logic Command
STOP
Station 2.0
Logic Command
JOG
Station 2.0
Logic Command
CLEAR FAULTS
Station 2.0
Logic Command
FORWARD
Station 2.0
Logic Command
REVERSE
Station 2.0
Speed Reference
MOV
MOV
Move
SourceN19:15
8192<
DestO:1.10
8192<
Station 2.0
Datalink A1
MOV
MOV
Move
SourceN19:16
50<
DestO:1.11
50<
O:1.9
OTHER
O:1.9
OTHER
O:1.9
OTHER
O:1.9
OTHER
O:1.9
OTHER
O:1.9
OTHER
1
0
2
3
4
5
5-12Using I/O Messaging
Figure 5.5 Example SLC Ladder Logic - Station 2 Program (Continued)
Station 2.0 Datalink A2
Datalink A2 (Pr. 301) set to Deceleration Time 1 (Pr. 142)
0008
Station 2.0 Datalink B1
Datalink B1 (Pr. 302) set to Jog Speed (Pr. 100)
0009
Station 2.0 Datalink B2
Datalink B2 (Pr. 303) set to Stop Mode A (Pr. 155)
0010
Station 2.0 Datalink C1
Datalink C1 (Pr. 304) set to Preset Speed 1 (Pr. 101)
0011
Station 2.0 Datalink C2
Datalink C2 (Pr. 305) set to Preset Speed 2 (Pr. 102)
0012
Station 2.0 Datalink D1
Datalink D1 (Pr. 306) set to Preset Speed 3 (Pr. 103)
0013
0014
Station 2.0
Datalink A2
MOV
MOV
Move
SourceN19:17
50<
DestO:1.12
50<
Station 2.0
Datalink B1
MOV
MOV
Move
SourceN19:18
100<
DestO:1.13
100<
Station 2.0
Datalink B2
MOV
MOV
Move
SourceN19:19
1<
DestO:1.14
1<
Station 2.0
Datalink C1
MOV
MOV
Move
SourceN19:20
100<
DestO:1.15
100<
Station 2.0
Datalink C2
MOV
MOV
Move
SourceN19:21
200<
DestO:1.16
200<
Station 2.0
Datalink D1
MOV
MOV
Move
SourceN19:22
300<
DestO:1.17
300<
END
Chapter
Using Explicit Messaging
(PCP Communications)
Chapter 6 provides information and examples that explain how to use
Explicit Messaging to monitor and configure the adapter and connected
PowerFlex drive, as well as other peripherals.
TopicPageTopicPage
About Explicit Messaging
Running Explicit Messages6-2SLC Ladder Example - Peripheral
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 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. Datalinks do not
write to NVS and should be used for frequently changed parameters.
6-1PCP Communications6-3
Communications Protocol (PCP)
6
6-15
About Explicit Messaging
Explicit Messaging (PCP Communications) 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 Interbus
network.
To be able to use Explicit Messaging in the adapter, Parameter 57 - [PCP Comm Act] must be set to “Enabled”.
6-2Using Explicit Messaging (PCP Communications)
PWR
STS
PORT
MOD
NET A
NET B
Running Explicit Messages
There are five basic events in the Explicit Messaging process defined
below. The details of each step will vary depending on the controller.
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
Set up and send
Parameter Message
➎
Complete Parameter
Message
➍
Retrieve Parameter
Message Response
➊
➋
➌
Event
1. Format the required data and set up the ladder logic program to send
an Explicit Message request to the scanner module (download).
2. The scanner module transmits the Explicit Message Request to the
slave device over the Interbus network.
3. The slave device transmits the Explicit Message Response back to
the master.
4. The controller retrieves the Explicit Message Response.
5. The Explicit Message is complete.
Using Explicit Messaging (PCP Communications)6-3
PCP Communications
Peripheral Communications Protocol (PCP) messages are used for
explicit messaging, which is not part of the normal Interbus
I/O data scan. The scanner takes care of all of the details of
establishing a connection for PCP communication services. PCP
communications can be used to:
• Read or write DPI Host (PowerFlex 70, etc.) parameters
• Read or write 20-COMM-I parameters
• Read DPI Host (PowerFlex 70, etc.) faults
• Read 20-COMM-I events
NamePCP - Index Value Range Access Rights Description
HexDecimal
Host
Parameters
Host Fault
Queue
20-COMM-I
Parameters
20-COMM-I
Event Queue
3001 to
(3001 +n)
2FF9 to 3000 12281 to
2FB6 to 2FEE 12214 to
2FAE to 2FB5 12206 to
12289 to
(12289 + n)
12288
12270
12213
Host Parameter
Dependent
Read OnlyHost fault queue
Para met er
Dependent
Read OnlyAdapter event queue (8
3001 (12289 Dec) =
Parameter 1 - etc.
containing up to 8 faults
2FB6 (12214 Dec) =
Parameter 1 - etc.
events)
The Command Interface for the SST SLC Interbus scanner must be
enabled for PCP Communications to take place:
• Bit 12 of word 1 in the G File must be set
• Word 5 in the G File must be set to the length of process data
required in the M Files. This value can range from 0 to 224
• Word 6 in the G File must be set to the maximum length of the
command buffer. This value can range from 0 to 128 and must be
non-zero to enable the buffer.
6-4Using Explicit Messaging (PCP Communications)
Figure 6.2 Memory Map
O/I
O/I:0
Process Data
(I/O Messaging)
M0/M1
M0/M1:0
M0/M1:(G:5-1)
M0/M1:(G:5)
M0/M1:(G:5+1)
Command/Status word
Command/Response Buffer
(Explicit Messaging)
M0/M1: (G:5+G:6-1)
The ladder example used in this manual uses Input (I:) and
Output (O:) files for I/O messaging (Logic Command/Status, Reference/
Feedback, and Datalinks) and M Files for PCP
messaging (See Chapter
4, RSLogix 500 SST Interbus Scanner
Configuration.)
The first word in the Command Interface memory area is the Command
(M0) or Status (M1) word. The remaining words form a buffer to pass
command data to and from the scanner. The M0 file contains the buffer
for the command written by the SLC and the M1 file contains the reply
to the SLC written by the scanner.
The lower six bits in the Command word are command bits to the
scanner. Commands are initiated by setting bits in this Command word.
The scanner acknowledges the command by setting bits in the Status
word. The high bit is either the Message Acknowledge bit (command
word) or the Message Present bit (Status word).
The ladder example used in this manual performs PCP Reads and PCP
Writes.
PCP Read Message Format
PCP Reads require the following Command and Reply message formats:
Command
Word NameDescription
0CRThe Communication Reference (CR #) to read from
1IndexThe index of the variable to read
2Sub IndexThe sub-index of the variable to read (not used)
Reply
WordNameDescription
Command
0
Word E ch o
Message
1
Length
2CRThe Communication Reference (CR #) the Reply is from
3Result
4Data LengthThe # of bytes of data following (1, 2 or 4 bytes)
5Data Word 1
6Data Word 2 Least significant word for 32-bit (4 byte) data reads
Echo of the Command Word (0004h)
Number of words following
Result Code:
0=Success
FFFFh = Timeout
FFFEh = Out of buffers to store the reply
FFFDh = Invalid CR
FFFCh = Could not connect to device with CR
FFFBh = Reply of Command bigger than buffer
Contains 8-bit (1 byte) data reads (stored in the high byte),
16-bit (2 byte) data reads, and the most significant word for
32-bit (4 byte) data reads
6-6Using Explicit Messaging (PCP Communications)
The example ladder logic program simplifies addressing the various PCP
indexes. Before calling the PCP Read Subroutine (Figure 6.3), three
registers are loaded to identify the variable to be read:
Table 6.2 PCP Read Main Program Data
N22:0
N22:1
N22:2
The Communication Reference (CR) to read from:
Set to “2” to access Station 1.0 (CR=2)
Set to “3” to access Station 2.0 (CR=3)
The desired Parameter / Event / Fault area to be accessed:
Set to “0” to read PowerFlex 70 parameters
Set to “1” to read 20-COMM-I parameters
Set to “2” to read PowerFlex 70 Fault Queue
Set to “3” to read 20-COMM-I Event Queue
The actual Parameter number or Event / Fault Queue item
number to read. Set to “1” to read Parameter number 1 or Fault / Event
Queue item number 1....etc....
The PCP Read Subroutine uses the data in Table 6.2 to create the
following Command Message:
Table 6.3 PCP Read Subroutine Command Message
N22:10The PCP Command word (set to “4” for PCP Read).
N22:11The Communication Reference (CR) to read from.
N22:12The PCP Index of the variable to read (“3001h”= Host parameter 1, etc.).
N22:13Sub Index not used (set to “0”).
Table 6.4 PCP Read Subroutine Reply Message
N22:20= PCP Status Word.
N22:21= Echo of the Command word (0004h).
N22:22= Number of words following.
N22:23= CR.
N22:24= Result (“0”=good).
N22:25= Number of bytes read (1-byte for 8-bit Parameters,
N22:26= Data Word #1 (1-byte & 2-byte reads, MSW of 4-byte
N22:27= Data Word #2 (LSW of 4-byte read).
2-bytes for 16-bit Parameters, 4-bytes for 32-bit Parameters).
read).
Using Explicit Messaging (PCP Communications)6-7
Read Examples
Reading Pr. 140 [Accel Time 1] from a PowerFlex 70 (DPI Host)
Message
Command
Reply
N22:10
N22:11
N22:12
N22:13
N22:20
N22:21
N22:22
N22:23
N22:24
N22:25
N22:26
N22:27
SLC Address
Value (Dec)
4
2
12428
0
-32,764
4
4
2
0
2
50
0
Value (Hex)
4
Command word = 4 = PCP Read (bit 2 ON)
2
CR# = 2 (Station 1.0)
Index =3000h+8Ch = Parameter 140 [Accel Time]
308C
3001h is the start of PowerFlex 70 parameters (Pr.1)
In the example ladder logic program, the user would load these
registers before calling the subroutine to perform the PCP read:
Message
Request
N22:0
N22:1
N22:3
SLC Address
Value (Dec)
2
1
21
Value (Hex)
2
CR# = 2 (Station 1.0)
1
1= 20-COMM-I
15
Parameter # = 21 [PIDD W0 Actual]
Description
6-10Using Explicit Messaging (PCP Communications)
PCP Write Message Format
PCP Writes require the following Command and Reply message
formats:
Command
Word NameDescription
0CRThe Communication Reference (CR #) to write to
1IndexThe index of the variable to write
2Sub IndexThe sub-index of the variable to write (not used)
3Data LengthThe # of bytes of data following (1, 2, or 4 bytes)
4Data Word 1
5Data Word 2Least significant word for 32-bit (4 byte) write data
Reply
WordNameDescription
Command
0
Word E ch o
Message
1
Length
2CRThe Communication Reference (CR #) the Reply is from
3Result
Contains 8-bit (1 byte) write data (stored in the high byte),
16-bit, (2 byte) write data, and the most significant word for
32-bit (4 byte) write data
Echo of the Command Word (0008h)
Number of words following
Result Code:
0=Success
FFFFh = Timeout
FFFEh = Out of buffers to store the reply
FFFDh = Invalid CR
FFFCh = Could not connect to device with CR
FFFBh = Reply of Command bigger than buffer
Using Explicit Messaging (PCP Communications)6-11
The example ladder logic program simplifies addressing the various PCP
indexes. Before calling the PCP Write Subroutine (Figure 6.4), six
registers are loaded to identify the variable to write:
Table 6.5 PCP Write Main Program Data
N23:0
N23:1The desired parameter area to be accessed:
N23:2The actual parameter number to write to (1, 2, ....n).
N23:3The number of bytes of data to write:
N23:4Data Word #1
N23:5 Data Word #2
The Communication Reference (CR) to write to:
Set to “2” to access Station 1.0 (CR=2)
Set to “3” to access Station 2.0 (CR=3)
Set to “0” for DPI Host parameters
Set to “1” for 20-COMM-I parameters
Set to either “1” (1 byte), “2” (2 bytes) and “4” (4 bytes)
(1 and 2-byte writes, MSW of 4 byte write).
(LSW of 4-byte write).
The PCP Write Subroutine uses the data in Table 6.5 to create the
following Command Message:
Table 6.6 PCP Write Subroutine Command Message
N23:10The PCP Command word (set to “8” for PCP Write).
N23:11The Command Reference (CR) to write to.
N23:12The PCP Index of the variable to write (“306Ah” = Host parameter 106,
N23:13Sub Index not used.
N23:14The number of bytes of data to write (set to “1”, “2” or “4”).
N23:15Data word 1.
N23:16Data word 2.
etc.).
Note that writing to parameters causes a non-volatile storage (NVS)
write cycle and therefore must NOT be done frequently (can exceed the
maximum number of allowable write cycles and cause the product to
malfunction).
Table 6.7 PCP Write Subroutine Reply Message
N23:20= PCP Status Word.
N23:21= Echo of the Command word (0008h).
N23:22= Number of words following.
N23:23= CR.
N23:24= Result (“0” = good).
6-12Using Explicit Messaging (PCP Communications)
Write Examples:
Writing Pr. 106 [Preset Speed 6] to a PowerFlex 70 (DPI Host)
Message
Command
Reply
N23:10
N23:11
N23:12
N23:13
N23:14
N23:15
N23:16
N23:20
N23:21
N23:22
N23:23
N23:24
SLC Address
Value (Dec)
8
2
12394
0
2
123
0
-32,760
8
2
2
0
Value (Hex)
8
Command word = 8 = PCP Write (bit 3 ON)
2
CR# = 2 (Station 1.0)
Index = 3000h+6Ah = Parameter 106 [Preset Speed 6]
306A
3001h is the start of PowerFlex 70 parameters (Pr.1)
6A hex = 106 dec = Parameter 106 [Preset Speed 6]
In the example ladder logic program, the user would load these
registers before calling the subroutine to perform the PCP Write:
Request
Message
N23:0
N23:1
N23:2
N23:3
N23:4
N23:5
SLC Address
Value (Dec)
2
1
12
4
0
2048
Value (Hex)
2
CR# = 2 (Station 1.0)
1
1= 20-COMM-I
Parameter # = 12
12
4
4 byte data write
Data Word 1 = 0
0
800
Data Word 2 = 2048
Description
Using Explicit Messaging (PCP Communications)6-15
SLC Ladder Example - Peripheral Communications
Protocol (PCP)
PCP Read Subroutine (Explicit Messaging)
The PCP Read Subroutine is executed from the Main Program (Chapter
5) by turning on bit B3:47/0. Only one PCP Read or Write can be
performed at any one time. B3:47/0 will be turned off by the subroutine
when the reading is complete and signals that another read (or write)
cycle can take place.
Figure 6.3 LAD5 - PCP Read Subroutine
N22:10 = PCP Command Word (Always set to "4" to cause a PCP Read: a "4" = bit 2 ON)
PCP Read
Routine
1-shot
0000
0001
B3:47
1
N22:11 = The Communication Reference (CR) to read from. There is a unique CR for each Station.
"2" = CR 2 = Station 1.0
"3" = CR 3 = Station 2.0
PCP Read
Routine
1-shot
B3:47
1
PCP
Command
Word
MOV
MOV
Move
Source4
4<
DestN22:10
4<
PCP Read
Command Msg
CR
MOV
MOV
Move
SourceN22:0
2<
DestN22:11
2<
6-16Using Explicit Messaging (PCP Communications)
Figure 6.3 LAD5 - PCP Read Subroutine (Continued)
N22:12 = Index (the parameter number or fault/event queue item to be read)
Copy the PCP Read Command message to the scanner for transmission on the network.
PCP Read
Routine
1-shot
0004
0005
0006
0007
0008
0009
B3:47
1
The PCP Read Command 1-shot is used so the subroutine processes and sends the Command only once when called by the
MAIN PGM
When the scanner acknowledges the PCP Read command, turn the Command word PCP Read bit OFF (originally comes from
N22:10 which was COPied to M0: above).
Status
PCP Read
M1:1.0
2
When the scanner Status word indicates that a message is available, copy the message for processing and handshake with the
scanner by turning the Command word Message Acknowledge bit ON.
Status
PCP Read
Message
Reply Msg
Present
1-Shot
M1:1.0
If the Reply contains only 1 byte of data, then the high and low bytes need to be swapped (e.g. a value of "5" will be stored as a
"0005" as opposed to "0500".
Status
Message
Present
M1:1.0
If the Reply does not contain 4 bytes of data, then the parameter is not 32-bit and Data Word #2 needs to be zero'd (might
contain leftover data from a previous 4-byte PCP Read).
Status
Message
Present
M1:1.0
B3:47
15
15
15
2
PCP Read
Reply Msg
1-Shot
B3:47
2
PCP Read
Reply Msg
1-Shot
B3:47
2
PCP Read
Reply Msg
# Bytes of Data
EQU
EQU
Equal
Source AN22:25
2<
Source B1
1<
PCP Read
Reply Msg
# Bytes of Data
NEQ
Not Equal
Source AN22:25
2<
Source B4
4<
Copy File
Source#N22:10
Dest#M0:1.0
Length4
PCP Read
Reply Msg
Status Word
COP
COP
Copy File
Source#M1:1.0
Dest#N22:20
Length8
PCP Read
Reply Msg
Data Word #1
Swap
Source#N22:26
Length1
PCP Read
Reply Msg
Data Word #2
Move
Source0
0<
DestN22:27
0<
COP
COP
Command
Message
Acknowledge
M0:1.0
SWP
SWP
MOV
MOV
L
15
PCP Read
Routine
1-shot
B3:47
L
1
Command
PCP Read
M0:1.0
U
2
6-18Using Explicit Messaging (PCP Communications)
Figure 6.3 LAD5 - PCP Read Subroutine (Continued)
If the PCP Read Reply message indicates that the result was "not good" (N22:24 <> 0), then zero out the data area of the Reply
message (might contain leftover data from a previous successful PCP Read).
Status
PCP Read
Message
Reply Msg
Present
1-Shot
M1:1.0
0010
0011
0012
0013
15
The PCP Read Reply 1-shot is used so the subroutine processes the Reply message only once.
Status
Message
Present
M1:1.0
15
When the Command / Status Message handshake is complete, reset the 1-shot bits and exit the PCP Read routine by turning the
"Execute PCP Read" bit off (B3:47/0)
Command
Message
Acknowledge
M0:1.0
15
B3:47
2
Status
Message
Present
M1:1.0
15
PCP Read
Reply Msg
Result
NEQ
Not Equal
Source AN22:24
0<
Source B0
0<
PCP Read
Reply Msg
Data Word #1
MOV
MOV
Move
Source0
0<
DestN22:26
325<
PCP Read
Reply Msg
Data Word #2
MOV
MOV
Move
Source0
0<
DestN22:27
0<
PCP Read
Reply Msg
1-Shot
Execute
PCP Read
Subroutine
B3:47
U
0
PCP Read
Routine
1-shot
B3:47
U
1
PCP Read
Reply Msg
1-Shot
B3:47
U
2
Command
Message
Acknowledge
M0:1.0
U
15
B3:47
L
2
END
Using Explicit Messaging (PCP Communications)6-19
PCP Write Subroutine (Explicit Messaging)
The PCP Write Subroutine is executed from the Main Program (Chapter
5) by turning on bit B3:47/10. Only one PCP Read or Write can be
performed at any one time. B3:47/10 will be turned off by the subroutine
when the reading is complete and signals that another read (or write)
cycle can take place.
Figure 6.4 LAD6 - PCP Write Subroutine
N23:10 = PCP Command Word (Set to "8" to cause a PCP Write: an "8" = bit 3 ON)
PCP Write
Routine
1-shot
0000
0001
0002
0003
B3:47
11
N23:11 = CR (The Communication Reference to write to. A unique CR is the established for each Station)
"2" = CR 2 = Station 1.0
"3" = CR 3 = Station 2.0
PCP Write
Routine
1-shot
B3:47
11
N23:12 = Index
N23:1 determines what area is to be written to:
0 = PowerFlex 70 (Host) parameter (N23:2 + 12288 decimal (3000h) = mapped parameter address)
1 = 20-COMM-I parameter (N23:2 + 12213 decimal (2FB5h) = mapped parameter address)
N23:14 = Number of bytes to write ("1" for byte, "2" for 16-bit parameter and "4" for 32-bit parameter)
Data is contained in:
N23:15 = Data word #1 to write (8-bit & 16-bit parameters, MSW of 32-bit parameters)
N23:16 = Data word #2 to write (LSW of 32-bit parameters)
If only 1 byte is being written, it needs to be loaded into the high byte of Data word #1 (N23:15). The subroutine performs this
via the SWP instruction so the main program can work with a normal number (i.e. a "2" instead of a "0200" hex).
PCP Write
Routine
1-shot
0004
0005
0006
0007
0008
B3:47
11
PCP Write
Command Msg
# Bytes of Data
EQU
EQU
Equal
Source AN23:14
2<
Source B1
1<
Copy the PCP Write Command message to the scanner for transmission on the network.
PCP Write
Routine
1-shot
B3:47
11
The PCP Write Command 1-shot is used so the subroutine processes and sends the Command only once when called by the
MAIN PGM
When the scanner acknowledges the PCP Write command, turn the Command word PCP Write bit OFF (originally comes from
N23:10 which was COPied to M0: above).
Status
PCP Write
M1:1.0
3
When the scanner Status word indicates that a message is available, copy the message into an Interger file (N23:) for processing
and handshake with the scanner by turning the Command word Message Acknowledge bit ON.
When the Command / Status Message handshake is complete, reset the 1-shot bits and exit the PCP Write routine by turning the
"Execute PCP Write" bit off (B3:47/10)
Command
Message
Acknowledge
M0:1.0
Status
Message
Present
M1:1.0
15
15
PCP Write
Reply Msg
1-Shot
Execute
PCP Write
Subroutine
B3:47
U
10
PCP Write
Routine
1-shot
B3:47
U
11
PCP Write
Reply Msg
1-Shot
B3:47
U
12
Command
Message
Acknowledge
M0:1.0
U
15
B3:47
L
12
END
6-22Using Explicit Messaging (PCP Communications)
Notes:
Chapter
PWR
STS
CC
RD
TR
BA
Troubleshooting
Chapter 7 contains troubleshooting information.
TopicPageTopicPage
Locating the Status Indicators
Cable Check (CC) Status
Indicator
Remote Bus Disable (RD) Status
Indicator
7-1Transmit/Receive (TR) Status
7-2Bus Active (BA) Status Indicator 7-3
7-2Adapter Diagnostic Items7-4
Indicator
Viewing and Clearing Events7-5
Locating the Status Indicators
The Interbus adapter has five status indicators. They can be viewed on
the adapter or through the drive cover. See Figure 7.1
Figure 7.1 Status Indicators
.
➊
➋
➌
➍
➎
➊
➋
➌
➍
7-2
7
#Status Indicator DescriptionPage
➊CCCable Check7-2
➋RDRemote Bus Disable7-2
➌TRTransmit/Receive7-2
➍BABus Active7-3
➎ULBus Voltage7-3
7-2Troubleshooting
Note: The UL indicator is not viewable when the drive cover is installed
or closed.
Note: Interbus compliance requires different LED functions than what is
normally displayed on the front of the drive (Port, Mod, Net A and Net B
Leds). LED labels are provided with the adapter for application to the
drive cover.
Cable Check (CC) Status Indicator
StatusCauseCorrective Action
OffMaster is reset or no cable
connection.
Solid GreenCable connection good.
Connect the adapter to the network using an
•
Interbus cable.
Verify master not in reset.
•
No Action.
•
Remote Bus Disable (RD) Status Indicator
StatusCauseCorrective Action
OffOutgoing remote bus is not
Solid RedOutgoing remote bus is
switched off.
switched off.
No action.
•
Read configuration or start data
•
transmission. Master may have to be reset
first.
Transmit/Receive (TR) Status Indicator
StatusCauseCorrective Actions
OffNo PCP connection is
Solid GreenA PCP connection is being
carried out.
carried out. Flashes when
a new PCP frame has
been received.
Verify that master is sending PCP
•
messages.
No action.
•
Bus Active (BA) Status Indicator
StatusCauseCorrective Actions
OffBus not active.
Solid GreenBus active, exchanging
Flash GreenBus active, but no data
data.
exchange.
Set master to start data transmission.
•
No action.
•
Set master to start data transmission.
•
Troubleshooting7-3
Bus Voltage (UL) Status Indicator
StatusCauseCorrective Actions
OffBus voltage is not OK.
Solid GreenBus active.
(1)
Only visible when drive cover is open.
Securely connect the adapter to the drive
•
using the Internal interface cable
Apply power to the drive.
•
No action.
•
(1)
7-4Troubleshooting
Adapter Diagnostic Items
Adapter Diagnostic Items are viewable with DriveExplorer (version 2.01
or higher), DriveExecutive (version v1.01 or higher) or LCD HIM (2.001
or higher) software. Diagnostic items show current data being
transmitted and received by the Host device (e.g. drive), and other
diagnostic information regarding the 20-COMM-I.
No.EventDescription
1Common Logic Cmd The current value of the Common Logic Command being transmitted
2Prod Logic CmdThe current value of the Product-Specific Logic Command being
3ReferenceThe current value ofthe Product-Specific Reference being
4Common Logic Sts The current value of the Product-Specific Logic Status being
5Prod Logic StsThe current value of the Product-Specific Status being received from
6FeedbackThe current value of the Product-Specific Feedback being received
7Datalink A1 InThe current value of Datalink A1 being transmitted to the Host.
8Datalink A2 InThe current value of Datalink A2 being transmitted to the Host.
9Datalink B1 InThe current value of Datalink B1 being transmitted to the Host.
10Datalink B2 InThe current value of Datalink B2 being transmitted to the Host.
11Datalink C1 InThe current value of Datalink C1 being transmitted to the Host.
12Datalink C2 InThe current value of Datalink C2 being transmitted to the Host.
13Datalink D1 InThe current value of Datalink D1 being transmitted to the Host.
14Datalink D2 InThe current value of Datalink D2 being transmitted to the Host.
15Datalink A1 OutThe current value of Datalink A1 being received from the Host.
16Datalink A2 OutThe current value of Datalink A2 being received from the Host.
17Datalink B1 OutThe current value of Datalink B1 being received from the Host.
18Datalink B2 OutThe current value of Datalink B2 being received from the Host.
19Datalink C1 OutThe current value of Datalink C1 being received from the Host.
20Datalink C2 OutThe current value of Datalink C2 being received from the Host.
21Datalink D1 OutThe current value of Datalink D1 being received from the Host.
22Datalink D2 OutThe current value of Datalink D2 being received from the Host.
23Field Flash CntrThe number of times this device has been flash updated.
24DPI Rx Err CntrThe current value of the DPI CAN Receive error counter.
25DPI Tx Err CntrThe current value of the DPI CAN Transmit error counter.
26IbusImage SizAmount of process data bytes used on the Interbus network by the
to the Host.
transmitted to the Host.
transmitted to the Host.
received from the Host.
the Host.
from the Host.
(Value of 0 if Datalink is not used).
(Value of 0 if Datalink is not used).
(Value of 0 if Datalink is not used).
(Value of 0 if Datalink is not used).
(Value of 0 if Datalink not used).
(Value of 0 if Datalink is not used).
(Value of 0 if Datalink is not used).
(Value of 0 if Datalink is not used).
adapter.
Troubleshooting7-5
Viewing and Clearing Events
The adapter maintains an event queue that reports the history of its
actions. You can view the event queue using an LCD PowerFlex HIM,
DriveExplorer (2.01 or higher) software, or DriveExecutive (1.01 or
higher).
StepKeysExample Screen
Viewing Events
1. Access parameters in the adapter.
Refer to Using the PowerFlex HIM
Chapter 3.
2. Press the Up Arrow or Down Arrow to
scroll to Diagnostics.
3. Press Enter to display the
Diagnostics menu in the adapter.
4. Repeat steps 2 and 3 to enter the
Events option and then View Event
Queue option.
5. Press the Up Arrow or Down Arrow to
scroll through the events. The most
recent event is Event 1.
Clearing Events
1. Access parameters in the Adapter.
Refer to Using the PowerFlex HIM
Chapter
3.
2. Press the Up Arrow or Down Arrow to
scroll to Diagnostics.
3. Press Enter to display the
Diagnostics menu in the adapter.
4. Repeat steps 2 and 3 to enter the
Events option and then the Clr
Event option or Clear Event Queue
option. A message will pop up to
confirm that you want to clear the
message or queue.
5. Press Enter to clear all events out of
the event queue. All event queue
entries will then display “No Event.”
in
in
OR
OR
OR
Main Menu:
Diagnostics
Parameter
Device Select
Event Q:1E3
Ping Time Flt
Dgn: Events
View Event Queue
Clear Event
Clear Event Queue
7-6Troubleshooting
Events
Many events in the Event queue occur under normal operation. If you
encounter unexpected communications problems, the events may help
you or Allen-Bradley personnel troubleshoot the problem. The following
events may appear in the event queue:
CodeEventDescription
1No EventEmpty event queue entry.
2DPI Bus Off
Flt
3Ping Time Flt A ping message was not received on DPI within the specified
4Port ID FltThe adapter is not connected to a correct port on a DPI product.
5Port Change
Flt
6Host Sent
Reset
7EEPROM
Sum Flt
8Online @
125kbps
9Online @
500kbps
10Bad Host FltThe adapter was connected to an incompatible product.
11Dup. Port Flt Another peripheral with the same port number is already in use.
12Type 0 Login The adapter has logged in for type 0 control.
13Type 0 Time
Flt
14DL LoginThe adapter has logged into a Datalink.
15DL Reject Flt The host rejected an attempt to log in to a Datalink because the
16DL Time FltThe adapter has not received a Datalink message within the
17Control
Disabled
18Control
Enabled
19Message
Timeout
20DPI Fault Msg The DPI Host has faulted.
21DPI Fault
Clear
22Normal
Startup
23Net Comm Flt The adapter detected a fault condition on the Interbus network.
24Fault Cfg
Error
A bus-off condition was detected on DPI. This event may be
caused by loose or broken cables or by noise.
time.
The DPI port changed.
The DPI product issued this because it was reset.
The EEPROM in the adapter is corrupt.
The adapter and DPI product are communicating at 125kbps.
The adapter and DPI product are communicating at 500kbps.
The adapter has not received a type 0 status message within
the specified time.
Datalink is not supported or is used by another peripheral.
specified time.
The adapter has sent a “Soft Control Disable” command to the
DPI product.
The adapter has sent a “Soft Control Enable” command to the
DPI product.
A Client-Server message sent by the peripheral was not
completed.
The user cleared a fault in the adapter.
Peripheral completes a normal startup.
The peripheral detected a 32-bit fault configuration Reference
when the Host supports only a 16-bit Reference, or vice-versa.
Troubleshooting7-7
CodeEventDescription
25IB OnlineThe Interbus adapter has gone on-line the Interbus network.
26IB OfflineThe Interbus adapter has gone off-line the Interbus network.
27Lang CRC
Bad
Language file CRC is Bad
7-8Troubleshooting
Notes:
Appendix
Specifications
This chapter presents the specifications for the adapter.
UL508C and CUL
CEEN50081-2 (1993) and EN61000-6-2 (1999)
Appendix
B
Adapter Parameters
Appendix B provides information about the Interbus adapter parameters.
TopicPage
About Parameter Numbers
Parameters ListB-1
About Parameter Numbers
The parameters in the adapter are numbered consecutively. However,
depending on which configuration tool you use, they may have different
numbers.
Configuration ToolNumbering Scheme
DriveExplorer
•
DriveExecutive
•
HIM
•
Explicit Messaging
•
B-1
The adapter parameters begin with parameter 1. For
example, Parameter 01 - [DPI Port] is parameter 1 as
indicated by this manual.
Parameters List
Parameter
No. Name and DescriptionDetails
01[DPI Port]
Port to which the adapter is connected. This will
usually be port 5.
02[DPI Data Rate]
Data rate used by the drive. This data rate is set in
the drive, and the adapter detects it.
03[Ref/Feedback Size]
Size of the Reference/Feedback. The drive
determines the size of the Reference/Feedback.
Default:0
Minimum:0
Maximum:7
Type:Read Only
Default:0 = 125 K
Values:0 = 125 K
Type:Read Only
Default:0 = 16-bit
Values:0 = 16-bit
Type:Read Only
1 = 500 K
1 = 32-bit
B-2Adapter Parameters
Parameter
No. Name and DescriptionDetails
04[Datalink Size]
Size of each Datalink word. The drive determines
the size of the Datalinks.
05[Reset Module]
No action if set to “Ready.” Resets the adapter if
set to “Reset Module.” Restores the adapter to its
factory default settings if set to “Set Defaults.” This
parameter is a command. It will be reset to “0 =
Ready” after the command has been performed.
06[Comm Flt Action]
Action that the adapter and drive take if the
adapter detects that Interbus communications
have been disrupted. This setting is effective only
if I/O that controls the drive is transmitted through
the adapter.
ATTENTION: Risk of injury or equipment damage exists. Parameter 6 - [Comm Flt
Action] lets you determine the action of the adapter and connected drive if
communications are disrupted. By default, this parameter faults the drive. You can
!
set this parameter so that the drive continues to run. Precautions should be taken to
ensure that the setting of this parameter does not create a hazard or injury or
equipment damage.
07[Reserved]Default:0
08[DPI I/O Config]
I/O that is transferred through the adapter.
Bit
Default
Default:0 = 16-bit
Values:0 = 16-bit
Type:Read Only
Default:0 = Ready
Values0 = Ready
Type:Read/Write
Reset Required: No
Default:0 = Fault
Values:0 = Fault
Type:Read/Write
Reset Required: No
Val ue s:0
Type:
Reset Required:
Default:xxx0 0001
Bit Values:0 = I/O disabled
Type:Read/Write
Reset Required: Yes
Bit Definitions
01234576
0 = Cmd/Ref
10000xxx
1 = Datalink A
2 = Datalink B
3 = Datalink C
4 = Datalink D
5 = Not Used
6 = Not Used
7 = Not Used
1 = 32-bit
1 = Reset Module
2 = Set Defaults
1 = Stop
2 = Zero Data
3 = Hold Last
4 = Send Flt Cfg
1 = I/O enabled
ATTENTION: Risk of injury or equipment damage exists. If the adapter is
transmitting I/O that controls the drive, the drive may fault when you reset the
adapter. Determine how your drive will respond before resetting a connected
!
adapter.
Parameter
No. Name and DescriptionDetails
09[DPI I/O Active]
I/O that the adapter is actively transmitting. The
value of this parameter will usually be equal to the
value of Parameter 8 - DPI I/O Config.
Bit
Default
10[Flt Cfg Logic]
Sets the Logic Command data that is sent to the
drive if any of the following is true:
Parameter 06 - [Comm Flt Action] is set to
•
Send Flt Cfg and communications are
disrupted.
The bit definitions will depend on the product to
which the adapter is connected.
11[Flt Cfg Ref]
Sets the Reference data that is sent to the drive if
any of the following is true:
Parameter 06 - [Comm Flt Action] is set to
•
Send Flt Cfg and communications are
disrupted.
Default:xxx0 0001
Bit Values:0 = I/O disabled
Type:Read Only
Bit Definitions
01234576
0 = Cmd/Ref
10000xxx
1 = Datalink A
2 = Datalink B
3 = Datalink C
4 = Datalink D
5 = Not Used
6 = Not Used
7 = Not Used