technical basics The PROFIBUS protocols Wiring

Slides:



Advertisements
Similar presentations
1 A&D CD PD /March 2001/ Profibus_en Internet: Intranet: Power Distribution.
Advertisements

More on LANs Module C Copyright 2001 Prentice Hall.
Module Ethernet Technology Module Ethernet Technology.
DeviceNet 2400, 2500, 26/2700.
APPLICATION LAYER. DeviceNet Interface Notes DeviceNet Protocol supports Master/Slave, Multiple Master and Peer to Peer Communications SDN Scanner.
Ethernet “dominant” LAN technology: cheap $20 for 100Mbs!
University of Calgary – CPSC 441.  Ethernet, defined under IEEE 802.3, is one of today's most widely used data communications standards  It finds its.
Token Ring/IEEE Risanuri Hidayat.
Ethernet Risanuri Hidayat. Ethernet The term Ethernet refers to the family of local-area network (LAN) products covered by the IEEE standard. Three.
Moeller GmbH Seite - 1 PROFIBUS-DP-Slave Integration of XC100,200 in PROFIBUS fieldbus XIOC-NET-DP-S.
Modbus Slave & Modbus Master in S7
© N. Ganesan, Ph.D., All rights reserved. Chapter ISO-OSI Reference Model and IEEE Standards.
Understanding IPv6 Slide: 1 Appendix A Link-Layer Support for IPv6.
Microsoft Windows Server 2003 TCP/IP Protocols and Services Technical Reference Slide: 1 Lesson 1 Local Area Network (LAN) Technologies.
Supervisory Control & Data Acquisition Communication Technology.
CompTIA Network+ Chapter 2
Active Stations PC PLC PROFIBUS Passive Stations (Field Devices)
“Internetworking” Bridges –Transparent bridges –Source Routing - Transparent Bridges Routers (Network Layer) Brouters
1 K. Salah Module 4.0: Data Link Layer The Logical Link Control (LLC) sublayer –Framing –Flow Control –Error Control The Media Access Control (MAC) sublayer.
Token Ring and FDDI.
Module 6 Chapter 5. Ethernet Ethernet is now the dominant LAN technology in the world. Ethernet is not one technology but a family of LAN technologies.
Data/Link Layer Issues Protocol & Services Topology Error Detection & Recovery.
Setup Guide - Profibus communication AC141x with Step 7 V5.5 English
PROFIBUS "Ready for anything!".
Notes: For the installation of a PB network, you can use shielded twisted pair copper cable, glass or plastic FO and infrared components. And you can mix.
Slide 1 / 20 Industrial Automation - Custumer View - Services PhW - Modbus_en 06/ 2002 Modbus training.
INTRODUCTION Chapter 1.
SERIAL BUS COMMUNICATION PROTOCOLS
Agenda: - Overview of PDM - Example of how to connect to a LR200
0 RS-485 MODBUS COMM. D. Digital Trip Relay 6. IO (Input-Output) Port Profibus -DP COMM. Digital Trip Relay - P and S type are equipped with RS- 485 communication.
PROFIBUS PA Date 09/19/00, Page 1 PROFIBUS PA s  PROFIBUS PA = PROFIBUS for Process Automation PA is based on the DP and DP Extended protocol DP Master.
Diagnostic & Troubleshooting Date 06/09/00, Page 1 Diagnostic & Troubleshooting s.
IEEE Standards, FDDI, Collision Free Protocols
Technology Date 10/17/00, Page 1 Technology s PROFIBUS Technology Chips - Modules - Development Kits.
Ethernet, MAC podvrstva
PROFIBUS Details Date 06/22/00, Page 1 PROFIBUS Details s  PROFIBUS DP Services Master Class 2 Field Device (Slave)  Controls the Field Devices  Parameterization.
Schutzvermerk nach DIN 34 beachten XC200 Hardware Overview.
Jiří Novák, CTU FEE in Prague, Dept. of Measurement Industrial Distributed Systems Technology overview Technology overview Important features Important.
DeviceNet Solution December, 2003
資 管 Lee Appendix A1 Link-Layer Support for IPv6. 資 管 Lee Lesson Objectives Basic structure of IPv6 packets LAN media WAN media IPv6 over IPv4.
1 Layer 2: Concepts Honolulu Community College Cisco Academy Training Center Semester 1 Version
PROFIBUS Bus Monitor Monitor Features
Ethernet Term Paper Introduced by: Almarshood, Yosef Bahaitham, Ahmed Alrashudi, Ahmed.
Schutzvermerk nach DIN 34 beachten Profibus DP – CAN comparison.
Jaringan Komputer Dasar Data Link Layer (2) Aurelio Rahmadian.
 COMSOFT GmbH | NetTEST II | July 2005 | Page 1 NetTEST II PROFIBUS Analysis Tool Professional Test Tool for PROFIBUS-DP-Networks.
Ethernet Encapsulation RFC 894. Ethernet The term Ethernet generally refers to a standard published in 1982 by Digital Equipment Corp., Intel Corp., and.
Oslo University College Introduction to What is a fieldbus ? What are the fieldbus benefits? Fieldbuses and the IEC61158 standard PROFIBUS - overview Profiles.
Oslo University College PROFIBUS Example SIEMENS S300 PLC DO DI Proximity Sensor PROFIBUS DP Binary Count.
Section 3 - Slide 1/19 P&T - GPS - Formation PhW - CANopen_lev1_en - 01/2004 History CANopen and the ISO model Physical layer Link layer Application layer.
1 CS4550: Computer Networks II Review Data Link Layer.
Section 6 - Slide 1 / 27 P&T - GPS - Training PhW - 06_TECH_Modbus_en 06/ 2004 Modbus training Part 1 :Reference documents - WEB sites Part 2 :Definitions.
Additional Services Master Class 2 Master Class 1 Initiate
Profibus. PLC PROFIBUS active stations, master devices DriveActuatorTransmitter passive stations, slave devices Sensor Drive logical token ring between.
Rehab AlFallaj.  Standards determine:  Techniques used in the networks.  Its protocols.  Network specifications and features.
Point-to-Point Protocol
 PROFIBUS (Process Field Bus) is a standard for fieldbus communication  Based on a token bus/floating master system.  Three Types 1.FMS ( Field bus.
Chapter Objectives After completing this chapter you will be able to: Describe in detail the following Local Area Network (LAN) technologies: Ethernet.
Networking A method of exchanging data between two physically distant nodes. Two devices are said to be networked when a process in one device is able.
Token Passing: IEEE802.5 standard  4 Mbps  maximum token holding time: 10 ms, limiting packet length  packet (token, data) format:
1 Copyright by PROFIBUS Center Nederland
CAN Controller Area Network 29BIT ID
PROFIDrive PROFISafe.
Spanning Tree Algorithm
CPEG512 Advanced Computer Networks
CT1303 LAN Rehab AlFallaj.
Korbin Blunck November 19,2012
Introduction to Fieldbus
Protocol layering and data
Protocol layering and data
Presentation transcript:

technical basics The PROFIBUS protocols Wiring Installation, DP- and PA-nodes Data representation on the bus Exchange of data, master / slave Cycle time, DP Mono-master-system Configuration GSD : Electronic data sheet Part 3 – PROFIBUS , Technical basics Page Subject The PROFIBUS protocols Wiring Pin assignement Termination, RS485 Installation, DP-nodes Installation, PA-nodes The smallest data package Data representation IEC – 6 1158-2 Stations, repeaters and segments Token ring Exchange of data, master/slave The 3 most common PROFIBUS telegrams Datatransmission at 1.5 MBaud Cycle time, DP Mono-master-system Configuration GSD-file (WINblock station) March 2003, Veslemøy Tyssø

The PROFIBUS protocols FMS DP PA User Layer (3)-(6) Application (7) Data Link (2) Physical (1) Application Profiles DP-Functions Fieldbus Message Specification (FMS) The principles for the FMS, DP and PA protocols are shown above. FMS and DP use the same transmission technology. The physical layer for these two protocols follow the standard EN 50 170. The PA standard for this layer is IEC 61158-2. The next layer, the link layer, is equally described in all three protocols. At user level, DP and PA are equal and FMS is different. not used IEC Interface* Fieldbus Data Link (FDL) RS-485 / Fiberoptikk IEC 61158-2 EN 50 170 DIN E 19245 partl 4 PROFIBUS guidelines March 2003, Veslemøy Tyssø

Wiring 2 wires shield The PROFIBUS-cable must have special characteristics conserning surge impedance, cable capacitance, core cross section, loop resistance and signal attenuation. It must be a twisted pair type cable with shield (braided and/or foil). A standard PROFIBUS cable has one green and one red wire. Red shall be connected to + or B and green to – or A at the PROFIBUS stations – see the next pages. March 2003, Veslemøy Tyssø

Pin assignement Standard 9 pin D-sub contacts are used with the pin assignments as shown above. Of the 9 pins only 4 are in use : 3 and 8 for signal + and - , 5 for grounding and 6 for power to the termination – se the next page. March 2003, Veslemøy Tyssø

Termination, RS485 Station 1 Station 2 Data line B Data line A Shield VP (6) Station 1 Station 2 390  Data line B RxD/TxD-P (3) DGND (5) VP (6) RxD/TxD-N (8) (3) RxD/TxD-P (5) DGND (6) VP (8) RxD/TxD-N RxD/TxD-P (3) 220  Data line A RxD/TxD-N (8) Shield The PROFIBUS cable must have a termination in each end of the bus. If this is not done, reflections will cause errors and the communication stops. The termination is done by connecting the two wires in the cable to a voltage as shown in the above picture. The resistance network lies usually inside the PROFIBUS contact and can be connected/disconnected to the VP and DGND by a switch on the contact. There are also some contacts that have no termination, and others with fixed termination. 390  DGND (5) March 2003, Veslemøy Tyssø

Installation, DP-nodes First station Last station Bus termination Bus termination VP VP 390  390  Data line B B B 220  220  Data line A A A 390  390  DGND A DP network should be wired as a bus with a termination in each end as shown above. The PROFIBUS cable goes typically from station to station. In the contacts on each station there are therefore always a double set of connection points A and B. DGND A B A B A B A B Station 2 Station 3 March 2003, Veslemøy Tyssø

Installation, PA-nodes Bus termination Bus termination Power Supply 100 100 1 F 1 F A PA network must have power supply. The mean value of the current is 10 mA – from which each PA station can be powered. There will be an upper limit of the number of stations per power supply – depending on power demands of the PA stations. The PA network must be terminated as shown above. …… Max 32 PA-stations March 2003, Veslemøy Tyssø

The smallest data package The OCTET 1. octet 2. octet Idle LSB MSB LSB PROFIBUS DP uses high and low voltage to represent each bit . When nothing is transmitted, the voltage is high. The 8 bits of data are packed in packages of 11 bits as shown above : The first bit is a low start bit, then comes the 8 data bits. The last bit is a high stop bit. After the data bits and before the stop bit, the package has a parity bit. This bit is set to 1 (high) or 0 (low) depending on the number of ones in the data word – and so that there always are an odd number of ones among the 11 bits of the package. The station that receives the package can then check for the number of ones and in that way check if errors have occured during transmission. So – already in the physical layer – there is an overhead of 3 bits for every 8 databits. The 11 bits that carries one byte (8 bits) are called an OCTET. The physical code used in DP and FMS, is called NRZ : Non Return to Zero Bit sequense: Start 1 2 3 4 5 6 7 8 Parity Stop Start March 2003, Veslemøy Tyssø

Data representation IEC – 6 1158-2 bit 2 1 bit 4 1 bit 6 1 I0+9mA I0 PROFIBUS PA uses another bit representation than PROFIBUS DP. The picture above shows how the data is modulated on top of the 10 mA current – giving a signal that changes between about 19 mA and 1 mA. Notice the bit representation which is called Manchester Code In this code it is always a shift for each data bit ( this differs from the NRZ code used in DP, see previous page). A shift from high to low means 1 and a shift from low to high means 0. I0-9mA bit 1 bit 3 bit 5 t March 2003, Veslemøy Tyssø

Stations, repeaters and segments Termination Termination Repeater Station 1 2 3 30 31 Termination Repeater Each PROFIBUS station is given a unique address which should be a number between 0 and 126. This means that it can never be more than 127 stations in a network. If the cables are long or the number of stations exceeds 32, it is a need for repeaters. Each segment has to be terminated in each end – see the picture above. 62 61 33 32 March 2003, Veslemøy Tyssø

Token ring PROFIBUS Logical token ring PLC PC PLC Aktive stations, MASTERS PLC PC PLC PROFIBUS PROFIBUS gives a deterministic network. This means that each station is guaranteed the access to the bus within a fixed time. This determinisme is taken care of by a token ring system – administrated from the data link level. The token passes between the masters . The station that holds the token can control the bus. The master communicates with all its slaves during the period it has the token. The master either sends data to the slave or asks the slave for data. A slave can not send any data without a request from its master. Passive stations , SLAVES March 2003, Veslemøy Tyssø

Exchange of data, master/slave DP-Slave Request Slave  Master DP-Master Data DP-Slave Data The above picture shows the principle of data exchange between master and slave. The master gets the data telegram from a slave after having sent a request telegram. When the master sends a data telegram to the slave, the slave must respond with a status telegram. Master  Slave DP-Master Status March 2003, Veslemøy Tyssø

The 3 most common PROFIBUS telegrams SDx = Start Delimiter x DA = Destination Address SA = Source Address FC = Function Code FCS = Frame Check Sequence ED = End Delimiter LE = Length LEr = Repeated Length DSAP = Destination Service Access Point SSAP = Source Service Access Point DU = Data Unit 1.) Token Passing SD4 DA SA 2.) FDL Status Request Telegram SD1 DA SA FC FCS ED In the picture above each little box is one OCTET – except for the DU, the Data Unit, which can be one or more octets depending on the length of data. The Token Passing telegram is three octets = 33 bits. The FDL Status Request telegram is 6 octets = 66 bits. The Data Telegram has a head of 9 octets = 99 bits and a tale of 2 octets = 22 bits. 3.) Data Telegram SD2 LE LEr SD2 DA SA FC DSAP SSAP DU FCS ED Head Tale March 2003, Veslemøy Tyssø

Data transmission at 1.5 MBaud Tbit = transmission time, 1 bit = 0.6667s OCTET : 11 Tbit = 7.3 s Token Passing : 33 Tbit = 22 s Status / Request : 66 Tbit = 44 s Data : Head (9 octets) + Tale (2 octets) + Data (n octets) 2 bytes of data : 13 x 11 Tbit = 143 Tbit = 95.3 s The example above shows how long time it takes to send 2 bytes of data, either from master to slave, or from slave to master. When calculating transmission times, it is common to use the term Tbit : 1 Tbit = the transmission time for 1 bit. 9.6 kBit/sek  1 Tbit = 0.1 ms 19.2 kBit/sek  1 Tbit = 0.05 ms . 12 Mbit/sek  1 Tbit = 0.08s In addition to the actual time for transmission, we must also calculate the time spent at the master side (Idle time for master) and at the slave side ( station delay time). In this way we can calculate the transmission time for all transmissions to/from all the slaves. Then we can calculate the total cycle time, taking into account an extra 10 to 20% for retransmitting and diagnostics. ” Idle time ” for master : typical 75 Tbit = 50 s ” Station delay time ” for slave : typical 11 Tbit = 7.3 s Total, 2 bytes of data : (33+66+143+75+11)Tbit = 0.219 ms March 2003, Veslemøy Tyssø

Cycle time, DP Mono-master-system Bus cycle time [ms] Each Slave : 2 bytes in / 2 bytes out 500 kBit/s 1.5 MBit/s In some installations it is important to decide an exact cycle time – which can be calculated as shown in the previous page. The cycle time will depend on the baudrate and the number of slaves, see picture above. 12 MBit/s Number of Slaves March 2003, Veslemøy Tyssø

PROFIBUS Configuration Software System Configuration Electronic Data Sheet (GSD - files) GSD PLC PLC The configuration of the PROFIBUS network is done in the software for the master. So – it looks a bit different for the Moeller PLC than for the Siemens PLC. But the principle is the same. Each PROFIBUS station must be accompanied by a GSD or GSE file which is an electronic data sheet. (GSD is German and stands for Geräte Stamme Datei). GSD-files can be downloaded from the PROFIBUS web site (www.profibus.com). The next three pages show the GSD-file for a WINblock station. The GSD-files must be installed in the hardware catalogue or data base of the configuration software. The network is configured by connecting to the PROFIBUS network the actual stations which must be present in the catalogue. Each station is referred to by its address. The baudrate, cycle time and other bus parameters are also set during configuration. The software gives default values of the bus parameters. PROFIBUS March 2003, Veslemøy Tyssø

GSD-file (WINblock station) ; WIWB0250.GSD ; Geraetestammdatei fuer PROFIBUS DP WINbloc 8 DI P ; Art.No. 827516 ; Weidmueller GmbH + Co, Postfach 2807, 33058Paderborn ; Serviceline 05252 960-555, Fax 05252 960116 ; Mailbox GSD, Siemens Typdateien: 05231 141555 ; Name:Gast kein Password ; ; Version: 1.6 Stand: 10.6.97 Km ;================================ ; #Profibus_DP GSD_Revision = 1 Vendor_Name = "Weidmueller Interface" Model_Name = "WINbloc 8DI" Revision = "V1.6" Ident_Number = 0x250

GSD-file cont. Protocol_Ident = 0 Station_Type = 0 FMS_supp = 0 Hardware_Release = "Ver.4" Software_Release = "00" ; 9.6_supp = 1 19.2_supp = 1 O.s.v 12M_supp = 1 MaxTsdr_9.6 = 60 MaxTsdr_19.2 = 60 MaxTsdr_12M = 800 Redundancy = 0 Repeater_Ctrl_Sig = 2 24V_Pins = 0 Implementation_Type = "LSPM2" Bitmap_Device = "winblocn" Bitmap_Diag = "winblocs" GSD-file cont.

GSD-file cont. ; Slavespezifische Werte ; OrderNumber = "827516" Periphery = "WINbloc" Freeze_Mode_supp = 1 Sync_Mode_supp = 1 Auto_Baud_supp = 1 Set_Slave_Add_supp = 0 Min_Slave_Intervall = 1 Modular_Station = 0 Modul_Offset = 0 Fail_Safe = 0 Slave_Family = 3@TdF@WINbloc Max_Diag_Data_Len = 13 User_Prm_Data_Len = 0x05 User_Prm_Data = 0x00,0x00,0x00,0x00,0x00 Module = "DP-Kompaktgeraet 8 I" 0x00,0x10 EndModule