01 PROFIBUS Technology
01 PROFIBUS Technology
01 PROFIBUS Technology
Slave
i.e. ET200
SITRAIN
IK-PBSYS / PROFIBUS Technology Page 1 07/2007
Siemens AG 2007 - All rights reserved
Contents Page
PROFIBUS, Introduction .................................................................................................................. 2
Characteristics of PROFIBUS .......................................................................................................... 3
PROFIBUS variants ......................................................................................................................... 4
Line and Tree structure .................................................................................................................... 5
Data communication ........................................................................................................................ 6
Bus access method for PROFIBUS .................................................................................................. 7
Token bus method ............................................................................................................................ 8
PROFIBUS - DP (Distributed I/O) ..................................................................................................... 9
PROFIBUS - PA ............................................................................................................................... 10
Open Process Control (OPC - Interface) ........................................................................................... 11
Master/slave mode for process and field communication .................................................................. 12
Example - PROFIBUS DP master modules for S7-300 and S7-400 .................................................. 13
DP Master class 1 and 2 ............................................................................................................... 14
DP functionality DP V0, DP V1 and DP V2 ....................................................................................... 15
Master and slave for modular and compact DP slaves ...................................................................... 16
Master and slave for DP slaves with preprocessing (I-DP slaves) ..................................................... 17
Direct data communication between slave and I-slave, monomaster ................................................. 18
Direct data communication between slave and I-slave, multimaster .................................................. 19
Direct data communication between two master systems ................................................................. 20
Selection of SIEMENS DP slave devices .......................................................................................... 21
Examples of CPs for PC ................................................................................................................... 22
Software for parameterizing the PROFIBUS system for S7 ............................................................... 23
Practical simulation of DP configurations .......................................................................................... 24
Gateways from PROFIBUS to..... ..................................................................................................... 25
Message characters ......................................................................................................................... 26
Example of a PROFIBUS message .................................................................................................. 27
PROFIBUS, Introduction
SITRAIN
IK-PBSYS / PROFIBUS Technology Page 2 07/2007
Siemens AG 2007 - All rights reserved
Introduction Bus system for process and field communication in cell networks with few
stations and with field devices as well as for data communication to
IEC 61158/EN 50 170
Specification of the standards for the physical characteristics of the bus and
the access method
Specification of the application protocol and the user interface
Data communication
PROFIBUS FMS for data communication between programmable controllers
and field devices
Characteristics of PROFIBUS
Standard PROFIBUS to IEC 61 158/ EN 50 170 Volume 2
Topology
Electrical network Bus, tree
Optical network Bus, tree, ring
Wireless coupling Point-to-point; point-to-multipoint
Transmission medium
Electrical network Shielded 2-wire cable
Optical network Fiber-optic cable (glass, PCF and plastic)
Wireless coupling Infrared
Network size
Electrical network max. 9.6 km with repeaters
Optical network max. 90 km
Wireless coupling max. 15 m
Transmission rate 9.6 kbit/s to 12 Mbit/s (adjustable) incl. 31.25 Kbit/s
for PROFIBUS PA
Number of nodes max. 127, numbers 0 to 126
Access method Token passing with lower-level master/slave
Protocols PROFIBUS DP, PG/OP communication
S7 communication,
S5-compatible communication (SEND/RECEIVE)
PROFIBUS FMS
SITRAIN
IK-PBSYS / PROFIBUS Technology Page 3 07/2007
Siemens AG 2007 - All rights reserved
Master devices Master devices determine the data traffic on the bus. A master can send
messages without an external request if it has bus access authorization. In the
PROFIBUS protocol, masters are also referred to as active stations.
Slave devices Slave devices are low-overhead I/O devices. Typical slave devices are sensors,
actuators and measuring transducers. They are not assigned bus access
authorization i.e. they are only permitted to acknowledge received messages or
to transmit messages when requested by a master. Slaves are also called
passive stations. They only require a small part of the bus protocol. In this way,
the bus protocol can be extremely simple.
Transmission technology
Transmission by means of cables has been used to US standard EIA RS-485 as
a basic version for applications in the area of production technology,
building automation and drive technology. A twisted copper cable with one
conductor pair is used for this purpose.
Fiber-optic cables are used in environments with strong interference as well as
to increase the range when high transmission rates are used. Glass and plastic
fiber-optic cables are available.
Intrinsically-safe transmission supports PROFIBUS PA and the supply of
stations over the bus. The transmission technology is described in the
international standard IEC 1158-2.
Transmission rate
9.6 - 19.2 - 93.75 - 187.5 - 500 - 1500 Kbit/s , 3 - 6 - 12 Mbit/s adjustable in steps.
PROFIBUS variants
PROFIBUS
Different Information
transmission media is processed differently
Data communication
Electrical transmission -- PG/OP communication
-- S7 routing
Optical transmission -- S7 communication
-- S5-compatible communication (SEND/RECEIVE)
Wireless transmission with infrared -- Standard FMS communication
-- OPC server
SITRAIN
IK-PBSYS / PROFIBUS Technology Page 4 07/2007
Siemens AG 2007 - All rights reserved
SITRAIN
IK-PBSYS / PROFIBUS Technology Page 5 07/2007
Siemens AG 2007 - All rights reserved
Line The line structure is often called a bus structure although not every bus has a
line structure. All nodes now only require a single interface.
They can be connected to the main line via short spur lines.
While it is possible, for example, that four nodes communicate at the same time in
a point-to-point structure, this is not possible in a line structure. It must be
ensured that only one node can send at any one time while all other nodes can
only listen.
This requires rules that regulate which node can have send authorization at what
time.
These are referred to as the bus access methods.
Tree PROFIBUS also uses the tree structure. The tree structure can also be viewed as
a concatenation of several line structures of different lengths but also of different
types. The components which connect the individual lines are of special
importance.
Data communication
DP operation alternative
- DP- Master
or
- DP- Slave (with S7-300)
SITRAIN
IK-PBSYS / PROFIBUS Technology Page 6 07/2007
Siemens AG 2007 - All rights reserved
Data communicationData communication (e.g. PROFIBUS FMS) serves to exchange data between
programmable controllers or between programmable controllers and intelligent
partners (PC, computer, etc.). The following communication functions are
available for this purpose:
PG/OP communication
comprises integral communication functions that are used by the SIMATIC
programmable controllers to perform data communication with HMI devices
(e.g. TD/OP) and SIMATIC PG (STEP 7). PG/OP communication is supported by
MPI, PROFIBUS and Industrial Ethernet networks.
Standard communication
Standard communication uses standardized protocols for data communication
( PROFIBUS FMS Fieldbus Message Specification and OPC server).
SITRAIN Training for IK-PBSYS
Automation and Industrial Solutions Page 6 PROFIBUS Technology
Automation and Drives
Active Nodes
Passive Nodes
SITRAIN
IK-PBSYS / PROFIBUS Technology Page 7 07/2007
Siemens AG 2007 - All rights reserved
Data Link Layer The data link layer implements the access control function for data backup
and handles the transmission protocols and messages. The data link layer (Layer
2) is referred to as the fieldbus data link (FDL) in PROFIBUS.
Bus access control The bus access control defines when a bus node can send data.
The bus access control must ensure that only one node has send authorization
at any one time.
SITRAIN
IK-PBSYS / PROFIBUS Technology Page 8 07/2007
Siemens AG 2007 - All rights reserved
Token bus method The nodes connected to PROFIBUS form a logical token ring in ascending
numerical order of their bus address.
The token i.e. the right to access the transmission medium is passed on by
means of a special token message between the active bus nodes. If a node has
the token, it can send messages until the so-called token holding time
(configuration) has elapsed. If the token holding time has elapsed, the station is
only permitted to send high-priority messages. If a node does not have a
message to send, it passes on the token to the next node in the logical ring.
An exception to this is the active node with the highest station address (HSA) on
the bus.
This node only passes on the token to the active bus node with the lowest bus
address so as to close the logical token ring again.
PG
S7-300
PROFIBUS - CP
DP - Master
PROFIBUS - DP
ET 200 ET 200 OP
DP - Slave DP - Slave
DP Slave
third - party
SITRAIN
IK-PBSYS / PROFIBUS Technology Page 9 07/2007
Siemens AG 2007 - All rights reserved
Compact DP slaves Compact DP slaves use an I/O structure which cannot be changed.
The series of digital ET 200B stations (B for block I/O) are an example of such
DP slaves. Depending on the number of I/O channels required and the voltage
range, suitable modules from the 200B module range can be selected.
Modular DP slaves For modular DP slaves, the structure of the input and output area is variable
and can be defined on configuration. Typical examples of the DP slave type are
the ET 200M stations. Up to 8 I/O modules can be connected to an ET 200M
head module (IM153) from the S7-300 range (modular).
PROFIBUS - PA
PG
C7-626-DP S7-300
PROFIBUS - DP
DP/PA-Coupler
PROFIBUS - PA
SITRAIN
IK-PBSYS / PROFIBUS Technology Page 10 07/2007
Siemens AG 2007 - All rights reserved
PROFIBUS-PA PROFIBUS-PA has been specially designed for process engineering and permits
connection of sensor/actuators to a shared fieldbus cable (also in hazardous
areas).
PROFIBUS-PA uses the extended PROFIBUS-DP protocol for data transmission.
In addition, the PA profile is used which defines the responses of the field
devices. The transmission method to IEC 61158-2 (synchronous transmission
method) ensures intrinsic safety and that the field devices are supplied via the
bus.
FMS DP S7 Send/Receive
Protocol PROFINET
Protocol Protocol Protocol
SIMATIC S7
SIMATIC S7
SIMATIC S5
SIMATIC S5
(only SEND/RECEIVE)
SITRAIN
IK-PBSYS / PROFIBUS Technology Page 11 07/2007
Siemens AG 2007 - All rights reserved
OPC OPC refers to a standard interface for communication in automation. OLE is the
component model of Microsoft. Components are the software objects or
applications that make their functionality available to other applications.
OPC interface The OPC interface is the specification for a standardized, multi-vendor software
interface based on OLE. Previously, applications that accessed process data
were restricted to the access mechanisms of the communications network of one
manufacturer. The standardized OPC interface now provides the user wanting to
use, for example, HMI software with the option of uniform access to
communication networks of any vendor.
OPC server The OPC server offers applications of different manufacturers a standardized
OPC interface. Communication via industrial networks is possible by means of
simple calls. The process data are accessed via the OPC interface in the same
way independent of the communication network or protocol used. An OPC server
is therefore an intermediate layer between applications for processing process
data and the different network protocols and interfaces for accessing
these data.
SITRAIN
IK-PBSYS / PROFIBUS Technology Page 12 07/2007
Siemens AG 2007 - All rights reserved
Master/slave method
If a logical ring consists of only one active node and if there are several passive
nodes on the bus, this corresponds to a pure master/slave system (see diagram
above).
The master/slave method permits the master (active node) which currently has
send permission (token) to access the slaves (passive nodes) that are assigned
to it. The master can send messages to the slaves or receive messages from the
slaves.
SITRAIN
IK-PBSYS / PROFIBUS Technology Page 13 07/2007
Siemens AG 2007 - All rights reserved
Total integration The total integration of the master and distributed I/O presents itself to the user
in the form of:
Uniform configuration:
Both the central as well as the distributed I/O are configured with
STEP7. This means that the user can employ the same
configuring tool for central and distributed I/O
Centralized and distributed programming:
The automation system is programmed using STEP 7 regardless of the
system configuration. In this way, the program can be generated
independent of the hardware configuration.
Slave
i.e. ET200
SITRAIN
IK-PBSYS / PROFIBUS Technology Page 14 07/2007
Siemens AG 2007 - All rights reserved
DP device types PROFIBUS DP distinguishes between two different master classes and different
DP functionalities.
DP master Class 1 The DP master Class 1 is the central component on PROFIBUS DP.
The central PLC or PC exchanges information with distributed stations
(DP slaves) in a fixed, repeated message cycle.
DP master Class 2 This type of device (programming, configuring or HMI device) is used on
startup, for configuring the DP system or for operating the system during normal
operation (diagnostics).
A DP master Class 2 can, for example, read input data, output data, diagnostic
data and configuration data of the slaves.
DP slave A DP slave is an I/O device which reads in input information and passes output
information to the I/O.
The volume of input and output data depends on the device and can be up to 244
bytes.
The functional scope can differ between DP masters of Class 1 and 2 and
DP slaves. This determines the performance and availability of a communication
processor.
Configuration
Parameter Reading input data
assignment Reading output data
Isochronous reading e.g. ET200 Slave Diagnostic
of input data Reading Configuration
Writing to outputs, Address changes
Reading diagnostic
data
Non-isochrone read and write Read/write data record
functions as well as (acyclic)
Alarm acknowledgement to be
performed
isochrone read and write Isochrone
mode and
Direct data communication between
DP slaves
SITRAIN
IK-PBSYS / PROFIBUS Technology Page 15 07/2007
Siemens AG 2007 - All rights reserved
DP functions
DP V0 The DP master functions (DP V0) comprise the following functions
Configuration
Parameter assignment
Isochronous reading of input data and writing to outputs,
Reading diagnostic data.
SITRAIN
IK-PBSYS / PROFIBUS Technology Page 16 07/2007
Siemens AG 2007 - All rights reserved
Master/slave method
If a logical ring consists of only one active node and if there are several passive
nodes on the bus, this corresponds to a pure master/slave system (see diagram
above).
The master/slave method permits the master (active node) which currently has
send permission (token) to access the slaves (passive nodes) that are assigned
to it. The master can send messages to the slaves or receive messages from the
slaves.
The DP master polls each configured DP slave in its polling list within the DP
master system in sequence and transmits the output data or receives their input
values.
ET200X or
S7-300 with 2 interfaces
SITRAIN
IK-PBSYS / PROFIBUS Technology Page 17 07/2007
Siemens AG 2007 - All rights reserved
direct data-exchange
ET200X or
S7-300 with 2 interfaces
SITRAIN
IK-PBSYS / PROFIBUS Technology Page 18 07/2007
Siemens AG 2007 - All rights reserved
DP-Master 1 DP-Master 2
ET200X or
S7-300 with 2 interfaces
direct data-exchange
SITRAIN
IK-PBSYS / PROFIBUS Technology Page 19 07/2007
Siemens AG 2007 - All rights reserved
Configuration for data communication between a slave and an I-slave with two master systems
Several DP master systems on a physical PROFIBUS-DP subnet are also called
a multimaster system. With this configuration, signals from simple DP slaves can
be exchanged very quickly across DP master systems with intelligent DP slaves
on the same physical PROFIBUS DP subnet.
In this way, an intelligent DP slave such as a CPU 315-2DP can have input
data from "simple" DP slaves, also from different DP master systems
(i.e. multimaster systems), transmitted directly to its input data area.
Generally, all simple DP slaves (from a certain version) can make selected input
data for direct data exchange (DX) between DP slaves available. These data
however can only be used by intelligent DP slaves such as the CPU 315-2DP.
direct data-exchange
ET200X or
S7-300 with 2 interfaces
SITRAIN
IK-PBSYS / PROFIBUS Technology Page 20 07/2007
Siemens AG 2007 - All rights reserved
Direct data communication between an I-slave/DP slave and two master systems
Several DP master systems on a physical PROFIBUS-DP subnet are also called
a multimaster system. With this configuration, input data from intelligent DP
slaves or simple DP slaves can be read directly from the DP master of a different
DP master system on the physical PROFIBUS DP subnet. This mechanism is
also called shared input since input data are used across master systems.
isolating
transformer
Block Multifunctional,
I/O intelligent I/O Modules
Production Engineering Process Technology
Protection IP65/67 Protection IP20
SITRAIN
IK-PBSYS / PROFIBUS Technology Page 21 07/2007
Siemens AG 2007 - All rights reserved
CP5611
Transmission rate 9.6 kbit/s to 12 Mbit/s
SITRAIN
IK-PBSYS / PROFIBUS Technology Page 22 07/2007
Siemens AG 2007 - All rights reserved
CP 5511 Various different software packages can be used to operate the CP 5511
and it allows the user to perform programming device functions and PC functions
over PROFIBUS and the multipoint interface MPI.
Only one CP can be used per PG, PC or notebook computer. Similarly, only one
protocol (PROFIBUS DP, S7 communication or FDL) can be used per CP.
CP5611 The CP5611 is used to connect PGs/PCs to PROFIBUS and the MPI of the
SIMATIC S7. It is a PCI module which can be inserted into the free slot of a
desktop PC. It offers the following communication services:
SITRAIN
IK-PBSYS / PROFIBUS Technology Page 23 07/2007
Siemens AG 2007 - All rights reserved
GSD data STEP 7 can also be used to parameterize field devices of other manufacturers.
For simple and easy parameterization, the product is usually supplied with device
master files for integration into the parameterization tools. So that the distributed
ET 200 I/O devices can be connected to masters of other manufacturers, the
GSD files are also available from the central interface center.
SITRAIN
IK-PBSYS / PROFIBUS Technology Page 24 07/2007
Siemens AG 2007 - All rights reserved
Introduction How can I determine the optimal configuration for PROFIBUS DP and how can I
correctly estimate the response time and bus cycle time on a PROFIBUS DP
line ?
ANSWER: Many applications require a fast response time over the distributed I/O. In the
SIMATIC system, PROFIBUS DP is used for fast and efficient data
communication between distributed I/O and S7 stations. One of the most
important questions when designing such DP configurations concerns the DP
response time which can be expected:
How long does it take until a signal changes at the output of the ET200
after the signal has changed at the input of the ET200?
This time varies in accordance with the number, type and mode of the
components used on the PROFIBUS DP. This gives rise to further questions:
How does the DP response time change when the configuration is changed
How does the DP bus cycle time and the OB1 cycle time affect the
DP response time?
What fluctuations are there for these times ?
To answer the questions above, we have performed comprehensive
measurements on real DP configurations. You can only select the DP
components and assign parameters to them correctly if you can estimate the DP
response time correctly. In this way, you can minimize the risk of investing
unwisely.
Simulator for DP configurations
With the simulator you can simulate your planned DP configurations directly on
the PC. You can select and compare two different configurations with a few clicks
of the mouse. The simulator will display the estimated response times for real-life
situations.
SITRAIN
IK-PBSYS / PROFIBUS Technology Page 25 07/2007
Siemens AG 2007 - All rights reserved
Overview The two diagrams show how to implement gateways from PROFIBUS to other
subnets.
More information can be found in the Industrial Communication" Catalog IKPI
200X where the X stands for years 2, 3, 4 to 5.
Message characters
Significance 20 27
of the bits (I) LSB MSB
0 b1 b2 b3 b4 b5 b6 b7 b8 P 1
SITRAIN
IK-PBSYS / PROFIBUS Technology Page 26 07/2007
Siemens AG 2007 - All rights reserved
Start/stop characters
Each message consists of a number of message characters, the UART
characters.
L
Format of the call message (response frame):
SITRAIN
IK-PBSYS / PROFIBUS Technology Page 27 07/2007
Siemens AG 2007 - All rights reserved