Profibus: Operation Manual
Profibus: Operation Manual
Profibus: Operation Manual
V 5.6-H or later
09/2013 en
Table of contents
Operation manual
Table of contents
1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
1.2 Readers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
2 Notes on Safety . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
2.6 Service . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
2.7 Disposal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
3 Mounting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
4 Electrical installation . . . . . . . . . . . . . . . . . . . . . . . . . 16
4.1 Setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
5 Fundamentals of PROFIBUS . . . . . . . . . . . . . . . . . . 19
6 Bus diagnosis/LEDs . . . . . . . . . . . . . . . . . . . . . . . . . 23
ID 441687.04 2
Table of contents
Operation manual
10 Switchable scaling . . . . . . . . . . . . . . . . . . . . . . . . . . 32
11 Parameter Overview . . . . . . . . . . . . . . . . . . . . . . . . . 33
12 Appendix A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
ID 441687.04 3
1
Introduction
Operation manual
1 Introduction
1.1 Purpose of the manual
This manual gives you information on the connection of the 5th generation of
STÖBER inverters to the PROFIBUS fieldbus system. The structure of
PROFIBUS and the principal procedures are also discussed.
Goals of the manual:
• Provide you with a basic knowledge of PROFIBUS communication.
• Offer you support when you design an application and configure
communication.
1.2 Readers
Users who are familiar with the control of drive systems and have a knowledge of
commissioning inverter systems are the target group of this manual.
ID 441687.04 4
1
Introduction
Operation manual
You can find information on the POSITool software in the following manuals:
Note that the programming functionality of POSITool can only be used after
training by STÖBER ANTRIEBSTECHNIK. You can find information on training at
www. stoeber.de
To make getting started with our software easier, we offer courses. Contact our
training center at [email protected].
If you have questions about the documentation, please contact:
ID 441687.04 5
2
Notes on Safety
Operation manual
2 Notes on Safety
The devices may cause risks. For these reasons, comply with the following:
• The safety notes listed in the following sections and points
• The technical rules and regulations.
ID 441687.04 6
2
Notes on Safety
Operation manual
In addition, the valid regulations, the legal requirements, the reference books, this
technical documentation and, in particular, the safety information contained
ID 441687.04 7
2
Notes on Safety
Operation manual
Information
Note that the discharge time of the DC link capacitors is 5 minutes. You
can only determine the absence of voltage after this time period.
2.6 Service
Repairs must only be performed by STÖBER ANTRIEBSTECHNIK GmbH + Co.
KG. Send faulty devices with a fault description to:
2.7 Disposal
Please comply with the latest national and regional regulations! Dispose of the
individual parts separately depending on their nature and currently valid
regulations such as, for example:
• Electronic scrap (PCBs)
• Plastic
• Sheet metal
• Copper
• Aluminum
ID 441687.04 8
2
Notes on Safety
Operation manual
NOTICE
Notice
means that property damage may occur
if the stated precautionary measures are not taken.
CAUTION!
Caution
with warning triangle means that minor injury may occur
if the stated precautionary measures are not taken.
WARNING!
Warning
means that there may be a serious danger of death
if the stated precautionary measures are not taken.
DANGER!
Danger
Information
indicates important information about the product or a highlighted
portion of the documentation which requires special attention.
ID 441687.04 9
3
Mounting
Operation manual
3 Mounting
The DP 5000 fieldbus module (PROFIBUS DP-V1) must first be installed before
the inverter of the 5th generation of STÖBER inverters can be integrated in a
PROFIBUS system. The accessories are installed above the inverter display.
We recommend ordering the option card with mounting and the inverter. If this is
done, STÖBER ANTRIEBSTECHNIK will mount the DP 5000 before delivery.
WARNING!
Danger of injury/death and property damage due to electric shock!
Before installing accessories, turn off all voltage supplies! Then wait 5
minutes for the DC link capacitors to discharge. Never begin with accessory
installation until after this!
CAUTION!
Danger of property damage due to electrostatic discharge, among others!
Provide suitable protective measures while handling open PCBs (e.g., ESD
clothing, environment free of dirt and grease).
Do not touch the contact surfaces.
ID 441687.04 10
3
Mounting
Operation manual
4. Stick the sub D plug connector of the PCB through the plate from below:
ID 441687.04 11
3
Mounting
Operation manual
6. Insert the option PCB in the inverter so that the gold contacts slide into the
black terminal block:
ID 441687.04 12
3
Mounting
Operation manual
WARNING!
Danger of injury/death and property damage due to electric shock!
Before installing accessories, turn off all voltage supplies! Then wait 5
minutes for the DC link capacitors to discharge. Never begin with accessory
installation until after this!
CAUTION!
Danger of property damage due to electrostatic discharge, among others!
Provide suitable protective measures while handling open PCBs (e.g., ESD
clothing, environment free of dirt and grease).
Do not touch the contact surfaces.
ID 441687.04 13
3
Mounting
Operation manual
4. Stick the sub D plug connector of the PCB through the plate from below:
5. Secure the PCB to the plate with the screws from step 3:
6. Stick the option PCB in the inverter so that the gold contacts slide into the
ID 441687.04 14
3
Mounting
Operation manual
ID 441687.04 15
4
Electrical installation
Operation manual
4 Electrical installation
4.1 Setup
PROFIBUS DP consists of at least one bus segment. One segment consists of at
least two but not more than 32 stations. They are all physically connected with a
bus cable. One of the stations is the master. The master is the active station on
PROFIBUS. It can send or request data to/from other stations. The slaves are the
passive stations on PROFIBUS. They can only exchange data with the master
when the master requests this.
Terminating resistors must be placed at the beginning and the end of the bus.
3
.2
Master no. 1
.
.
no
no
no
e
e
av
av
av
Sl
Sl
Sl
If more than 32 stations are to operate on a bus or the maximum line length of a
bus segment is exceeded, several bus segments must be coupled via RS 485
repeaters. The maximum number of masters and slaves within one bus segment
must be decreased by one for every repeater used. The maximum number of
masters and slaves over the entire bus system is 126. The maximum line length
ID 441687.04 16
4
Electrical installation
Operation manual
Segment 1
R
Repeater
Segment 2
Repeater R
Segment 3
ID 441687.04 17
4
Electrical installation
Operation manual
Information
To ensure that bus termination functions correctly, the power supply
may not be allowed to fail on the stations with circuited terminating
resistors! To bypass the risk of a complete bus failure when the last
station malfunctions, active bus terminating components can be
used.
The inverters in the device series MDS 5000 and SDS 5000 with a
separate 24-V control part power supply represent such
components. In the device series FDS 5000, inverters with the
identifier "/L" have a separate 24-V control part power supply.
ID 441687.04 18
5
Fundamentals of PROFIBUS
Operation manual
5 Fundamentals of PROFIBUS
PROFIBUS is an open fieldbus standard for a wide variety of applications in
manufacturing and process automation. The independence from manufacturers
and the openness are ensured by international standard IEC 61158. For years
now PROFIBUS has been one of the primary fieldbus systems on the
international market.
PROFIBUS DP is a fast and cost-optimized communication system for use at the
field level in which a controller (PROFIBUS master) with several slaves (drives,
IOs, and so on) performs cyclic data communication.
ID 441687.04 19
5
Fundamentals of PROFIBUS
Operation manual
ID 441687.04 20
5
Fundamentals of PROFIBUS
Operation manual
Devices of the 5th generation of STÖBER inverters support cyclic and acyclic
services with the DP-V1 option. This provides a wide variety of possible ways to
communicate:
C2 - Master
C2 - Master
C1 - Master
HMI
1
3
2
4
1: Cyclic communication
2 - 4: Acyclic communication
Cyclic communication (1) is the simple exchange of user data via the data
exchange telegram. Time critical process data (PZD) are exchanged between a
class-1 master (C1) and the drive controller with cyclic communication. Such data
include, for example, reference and actual values, and control and status
information. A routine for parameter communication (of the familiar PKW channel
as with the FDS 4000) can be implemented within the cyclic communication.
There is always exactly one C1 master in each PROFIBUS setup. This master
reads the GSD file, configures the drives, starts PROFIBUS and runs the cyclic
communication. The C1 master is usually the controller (arrow 1).
The acyclic services (2-4) are available in DP-V1 for the transmission of new
parameter jobs for controlling and monitoring the drives, parallel to true cyclic
communication.
ID 441687.04 21
5
Fundamentals of PROFIBUS
Operation manual
The process data channel is used for high-speed transmission of data which are
used for controlling and monitoring the running process and which require a
particularly short transmission time. When the bus system is configured, the
selection of the PPO type specifies whether the cyclic parameter channel is to be
used and how many bytes the process data channel will have.
All parameters can be read and changed with the parameter channels. First, the
PKW1 routine (which uses the acyclic services of PROFIBUS) specified by
PROFIDrive version 3 is available and, second, the old PKW0 routine (which is
embedded in the cyclic data) defined by PROFIDrive version 2 is offered.
ID 441687.04 22
6
Bus diagnosis/LEDs
Operation manual
6 Bus diagnosis/LEDs
The DP 5000 option module is equipped with a green and a red LED. The LEDs
indicate communication-specific states. This permits the PROFIBUS status to be
diagnosed on the device.
RED
GREEN
ID 441687.04 23
6
Bus diagnosis/LEDs
Operation manual
ID 441687.04 24
7
Configuration of the bus system
Operation manual
The baud rate must be set on the master under consideration of the segment
lengths and the total distance of the bus.
This work is performed on the master side using configuration software. This
software must read the device master data files (GSD files) from all stations. The
GSD files are like electronic data sheets which contain the information on the
PROFIBUS characteristics such as supported baud rates, supported modules,
and so on. They are provided by the manufacturer for each PROFIBUS device.
The GSD file for the devices of the 5th generation of STÖBER inverters has the
designation STOE5005.GSD. The file can be downloaded from the Internet under
www.stoeber.de.
Information
The change in the PROFIBUS address of a slave is not accepted
until the next device startup of the bus master. This was
ID 441687.04 25
7
Configuration of the bus system
Operation manual
To link in the GSD file in the STEP 7, open the menu "Extras" "Neue GSD Datei
einbinden." Then display the GSD in the device catalog under "Extras" "Katalog
Aktualisieren." This must done only once. After this, the inverter appears at the
position as shown on the screen () in the hardware catalog. HW-Config in STEP
7 may look like this.
It is not necessary to reserve a separate memory area for the acyclic services
(DPV1). This means that no PPO type must be selected which supports PKW.
Every PPO type has this capability with the DPV1 protocol.
ID 441687.04 26
7
Configuration of the bus system
Operation manual
To ensure data consistency on the bus, SIEMENS requires that SFCs 14 and 15
be used for data lengths longer than a double word. Direct accesses to the IO
area via L PAW or L PEW are then NOT permitted. The SFCs must be called once
per slave.
ID 441687.04 27
8
Prozess data transmission PZD
Operation manual
Bytes 0 1 … … 19
PPO1
PPO2
PPO3
PPO4
PPO5
ID 441687.04 28
8
Prozess data transmission PZD
Operation manual
Information
A new mapping does not become active until the following has
taken place:
1. Back up the changed mapping with the A00 function Save
values.
2. Wait until the action is successfully completed.
3. Turn the device off and on again.
The new mapping is now active.
The following table describes the parameters required for mapping.
ID 441687.04 29
8
Prozess data transmission PZD
Operation manual
ID 441687.04 30
9
Control with control and status bits
Operation manual
ID 441687.04 31
10
Switchable scaling
Operation manual
10 Switchable scaling
Some of the device parameters can be scaled for the fieldbus transmission in the
process data in two ways: Scaled as standard or with the native raw resolution of
the 5th generation of STÖBER inveters. The scaling can be set with the
parameter A100. With A100=0, all values are scaled as standard. With A100=1,
the raw values are transferred to PROFIBUS. In this case there is no scaling to
user-defined or physical units and the values are forwarded in the internal-inverter
format instead. This relieves the main processor of the inverter.
ID 441687.04 32
11
Parameter Overview
Operation manual
11 Parameter Overview
All parameters of the inverter are available as communication objects via the
PKW service (PKW0 or PKW1).
ID 441687.04 33
11
Parameter Overview
Operation manual
Information
Formula for the generation of: parameter number, axis and subindex:
- Parameter number (PNU) = 2000hex + 200hex * group (A=0, B=1, ...)
+ row.
The letters of the groups apply to the following numbers (Attention, decimal
indication):
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
ID 441687.04 34
11
Parameter Overview
Operation manual
NOTE
Do not turn off the power of the control section (device version /L:24V, device
version /H: supply voltage) while the action is being executed. If the power is
turned off while the action is running this causes incomplete storage. After the
device starts up again the fault "*ConfigStartERROR parameters lost" appears
on the display.
Only several 1000 storage procedures are possible per Paramodul. When this
limit has almost been reached, result 14 is indicated after the storage procedure.
When this happens, replace Paramodul as soon as possible.
Axes: Global
Data type: —
Value: 0, 0, 0
PNU: 2000hex
Subindex: 3
ID 441687.04 35
11
Parameter Overview
Operation manual
Subindex: 1
A85 PROFIBUS diagnostic:
Indication of internal inverter diagnostic information on the PROFIBUS DP
interface.
Axes: Global
Dat entyp: 6
Wert: Bitfeld mit 16 Bits
PNU: 2055hex
Subindex: 1
A86 PROFIBUS configuration:
The inverter offers various ways (PPO types) to transfer cyclic user data via
PROFIBUS DP. These can be configured in the GSD file STOE5005.gsd on the
controller (bus master). This indication parameter can be used to check which of
the possible configurations was chosen.
Axes: Global
Data type: 5
Value: chosen configuration
PNU: 2056hex
Subindex: 1
A90 PZD Setpoint Mapping:
The target parameters are entered in A90/A91 for the reference values/control
bits which are sent by the PLC to the device via PROFIBUS.
Example: When A90.0 = A180 is entered, this means that the first byte (length of
ID 441687.04 36
11
Parameter Overview
Operation manual
Data type: 7
Value: see above
PNU: 205Bhex
Subindex: 6
A93 PZD Setpoint Len:
Indicator parameter which indicates the length in bytes of the expected process
data with reference values (data from PROFIBUS master to inverter) for the
current parameterization.
Axes: Global
Data type: 5
Value: see above
PNU: 205Chex
Subindex: 1
A94 PZD ActValue Mapping:
The source parameters are entered in A94/A95 which contain the actual values/
status bits of the inverter which are sent to the PLC via PROFIBUS.
Example: When entered in A94.0 = E200, this means that the first byte (length
of E200) which is transferred by the bus contains the contents of parameter
E200. The subsequent data are transferred via the bus in the same way. It is
absolutely necessary that the length of the entered parameters be known.
Axes: Global
Data type: 7
Value: see above
ID 441687.04 37
11
Parameter Overview
Operation manual
CAUTION
When "0:integer" is parameterized (scaled values), the runtime load increases
significantly and it may become necessary to increase A150 cycle time to avoid
the fault "57:runtime usage" or "35:Watchdog".
With few exceptions, the PKW channel is always transferred in scaled format.
Axes: Global
Data type: 5
Value: 0:Standard
1:raw value
ID 441687.04 38
11
Parameter Overview
Operation manual
To keep the inverter from continuing with the last received reference values after
a failure of PROFIBUS or the PROFIBUS master, process data monitoring
should be activated. The RX block monitors the regular receipt of process data
telegrams (PZD) which the PROFIBUS master sends cyclically during normal
operation. The A109 PZD-Timeout parameter is used to activate this monitoring
function. A time is set here in milliseconds. The default setting is 65535. This
value and also the value 0 mean that monitoring is inactive. This is
recommended while the inverter is being commissioned on PROFIBUS and for
service and maintenance work.
Monitoring should only be activated for the running process during which a bus
master cyclically sends process data to the inverter. The monitoring time must
be adapted to the maximum total cycle time on PROFIBUS plus a sufficient
reserve for possible delays on the bus. Sensible values are usually between 30
and 300 msec.
When process data monitoring is triggered on the inverter, the fault
"52:communication" is triggered.
* The A109 PZD-Timeout parameter is also used for communication via USS
protocol for the USS-PZD telegram.
Axes: Global
Data type:
Value:
PNU: 206Dhex
Subindex:
ID 441687.04 39
11
Parameter Overview
Operation manual
ID 441687.04 40
12
Appendix A
Operation manual
12 Appendix A
Information
Please note that the protocol described here can only be used with
the 5th generation of STÖBER inverters.
This chapter discusses the structure of the PKW1 protocol in detail.
ID 441687.04 41
12
Appendix A
Operation manual
Job header
• Job reference:
Unique identification of the job/response pair for the master. The master
changes the job reference with each new job (e.g., Modulo 255). The slave
echoes the job reference in the response.
• Job ID:
Two IDs are defined:
01hexRequest/read parameter
02hexChange parameter
ID 441687.04 42
12
Appendix A
Operation manual
• Response ID:
Echoing of job ID with additional info whether execution positive or negative.
01hexRequest parameter, positive
81hexRequest parameter, negative (job could not be executed, either partially
or completely).
02hexChange parameter, positive
82hexChange parameter, negative (job could not be executed either partially
or completely).
With a negative response, an error number is transferred instead of the
parameter value.
• Axis:
Addressing of an axis when a POSISwitch® is used. This means that the
same DP-V1 connection can be used to access different axis with a separate
parameter number area for each on the drive.
Value range: 0 to 3.
• Number of parameters:
Specifies the number of subsequent areas, parameter address and/or
parameter value for multiple parameter jobs. "Number of parameters" = 1 for
simple jobs.
Value range: 1 to 37 (restricted by DP-V1 telegram length)
Parameter address
• Attribute:
Type of object which is being accessed.
10hex = Value
20hex = Description, not implemented
ID 441687.04 43
12
Appendix A
Operation manual
• Format
Must only be supplied in exceptional cases for write jobs.
Value Meaning
01hex Boolean
02hex Integer 8
03hex Integer 16
04hex Integer 32
05hex Unsigned 8
06hex Unsigned 16
07hex Unsigned 32
08hex Floating Point
11 Double
17 Posi 64
28 String 8
29 String 16
30 String 80
31 U8 Array64
40 Zero
41 Byte
42 Word
43 Double word (standard)
44 Error
ID 441687.04 44
12
Appendix A
Operation manual
ID 441687.04 45
12
Appendix A
Operation manual
Write.res
without data
Read.req DB47
without data
Parameter
Read.res(-) processing
without data
Read.req DB47
without data
ID 441687.04 46
12
Appendix A
Operation manual
Normal case
The following four DPV1 telegrams are used to transmit a parameter job/
parameter response pair:
Transmission of the parameter job in a DPV1 write request
2. Request for the parameter response in a DPV1 read request (without data):
ID 441687.04 47
12
Appendix A
Operation manual
• Error_Decode
DPV1: ID, to be interpreted like Error_Code1/2.
PROFIDrive: Always 128 (DPV1 codes)
ID 441687.04 48
12
Appendix A
Operation manual
ID 441687.04 49
13
Appendix B PKW0 telegram
Operation manual
Information
The PKW0 mechanism described here is compatible with the 4th
generation of STÖBER inverters.
When PPO type 1 or 2 is selected during configuration of PROFIBUS DP, the
"parameter ID value (PKW0)" routine defined in PROFIDRIVE is available for
parameter communication. However, not all parameters, displays and actions of
the inverter can be accessed. Excluded are parameters with a number greater
than 255, a length greater than 32 bits (text parameters) or indexed parameters
with an index greater than 19. The axis is selected via A11.1 as shown below.
A11.1 = 0 Axis 1 or 2 depending on PNU
A11.1 = 1 (=2/3) Axis 13 or 4 depending on PNU
A11.1 itself can be accessed via:
PNUdez = 1000 + 20 * 0 + 1 = 1001
Subindex = 11.
In the old PROFIDrive profile version 2, only 11 bits were provided for a parameter
number. That severely restricted the available address area. Fourth-generation
STÖBER Antriebstechnik inverters locate their parameters in the area of the PNU
between 1000dec to 1999dec. To be able to offer downwards compatibility, the old
PKW0 routine is still available with the same addresses. The entire scope of
parameters available today with the various data types cannot be imaged on this,
however. Specification of parameter number and subindex for the access via
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
The parameters from the groups B.. to G.. exist once in axis 1 and then again in
axis 2. The menu only contains one coordinate. For access via PROFIBUS, the
parameter numbers for the parameters for axis 1 are selected from 1000 to 1499
and for axis 2 starting at 1500.
ID 441687.04 50
13
Appendix B PKW0 telegram
Operation manual
The bits for the parameter number, job and response ID are located within the
two-byte parameter ID. (The SPM bit for spontaneous message processing is not
supported.) The master sends to the inverter the job ID, the parameter number,
the subindex and, during write accesses, the new value. The device then answers
with the response ID, parameter number, subindex and, during read accesses,
with the current value. All values are represented as double words (4 bytes in
length) on PROFIBUS. This means that the master no longer needs to recognize
and distinguish between the data sizes of byte, word and double word. The job ID
is used to differentiate between reset, write and read jobs. The master (PLC) must
repeat the same job at least until the applicable response arrives from the
PROFIBUS slave.
Bytes for parameter ID (PKW)
Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
SPM
PKE : Parameter ID
IND : Subindex in byte 2. Byte 3 is reserved
PWE : Parameter value
Job ID Meaning
0 No job (reset job)
The devices of the 5th generation of STÖBER inverters respond to the same bit
positions with the response ID. The response ID remains unchanged until the
current job is finished. The job ID must be maintained constant as long as this has
not occurred.
Response ID Meaning
0 No response or also: OK for job ID "no job"
2 Transfer parameter value (sent to master)
7 Job cannot be executed
The inverter deletes all response bytes together with the response ID 0. With
response ID 2, the parameter number and the subindex are echoed from the job
in the response. The inverter continues sending the complete response until the
master formulates a new job. With read accesses to indicator values, the inverter
ID 441687.04 51
13
Appendix B PKW0 telegram
Operation manual
always cyclically sends new current values until the master formulates a new job.
When the device responds with 7:Job cannot be executed, the least significant
byte of the parameter value (PWE) (thus in byte 7) contains the applicable error
number.
Error numbers in PKW0 parameter responses
ID 441687.04 52
13
Appendix B PKW0 telegram
Operation manual
ID 441687.04 53
Global Presence
Address registers
Always up to date on the internet: www.stober.com → contact
• STÖBER Subsidiaries:
www.stober.com
Switzerland Great Britain Italy
www.stober.com
441687.04