Вы находитесь на странице: 1из 27

Automation and Drives

Technology of the PROFIBUS system

Engineering & diagnostics


Control tasks & diagnostics
i.e. PC
i.e. PLC/PC

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

SITRAIN Training for IK-PBSYS


Automation and Industrial Solutions Page 1 PROFIBUS Technology
Automation and Drives

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

Offers openness for coupling standardized components from other


manufacturers

The fieldbus standard in production and process engineering comprises:

Specification of the standards for the physical characteristics of the bus and
the access method
Specification of the application protocol and the user interface

Process or field communication:


PROFIBUS DP for fast, cyclic data exchange with field devices
PROFIBUS PA for applications in process automation
for intrinsically safe systems

Data communication
PROFIBUS FMS for data communication between programmable controllers
and field devices

SITRAIN Training for IK-PBSYS


Automation and Industrial Solutions Page 2 PROFIBUS Technology
Automation and Drives

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

Basic features of PROFIBUS


PROFIBUS defines the technical and functional features of a serial fieldbus
system with which distributed digital programmable field controllers of the low-end
(sensor/actuator level) to mid performance range (cell level) can be networked.
PROFIBUS distinguishes between master and slave devices.

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.

SITRAIN Training for IK-PBSYS


Automation and Industrial Solutions Page 3 PROFIBUS Technology
Automation and Drives

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

Process and field communication


-- PROFIBUS DP
-- PROFIBUS PA

SITRAIN
IK-PBSYS / PROFIBUS Technology Page 4 07/2007
Siemens AG 2007 - All rights reserved

PROFIBUS variants PROFIBUS variants are distinguished by


Different transmission media and
Different data processing

The transmission media are


Electrical networks
Optical networks and
Wireless transmission with infrared

The information is processed differently


Data communication and
Process and field communication

SITRAIN Training for IK-PBSYS


Automation and Industrial Solutions Page 4 PROFIBUS Technology
Automation and Drives

Line and Tree structure

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.

These can be simply amplifiers (repeaters) if the connected components are of


the same type or they can also be converters (routers, bridges, gateways) if
components of different types are used.
The individual "branches" of the tree structure can also be connected directly
to each other.

SITRAIN Training for IK-PBSYS


Automation and Industrial Solutions Page 5 PROFIBUS Technology
Automation and Drives

Data communication

Communication service Interface

PG/OP communication over

S7 communication - S7 Protocol (Application Layer)

S5-compatible communication with SEND / RECEIVE interfaces over


- FDL Layer

Standard FMS communication over FMS interfaces

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.

S7 routing With the help of S7 routing it is possible to use programming device


communication across networks.

S7 communication S7 communication is the integral communication function which has been


optimized within the SIMATIC S7/C7. It enables PCs and workstations to be
connected. The maximum volume of useful data per task is 64 KB. S7
communication offers simple, powerful communication services and provides a
network-independent software interface for MPI, PROFIBUS and Industrial
Ethernet networks.

S5-compatible communication (SEND/RECEIVE)


The SEND/RECEIVE interface (with PROFIBUS over FDL) is optimized for
communication between SIMATIC S5 and S7 programmable controllers and
therefore facilitates migration of SIMATIC S5, SIMATIC S7 programmable
controllers and PCs over PROFIBUS and Industrial Ethernet.

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

Bus access method for PROFIBUS

Logic Token Ring

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.

Bus access control requirements


Two essential requirements have been included in the PROFIBUS protocol:

One the one hand, communication between complex, equal-priority


programmable controllers (data communication), must ensure that each
node has enough time within a defined time frame
to perform its communication tasks.

On the other hand, communication between a complex


programmable controller and the assigned simple I/O devices
(slaves) should be as simple as possible using cyclic
data exchange.

SITRAIN Training for IK-PBSYS


Automation and Industrial Solutions Page 7 PROFIBUS Technology
Automation and Drives

Token bus method


Token passing between active
nodes (1)

Master/slave between active


and passive nodes(2)

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 sequence is independent of the topological arrangement of the active


stations on the bus. A token ring is an organizational concatenation of active
nodes (masters) in which a token is always passed from one node to the next.

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.

The access method is independent of the transmission medium.


The diagram above shows the method used for active and passive stations.

SITRAIN Training for IK-PBSYS


Automation and Industrial Solutions Page 8 PROFIBUS Technology
Automation and Drives

PROFIBUS - DP (Distributed I/O)

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

PROFIBUS DP PROFIBUS DP is a standardized interface for the transmission of process input


and process output data between SIMATIC-S7/M7/C7 stations and field devices
(DP slaves). Small volumes of data are exchanged isochronously between the
DP master and DP slaves.
PROFIBUS DP is a serial bus in accordance with standard EN 50170 Vol. 2,
PROFIBUS. This PROFIBUS variant which has been optimized for fast data
exchange
is especially suitable for communication between automation systems and
distributed I/O devices on the field level.

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).

Intelligent DP slaves (I-DP slaves)


Field devices of the S7 range which preprocess signals are called "intelligent
slaves". The structure of the input and output area is defined during hardware
configuration.
A feature of the I-slaves is that the input and output area available to the DP
master does not correspond to actual physical I/O devices, but corresponds to an
input and output area which is simulated by a pre-processing CPU.

SITRAIN Training for IK-PBSYS


Automation and Industrial Solutions Page 9 PROFIBUS Technology
Automation and Drives

PROFIBUS - PA
PG

C7-626-DP S7-300

PROFIBUS - DP

DP/PA-Coupler

PROFIBUS - PA

Client-specified solutions with SIEMENS-ASICs

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.

PROFIBUS-PA devices can be easily integrated into PROFIBUS DP networks


by using segment couplers. PROFIBUS PA can be used to implement individual
line, tree and star bus structures or mixed systems. The number of nodes which
can be operated on a single bus segment depends on the power supply used,
the power consumption of the bus nodes, the bus cable and the extension of the
bus system.
A PROFIBUS-PA segment in an intrinsically-safe system can be connected to
up to 10 nodes; non-intrinsically-safe systems can handle up to 32 stations

The transmission rate used is31.25 kbits/s. To increase system availability,


redundant bus segments can be used.

A PA bus segment is connected to a PROFIBUS DP bus segment by means of


asegment coupleror DP/PA link.
.

SITRAIN Training for IK-PBSYS


Automation and Industrial Solutions Page 10 PROFIBUS Technology
Automation and Drives

Open Process Control (OPC - Interface)


Application
OPC HMI any OPC
Data OCX
Scout System Application

OPC-Server for SIMATIC NET

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 Training for IK-PBSYS


Automation and Industrial Solutions Page 11 PROFIBUS Technology
Automation and Drives

Master/slave mode for process and field


communication

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.

The typical standard PROFIBUS DP bus configuration is based on this bus


access method. An active node (DP master) exchanges data with the passive
nodes (DP slaves) in a cyclic sequence.

The access method permits stations to be added or removed during operation.

SITRAIN Training for IK-PBSYS


Automation and Industrial Solutions Page 12 PROFIBUS Technology
Automation and Drives

Example - PROFIBUS DP master modules for


S7-300 and S7-400

CPU 317-2 PN/DP CP 342-5 DP/FDL

CP 443-5 Extended CP 416-2 DP

SITRAIN
IK-PBSYS / PROFIBUS Technology Page 13 07/2007
Siemens AG 2007 - All rights reserved

Master-Modules PROFIBUS distinguish between Master- and Slave-modules. The PROFIBUS-


Master coordinates the data transfer on the bus.
The S7-300 and S7-400 systems can either be connected as masters over CPUs
with an integral PROFIBUS DP interface or over communication modules (CPs)
to the PROFIBUS. The CPUs with integral PROFIBUS DP interface permit a
distributed automation configuration with a transfer rate of up to 12 Mbaud.

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.

SITRAIN Training for IK-PBSYS


Automation and Industrial Solutions Page 13 PROFIBUS Technology
Automation and Drives

DP Master class 1 and 2

Engineering & diagnostics


Control tasks & diagnostics
i.e. PC
i.e. PLC/PC

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.

SITRAIN Training for IK-PBSYS


Automation and Industrial Solutions Page 14 PROFIBUS Technology
Automation and Drives

DP functionality DP V0, DP V1 and DP V2

DP-Master class 1 DP-Master class 2


Control jobs and Diagnostic Engineering and Diagnostic

e.g. PLC/PC Master Diagnostic e.g. PC


Read Bus Parameter
Download /Upload and so on

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.

DP V1 In parallel with the isochronous data traffic, the supplementary DP function


expansions (DP V1) permit
Non-isochrone read and write functions as well as
Alarm acknowledgement to be performed.

These extended DP functions comprise non-isochrone access to the parameters


and measured values of a slave (e.g. field devices of process automation and
intelligent HMI devices). This type of slave must be supplied with extensive
parameter data during start-up and during normal operation.

Data transferred in non-isochrone mode (e.g. parameterization data) are only


rarely changed, in comparison to the isochronous measured values, and are
transferred at lower priority in parallel with the isochronous high-speed useful
data transfer. Alarm acknowledgement by the master ensures reliable transfer of
the alarms from DP slaves.

DP V2 Die DP master functions (DP-V0) comprise the following functions


Isochrone mode and
Direct data communication between DP slaves.

SITRAIN Training for IK-PBSYS


Automation and Industrial Solutions Page 15 PROFIBUS Technology
Automation and Drives

Master and slave for modular and compact


DP slaves

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 typical standard PROFIBUS DP bus configuration is based on this bus


access method. An active node (DP master) exchanges data with the passive
nodes (DP slaves) in a cyclic sequence.

The access method permits stations to be added or removed during operation.

Master and slave configuration for modular and compact DP slaves


In this configuration, data communication takes place between the DP master and
simple DP slaves i.e. I/O modules over the DP master.

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.

The I/O addresses are assigned automatically by the configuration system.

This configuration is also called a monomaster system since a single DP master


with its corresponding DP slaves is connected to a physical PROFIBUS DP
subnet.

SITRAIN Training for IK-PBSYS


Automation and Industrial Solutions Page 16 PROFIBUS Technology
Automation and Drives

Master and slave for DP slaves with


preprocessing (I-DP slaves)

ET200X or
S7-300 with 2 interfaces

SITRAIN
IK-PBSYS / PROFIBUS Technology Page 17 07/2007
Siemens AG 2007 - All rights reserved

Master/slave configuration for DP slaves with preprocessing (intelligent DP slaves)


Automation tasks can be subdivided into subtasks which are controlled by a
higher-level automation system.
These control tasks, which can be performed independently and efficiently
execute on a CPU as preprocessing. This CPU can be implemented in the form
of an intelligent DP slave.

For configurations with intelligent DP slaves (I-slave) such as a CPU315-2DP, the


DP master does not access the I/O modules of the intelligent DP slaves, but only
the CPU operand area of the I-slaves i.e. this operand area must not be reserved
for real I/O modules in the I-slave. This assignment must be performed when the
I-slaves are configured. The DP master can be addressed within a monomaster
system so that the data exchange can still be performed according to the cyclic
master/slave principle (MS).

SITRAIN Training for IK-PBSYS


Automation and Industrial Solutions Page 17 PROFIBUS Technology
Automation and Drives

Direct data communication between slave and


I-slave, monomaster

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

Configuration for direct data communication between slave and I-slave


With this configuration input data from DP slaves can be transmitted very quickly
to intelligent DP slaves on the PROFIBUS DP subnet.
Generally, all simple DP slaves (for a certain version and higher) as well as other
intelligent DP slaves can make selected input data available that can be used for
direct data exchange between DP slaves.
These data can only be received by intelligent DP slaves such as the
CPU 315-2DP.

SITRAIN Training for IK-PBSYS


Automation and Industrial Solutions Page 18 PROFIBUS Technology
Automation and Drives

Direct data communication between slave and


I-slave, multimaster

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.

SITRAIN Training for IK-PBSYS


Automation and Industrial Solutions Page 19 PROFIBUS Technology
Automation and Drives

Direct data communication between two master


systems

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.

SITRAIN Training for IK-PBSYS


Automation and Industrial Solutions Page 20 PROFIBUS Technology
Automation and Drives

Selection of SIEMENS DP slave devices

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

SITRAIN Training for IK-PBSYS


Automation and Industrial Solutions Page 21 PROFIBUS Technology
Automation and Drives

Examples of CPs for PC


CP5511
Transmission rate 9.6 kbit/s to 12 Mbit/s

Interfaces 9-pin Sub D socket


for connection to
PROFIBUS

Module format : PCMCIA slot Type II

CP5611
Transmission rate 9.6 kbit/s to 12 Mbit/s

Interface 9-pin Sub-D socket


for connection to PROFIBUS

Module format : PCI card


Space requirements : 1 x PCI slot

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:

PROFIBUS DP master Class 1 with SOFTNET DP


PROFIBUS master Class 2 including non-isochrone DP
expansions with SOFTNET DP
PROFIBUS DP slave with SOFTNET DP slave
PG/OP communication
S7 communication with SOFTNET S7
S5-compatible communication (SEND/RECEIVE based on the FDL
interface) with SOFTNET DP or SOFTNET S7
Short PCI card; for PG/PC with PCI slot for use with STEP 7,
STEP 7-Micro/Win, SIMATIC NCM PC, ProTool, COM PROFIBUS,
SOFTNET S7 (for S7 communication), SOFTNET DP (for DP)
The OPC servers are included in the scope of supply of the communication
software

SITRAIN Training for IK-PBSYS


Automation and Industrial Solutions Page 22 PROFIBUS Technology
Automation and Drives

Software for parameterizing the PROFIBUS


system for S7

SITRAIN
IK-PBSYS / PROFIBUS Technology Page 23 07/2007
Siemens AG 2007 - All rights reserved

Function The STEP 7 programming software permits menu-prompted parameterization of


the distributed I/O devices as well as of the field devices on the PROFIBUS DP.
This mainly comprises:

Configuration of the fieldbus system


Generation of the address list for the master module
Adjustment of the transmission rate on the fieldbus
Adjustment of the failure characteristics

The STEP 7 programming software supports uniform programming and


configuring of central and distributed I/O.

The required configuration of the PROFIBUS DP fieldbus is stored on the


PROFIBUS DP master module.
Diagnostics The diagnostic function can be used to localize and remove errors easily
during operation. For this purpose, the PG is connected directly to PROFIBUS DP
or to the corresponding I/O and field device.

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 Training for IK-PBSYS


Automation and Industrial Solutions Page 23 PROFIBUS Technology
Automation and Drives

Practical simulation of DP configurations

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.

Documents in selected folder Customer support data


System Utilities: Practical simulation of HMI configurations: Mutiple SIMATIC 04.12.2003
Operator Panels on the built in interface of S7- CPU 6709733

SITRAIN Training for IK-PBSYS


Automation and Industrial Solutions Page 24 PROFIBUS Technology
Automation and Drives

Gateways from PROFIBUS to.....


Gateways

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.

SITRAIN Training for IK-PBSYS


Automation and Industrial Solutions Page 25 PROFIBUS Technology
Automation and Drives

Message characters

Universal Asynchronous Receiver/Transmitter


for start/stop characters
UART character
Bit pattern on 1 2 3 4 5 6 7 8 9 10 11
the line

Significance 20 27
of the bits (I) LSB MSB
0 b1 b2 b3 b4 b5 b6 b7 b8 P 1

Start bit (ST) Stop bit (SP)


Parity bit even

1 Startbit ST mit binr 0 - Signal


8 Informationsbit I mit binr 0 - oder 1 - Signal
1 Parittsbit GERADE P mit binr 0 - oder 1 - Signal
1 Stopbit SP mit binr 1 - Signal

LSB Least Significant Bit


MSB Most Significant Bit

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.

The UART character (UC) is a start/stop character for asynchronous


transmission.

Each UART character has 11 bits.

SITRAIN Training for IK-PBSYS


Automation and Industrial Solutions Page 26 PROFIBUS Technology
Automation and Drives

Example of a PROFIBUS message

Formats with variable information length


Format of the call message (send/request frame):

SYN SD2 LE LEr SD2 DA SA FC DATA_UNIT FCS ED

L
Format of the call message (response frame):

SD2 LE LEr SD2 DA SA FC DATA_UNIT FCS ED

SYN = Synchronization bits, min. 33 bits for idle state


SD2 = Start byte 2 (start delimiter), code: 68H
LE = Length byte, value: 4 to 249
LEr = Repeated length byte
DA = Destination address byte
SA = Source address byte
FC = Frame control byte
DATA_UNIT = Data field, fixed length (L-3), max. 246 bytes
FCS = Frame check sequence byte
ED = End delimiter byte, code: 16H
L = Information field length, variable number of bytes L = 4 to 249

SITRAIN
IK-PBSYS / PROFIBUS Technology Page 27 07/2007
Siemens AG 2007 - All rights reserved

Formats with variable information length


A PROFIBUS message with variable information length is shown above.

The "FC" byte determines whether it is a request or acknowledgement message


or an SRD or SDA message.

If the message is an acknowledgement to "Request FDL status, this byte


contains information on whether the acknowledging node is active or passive.

SITRAIN Training for IK-PBSYS


Automation and Industrial Solutions Page 27 PROFIBUS Technology

Вам также может понравиться