The information in this manual is subject to change without notice.
Throughout this manual, the following notes are used to alert you to safety
considerations:
ATTENTION: Identifi es informat ion about practices or
circumstances that can lead to personal injury or death, property
damage, or economi c loss.
!
Important: Identifies information th at i s c riti cal for s uc cess ful a ppl ic ati on and
understanding of the product.
The thick black bar shown on the outside margin of this page will be used
throughout this instruction manual to signify new or revised text or figures.
ATTENTION: The drive ma y contain hig h voltages t hat can cause
injury or death. Remove all power from the drive, and then verify
power has been removed before installing or removing a
!
PROFIB US module. Failure to observe these preca utions co u ld
result i n s e vere bodily injury o r loss of life.
ATTENTION: Only qualified electrical personnel familiar with
drive and power products an d the associated machinery sho ul d
plan or implement the install at ion, start u p, conf i gu ration, and
subsequent mainten ance of the product using a PROF IB US
module. Read and und er stand th is manual in its entirety before
proceeding. Failure to observe these precautions could result
bodily injury and/or damage to equipment.
ATTENTION: DPI host prod uct s mus t no t be dir ec t l y con ne ct ed
together via RECBL-xxx cables. Unpredictable behavior due to
timing and other internal procedures can result if two or more
devices are connect ed in this manner. Failure to observe this
precaution could result bodily injury and/or damage to equipment.
ATTENTION: If the PROFIBUS module is transmitting control
I/O to the drive, the drive ma y fa ul t when you reset the module.
Determine how your drive will respond before re setting an module.
Failure to observe this pre caution could result bodily inju ry
and/or damage to equipment.
ATTENTION: Comm Flt Action (parameter 9) and Idle Flt Action
(parameter 10) let you determ i ne t he action of the module and
connected drive if co m m uni cations are disrupted. By def aul t ,
these parameters fault the dri v e. 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
hazard of injury or equipm ent damage. Failure to observe th i s
precaution could result bodily injury and/or damage to equipment.
ATTENTION: 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 test i ng.
Failure to observe this pre caution could result bodily inju ry
and/or damage to equipm ent.
PROFIBUS is a trademark of the PROFIBUS Trade Organization.
Windows, Windows N T, and Microsoft are trademarks of Micr osoft Corporation.
Reliance, SP600, VS Utilities, DP I , and SLC are trademarks of Rockwell
Automation.
Table 8.5 – Event Codes and Descriptions................................................. 8-7
Contents
VII
VIII
PROFIBUS Communications Module
CHAPTER 1
Introduction
This manual provides information about the PROFIBUS
Communications module (RECOMM-PBUS) and using it with
SP600 drives. It is i ntended for qualifi ed elec trical per sonnel fa miliar
with installing, programming, and maintaining AC drives and
networks.
The PROFIBUS module is an embedded communication option
for DPI AC drives, such as the SP600 drive. The module is
mounted in the drive and receives its required power from the drive.
The module can be used with other products that implement DPI, a
peripheral communication interface. Refer to the documentation for
your product for specific information about how it works with the
module.
1.1PROFIBUS Module Features
The PROFIBUS module features the following:
• Switches that enable you set a node address before applying
power to the drive. Alternati vely , you ca n disable the sw itches and
use parameters to configure this feature.
• A number of configurati on to ols tha t ca n be used to configure the
module and conn ected d riv e. The tools inclu de the L CD Op era tor
Interface Module (OIM) on the drive and VS Utilities software.
• Status indicators that report the status of the drive
communications, module, and network. They are visible both
when the cover is opened and when it is closed.
• I/O, including Logic Command/Reference and up to four pairs of
Datalinks, that may be configured for your application using a
parameter.
• Explicit messages that are supported using the Parameter
Protocol.
• User-defined fault ac tions that determine how the modu le and the
drive respond to communication disruptions on the network and
controllers in idle mode.
Introduction
1-1
1.2Related Documentation
Refer to the following related publications as necessary for more
information. All of the publications are available from
http://www.theautomationbookstore.com or
http://www.reliance.com.
• D2-3485SP600 AC Drive User Manual
• D2-3501SP600 AC Drive User Manual (6SB401 Series)
• D2-3488VS Utilities Getting Results Manual
Online help installed with the software
• 1747-6.2SLC 500 Modular Hardware Style Installation and
Operation Manual
• 1747-6.15SLC 500 and MicroLogix 1000 Instruction Set
Documentation about the sc ann er, SST-PFB-SLC User’s Guide,
Versi on 2.0 3, can be obt ained online at
http://www.mysst.com/download.
1.3Getting Assistance from Reliance
Electric
If you have any questions or problems with the products described
in this instruction manual, contact your loca l R eli anc e El ectric sales
office.
1-2
For technical assistance, call 1-800-726-8112. Before calling,
please review the troub leshoo ting ch apter in th is man ual and check
the Reliance drives website for additional information. When you
call this number, you will be asked for the drive model number and
this instruction manual number.
PROFIBUS Communications Module
CHAPTER 2
Getting Started
This chapter provides:
• A description of the PROFIBUS module components
• A list of parts shipped with the module
• A list of user-supplied parts required for installing the module
• An installation checklist
2.1PROFIBUS Module Components
Status IndicatorsThree LEDs to indicate the status of the
DPI ConnectorA 20-pin, single-row shrouded male
PROFIBUS
Connector
Node Address
Switches
Getting Started
connected drive, module, and network.
Refer to chapter 8 for more information
about the LEDs.
header. An Internal Interface cable
connects to this connector and a
connector on the drive.
A 9-pin, female D-Sub connector.
Switches to set the node address.
Figure 2.1 – Components of the PROFIBUS Module
2-1
2.2Required Equipment
Table 2.1 lists the equipment shipped with the PROFIBUS module.
When you unpack the module, verify that the package includes all
of these items.
Table 2.1 – Equipment Shipped with the PROFIBUS Module
Item Description
One RECOMM-PBUS PROFIBUS module
A 2.54 cm (1 in) and a 15.24 c m (6 in) Inte rnal Interf ace cabl e (only
one cable is needed to connect the module to the drive)
One grounding wrist strap
One floppy disc with GSD file
PROFIBUS Module User Manual (D2-3479)
Table 2.2 lists user-supplied equipment also required to install and
configure the PROFIBUS module.
Table 2.2 – Required User-Supplied Equipment
Item Description
Small flathead screwdriver
PROFIBUS cable
One 9-pin, male D-Sub PROFIBUS connector.
Note: PROFIBUS connectors are available from a variety of
sources and in various sizes. As such, there may be mechanical
limitations that prohibit the use of some connectors. Phoenix
Subcon Plus M1 (Part # 2761826) or ERNI PROFIBUS vertical
(Node Part # 103658 and Termination Part # 103659) are
recommended for use with SP600 drives.
Configuration tool, such as:
• LCD OIM
• VS Utilities
• with RECOMM-232 Serial Converter
PROFIBUS configuratio n soft wa re
Controller configuration software
2-2
PROFIBUS Communications Module
2.3Installation Checklist
This section is designed to help experienced users start using the
PROFIBUS module. If you are unsure about how to complete a
step, refer to the referenced chapter.
StepActionRefer to:
❒
❒
❒
❒
❒
❒
❒
1Review the safety precautions for the
module.
2Verify that the drive is properly installed.
3Commission the module.
Set a unique node address using the
switches on the module. If desired, you can
disable the switches and use parameter
settings instead.
4Install the module.
Verify that the drive is not powered. Then,
connect the module to the network using a
PROFIBUS cable and to the drive using the
Internal Interface cable. Use the captive
screws to secure and ground the module to
the drive.
5Apply power to the module.
Apply power to the drive. The module
receives power from the drive. The status
indicators should be green. If they flash red,
there is a problem. Refer to chapter 8,
Troubleshooting the PROFIBUS Module and
Network.
6Configure the module for your
application.
Set the parameters for the following features
as required by your application:
• Node address.
• I/O configuration.
• Fault actions.
7Apply power to the PROFIBUS master a nd
other devices on the network.
Verify that the master and network are
installed and functi oni ng in acc ord anc e with
PROFIBUS standards, an d then apply power
to them.
Throughout
this manual
SP600 AC
Drive User
Manual
Chapter 3,
Installing the
PROFIBUS
Module
Chapter 3,
Installing the
PROFIBUS
Module
Chapter 3,
Installing the
PROFIBUS
Module
Chapter 4,
Configuring
the
PROFIBUS
Module
Getting Started
2-3
StepActionRefer to:
❒
❒
8Configure the scanner to communicate
with the module.
Use a network tool for PROFIBUS to
configure the master on the network.
9Create a ladder logic program.
Use a programming tool to create a ladder
logic program that enables you to do the
following:
• Control the module and connected drive.
• Monitor or configure the dri ve using Explic it
Messages.
Chapter 5,
Configuring
the
PROFIBUS
Scanner
Chapter 6,
Using I/O
Messaging.
Chapter 7,
Using Explicit
Messaging
(Parameter
Protocol)
2-4
PROFIBUS Communications Module
CHAPTER 3
Installing the
PROFIBUS Module
Chapter 3 provides instructions for installing the PROFIBUS module
in an SP600 drive.
3.1Preparing for an Installation
Before installing the PROFIBUS module, verify that you have all
required equipment. Refer to chapter 2, Getting Started.
3.2Commissioning the Module
To commission the module, you must set a unique node address.
(Refer to the Glossary for details about node addresses.)
Important: New settings are recognized only when power is
applied to the module. If you change a setting, cycle
power.
ATTENTION:The PROFIBUS module contains
ESD- (Electrostatic Discharge) sensitive parts that
!
Step 1.Set the node address switches as shown in figure 3.1.
Installing the PROFIBUS Module
can be damaged if you do not follow ESD control
procedures. Static c ontrol precau tions are re quired
when handling the m odule. Failure to obse rve these
precautions could result in damage to equipment.
3-1
1
0
9
Tens
Digit
2
3
7
8
2
4
1
0
5
9
6
8
SettingDescription
00 - 99Node address used by the module if switches are
enabled. The default switch setting is 05.
Important:If the address switch is set to “00”, the
module will use the setting of P-DP Addr Cfg
(module parameter 3) for the node address. Refer
to chapter 4, Configuring the PROFIBUS Module.
Figure 3.1 – Setting the Node Address
3.3Connecting the Module to the
Network
ATTENTION:The drive may contain high voltages
that can cause injury of death. Remove all power
!
from the drive, and then verify power has been
removed before i nstalling or rem oving a PROFIBUS
module. Failure to observe these precautions could
result in severe bodily injury or loss of life.
3
4
6
7
Ones
Digit
5
3-2
Step 1.Remove power from the drive.
Step 2.Use static control precautions.
Step 3.Route the PROFIBUS cable through the bottom of the
SP600 drive. (See figure 3.6.)
Step 4.Connect a PROFIBUS connector to the cable. (See
figures 3.2 and 3.3.)
Note: PROFIBUS connectors are available from a variety
of sources and in various sizes. As such, there may be
mechanical limitations that prohibit the use of some
connectors. Phoenix Subcon Plus M 1 (Part # 27618 26) or
ERNI PROFIBUS vertical (Node Part # 103658 and
Termination Part # 103659 connectors) are
recommended for use with SP600 and other Reliance
Electric DPI-based drives.
PROFIBUS Communications Module
ERNI Connector
Phoenix Subcon Plus 1M Connector
Figure 3.2 – ERNI and Phoenix Subcon Connectors
A
B
B
A
B
A
A
B
AB
A
B
Figure 3.3 – Network Wiring Diagram
Only use cable that conforms to PROFIBUS cable standards.
Belden #3079A PROFIBUS cable or equivalent is recommended.
Step 5.Connect the PROFIBUS cab le to th e m odu le , an d s ecu re
it with the two screws on the connector. (See figure 3.5.)
Note: The screws on some conne ctors tie the PROFIBUS
cable ground/shield to the metal of the socket. In some
cases, PROFIBUS will not operate correctly without this
connector.
3.4Terminating the Network
The first and last node on the PROFIBUS network needs to be
terminated by using a PROFIBUS connector with terminating
resistors.
Some connector manufacturers offer standard terminating
connectors, such as the yellow ERNI PROFIBUS termination
vertical connector (Part # 103659). Standard PROFIBUS node
connectors, such as the Phoe nix Subc on Plus M1 (Part #27618 26),
can be configured as a terminating connector by adding resistors
(see figure 3.4.)
390
220
Ω
Ω
6
3
8
B
A
3-4
Ω
390
Figure 3.4 – Phoenix Subcon Plus M1 Connection for Terminating Resistors
5
PROFIBUS Communications Module
3.5Connecting the Module to the Drive
Step 1.Remove power from the drive.
Step 2.Use static control precautions.
Step 3.Connect the Internal Interface cable to the DPI po rt on the
drive and then to the DPI connector on the module.
SP600 Drive
PROFIBUS Module
1-20 HP
Installing the PROFIBUS Module
15.24 cm (6 in) Internal Interface cable
DPI connector
PROFIBUS connecto r
Retaining screws
2.54 cm (1 in) Internal Interface cable
Figure 3.5 – DPI Ports and Internal Interface Cables
SP600 AC Drive
Frame 2 and Larger
3-5
Step 4.For 1-20 HP SP600 drives, fold the Internal Interface
g
cable behind the module and mount the module on the
drive using the four captive screws. See figure 3.6.
For frame 2 and larger SP600 drives, mount the module
on the drive using the four captive screws to secure and
ground it to the drive.
Important:All screws must be tightened since the module is
grounded through a screw. The recommended
tightening torque is 0.9 N-m (8 in-lb).
Drive
Module
Internal Interface cable
folded behind the module
and in front of the drive.
SP600 Drive
1-20 HP
3-6
SP600 Drive
Frame 2 and Lar
Figure 3.6 – Mounting and Grounding the PROFIBUS Module
er
PROFIBUS Communications Module
3.6Applying Power
ATTENTION:Unpredictabl e ope ration ma y occur if
parameter settings and switch settings are not
!
compatible with your application. Verify that settings
are compatible w ith your application befo re applying
power to the drive. Failure to observe these
precautions could result in sev ere bodil y inj ury or
loss of life.
Step 1.Verify that the module will have a unique address on the
Step 2.Close the door or reinstall the cover on the drive. The
Step 3.Apply power to the drive. The module receives its power
Step 4.If the node address switches are set to “00,” use a
Step 5.Apply power to the master device and other devices on
network. If a new address is needed, reset its switches
(refer to section 3.2, Commissioning the Module).
status indicators can be viewed on the front of the drive
after power has been applied.
from the connected drive. When you apply power to the
product, the status indicators should be green after an
initialization. If the status indicators are red, there is a
problem. Refer to chapter 8, Troubleshooting the
PROFIBUS Module and Network.
configuration tool to set the node address parameters in
the module (refer to chapter 4, Configuring the
PROFIBUS Module).
the network.
Installing the PROFIBUS Module
3-7
3-8
PROFIBUS Communications Module
CHAPTER 4
Configuring the
PROFIBUS Module
Chapter 4 provides instructions and information for setting the
parameters in the module.
For a complete list of parameters, refer to Appendix B, PROFIBUS
Module Parameters. For defini tio ns of term s in this chap ter, refer to
the Glossary.
4.1Configuration Tools
The PROFIBUS module st ores p arame ters and othe r info rmatio n in
its own non-volatile memory. Therefore, you must access the
module to view and edi t it s p arameters. Table 4.1 l is ts the tools that
can be used to access the module parameters.
Table 4.1 – Configuration Tools
ToolR efer to:
VS Utilities SoftwareVS Utilities online help
LCD OIMSection 4.2
Configuring the PROFIBUS Module
4-1
4.2Using the LCD OIM to Configure the
Module
Use the procedure in figure 4.1 to access the parameters on the
PROFIBUS module using the LCD OIM. If you are unfamiliar with
the operation of the LCD OIM, refer to the SP600 AC Drive User
Manual (D2-3485 or D2-3501) for more information.
>>
Stopped
P0: SP600
Main Menu
Device Select
Monitor
Use to highlight
Device Select icon
Auto
Lang
>>
Stopped
P0: SP600
Device: Port 0
SP600
RECOMM-PBUS
Use to select
RECOMM-PBUS.
Auto
Figure 4.1 – Accessing the PROFIBUS Parameters Using the LCD OIM
4.3Setting the Node Address
If the node address switches are set to “00”, the value of module
parameter 3 (P-DP Addr Cfg) determines the node address.
Step 1.Set the value of parameter 3 (P-DP Addr Cfg) to a unique
node address as shown in figure 4.2.
Port 5 Device
RECOMM-PBUS
Parameter #: 3
P-DP Addr Cfg
01
0 <> 126
Default = 01
>>
Stopped
P5: RECOMM-PBUS
Main Menu
Parameters
Edit the PROFIBUS
parameters using the
same techniques as for
drive parameters.
Auto
4-2
Figure 4.2 – PROFIBUS Node Address Screen on an LCD OIM
Step 2.Reset the module. Refer to section 4.5.2, Resetting the
Module.
PROFIBUS Communications Module
4.4Setting the I/O Configuration
The I/O configuration determines the type of data sent to the drive.
Logic Command/Status, Reference/Feedback, and Datalinks may
be enabled or disabled.
Step 1.Set the bits in module parameter 11 (DPI I/O Config) as
shown in figure 4.3. A “1” enables the I/O. A “0” disables
it. Bit 0 is the right-most bit. In figure 4.3, it is highlighted
and equals “1.”
Port 5 Device
RECOMM-PBUS
Parameter #: 11
DPI I/O Config
xxxxxxxxxxx0000
Cmd/Refb00
Figure 4.3 – I/O Configuration Screen on an LCD OIM
BitDescription
0Logic Command/Reference
(Default)
1Datalink A
2Datalink B
1
3Datalink C
4Datalink D
5 - 16 Not Used
Step 2.If Logic Command/Reference is enabled (default),
configure the parameters in the drive to accept the Logic
Command and Reference from the module. For example,
set Speed Ref A Sel (SP600 drive parameter 90) to
“Network” so that the drive uses the Reference from the
network. Also, verify that Logic Source Sel (drive
parameter 89) is config ured to “Netwo rk” so tha t the d r ive
uses the logic command from the network.
Step 3.If you enabled one or more Datalinks (opt ional), confi gure
parameters in the drive to deter mi ne the sou rce and
destination of dat a in the Data link(s). Also, e nsure that the
PROFIBUS module is the only module using the enabled
Datalink(s).
Step 4.Reset the module. Refer to section 4.5.2, Resetting the
Module.
The module 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 module. Refer to chapter 5, Configuring the PROFIBUS
Scanner, for more information.
Configuring the PROFIBUS Module
4-3
4.5Setting a Fault Action
ATTENTION:Parameter 9 (Comm Flt Action) and parameter 10 (Id le Fl t Acti on)let you determine the
!
By default, when communications are disrupted (for example, a
cable is disconnected) or the master is idle, the drive responds by
faulting if it is using I/O from the network. You can configure a
different response to communication disruptions using module
parameter 9 (Comm Flt Action) and a different response to an idle
scanner using parameter 10 (Idle Flt Action).
Set the values of parameter 9 (Comm Flt Action) and parameter 10
(Idle Flt Action) to the de sired r esp onses as sho wn in ta ble 4. 2. Se e
figure 4.4 for sample LCD OIM Fault Action screens.
Table 4.2 – Selections for Drive Response to Communication Fault
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 st ate after a
4Send Flt CfgThe drive is sent the data that you set in the
action of the module and connected drive if
communications are disrupted or the scanne r is idle.
By default, these pa rameters fault the driv e. Y ou can
set these param eter s so that the drive continues to
run. Precautions should be taken to en sure that the
settings of these parameters do not create a risk of
injury or equipment damage.
communicat ions disruption. This does not
command a stop.
communicat ions disruption.
fault configuration parameters 13 through 22
(Flt Cfg Logic through Flt Cfg D2 In).
4-4
Port 5 Device
RECOMM-PBUS
Parameter #: 9
Comm Flt Action
0
Fault
Figure 4.4 – Fault Action Screens on an LCD OIM
Changes to these par ameters t ake ef fect immedia tely. A reset is not
required.
Port 5 Devi ce
RECOMM-PBUS
Parameter #: 10
Idle Flt Action
0
Fault
PROFIBUS Communications Module
4.5.1 Setting the Fault Configuration Parameters
If you set module parameter 9 (Comm Flt Action) or module
parameter 10 (Idle Flt Action) to “Send Flt Cfg,” the values in the
parameters shown in table 4.3 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.
Table 4.3 – Fault Configuration Parameters
NumberNameDescription
13Flt Cfg LogicA 16-bit value sent to the drive
14Flt Cfg RefA 32-bit value (0 to 429496 7295)
15 - 22Flt Cfg x1 In or
Flt Cfg x2 In
Changes to these par ameters t ake ef fect immed iately. A reset is not
required.
for Logic Command
sent to the drive as a 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.
Configuring the PROFIBUS Module
4-5
4.5.2 Resetting the Module
Changes to swit ch settin gs or some modul e paramet ers req uire that
you reset the module before the new settings take effect. You can
reset the module by cycling power to the drive or by using module
parameter 8 (Reset Module).
ATTENTION: If the module is transmitting control
I/O to the drive, the drive may fault when you reset
!
Set parameter 8 (Reset Module) to “Reset Module.” See figure 4.5.
the module. Determi ne h ow yo ur dri ve w ill respond
before resetting a connected module. Failure to
observe this precaution could result in bodily injury
or damage to equipment.
Port 5 Device
RECOMM-PBUS
Parameter #: 8
Reset Module
1
Reset Module
Figure 4.5 – Reset Screen on an LCD OIM
When you enter 1 (“Reset Module”), the module will be
immediatel y reset. When you enter 2 (“Set Defaults”), the module
will set all module parameters to their factory-default settings. The
value of this parameter will be restored to 0 (“Ready”) after the
module is reset.
ValueDescription
0Ready (Default)
1Reset Module
2Set Defaults
4-6
PROFIBUS Communications Module
4.6Viewing the Module Configuration
The parameters in table 4.4 provide information about how the
module is configured. You can view these parameters at any time.
Table 4.4 – Module Configuration Status Parameters
NumberNameDescription
01DPI PortThe port on the drive to which the module is
connected. Usually, it is port 5.
02DPI Data
Rate
04P-DP Addr
Actual
06Ref/Fdbk
Size
07Datalink
Size
12DPI I/O
Active
The data rate used by DPI in the drive. It is set in the
drive, and the module detects it.
The node address used by the module. This will be
one of the following values:
• The address set by the rotary switches.
• The value of module parameter 3 (P-DP Addr Cfg)
if the switches have been disabled.
• An old address of the switches or p arame ter if they
have been changed and the module has not been
reset.
The size of the Reference/Feedback. It will either be
16 bits or 32 bits. It is set in the drive and the module
automatically uses the correct size.
The size of the Datalink word. It will either be 16 bits
or 32 bits. It is set in the drive and the module
automatically uses the correct size.
The Reference/Feedback and Datalinks are used by
the module. This value is the same as module
parameter 11 (DPI I/O Config) unless the parameter
was changed and the module was not reset.
Bit Definitions
0 = Cmd/Ref
1 = Datalink A
2 = Datalink B
3 = Datalink C
4 = Datalink D
5 = Not Used
6 = Not Used
7 = Not Used
Default
Bit
01234576
10000xxx
Configuring the PROFIBUS Module
4-7
4-8
PROFIBUS Communications Module
CHAPTER 5
Configuring the
PROFIBUS Scanner
A scanner is a separate module of a multi-module controller or a
built-in component of a single-module controller that provides
communication with a module connected to a network.
PROFIBUS scanners are available from several manufacturers,
including SST. SST PROFIBUS scanners come with a soft ware to ol
for configuring the scanner (see figure 5.1).
Chapter 4 provides instructions on how to utilize the SST
PROFIBUS configuration software tool to:
window
• Install the RECOMM-PBUS GSD file in the software tool library.
• Configure the SST-PFB-SLC PROFIBUS scanner.
Important:The configuration of other manufacturer’s sc anners may
differ significantly from this example. Please refer to
your scanner manufacturer’s documentation.
Configuring the PROFIBUS Scanner
5-1
5.1Configuring a Simple Network:
An Example
In this example, we will be configuring two SP600 dr ives to be
Station 1 and Station 2 on a PROFIBUS network. This will be the
configuration used throughout the manual, including the ladder
examples. Apart fro m the no de add ress a nd scanne r ma pping , they
will have identical configurations. This chapter describes the steps
to configure a simple network like the network in figure 5.2.
COMM LED
Scanner
Station 0
SP600 Drive
Station 1Station 2
Figure 5.2 – Sample PROFIBUS Network
SYS LED
Config Port
Front Label
Profibus Port
SP600 Drive
5.1.1 Installing the RECOMM-PBUS GSD File in the
Software Tool Library
GSD files are used by software tools to configure the network, in
other words, to map and define the I/O in a PROFIBUS scanner. A
GSD file is required for each type of module on the network.
5-2
For example: The RECOMM-PBUS GSD file is “Rele0573.gsd” and
a copy of the file is provided on a floppy disk with each
RECOMM-PBUS PROFIBUS module. The file can also be
downloaded from the Internet by going to: www.reliance.com.
PROFIBUS Communications Modul e
Follow the steps outlined below only whe n a n ew G SD fil e ne eds to
be added to the SST PROFIBUS Configuration Software Tool.
Typically, this is only done once, after the software tool is initially
installed or if configuring a RECOMM-PBUS on the network for the
very first time with this software tool.
The software too l co me s w it h standard data file s as shown in figure
5.3. Additional data fil es, such as the RECO MM-PBUS GSD file, will
need to be added to configure the RECOMM-PBUS in the scanner.
Figure 5.3 – Standard Data Files
Step 1.Click on the “New Device” icon to add GSD files to
the software library tool.
Step 2.An “Add PROFIBUS devices” applet window will appear
(see figure 5.4). Prompts for the location of the
PROFIBUS data files to be added to the library will follow.
Figure 5.4 – Add PROFIBUS Devices Applet Window
Configuring the PROFIBUS Scanner
5-3
Step 3.Find the directory location of the data file(s) you wish to
add (typically, the source location is a floppy disk in drive
A:). “Rele0573.gsd” is the GSD file for the
RECOMM-PBU S as shown in figure 5.5.
Rele0573.gsd
Rele0573.gsd
Figure 5.5 – Adding the GSD File for the RECOMM-PBUS
”
Step 4.Select “Rele0573.gsd
pen.
O
for the RECOMM-PBUS and click
Step 5.Click on the (+) sign of the Slaves folder as shown in
figure 5.6.
5-4
Reliance Electric
RECOMM-PBUS [V1.001.01]
Figure 5.6 – Masters/Slaves Library Window
The software tool will automatically create a Reliance Electric
sub-folder (in the Slaves folder) if it does not already exist. The
RECOMM-PBUS is now shown in the library and the software tool
is now ready to configure a RECOMM-PBUS on a PROFIBUS
network.
PROFIBUS Communications Modul e
5.2Configuring the SST-PFB-SLC
PROFIBUS Sc an ner
The following steps are performed to configure the SST-PFB-SLC
scanner using the SST PROFIBUS Configuration Software Tool. In
our example, the PROFIBUS network will consist of a SLC master
and two SP600 drives. The ladder examples in the manual will use
the following configuration:
• Logic Command / Status and Reference / Feedback enabled
• Datalink A enabled
• Datalink B enabled
• Datalink C enabled
• Datalink D enabled
• Parameter Access enabled (used to perform explicit messaging)
The SLC processor must be in Program mode to configure the
scanner.
Step 1.Click on the (+) sign of the Masters folder in the Library
Step 2.Click on the (+) sign of the Slaves folder in the Library
Step 3.Double-click the SST-PFB-SLC MASTER in the Masters
window to open the SST sub-fold er . Avai lable DP mast ers
are displayed in this sub-folder.
window and the Reliance Electric sub-folder to display
the available DP slaves or the RECOMM-PBUS slave.
Refer to figure 5.7.
folder in the Library window to add the scanner to the
network.
Configuring the PROFIBUS Scanner
5-5
Step 4.A user-defined Name and Description can be given to
the scanner. In our example, the scanner will be S
Step 5.Click on the Parameters tab to view the Scan Cycle
Times.
In our example, use the default settings as shown in
figure 5.8.
Figure 5.8 – Scan Cycle Times Dialog Box
Connection and Baud Rate s etting s con figure h ow the s oft ware to ol
will communicate with the CONFIG RS232 port on the scanner.
Step 6.Click on the COM Port tab.
5-6
PROFIBUS Communications Modul e
Step 7.Accept the settings in our example (COM1 on the PC at
115200 bps baud rate), as shown in figure 5.9.
Figure 5.9 – COM Port Default Settings
Step 8.The scanner will appear in the network window as shown
in figure 5.10. Double-click on the scanner in the network
window.
Figure 5.10 – Scanner Network Window
Step 9.Double-click on the RECOMM-PBUS listed in the
Reliance Electric library folder. A user-defined N
escription can be given to this RECOMM-PBUS.
D
In our example, this device will be S
network. Other stations may be chosen by using the
arrow to display a drop-down list in the S
Reliance Electric RECOMM-PBUS
Reliance Electric RECOMM-PBUS
Figure 5.11 – Reliance Electric Library Dialog Window
Configuring the PROFIBUS Scanner
ame and
tation 1 on the
tation window.
C:\DLINK32\COMMON\PBC\gsd\Rele0573.gsd
RECOMM-PBUS
5-7
Logic Command / Status, Reference / Feedback, Datalinks and
Parameter Access (explicit messaging) modules are added using
the Modules tab.
Step 10. Click on the Modules tab. Click A
dd to view the choice of
modules.
Reliance Electric RECOMM-PBUS
Figure 5.12 – RECOMM-PBUS Modules Tab
In our example, Station 1 will be controlled using Logic
Command / Status and Reference / Feedback. The
SP600 drive uses 16-bit Reference / Feedback (2 bytes).
Step 11. Select “Ctrl/Stat & Ref/Fdbk (2+2bytes)” from the
“Available M odu le s” l is t a s sho wn i n figure 5.13. Click OK.
5-8
Figure 5.13 – Available Modules: Ctrl/Stat & Ref/Fdbk (2x2Bytes) Window
PROFIBUS Communications Modul e
Step 12. The “Ctrl/Stat & Ref/Fdbk” (2+2 bytes) module has now
Note that Station 2 occupies 14 words (14-27).
Step 31. Use the null modem cable that came with the scanner to
connect COM1 on the PC and the CONFIG RS232 port
on the scanner.
Configuring the PROFIBUS Scanner
5-17
Important: The processor needs to be in program mode before
proceeding.
Step 32. Right-click on the scanner in the network window and
select “Connect”. Th en ri gh t-cl ic k a gai n on the scanner in
the network window and select “Load Configuration”. If a
minimum cycle time attention window pops up, click OK
to continue. After the configuration has been loaded into
the scanner , “Confi gured Program” will be di splayed in the
message window (see figure 5.32).
[001]_RECOMM_PBUS(**)
[002]_RECOMM_PBUS(**)
Figure 5.32 – Network Window Scanner Selection
Step 33. Click F
ame. The config urat ion o f th e scanner is now c om pl ete .
N
Note that cycling power to the scanner is recommended.
See figure 5.33.
ile and Save As from the tool bar, as a unique File
In the case of invalid GSD module configuration, the peripheral will
send one of the messages shown in table 5.1.
Table 5.1 – GSD Diagnostic Messages
FaultDescription
No Ctrl/Stat & Ref/FdbkThe Ctrl/Stat & Ref/Fdbk module
Module used more than
once
Not supported moduleAn unrecogni zed modu le has bee n
Configuring the PROFIBUS Scanner
must always be used and placed
first in the configuration.
A GSD module has been used
more than once.
used in the configuration.
5-19
5-20
PROFIBUS Communications Modul e
CHAPTER 6
Using I/O Messaging
Chapter 6 provides information and examples that explain how to
use I/O Messaging to control an SP600 drive.
ATTENTION:The examples in this publication are
intended solely for p urpose s of ex ample . There a re
!
6.1About I/O Messaging
I/O messaging is used t o trans fer the d ata w hich cont rols t he SP600
drive and sets its Reference. I/O can also be used to transfer data
to and from Datalinks in SP600 drives.
many variables and requirements with any
application. Roc kwell Autom ation does no t assume
responsibility or liability (to include intellectual
property liability) for actual use of the examples
shown in this publication. Failure to observe this
precaution could result in bodily inju ry or damage to
equipment.
The PROFIBUS module provides options for configuring and using
I/O, including the size of the I/O, which can be configured by
enabling or disabl ing the Lo gic Comma nd/Refere nce and Dat alink s.
Chapter 4, Configuring the PROFIBUS Module, and chapter 5,
Configuring the PROFIBUS Scanner, discuss how to configure the
module and scanner on the network for these options. The Glossary
defines the dif fe rent options. This chap ter d isc us s es h ow to use I/O
after you have configured the module and scanner.
6.2Understanding 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 PROFIBUS module. I nput dat a is status data
that is produced by the module and consumed as input by the
scanner.
Using I/O Messaging
6-1
The I/O image table will vary based on the following:
• Size (either 16-bit o r 32-bit ) of t he Refere nce/Fe edbac k word an d
Datalink words used by the drive.
• Configuration of parameter 11 (DPI I/O Config). If not all I/O is
enabled, the image table is truncated. The image table always
uses consecutive words starting at word 0.
Figure 6.1 illustrates an exampl e of an I/O image wi th 16- bit w ord s.
Controller
PROFIBUS
Scanner
Output
Image
(Write)
Input
Image
(Read)
Module SP600 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
9 Datalink In D2
10 Parameter Access Word 1
11 Parameter Access Word 2
12 Parameter Access Word 3
13 Parameter Access Word 4
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
9 Datalink Out D2
10 Parameter Access Word 1
11 Parameter Access Word 2
12 Parameter Access Word 3
13 Parameter Access Word 4
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
Data In D2
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
Data Out D2
Message
Handler
6-2
Figure 6.1 – Sample I/O Image with All I/O Enabled
PROFIBUS Communications Modul e
An image that uses 32-bit words f or Referen ce and Dat ali nks wou ld
change the I/O image in figure 6.1 as follows:
WordI/OWordI/O
0Logic
7 - 10Datalink B
Command/Status
1 - 2Reference/
11 - 14Datalink C
Feedback
3 - 6Datalink A15 - 18Datalink D
Figure 6.2 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.
PROFIBUS
ControllerScannerModule SP600 Drive
Word and I/O
Output
Image
(Write)
Input
Image
(Read)
LSW = Least Significant Word (Bits 15 - 0)
MSW = Most Significant Word (Bit s 31 - 16)
Reference
Data In A1
Data In A2
Data In B1
Data In B2
Data In C1
Data In C2
Data In D1
Data In D2
Logic Status
Feedback
Data Out A1
Data Out A2
Data Out B1
Data Out B2
Data Out C1
Data Out C2
Data Out D1
Data Out D2
Figure 6.2 – Sample I/O Image with Only Logic/Reference and Datalink B Enabled
Using I/O Messaging
6-3
6.3Using 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 module. The Logic Status is a 16-bit word of status produced by the module and
consumed by the scanner.
This manual contains the bit definitions for compatible products
available at the time of publication in Appendix C, Logic Command/
Status Words. For other products, refer to their documentation.
6.4Using Reference/Feedback
When enabled, Ref erence/Fee dback alw ays begin s at word 1 in t he
I/O image. The Reference (16 bits or 32 bits) is produced by the
controller and consumed by the module. The Feedback (16 bits or
32 bits) is prod uc ed by the module and co nsu me d by th e co ntro ller.
The size of the Reference/F eed back is dete rmi ned by the drive and
displayed in module param eter 6 (Ref/Fdbk Size).
SizeValid ValuesIn I/O ImageExample
16-bit-32768 to 32767Word 1Figure 6.1
32-bit-2147483648 to
2147483647
Word 1 and
Word 2
Figure 6.2
6.5Using Datalinks
A Datalink is a mec hanis m use d by SP600 drives to transf er da ta to
and from the controller. Datalinks allow a parameter value to be
changed without using an Explicit Message.
When enabled (optional), each Datalink consumes either two 16 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 module parameter 7
(Datalink Size) in the module.
6.5.1 Rules for Using Datalinks
•
Each set of Datalink parameters in an SP600 drive can be used
by only one module. If more than one module is connected to a
single drive, multiple modules must not try to use the same
Datalink.
6-4
PROFIBUS Communications Modul e
• Parameter settings in the drive determine the data passed
through the Datalink mechanism. Refer to the documentation for
your drive.
• 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.
6.5.2 32-Bit Parameters using 16-Bit Datalinks
To read (and/or write) a 32-bit parameter using 16-bit Datalinks,
typically both Datalinks (A,B,C,D) are set to the 32-bit parameter.
For example, to read Elapsed MWh (SP600 drive parameter 9),
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.8 MWh is
read as a “58” in Datalink A1.
Most/Least
Datalink
A1LSW958
A2MSW90
Regardless of the Datalink combination, x1 will always contain the
LSW and x2 will alway s cont ain the M SW . I n the follo wing exam ples
Power Up Marker (drive parameter 242) contains a value of
88.4541 ho urs.
Significant WordParameterData (decimal)
Datalink
A1LSW24232573
A2- Not Used -00
Datalink
A1- Not Used -00
A2MSW24213
Datalink
A2MSW24213
B1LSW24232573
32-bit data is stored in binary as follows:
MSW
LSW
Using I/O Messaging
Most/Least
Significant WordParameterData (decimal)
Most/Least
Significant WordParameterData (decimal)
Most/Least
Significant WordParameterData (decimal)
31
through 2
2
15
through 2
2
16
0
6-5
Example:
Power Up Marker (242) = 88.4541 hours
MSW = 13
LSW = 32573
851968 + 32573 = 884541
decimal
= 1101
= 219 + 218 + 216 = 851968
binary
6.6Sample SLC Ladder Log ic Program
The PROFIBUS sample program uses an SLC processor with an
SST PROFIBUS scanner (SST-PFB-SLC) in the first s lot of the ra ck
and will work with SP600 drives.
Function of the Sample Program
The program is written for two drives on the network and
demonstrates the use of the following:
• Logic Command / Reference
• Logic Status / Feedback
• Datalinks
• Parameter Access (covered in chapter 7)
Module Settings
The Node Address switch settings on the PROFIBUS modules are
set to:
• “1” for Station 1
• “2” for Station 2
6-6
PROFIBUS Communications Modul e
Parameter Settings
Table 6.1 – Parameter Settings for Sample SLC Program
DeviceParameterNameValueDescription
90Speed Ref A Sel22‘DPI Port 5’ (RECOMM-PBUS)
300Data In A1140Points to Accel Time 1 (140)
301Data In A2142Points to Decel Time 1 (142)
302Data In B1100Points to Jog Speed (100)
303Data In B2155Points to Stop Mode A (155)
304Data In C1101Points to Preset Speed 1 (101)
305Data In C2102Points to Preset Speed 2 (102)
306Data In D1 103Points to Preset Speed 3 (103)
307Data In D2104Points to Preset Speed 4 (104)
310Data Out A1140Points to Accel Time 1 (140)
311Data Out A2142Points to Decel Time 1 (142)
312Data Out B1100Points to Jog Speed (100)
313Data Out B2155Points to Stop Mode A (155)
314Data Out C1101Points to Preset Speed 1 (101)
315Data Out C2102Points to Preset Speed 2 (102)
316Data Out D1103Points to Preset Speed 3 (103)
317Data Out D2104Points to Preset Speed 4 (104)
Scanner Settings
An SST-PFB-SLC scanner is in slot 1 of the SLC rack and
configured as Station 0. The Advanced I/O Configuration is set up
as shown in figure 6.3.
The two PROFIBUS modules are set up as Station 1 and Station 2,
and are configured as 14 word s in put & output each. See chapter 5.
Using I/O Messaging
Figure 6.3 – Advanced I/O Configuration
6-7
SLC Data Table
Read Data
File N10: contains the actual read data that can be used elsewhere
in the ladder program.
Station 1
Address
N10:0N10:14Logic Status
N10:1N10:15Feedback
N10:2N10:16Datalink A1
N10:3N10:17Datalink A2
N10:4N10:18Datalink B1
N10:5N10:19Datalink B2
N10:6N10:20Datalink C1
N10:7N10:21Datalink C2
N10:8N10:22Datalink D1
N10:9N10:23Datalink D2
N10:10N10:24Parameter Access Word 1
N10:11N10:25Parameter Access Word 2
N10:12N10:26Parameter Access Word 3
N10:13N10:27Parameter Access Word 4
Station 2
AddressFunction
Write Data
The PROFIBUS scanner is configured for 28 bytes (14 words) of
outputs for each drive. Two drives require 48 bytes (28 words).
Station 1
Address
N20:0N20:14Logic Command
N20:1N20:15Reference
N20:2N20:16Datalink A1
N20:3N20:17Datalink A2
N20:4N20:18Datalink B1
N20:5N20:19Datalink B2
N20:6N20:20Datalink C1
N20:7N20:21Datalink C2
N20:8N20:22Datalink D1
N20:9N20:23Datalink D2
N20:10N20:24Parameter Access Word 1
N20:11N20:25Parameter Access Word 2
N20:12N20:26Parameter Access Word 3
N20:13N20:27Parameter Access Word 4
Station 2
AddressFunction
6-8
PROFIBUS Communications Modul e
Logic Command/St atus Words
The examples in section s 6.7 and 6.8 use the Log ic Command word
and Logic Status word for SP600 drives. Refer to Appendix C, Logic
Command/Status Words, for m ore info rma tion . The defi nit ion of the
bits in these words may vary if you are using a different DPI Host
product. Refer to the documentation for your Host product.
Using I/O Messaging
6-9
6.7Sample SLC Ladder Log ic - Main
Program
This sample program is for a PROFIBUS demonstration using a SLC 5/05 processor with an SST Profibus scanner
(SST-PFB-SLC) in the first slot of the rack. The program is written for (2) drives on the network:
Station 1PowerFlex 70 Tabletop demo with 20-COMM-P
SP600 Tabletop demo with RECOMM-PBUS
Station 2PowerFlex 70 Tabletop demo with 20-COMM-P
SP600 Tabletop demo with RECOMM-PBUS
The sample program demonstrates using Logic Command / Reference, Logic Status / Feedback, Datalinks, and Parameter
Access using the Parameter Protocol.
On power up, zero out the transmit buffer to the Scanner.
First Pass
0000
0001
S:1
15
Automatically have the SST-PFB-SLC scanner's watchdog period track that of the SLC processor (recommended per SST user
manual)
FLL
FLL
Fill File
Source0
Dest#N20:0
Length28
SST Scanner
Write Data
Word 0
MOV
MOV
Move
SourceS:3
2562<
DestM0:1.4011
?<
The Scanner is configured for 28 bytes (14 words) of inputs for each drive. Two drives require 48 bytes (28 words).
Read the drives data from the Profibus scanner.
0002
Figure 6.4 – Sample SLC Ladder Logic - Main Program
6-10
PROFIBUS Communications Modul e
SST Scanner
Read Data
Word #0
COP
COP
Copy File
Source#M1:1.0
Dest#N9:0
Length28
PROFIBUS scanners vary from manufacturer to manufacturer in how the bytes are ordered in a word. For example, some PROFIBUS
scanners operate with high & low bytes swapped (the value "1234" is represented as "3412"). The READ data is copied into
N10: and the bytes are reversed in the SWP instruction below so a value such as "3412" is viewed as "1234".
Station 1
Logic Status
COP
COP
0003
File N10: contains the actual read data that can be used elsewhere in the ladder program.
Station 1Station 2Description
M1:1.0(N10:0)M1:1.14(N10:14)Logic Status
M1:1.1(N10:1)M1:1.15(N10:15)Speed Feedback
M1:1.2(N10:2)M1:1.16(N10:16)Datalink A1
M1:1.3(N10:3)M1:1.17(N10:17)Datalink A2
M1:1.4(N10:4)M1:1.18(N10:18)Datalink B1
M1:1.5(N10:5)M1:1.19(N10:19)Datalink B2
M1:1.6(N10:6)M1:1.20(N10:20)Datalink C1
M1:1.7(N10:7)M1:1.21(N10:21)Datalink C2
M1:1.8(N10:8)M1:1.22(N10:22)Datalink D1
M1:1.9(N10:9)M1:1.23(N10:23)Datalink D2
M1:1.10(N10:10)M1:1.24(N10:24)Parameter Protocol Word #1
M1:1.11(N10:11)M1:1.25(N10:25)Parameter Protocol Word #2
M1:1.12(N10:12)M1:1.26(N10:26)Parameter Protocol Word #3
M1:1.13(N10:13)M1:1.27(N10:27)Parameter Protocol Word #4
0004
Copy File
Source#N9:0
Dest#N10:0
Length28
Station 1
Logic Status
SWP
SWP
Swap
Source#N10:0
Length28
Execute LAD 3 - Station 1 Drive Logic
0005
Figure 6.5 – Sample SLC Ladder Logic - Main Program (Continued)
For Ladder 3 Station 1 Drive Logic, see figure 6.5, Sample SLC
Ladder - Station 1 Program.
For Ladder 4 Station 2 Drive Logic, see figure 6.6, Sample SLC
Ladder - Station 2 Program.
Using I/O Messaging
JSR
JSR
Jump To Subroutine
SBR File NumberU:3
6-11
Execute LAD 4 - Station 2 Drive Logic
JSR
JSR
0006
The PROFIBUS scanner is configured for 28 bytes (14 words) of outputs for each drive. Two drives require 48 bytes (28 words).
Station 1Station 2Description
M0:1.0(N20:0)M0:1.14(N20:14)Logic Command
M0:1.1(N20:1)M0:1.15(N20:15)Speed Reference
M0:1.2(N20:2)M0:1.16(N20:16)Datalink A1
M0:1.3(N20:3)M0:1.17(N20:17)Datalink A2
M0:1.4(N20:4)M0:1.18(N20:18)Datalink B1
M0:1.5(N20:5)M0:1.19(N20:19)Datalink B2
M0:1.6(N20:6)M0:1.20(N20:20)Datalink C1
M0:1.7(N20:7)M0:1.21(N20:21)Datalink C2
M0:1.8(N20:8)M0:1.22(N20:22)Datalink D1
M0:1.9(N20:9)M0:1.23(N20:23)Datalink D2
M0:1.10(N20:10)M0:1.24(N20:24)Parameter Protocol Word #1
M0:1.11(N20:11)M0:1.25(N20:25)Parameter Protocol Word #2
M0:1.12(N20:12)M0:1.26(N20:26)Parameter Protocol Word #3
M0:1.13(N20:13)M0:1.27(N20:27)Parameter Protocol Word #4
0007
Jump To Subroutine
SBR File NumberU:4
XMIT Data
Word 0
COP
COP
Copy File
Source#N20:0
Dest#N21:0
Length28
0008
6-12
PROFIBUS scanners vary from manufacturer to manufacturer in how the bytes are ordered in a word. For example, some PROFIBUS
scanners operate with high & low bytes swapped (the value "1234" is represented as "3412"). The WRITE data is copied into
N21: and the bytes are reversed in the SWP instruction below so a value such as "3412" is viewed as "1234".
N21: contains the actual write data that is being sent to the PROFIBUS scanner.
XMIT Data
Word 0
SWP
SWP
Swap
Source#N21:0
Length28
Figure 6.6 – Sample SLC Ladder Logic - Main Program (Continued)
PROFIBUS Communications Modul e
Write the drives data to the PROFIBUS scanner.
0009
0010
Figure 6.7 – Sample SLC Ladder Logic - Main Program (Continued)
SST Scanner
Write Data
Word 0
COP
COP
Copy File
Source#N21:0
Dest#M0:1.0
Length28
END
Using I/O Messaging
6-13
6.8Sample SLC Ladder Log ic Station 1 Program
Controlling the Logic Command word in the drive. B3:20 /* bits are controlled elsewhere in the user program.
Station 1
Start
Command
0000
0001
0002
0003
0004
0005
B3:20
1
Station 1
Stop
Command
B3:20
0
Station 1
Jog
Command
B3:20
2
Station 1
Clear Faults
Command
B3:20
3
Station 1
Reverse
Command
B3:20
4
Station 1
Reverse
Command
B3:20
4
Station 1 Speed Reference
SP600 Speed Ref A Sel (parameter 90) needs to be set to "Network."
N19:1 is controlled elsewhere in the user program.
Station 1
Logic Command
START
N20:0
1
Station 1
Logic Command
STOP
N20:0
0
Station 1
Logic Command
JOG
N20:0
2
Station 1
Logic Command
CLEAR FAULTS
N20:0
3
Station 1
Logic Command
FORWARD
N20:0
4
Station 1
Logic Command
REVERSE
N20:0
5
0006
6-14
Station 1
Speed Reference
MOV
MOV
Move
SourceN19:1
8192<
DestN20:1
8192<
Figure 6.8 – Sample SLC Ladder Logic - Station 1 Program
PROFIBUS Communications Modul e
Station 1 Datalink A1
Datalink A1 (parameter 300) set to Acceleration Time 1 (parameter 140).
N19:2 is controlled elsewhere in the user program.
0007
Station 1 Datalink A2
Datalink A2 (parameter 301) set to Deceleration Time 1 (parameter 142).
N19:3 is controlled elsewhere in the user program.
0008
Station 1 Datalink B1
Datalink B1 (parameter 302) set to Jog Speed (parameter 100).
N19:4 is controlled elsewhere in the user program.
Station 1
Datalink A1
Write
MOV
MOV
Move
SourceN19:2
50<
DestN20:2
50<
Station 1
Datalink A2
Write
MOV
MOV
Move
SourceN19:3
50<
DestN20:3
50<
0009
Figure 6.9 – Sample SLC Ladder Logic - Station 1 Program (Continued)
Using I/O Messaging
Station 1
Datalink B1
Write
MOV
MOV
Move
SourceN19:4
100<
DestN20:4
100<
6-15
Station 1 Datalink B2
Datalink B2 (parameter 303) set to Stop Mode A (parameter 155).
N19:5 is controlled elsewhere in the user program.
0010
Station 1 Datalink C1
Datalink C1 (parameter 304) set to Preset Speed 1 (parameter 101).
N19:6 is controlled elsewhere in the user program.
0011
Station 1 Datalink C2
Datalink C2 (parameter 305) set to Preset Speed 2 (parameter 102).
N19:7 is controlled elsewhere in the user program.
Station 1
Datalink B2
Write
MOV
MOV
Move
SourceN19:5
1<
DestN20:5
1<
Station 1
Datalink C1
Write
MOV
MOV
Move
SourceN19:6
100<
DestN20:6
100<
Station 1
Datalink C2
Write
0012
Figure 6.10 – Sample SLC Ladder Logic - Station 1 Program (Continued)
6-16
PROFIBUS Communications Modul e
MOV
MOV
Move
SourceN19:7
200<
DestN20:7
200<
Station 1 Datalink D1
Datalink D1 (parameter 306) set to Preset Speed 3 (parameter 103).
N19:8 is controlled elsewhere in the user program.
Station 1
Datalink D1
Write
MOV
MOV
0013
Station 1 Datalink D2
Datalink D2 (parameter 307) set to Preset Speed 4 (parameter 104).
19:9 is controlled elsewhere in the user program.
0014
Move
SourceN19:8
300<
DestN20:8
300<
Station 1
Datalink D2
Write
MOV
MOV
Move
SourceN19:9
400<
DestN20:9
400<
Figure 6.11 – Sample SLC Ladder Logic - Station 1 Program (Continued)
The Station 1 program can either end here or, if Explicit Messaging
is needed, Parameter Protocol logic can be added. (See figure 7.5.)
Using I/O Messaging
6-17
6.9Sample SLC Ladder Log ic Station 2 Program
Controlling the Logic Command word in the drive. B3:21 /* bits are controlled elsewhere in the user program.
0000
0001
0002
0003
0004
0005
Station 2
Start
Command
B3:21
1
Station 2
Stop
Command
B3:21
0
Station 2
Jog
Command
B3:21
2
Station 2
Clear Faults
Command
B3:21
3
Station 2
Reverse
Command
B3:21
4
Station 2
Reverse
Command
B3:21
4
Figure 6.12 – Sample SLC Ladder Logic - Station 2 Program
Station 2
Logic Command
START
N20:14
1
Station 2
Logic Command
STOP
N20:14
0
Station 2
Logic Command
JOG
N20:14
2
Station 2
Logic Command
CLEAR FAULTS
N20:14
3
Station 2
Logic Command
FORWARD
N20:14
4
Station 2
Logic Command
REVERSE
N20:14
5
6-18
PROFIBUS Communications Modul e
Station 2 Speed Reference
SP600 Speed Ref A Sel (parameter 90) needs to be set to "Network."
N19:15 is controlled elsewhere in the user program.
0006
Station 2 Datalink A1
Datalink A1 (parameter 300) set to Acceleration Time 1 (parameter 140).
N19:16 is controlled elsewhere in the user program.
0007
Station 2 Datalink A2
Datalink A2 (parameter 301) set to Deceleration Time 1 (parameter 142).
N19:17 is controlled elsewhere in the user program.
Station 2
Speed Reference
Write
MOV
MOV
Move
SourceN19:15
8192<
DestN20:15
8192<
Station 2
Datalink A1
Write
MOV
MOV
Move
SourceN19:16
50<
DestN20:16
50<
Station 2
Datalink A2
Write
0008
Figure 6.13 – Sample SLC Ladder Logic - Station 2 Program (Continued)
Using I/O Messaging
MOV
MOV
Move
SourceN19:17
50<
DestN20:17
50<
6-19
Station 2 Datalink B1
Datalink B1 (parameter 302) set to Jog Speed (parameter 100).
N19:18 is controlled elsewhere in the user program.
0009
Station 2 Datalink B2
Datalink B2 (parameter 303) set to Stop Mode A (parameter 155).
N19:19 is controlled elsewhere in the user program.
0010
Station 2 Datalink C1
Datalink C1 (parameter 304) set to Preset Speed 1 (parameter 101).
N19:20 is controlled elsewhere in the user program.
Station 2
Datalink B1
Write
MOV
MOV
Move
SourceN19:18
100<
DestN20:18
100<
Station 2
Datalink B2
Write
MOV
MOV
Move
SourceN19:19
1<
DestN20:19
1<
Station 2
Datalink C1
Write
0011
Figure 6.14 – Sample SLC Ladder Logic - Station 2 Program (Continued)
6-20
PROFIBUS Communications Modul e
MOV
MOV
Move
SourceN19:20
100<
DestN20:20
100<
Station 2 Datalink C2
Datalink C2 (parameter 305) set to Preset Speed 2 (parameter 102).
N19:21 is controlled elsewhere in the user program.
0012
Station 2 Datalink D1
Datalink D1 (parameter 306) set to Preset Speed 3 (parameter 103).
N19:22 is controlled elsewhere in the user program.
0013
Station 2 Datalink D2
Datalink D2 (parameter 307) set to Preset Speed 4 (parameter 104).
N19:23 is controlled elsewhere in the user program.
Station 2
Datalink C2
Write
MOV
MOV
Move
SourceN19:21
200<
DestN20:21
200<
Station 2
Datalink D1
Write
MOV
MOV
Move
SourceN19:22
300<
DestN20:22
300<
Station 2
Datalink D2
Write
0014
Figure 6.15 – Sample SLC Ladder Logic - Station 2 Program (Continued)
The Station 2 program can either end here or, if Explicit Messaging
is needed, Parameter Protocol logic can be added (see figure 7.6).
Using I/O Messaging
MOV
MOV
Move
SourceN19:23
400<
DestN20:23
400<
6-21
6-22
PROFIBUS Communications Modul e
CHAPTER 7
Using Explicit Messaging
(Parameter Protocol)
Chapter 7 provides information and examples that explain how to
use Explicit Messaging to monitor and configure the module and
connected SP600 drive, as well as other peripherals.
ATTENTION:The examples in this publication are
intended solely for p urpose s of ex ample . There a re
!
many variables and requirements with any
application. Roc kwell Autom ation does no t assume
responsibility or liability (to include intellectual
property liability) for actual use of the examples
shown in this publication. Failure to observe this
precaution could result in bodily inju ry or damage to
equipment.
ATTENTION:If Explicit Messages are programmed
to write parameter data to Non-Volatile Storage
(NVS) frequently , the NVS wil l quickly exceed it s life
cycle and cause the drive to malfuncti on. D o 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 frequ ently
changed parameters. Failure to observe this
precaution could resul t in damage to, or destru ction
of, equipment.
7.1About 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 PROFIBUS
network.
To be able to use the parameter protocols in the PROFIBUS
module, the Parameter Access module in the GSD file must be
added to the master configuration when configuring the network.
Using Explicit Messaging (Parameter Protocol)
7-1
Refer to step 21 in chapter 5 to view the procedure for adding the
“Parameter Access” module to a configuration. This maps four
words input and output to the end of the I/O configuration, which is
used as the request/response in the parameter message format
(figure 7.2).
Parameter 23 (Parameter Mode) in the PROFIBUS module is used
to configure the parameter protocol that is active. The default
protocol is the Parameter Protocol.
7.2Running Explicit Messages
There are five basic events in the Explicit Messaging process
defined in figure 7.1. The det ails of each step will vary de pendin g 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.
Set up and send
Parameter Message
Complete Parameter
Message
Retrieve Parameter
Message Response
Y ou format the req uir ed dat a and set up the ladde r
logic program to send an Explicit Mes sage reque st
to the scanner module (download).
The scanner module transmits the Explicit
Message Request to the slave device over the
PROFIBUS network.
The slave device transmits the Explicit Message
Response back to the master.
The controller retrieves the Explicit Message
Response.
The Explicit Message is complete.
7-2
Figure 7.1 – Explicit Message Process
PROFIBUS Communications Modul e
7.3Parameter Protocol
This protocol uses fou r words in the PROF IBUS I/O area . Requ est s
and responses are a ha ndsha ke proce dure and can not be ba tched,
meaning that if the master sends a request, it has to wait for the
response before sending a new request.
With this protocol you can:
• Read 8-bit, 16-bit, or 32-bit parameters from any DPI port
• Write 8-bit, 16-bit, or 32-bit parameters to any DPI port
• Read the Host Fault object
To enable th is pr otoc ol , s et p a ram ete r 23 (Pa ram ete r M ode ) to “Pa r
Prot” (default).
Request
Bit15-121110-015-121110-0
Parameter Access
Word 1 (PCA)
Parameter Access
Word 2 (IND)
Parameter Access
Word 3 (PVA)
Parameter Access
Word 4 (PVA)
RCSPMPNURCSPMPNU
SubindexSubindex
Parameter value
(32 bit high word)
Parameter value
(32-bit low word/8-bit & 16-bit
value)
Figure 7.2 – Parameter Message Format
(32-bit low word/8-bit & 16-bit
Response
Parameter va lue
(32 bit high word)
Parameter va lue
value)
Refer to sections 7.3. 1 a nd 7.3.2 for a description of the data that i s
required in each word.
Using Explicit Messaging (Parameter Protocol)
7-3
7.3.1 Parameter Me ssage Request
Table 7.1 – Parameter Message Request Data
WordDescription
1
PNU - Parameter Number (Bit 0-10)
The parameter number determines which parameter to
access in the selected peripheral. Parameters 1-1023 can
be accessed.
Parameter numbers 1024 - 2048 are used to access the
fault object. Parameter 102 4 is equal to the latest fault, 1025
to the prior fault, and so on.
SPM (Bit 11)
Reserved - Should always bet set to 0.
RC - Request Code (Bit 12-15)
One of the following codes have to be used:
0 = No request
1 = Request parameter value
2 = Change parameter value (8-bit & 16-bit word)
3 = Change parameter value (32-bit word)
4 -15 = Reserved
2
IND - Index
The index word contains the DPI port number of the DPI
peripheral that the request is addressed to. The drive
always has port number 0. The port number of the
PROFIBUS module can be determined from parameter 1
(DPI Port). This is Port 5 on SP600 drives.
3
PVA - Parameter value (32-bit high word)
The parameter value, if the parameter is 32 bits, the most
significant bytes are placed here.
4
PVA - Parameter value (32-bit low word or 8-bit & 16-bit
word).
The parameter value. If the parameter is 32 bits, the least
significant bytes are placed here. If the parameter is 16-bit
or lower, the entire result is placed in this word.
7-4
PROFIBUS Communications Modul e
7.3.2 Parameter Message Response
Table 7.2 – Parameter Message Response Data
WordDescription
1PNU - Parameter Number (Bit 0-10)
Requested parameter num ber.
SPM (Bit 1 1)
Reserved - is always set to 0.
RC - Response Code (Bit 12-15)
One of the following codes will be sent:
0 = No request
1 = Transfer parameter value (8-bit & 16-bit word)
2 = Transfer parameter value (32-bit word)
3-6 = Reserved
7 = Request rejected. Error message is found in word 3.
See table below for fault number description.
8 = No parameter change rights
9-15 = Reserved
2IND - Index
Port ID of requested parameter
3PVA - Parameter value (32-bit high word)
The parameter value. If the parameter is 32 bits, the most
significant bytes are placed here.
If a fault was requested (parameter 1024-2048), this word
contains the fault code, that identifies the fault.
4PVA - Parameter value (32-bit low word or 8-bit & 16-bit
word).
The parameter value. If the parameter is 32-bits, the least
significant bytes are placed here. If the parameter is 16-bit
or lower, the entire result is placed in this word.
If a fault was requested (parameter 1024-2048), the MSB
contains the DPI port num be r that caused the fault, and the
LSB contains the DPI object instance that cause the fault.
Table 7.3 – Parameter Message Response Fault Numbers and Descriptions
Fault
NumberDescription
101Service not supported (i.e., set se rvice to a read-onl y
parameter)
102Service not valid
104Parameter does not exist (i.e., parameter
number>max number of parameters)
106Data value out of range (i.e., set v alue is ou t of ra nge)
107State confli ct (i. e., pa ramete r is not cha ngeabl e while
the product is in an operating state)
Using Explicit Messaging (Parameter Protocol)
7-5
7.3.3 Parameter Protocol Examples
Read Examples
Request
Bit 15-121110-015-121110-0
Parameter Access
Word 1 (PCA)
Parameter Access
Word 2 (IND)
Parameter Access
Word 3 (PVA)
Parameter Access
Word 4 (PVA)
RCSPMPNURCSPMPNU
SubindexSubindex
Not UsedParameter value high
Not UsedParameter value low
RequestResponse
RC
Set to “1” (‘0001’) binary to read
SPM
Not used
PNU
Parameter number to read
Subindex
Selects which DPI port to talk to (“0” =
DPI Host, “5” = RECOMM-PBUS on
SP600 drives).
Not UsedParameter value high word
Not UsedParameter value low word
Response
(32-bit high word)
(32-bit low word/ or
8-bit/16-bit value)
RC
“1” (‘0001’) Transferring 8-bit or 16-bit parameter
value
“2” (‘0010’) Transferring a 32-bit parameter value
“7” (‘0111’) Request rejected (including fault code)
SPM
Not used
PNU
Confirms the Parameter number (if successful,
equals the PNU from the request)
Subindex
Confirms the DPI port (if successful, equals the
Subindex from the request)
Contains a “0” if returning a value from a 16-bit
parameter and the high word from a 32-bit
parameter
Contains the value from a 8-bit or 16-bit parameter,
the low word if reading from a 32-bit parameter, or
the fault code (if RC = “7”)
7-6
PROFIBUS Communications Modul e
Message
Command
Reply
SLC Address
N20:10
N20:11
N20:12
N20:13
N10:10
N10:11
N10:12
N10:13
Par. Access
Word
108C
1
2
3
4
1
108C
2
3
4
alue (hex)
V
1000 hex = Read
8C hex = 140 dec (parameter 140)
0
DPI Port 0 (DPI Host)
0
Not Used
Not Used
0
Transferring 16-bit parameter value ("1")
Confirms Par. Number of the request ("8C")
Confirms Par. Access Word 2 of the request
0
(DPI Port #)
0
Not Used
32 hex = 50 dec = 5.0 seconds
32
Description
Figure 7.3 – Reading Accel Time 1 (Parameter 140) from the SP600 Drive
(DPI Port 0)
Message
Command
Reply
N20:10
N20:11
N20:12
N20:13
N10:10
N10:11
N10:12
N10:13
Par. Access
SLC Address
Word
1004
1
2
5
3
0
0
4
1
1004
2
5
0
3
4
1
Value (hex)
1000 hex = Read
4 hex = 4 dec (parameter 4)
DPI Port 5 (RECOMM-PBUS)
Not Used
Not Used
Transferring 16-bit parameter value ("1")
Confirms Par. Number of the request ("4")
Confirms Par. Access Word 2 of the request
(DPI Port #)
Not Used
1 hex = 1 dec = Station 1
Description
Figure 7.4 – Reading P-DP Addr Actual (Parameter 4) from the
Confirms Par. Access Word 2 of the request
(DPI Port #)
Parameter value high word
Parameter value low word
Description
*1
*1
Figure 7.5 – Reading Fault 1 Time (Parameter 244) from the SP600 Drive
(DPI Port 0)
7-8
PROFIBUS Communications Modul e
Write Examples
Request
Bit 15-121110-015-121110-0
Parameter Access
Word 1
(PCA)
Parameter Access
Word 2
(IND)
Parameter Access
Word 3
(PVA)
Parameter Access
Word 4
(PVA)
RCSPMPNURCSPMPNU
SubindexSubindex
Parameter value high
(32 bit high word)
Parameter value low
(32-bit low word/
or 8-bit/16-bit value)
RequestResponse
RC
“2” (‘0010’ binary) to write a 8-bit or 16-bit
parameter
“3” (‘0011 binary) to write a 32-bit parameter
SPM
Not used
PNU
Parameter number being written
Subindex
Selects which DPI p o rt to talk to (“0”= DPI
Hosts “5”= RECOMM-PBUS on SP600
drives)
Parameter value high
Contains the high word if writing a 32-bit
parameter
Parameter value low
Contains the write value for a 8-bit or 16-bit
parameter, or the low word if writing a 32-bit
parameter
Response
Parameter value high
(32 bit high word)
Parameter value low
(32-bit low word/
or 8-bit/16-bit value)
RC
“1” (0001’) Transferring a 8-bit or 16-bit
parameter va lue
“2” (‘0010’) Transferring a 32-bit parameter
value
“7” (‘0111’) Request rejected (including fault
number)
SPM
Not Used
PNU
Confirms the parameter number (equals the
PNU from the request)
Subindex
Confirms the DPI port (equals the Subindex
from the request)
Parameter value high
Confirms the high word if writing a 32-bit
parameter.
Parameter value low
Confirms the write value for a 8-bit or 16-bit
parameter, the low word (if writing a 32-bit
parameter, or the fault code (if RC=”7”)
Using Explicit Messaging (Parameter Protocol)
7-9
Message
Command
Reply
SLC Address
N20:10
N20:11
N20:12
N20:13
N10:10
N10:11
N10:12
N10:13
Par. Access
Word
1
2
3
4
1
2
3
4
alue (hex)
V
2000 hex = Change parameter value (word)
2065
65 hex = 101 dec (parameter 101)
0
DPI Port 0 (DPI Host)
0
Not Used
64
64 hex = 100 dec = 10.0 Hz
Transferring 16-bit parameter value ("1")
1065
Confirms Par. Number of the request ("65")
Confirms Par. Access Word 2 of the request
0
Not Used
0
Confirms Par. Access Word 4 of the request
64
Description
Figure 7.6 – Writing Preset Speed 1 (Parameter 101) to the SP600 Drive
(DPI Port 0)
Message
Command
Reply
N20:10
N20:11
N20:12
N20:13
N10:10
N10:11
N10:12
N10:13
Par. Access
SLC Address
Word
2009
1
2
3
4
1009
1
2
3
4
Value (hex)
2000 hex = Change parameter value 8-bit/16-bit
9 hex = 9 dec (parameter 9)
5
DPI Port 5 (RECOMM-PBUS)
0
Not Used
2
2 hex = 2 dec = Zero Data
Transferring 8-bit/16-bit parameter value ("1")
Confirms Par. Number of the request ("9")
Confirms Par. Access Word 2 of the request
5
0
Not Used
Confirms Par. Access Word 4 of the request
2
Description
Figure 7.7 – Writing Comm Fault Action (Parameter 9) to the
RECOMM-BUS on an SP600 Drive (DPI Port 5)
7-10
PROFIBUS Communications Modul e
Message
Command
Reply
SLC Address
N20:10
N20:11
N20:12
N20:13
N10:10
N10:11
N10:12
N10:13
Par. Access
Word
1
2
3
4
1
2
3
4
alue (hex)
V
3000 hex = Change parameter value (32-bit)
300F
F hex = 15 dec (parameter 15)
5
DPI Port 5 (RECOMM-PBUS)
0
Not Used
64
64 hex = 100 dec = 10.0 Hz
Transferring 32-bit parameter value ("2")
200F
Confirms Par. Number of the request ("F")
Confirms Par. Access Word 2 of the request
5
Confirms Par. Access Word 3 of the request
0
Confirms Par. Access Word 4 of the request
64
Description
Figure 7.8 – Writing Flt Cfg A1 In (Parameter 15) to a RECOMM-PBUS on
an SP600 Drive (DPI Port 5)
Using Explicit Messaging (Parameter Protocol)
7-11
7.4Sample SLC Ladder Logic- Station 1
Parameter Protoc ol
This section of the routine is only needed if the application needs to perform Parameter Protocol Reads or Writes to Station 1.
On power up, initialize the Parameter Protocol routine.
First Pass
0015
0016
S:1
15
This circuit utilizes the Parameter Protocol. A REQUEST to Station 1 is processed only one at a time, and after each
RESPONSE from Station 1 a zero must be sent and received to 'handshake' before the next REQUEST/RESPONSE transaction
can take place. For example:
Send a parameter read request --> Receive a parameter read response --> Send a "0" --> Receive a "0" --> [Transaction complete]
If the RESPONSE PCA Word 1 (N10:10) is "0", then a REQUEST can be initiated.
Elsewhere in the user program these words must be loaded with message data prior to initiating the REQUEST:
N7:10 = RC = the operation to be performed ("1"=Read, "2" = 16-bit Write, "3" = 32-bit Write)
N7:11 = PNU = the parameter number to read or write
N7:12 = Subindex = the DPI port # ("0"= Host or SP600 drive, "5" = RECOMM-PBUS, etc.)
N7:13 = PVA #1 = the parameter value (high word) - only used when writing parameters
N7:14 = PVA #2 = the parameter value (low word) - only used when writing parameters
The four Parameter Protocol Words set up in the scanner are used to perform the Parameter Protocol:
N20:10 = contains RC (the operation to be performed) and PNU (the parameter number to read or write) combined
N20:11 = Subindex (the DPI port #)
N20:12 = PVA #1 (the parameter value (high word))
N10:13 = PVA #2 (the parameter value (low word))
B3:19/15 is turned ON elsewhere in the program after the REQUEST message (N7:10-14) is loaded. This causes one Parameter
Protocol read or write to occur and B3:19/15 is turned OFF when the transaction is complete.
N10:10 is the Station 1 Response Parameter Access Word 1. It is < > 0 when a message has been received in response to a
message request. If the response is >= 7000 hex (28672 decimal), then the module is responding that an error has occurred. In
this case, the returned data in the response will contain a fault code and not parameter value data.
The response message can be found at:
N7:20 = PCA word = contains the RC and PNU
N7:21 = Subindex = the DPI port # ("0"= Host or SP600 drive, "5" = RECOMM-PBUS, etc.)
N7:22 = PVA #1 = the parameter value (high word)
N7:23 = PVA #2 = the parameter value (low word)
The PVA's will either contain parameter read data, echo the parameter write data, or contain an error code if unsuccessful.
7.5Sample SLC Ladder - Station 2
Parameter Protoc ol
This section of the routine is only needed if the application needs to perform Parameter Protocol Reads or Writes to Station 2.
On power-up, initialize the Parameter Protocol routine.
First Pass
0015
S:1
15
This circuit utilizes the Parameter Protocol. A REQUEST to Station 2 is processed only one at a time, and after each
RESPONSE from Station 2 a zero must be sent and received to 'handshake' before the next REQUEST/RESPONSE transaction
can take place. For example:
Send a parameter read request --> Receive a parameter read response --> Send a "0" --> Receive a "0" --> [Transaction complete]
If the RESPONSE PCA Word 1 (N10:24) is "0", then a REQUEST can be initiated.
Elsewhere in the user program these words must be loaded with message data prior to initiating the REQUEST:
N7:30 = RC = the operation to be performed ("1"=Read, "2" = 16-bit Write, "3" = 32-bit Write)
N7:31 = PNU = the parameter number to read or write
N7:32 = Subindex = the DPI port # ("0"= Host or SP600 drive, "5" = RECOMM-PBUS, etc.)
N7:33 = PVA #1 = the parameter value (high word) - only used when writing parameters
N7:34 = PVA #2 = the parameter value (low word) - only used when writing parameters
The four Parameter Protocol Words set up in the scanner are used to perform the Parameter Protocol:
N20:24 = contains RC (the operation to be performed) and PNU (the parameter number to read or write) combined
N20:25 = Subindex (the DPI port #)
N20:26 = PVA #1 (the parameter value (high word))
N20:27 = PVA #2 (the parameter value (low word))
B3:19/0 is turned ON elsewhere in the program after the REQUEST message (N7:30-34) is loaded. This causes one Parameter
Protocol read or write to occur and B3:19/0 is turned OFF when the transaction is complete.
N10:24 is the Station 2 Response Parameter Access Word 1. It is < > 0 when a message has been received in response to a
message request. If the response is >= 7000 hex (28672 decimal), then the module is responding that an error has occurred. In
this case, the returned data in the response will contain a fault code and not parameter value data.
The response message can be found at:
N7:40 = PCA word = contains the RC and PNU
N7:41 = Subindex = the DPI port # ("0"= Host or SP600 drive, "5" = RECOMM-PBUS, etc.)
N7:42 = PVA #1 = the parameter value (high word)
N7:43 = PVA #2 = the parameter value (low word)
The PVA's will either contain parameter read data, echo the parameter write data, or contain an error code if unsuccessful.
Chapter 8 contains information for troubleshooting the PROFIBUS
module and the network.
8.1Understanding the Status Indicators
The PROFIBUS module has three status indicators. They can be
viewed on the module or through the drive cover. (See figure 8.1.)
➀
➁
➂
Status
Number
Troubleshooting the PROFIBUS Module and Network
IndicatorDescriptionRefer to...
DRIVEDPI Connection StatusSection 8.1.1
MSModule StatusSection 8.1.2
NET APROFIBUS StatusSection 8.1.3
NET BNot usedN/A
Figure 8.1 – Status Indicators (Location on Drive May Vary)
➀
➁
➂
➃
8-1
8.1.1 DRIVE Status Indicator
Table 8.1 – DRIVE Status Indicator: State Definitions
StatusCauseCorrective Action
OffThe module is not
Flashing
Red
Solid
Red
Orange The module is
Flashing
Green
Solid
Green
powered or is not
connected properly to
the drive.
The module is not
receiving a ping
message from the
drive.
The drive has refused
an I/O connection from
the module.
Another DPI peripheral
is using the same DPI
port as the module.
connected to a product
that does not support
Reliance Electric DPI
communications.
The module is
establishing an I/O
connection to th e dri ve.
The module is properly
connected and is
communicating with the
drive.
• Securely connect t he module
to the drive using the ribbon
cable.
• Apply power to the drive.
• Verify that cables are
securely connected.
• Cycle power to the drive.
Important: Cycle power to the
product after ma king any of the
following corrections.
• Verify that all DPI cables on
the SP600 drive are securel y
connected and not d amaged.
Replace cables if necessary.
• Verify that the SP600 drive
supports Datalinks.
• Configure the module and
SP600 drive to use a
Datalink that is not already
being used by another
peripheral.
• Connect the module to a
product that supports
Reliance Electric DPI
communications (for
example, SP600 drives).
• No action. This status
indicator will turn solid green
or red.
• No action.
8-2
PROFIBUS Communications Module
8.1.2 MS St at us Indicato r
Table 8.2 – MS Status Indicator: State Definitions
StatusCauseCorrective Action
OffThe module is not
Flashing
Red
Solid
Red
Flashing
Green
Solid
Green
powered.
The module has
failed the firmware
test.
The module has
failed the hardware
test.
The module is
operational but is not
transferring I/O data.
The module is
operational and
transferring I/O data.
• Securely connect the module
to the SP600 drive using the
ribbon cable.
• Apply power to the drive and
network.
• Cycle power to the drive.
Parameter settings may have
been changed.
• Clear faults in the module.
• If cycling power does not
correct the problem, the
parameter settings may have
been corrupted. Reset defa ults
and reconfigure the module.
• If resetting defaults does not
correct the problem, flash the
module with the latest firmware
release.
• Cycle power to the drive.
• Replace the module.
• Place the scanner in RUN
mode.
• Configure the module for the
program in the controller.
• Program the controller to
recognize and transmit I/O to
the module.
• No action.
Troubleshooting the PROFIBUS Module and Network
8-3
8.1.3 NET A Status Indicator
Table 8.3 – NET A Status Indicator: State Definitions
StatusCauseCorr ect ive Actions
OffThe module is not
Flashing
Red
Solid
Red
Solid
Green
powered or is not
connected properly
to the network.
Error in PROFIBUS
configuration.
Error in PROFIBUS
controller
initialization.
The module is
properly connected
and communicating
on the network.
• Securely connect the m odule to
the drive u s ing the Internal
Interface cable and to the
network using a PROFIBUS
cable.
• Correctly connect the
PROFIBUS cable to the
PROFIBUS connector.
• Apply power to the drive.
• Re-configure the PROFIBUS
module.
• Cycle power to the drive.
• Re-configure the PROFIBUS
scanner.
• No action required.
8-4
PROFIBUS Communications Module
8.2Module Diagnostic Items
Table 8.4 lists diagnostic items that can be accessed using
VS Utilities software or the LCD OIM.
Table 8.4 – Module Diagnostic Items
No.EventDescription
1Common Logic
Cmd
2Prod Logic CmdThe current value of the Product-specific Logic
3ReferenceThe current value of the Product-specific
4Common Logic Sts The current value of the Common Logic Status
5Prod Logic StsThe current value of the Product-Specific Status
6FeedbackThe current value of the Product-Specific
7Datalink A1 InThe current value of Datalink A1 being
8Datalink A2 InThe current value of Datalink A2 being
9Datalink B1 InThe current value of Datalink B1 being
10Datalink B2 InThe current value of Datalink B2 being
11Datalink C1 InThe current value of Datalink C1 being
12Datalink C2 InThe current value of Datalink C2 being
13Datalink D1 InThe current value of Datalink D1 being
14Datalink D2 InThe current value of Datalink D2 being
15Datalink A1 OutThe current value of Datalink A1 being received
The current value of the Common Logic
Command being transmitted to the host.
Command being transmitted to the host.
Reference being transmitted to the host.
being received from the host.
being received from the host.
Feedback being received from the host.
transmitted to the host. (Value of 0 if datalink is
not used).
transmitted to the host. (Value of 0 if datalink is
not used).
transmitted to the host. (Value of 0 if Datalink is
not used).
transmitted to the host. (Value of 0 if Datalink is
not used).
transmitted to the host. (Value of 0 if Datalink not
used).
transmitted to the host. (Value of 0 if Datalink is
not used).
transmitted to the host. (Value of 0 if Datalink is
not used).
transmitted to the host. (Value of 0 if Datalink is
not used).
from the ho st.
Troubleshooting the PROFIBUS Module and Network
8-5
Table 8.4 – Module Diagnostic Items (Continued)
No.EventDescription
16Datalink A2 OutThe current value of Datalink A2 being received
from the ho st.
17Datalink B1 OutThe current value of Datalink B1 being received
from the ho st.
18Datalink B2 OutThe current value of Datalink B2 being received
from the ho st.
19Datalink C1 OutThe current value of D atalink C1 being received
from the ho st.
20Datalink C2 OutThe current value of D atalink C2 being received
from the ho st.
21Datalink D1 OutThe current value of D atalink D1 being received
from the host.
22Datalink D2 OutThe current value of D atalink D2 being received
from the ho st.
23Field Flash CntThe number of times this device has been flash
updated.
24DPI Rx ErrorsThe current value of the DPI CAN Receive error
counter.
25DPI Tx ErrorsThe current value of the DPI CAN Transmit error
counter.
26PbusImage SizBuffer size of Active I/O image (PROFIBUS size)
in bytes.
27Switch 0The value of Switch 0. (Node Address 1s digit)
28Switch 1The value of Switch 1. (Node Address 10s digit)
8-6
PROFIBUS Communications Module
8.3Viewing and Clearing Eve nts
The module maintains an event queue that reports the history of its
actions. You can view the event queue using an LCD OIM or
VS Utilities software.
To View and Clear Events Using an LCD OIM
Use the procedure shown in figure 8.2 to access the event queue
using the LCD OIM. Note that you must have the RECOMM-PBUS
module as the selected device to access the event queue.
>>
Stopped Auto
P0: RECOMM-PBUS
Main Menu
Diagnostics
Monitor
Highlight Diagnostics icon
Figure 8.2 – Viewing and Clearing Events Using an LCD OIM
Lang
Events
Diagnostics:
View Event Queue
Device Version
OIM Version
Highlight item
1
EvtQ# : E#xxxxx
Online @ 500kbps
Clrqu
Press F2 key to
clear event queue
Many events in the event queue occur under normal operation. If
you encounter unexpected communications problems, the events
may help you or Reliance Electric personnel troubleshoot the
problem. Table 8.5 lists events that may appear in the event queue.
Table 8.5 – Event Codes and Descriptions
CodeEventDescription
1No EventEmpty event queue entry.
2DPI Bus Off FltA bus-off condition was detected on DPI. This
event may be caused by loose or broken
cables or by noise.
3Ping Time FltA ping message was not received on DPI
within the specified time.
4Port ID FltThe module is not connected to a correct port
on a DPI product.
5Port Change FltThe DPI port changed.
6Host Sent ResetThe DPI product issued this because it was
reset.
7EEPROM Sum FltThe EEPROM in the module is corrupt.
Troubleshooting the PROFIBUS Module and Network
8-7
Table 8.5 – Event Codes and Descriptions
CodeEventDescription
8Online @ 125k bpsThe module and DPI product are
communicating at 125 kbps.
9Online @ 500 kbpsThe module and DPI product are
communicating at 500 kbps.
10Bad Host FltThe module was connected to an incomp atible
product.
1 1Dup. Port FltAnother periph era l with the sam e por t num ber
is already in use.
12Type 0 LoginThe module has logged in for type 0 control.
13Type 0 Time FltThe module has not received a type 0 status
message within the specified time.
14DL LoginThe module has logged into a datalink.
15DL Reject FltThe host rejected an attempt to log in to a
datalink because the datalink is not supported
or is used by another peripheral.
16DL Time FltThe module has not received a datalink
message within the specified time.
17Control DisabledThe module has sent a “Soft Control Disable”
command to the DPI product.
18Control EnabledThe module has sent a “Soft Control Enable”
command to the DPI product.
19Message TimeoutA Client-Server message sent by the
peripheral was not completed.
20DPI Fault MsgThe Host faulted.
21DPI Fault ClearThe user cleared a fault in the module.
22Normal StartupPeripheral completes a normal startup.
23NET Comm FltThe module detected a fault condition on the
PROFIBUS network.
24Fault Cfg ErrorOne of the Flt Cfg data Parameters is set to a
value greater than 65535 and the host requires
a 16-bit value.
25P-DP OnlineThe PROFIBUS module has gone on-line the
PROFIBUS network.
26P-DP OfflineThe PROFIBUS module has gone off-line the
PROFIBUS network.
27P-DP IdleThe PROFIBUS module received a network
clear from the PROFIBUS master.
28Language CRC Bad The language flash segment is corrupt; flash
the module.
8-8
PROFIBUS Communications Module
APPENDIX A
Technical
Specifications
Communications
Network
Protocol
Data Rates
Drive
Protocol
Data Rates
Electrical
Consumpti on370 mA at 5 V supplied t hrough the drive.
Mechanical
Dimensions
Height
Length
Width
PROFIBUS
9.6K, 19.2K, 45.45K, 73.75K, 187.5K, 500K,
1.5M, 3M, 6M, 12M. The module has auto
baud rate detection.
DPI
125K or 500K
19 mm (0.75 in)
86 mm (3.33 in)
78.5 mm (3.09 in)
Weight57 g (2 oz)
Environmental
Temperature
Operating
Storage
Relative Humidity5 to 95% non-condensing
Regulatory Compliance
UL508C and CUL
CEEN50081-2 (1993) and EN61000-6-2 (1999)
Technical Specifications
-10 to +50°C (14 to 149°F)
-40 to +85°C (-40 to 185°F)
A-1
A-2
PROFIBUS Communications Module
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.