Automation and Drives
Technology of the PROFIBUS system
Engineering Engineering & diagnostics Control tasks & diagnostics i.e. PC
i.e. PLC/PC
Slave i.e. ET200
SITRAIN IK-PBSYS / PROFIBUS Technology
Page 1
Co n t en t s
Pag e
PROFIB PROFIBUS, US, Introd Introduct uction ion
...... ......... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...
Charac Character terist istics ics of PROFI PROFIBUS BUS PROFIB PROFIBUS US varian variants ts
2
...... ......... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... .....
3
...... ......... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ..... ..... ...... ...... ..... ..
4
Line Line and Tree Tree struct structure ure Data Data commun communica icatio tion n
07/2007 © Siemens AG 2007 - All rights reserved reserved
...... ......... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ..... ..
5
...... ......... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ..... ..... ...... ...... .....
6
Bus access access method method for PROFIB PROFIBUS US
...... ......... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ..... ..
7
........... ................ .......... .......... ........... ........... .......... .......... ........... ............ ............ ........... .......... ........... ........... .......... .......... ........... ............ .......... .......... ........... .......
8
PROFIB PROFIBUS US - DP (Distr (Distribu ibuted ted I/O) I/O) ...... ......... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ..... ..... ... PROFIBUS PROFIBUS - PA ........... ................. ........... ........... ........... .......... ........... ............ ........... .......... .......... .......... ........... ........... .......... .......... ........... ............ ............ ........... ......... ......... ......... ....
9 10
Open Process Process Control Control (OPC - Interface) Interface) ........... ................. ........... .......... .......... .......... ........... ........... .......... .......... .......... .......... .......... ........... ............ ........... .......
11
Master/slav Master/slave e mode mode for for process process and field communica communication tion ........... ................ ........... ............ ........... .......... ........... ........... .......... .......... .......... ....... ..
12
Example Example - PROFIBUS PROFIBUS DP master master modules modules for S7-300 S7-300 and and S7-400 S7-400 .......... ............... ........... ........... .......... ........... ........... .......... ........ ...
13
DP – Master Master class 1 and 2 ............ .................. ............ ........... .......... .......... .......... .......... ........... ........... .......... ........... .......... .......... ........... .......... .......... ........... .......... ......... ..... DP functi functionali onality ty DP DP V0, V0, DP V1 and and DP DP V2 .......... ............... .......... ........... ........... .......... ........... ........... ........... ........... .......... .......... ........... ............ ........... ....... ..
14 15
Master Master and slave slave for for modular modular and and compact compact DP DP slaves slaves ........... ................. ............ ............ ............ ............ .......... .......... ........... .......... .......... ......... ....
16
Master Master and slave slave for for DP slaves slaves with preproc preprocessing essing (I-DP slaves) slaves) .......... ................ ........... .......... .......... .......... .......... ........... ........... .......
17
Direct data data communi communicatio cation n between between slave slave and I-slave, I-slave, monomas monomaster ter ........... ................ ........... ............ .......... .......... ............ ........... .....
18
Direct data commu communicat nication ion between between slave and I-slave, I-slave, multim multimaster aster ........... ................ ........... ........... .......... ........... ........... .......... ....... ..
19
Direct data communica communication tion between between two two master master systems systems ........... ................. ........... .......... .......... .......... .......... .......... .......... ........... ........... ....... ..
20
Selection Selection of SIEME SIEMENS NS DP slave devices devices ........... ................ ........... ............ ........... .......... .......... ........... ........... .......... ........... ........... ........... ........... ........... ......... ...
21
Examples Examples of CPs for PC
........... ................ .......... ........... ........... .......... ........... ............ ........... .......... ........... ............ ............ ........... .......... .......... ........... ........... ......... ......... ........ ...
22
Software Software for parameterizi parameterizing ng the PROFIBUS PROFIBUS system system for for S7 ........... ................ .......... ........... ........... .......... ........... ............ ........... .......... ......... ....
23
Practical Practical simulation simulation of DP DP configu configuratio rations ns .......... ............... ........... ........... .......... .......... ........... ........... ........... ............ ............ ........... ........... ........... .......... ......... ....
24
Gateways Gateways from PROFIBUS PROFIBUS to..... to.....
........... ................ ........... ............ ........... .......... .......... ........... ............ ........... .......... .......... ........... ........... .......... .......... ........... .......... ....
25
........... ................. ........... .......... ........... ........... .......... ........... ........... .......... .......... ........... ............ ............ ........... .......... .......... .......... ........... .......... ......... ......... ....
26
Token bus method method
Message Message characters characters
Example Example of a PROFIBUS PROFIBUS message message SITRAIN Trainin Training g for Automation and Industrial Solutions
........... ................ .......... .......... ........... ........... .......... .......... ........... ............ ........... .......... ........... ............ ............ ........... .......... ....... Page 1
27
IK-PBSYS PROFIBUS Technology
Automation and Drives
PROFIBUS, Introduction
SITRAIN IK-PBSYS / PROFIBUS Technology
Introduction
Page 2
07/2007 © Siemens AG 2007 - All rights reserved reserved
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 engineering comprises: • Specification of the standards standards for the physical characteristics of the bus and the access method • Specificat Specification ion of the application application protocol protocol and the user interface interface Process Process or f ield communication : • PROFIBUS PROFIBUS DP for fast, fast, cyclic cyclic data exchange exchange with field field devices • PROFIBUS PROFIBUS PA for for applications applications in process process automati automation on for intrinsically safe systems Data Data commun ication • PROFIBUS FMS for data communication between programmable programmable controllers controllers and field devices
SITRAIN Trainin Training g for Automation and Industrial Solutions
Page 2
IK-PBSYS PROFIBUS Technology
Automation and Drives
Characteristics of PROFIBUS Standard Topology • Electrical network • Optical network • Wireless coupling Transmission medium • Electrical network • Optical network • Wireless coupling Networ k size • Electrical network • Optical network • Wireless coupling Transmission rate Number of nodes Ac ces s m eth od Protocols
PROFIBUS to IEC 61 158/ EN 50 170 Volume 2 Bus, tree Bus, tree, ring Point-to-point; point-to-multipoint Shielded 2-wire cable Fiber-optic cable (glass, PCF and plastic) Infrared max. 9.6 km with repeaters max. 90 km max. 15 m 9.6 kbit/s to 12 Mbit/s (adjustable) incl. 31.25 Kbit/s for PROFIBUS PA max. 127, numbers 0 to 126 Token passing with lower-level master/slave 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 progr ammable 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 per mitted 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 tr ansmission 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 Automation and Industrial Solutions
Page 3
IK-PBSYS PROFIBUS Technology
Automation and Drives
PROFIBUS variants PROFIBUS
Information is processed differently
Different transmission media
• Electrical transmissio n • Optical transmission • Wireless transmissi on with infrared
• Data comm unication -- PG/OP communication -- S7 routing -- S7 communication -- S5-comp atible comm unicati on (SEND/RECEIVE) -- 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 Automation and Industrial Solutions
Page 4
IK-PBSYS PROFIBUS Technology
Automation and Drives
Line and Tree structure
SITRAIN IK-PBSYS / PROFIBUS Technology
Line
Page 5
07/2007 © Siemens AG 2007 - All rights reserved
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 s tructure can also be connected directly to each other.
SITRAIN Training for Automation and Industrial Solutions
Page 5
IK-PBSYS PROFIBUS Technology
Automation and Drives
Data communication Communication service
Interface
• PG/OP communication
over
• S7 communication
- S7 Protocol (Application Layer)
• S5-compatible comm unication
wit h SEND / RECEIVE interfaces o ver - FDL – Layer
• Standard FMS communication
over FMS interfaces
• DP operation
alternative - DP- Master or - DP- Slave (wit h S7-300)
SITRAIN IK-PBSYS / PROFIBUS Technology
Page 6
07/2007 © Siemens AG 2007 - All rights reserved
Data c ommunication Data 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-compatib le comm unic ation (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 commun ication Standard communication uses standardized protocols for data communication ( PROFIBUS FMS Fieldbus Message Specification and OPC server). SITRAIN Training for Automation and Industrial Solutions
Page 6
IK-PBSYS PROFIBUS Technology
Automation and Drives
Bus access method for PROFIBUS Logic Token Ring
Ac ti ve Nodes
Passive Nodes
SITRAIN IK-PBSYS / PROFIBUS Technology
Data Link Layer
Page 7
07/2007 © Siemens AG 2007 - All rights reserved
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 au thorization at any one time. Bus access contro l 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 Automation and Industrial Solutions
Page 7
IK-PBSYS 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
Token bus method
Page 8
07/2007 © Siemens AG 2007 - All rights reserved
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 ho lding 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 Automation and Industrial Solutions
Page 8
IK-PBSYS PROFIBUS Technology
Automation and Drives
PROFIBUS - DP (Distributed I/O) PG S7-300
PROFIBUS - CP
DP - Master PROFIBUS - DP
ET 200
DP - Slave
ET 200
DP - Slave
SITRAIN IK-PBSYS / PROFIBUS Technology
PROFIBUS DP
OP
DP – Slave third - party
Page 9
07/2007 © Siemens AG 2007 - All rights reserved
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 sl aves 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).
Intellig ent 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 Automation and Industrial Solutions
Page 9
IK-PBSYS PROFIBUS Technology
Automation and Drives
PROFIBUS - PA PG S7-300
C7-626-DP
PROFIBUS - DP
DP/PA-Coupler PROFIBUS - PA
Client-specified solutions with SIEMENS-ASICs SITRAIN IK-PBSYS / PROFIBUS Technology
PROFIBUS-PA
Page 10
07/2007 © Siemens AG 2007 - All rights reserved
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 intrinsic ally-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 coupler or DP/PA lin k.
.
SITRAIN Training for Automation and Industrial Solutions
Page 10
IK-PBSYS PROFIBUS Technology
Automation and Drives
Open Process Control (OPC - Interface) Application OPC Scout
HMI System
any OPC Data OCX Application
OPC-Server for SIMATIC NET FMS Protocol
DP Protocol
S7 Protocol
Send/Receive Protocol
PROFINET
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 int erface
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 p rotocols and interfaces for accessing these data.
SITRAIN Training for Automation and Industrial Solutions
Page 11
IK-PBSYS 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 metho d 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 r eceive messages from the slaves. The typical standard PROFIBUS DP bus configuration is based on this bus access method. An active node (DP master) e xchanges 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 Automation and Industrial Solutions
Page 12
IK-PBSYS 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
SITRAIN IK-PBSYS / PROFIBUS Technology
Master-Modules
Page 13
CP 416-2 DP
07/2007 © Siemens AG 2007 - All rights reserved
PROFIBUS distinguish between Master- and Slave-modules. The PROFIBUSMaster 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 distribu ted programming: The automation system is programmed using STEP 7 regardless of the system configuration. In this way, the prog ram can be generated independent of the hardware configuration.
SITRAIN Training for Automation and Industrial Solutions
Page 13
IK-PBSYS 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, configurin g 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 Automation and Industrial Solutions
Page 14
IK-PBSYS 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 Master Diagnostic Read Bus Parameter Download /Upload and
e.g. PLC/PC
e.g. PC so on
Configuration Reading input data Reading output data Slave Diagnostic Reading Configuration Address changes
Parameter assignment Isochronous reading
of input data Writing to outputs, Reading diagnostic data
e.g. ET200
Read/write
Non-isochrone
read and write functions as well as Alarm acknowledgement to be performed
data record
(acyclic)
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 Automation and Industrial Solutions
Page 15
IK-PBSYS 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 metho d 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 r eceive messages from the slaves. The typical standard PROFIBUS DP bus configuration is based on this bus access method. An active node (DP master) e xchanges 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 Automation and Industrial Solutions
Page 16
IK-PBSYS PROFIBUS Technology
Automation and Drives
Master and slave for DP slaves with preprocessing (I-DP slaves)
ET200X or S7-300 with 2 in terfaces
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 Automation and Industrial Solutions
Page 17
IK-PBSYS PROFIBUS Technology
Automation and Drives
Direct data communication between slave and I-slave, monomaster
direct data-exchange
ET200X or S7-300 with 2 in terfaces
SITRAIN IK-PBSYS / PROFIBUS Technology
Page 18
07/2007 © Siemens AG 2007 - All rights reserved
Configuration f or di rect 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 Automation and Industrial Solutions
Page 18
IK-PBSYS 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 interf aces
direct data-exchange
SITRAIN IK-PBSYS / PROFIBUS Technology
Page 19
07/2007 © Siemens AG 2007 - All rights reserved
Configuration f or data communi cation between a slave and an I-slave with tw o 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 Automation and Industrial Solutions
Page 19
IK-PBSYS PROFIBUS Technology
Automation and Drives
Direct data communication between two master systems
direct data-exchange
ET200X or S7-300 with 2 i nterfaces
SITRAIN IK-PBSYS / PROFIBUS Technology
Page 20
07/2007 © Siemens AG 2007 - All rights reserved
Direct data commu nicati on betw een an I-slave/DP slave and two master sy stems 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 Automation and Industrial Solutions
Page 20
IK-PBSYS PROFIBUS Technology
Automation and Drives
Selection of SIEMENS DP slave devices
isolating transformer
Block I/O
Multifunctional, intelligent I/O Modules Production Engineering
Protection IP65/67
Process Technology Protection IP20
SITRAIN IK-PBSYS / PROFIBUS Technology
SITRAIN Training for Automation and Industrial Solutions
Page 21
Page 21
07/2007 © Siemens AG 2007 - All rights reserved
IK-PBSYS PROFIBUS Technology
Automation and Drives
Examples of CPs for PC CP5511 Transmission rate 9.6 kbit/s to 12 Mbit/s
CP5611 Transmission rate
Interface
Interfaces
9-pin Sub D socket for connection to PROFIBUS
Module format :
PCMCIA slot Type II
9.6 kbit/s to 12 Mbit/s 9-pin Sub-D socket for connection to PROFIBUS
Module format : PCI card Space requirements : 1 x PCI slot SITRAIN IK-PBSYS / PROFIBUS Technology
CP 5511
Page 22
07/2007 © Siemens AG 2007 - All rights reserved
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 Automation and Industrial Solutions
Page 22
IK-PBSYS PROFIBUS Technology
Automation and Drives
Software for parameterizing the PROFIBUS system for S7
SITRAIN IK-PBSYS / PROFIBUS Technology
Function
Page 23
07/2007 © Siemens AG 2007 - All rights reserved
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 Automation and Industrial Solutions
Page 23
IK-PBSYS 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 perfor med 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 Operator Panels on the built in interface of S7- CPU SITRAIN Training for Automation and Industrial Solutions
Page 24
04.12.2003 6709733
IK-PBSYS PROFIBUS Technology
Automation and Drives
Gateways from PROFIBUS to..... Gateways
SITRAIN IK-PBSYS / PROFIBUS Technology
Overview
Page 25
07/2007 © Siemens AG 2007 - All rights reserved
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 Automation and Industrial Solutions
Page 25
IK-PBSYS PROFIBUS Technology
Automation and Drives
Message characters Universal Asynchronous Receiver/Transmitter for start/stop characters
UART character Bit pattern on the line
1
Significance of the bits (I)
2
3
4
5
6
7
8
20 LSB 0
b1
9
10
11
P
1
27 MSB b2
b3
b4
b5
b6
b7
b8
Start bit (ST)
Stop bit (SP) Parity bit even
1
Startbit
ST
mit binär „0“ - Signal
8
Informationsbit
I
mit binär „0“ - oder „1“ - Signal
1
Paritätsbit GERADE
P
mit binär „0“ - oder „1“ - Signal
1
Stopbit
SP
mit binär „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 Automation and Industrial Solutions
Page 26
IK-PBSYS PROFIBUS Technology
Automation and Drives
Example of a PROFIBUS message Formats w ith variable information length Format of t he call message (send/request fr ame):
SYN
SD2
LE
LEr
SD2
DA
SA
FC
DATA_UNIT FCS
ED
L Format of t he call message (response frame):
SD2
LE
LEr
SD2
DA
SA
FC
DATA_UNIT FCS
ED
L SYN SD2 LE LEr DA SA FC DATA_UNIT FCS ED L
= = = = = = = = = = =
Synchronization bits, min. 33 bits for idle state Start byte 2 (start delimiter), code: 68H Length byte, value: 4 to 249 Repeated length byte Destination address byte Source address byte Frame control byte Data field, fixed length (L-3), max. 246 bytes Frame check sequence byte End delimiter byte, code: 16H 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 w ith v ariable 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 Automation and Industrial Solutions
Page 27
IK-PBSYS PROFIBUS Technology