Upload
vuongtuyen
View
235
Download
5
Embed Size (px)
Citation preview
technicaltechnical basics
The PROFIBUS protocolspWiring Installation, DP- and PA-nodesInstallation, DP and PA nodes Data representation on the busExchange of data, master / slaveExchange of data, master / slaveCycle time, DP Mono-master-systemConfigurationConfigurationGSD : Electronic data sheet
Oslo University College
The PROFIBUS protocolsThe PROFIBUS protocols
DP PAFMS
ayer
DP PAFMS
User
La
DP-Functions
Application Profiles
Application(7)
Fieldbus MessageSpecification (FMS)
DP-Functions
(3)-(6)
Data Link(2)
not used
IEC Interface*Fieldbus Data Link (FDL)( )
Physical(1) IEC 61158-2
PROFIBUS guidelines
RS-485 / Fiberoptikk
EN 50 170 DIN E 19245 partl 4
Oslo University College
WiringWiring
2 wiresshield
Oslo University College
Pin assignementPin assignement
Pin no Signal DescriptionPin no Signal Description3 RxD/TxD-P Data line B + (red wire)
5 DGND Signal Ground
6 VP Power for termination (P5V)
8 RxD/TxD-N Data line A - (green wire)
Oslo University College
Termination RS485Termination, RS485
Station 1 Station 2
390 Ω
VP (6)
RxD/TxD-P (3)
DGND (5)
(3) RxD/TxD-P
(5) DGND
390 ΩData line B
RxD/TxD-P (3)
( )
VP (6)
RxD/TxD-N (8)
( )
(6) VP
(8) RxD/TxD-NData line A
220 Ω
RxD/TxD-N (8)
Shield
DGND (5)
390 Ω
Oslo University College
Installation DP-nodesInstallation, DP-nodes
VP
First stationBus termination
Last stationBus termination
VPVP
B390 Ω
VP
BData line B
390 Ω
A
220 Ω
390 ΩA
Data line A220 Ω
390 Ω
DGND DGND
B BA A
Station 2 Station 3
BA BA
Oslo University College
Station 2 Station 3
Installation PA-nodesInstallation, PA-nodes
Bus BusBus termination
Bus termination
Power Supply
100Ω 100Ω
Supply1 μF1 μF
Max 32 ……PA-stations
Oslo University College
Th ll t d t kThe smallest data package
The OCTET
2Idle
1. octet
LSB MSB
2. octet
LSB
Start 1 2 3 4 5 6 7 8 Parity Stop StartBit sequense:
LSB MSB LSB
Oslo University College
D t t tiData representationIEC – 6 1158-2
1 0 1 01 1
I0+9mA
I0
I0-9mA
tbit 1 bit 2 bit 4 bit 6bit 3 bit 5
Oslo University College
Stations repeaters andStations, repeaters and segments
Termination
Termination
RepeaterStation 1
2 3 30 311
Termination
Repeater
62 61 33 32
Oslo University College
Token ringToken ring
Aktive stations, MASTERS
Logical token ring
PLCPLC PC
PROFIBUS
Passive stations , SLAVES
Oslo University College
Exchange of data master/slaveExchange of data, master/slave
Slav
e
ster
Slave Master
DP-
S
DP-
MaSlave Master
ver
DP-
Slav
DP-
Mas
ter
Master SlaveD
Oslo University College
The 3 most common PROFIBUS telegramsThe 3 most common PROFIBUS telegrams
1.) Token PassingSDx = Start Delimiter xDA = Destination Address) gSA = Source Address
FC = Function Code
SD4 DA SA
2 ) FDL Status Request Telegram
FC Function CodeFCS = Frame Check SequenceED = End Delimiter
2.) FDL Status Request TelegramLE = LengthLEr = Repeated LengthDSAP D ti ti S i A P i t
SD1 DA SA FC FCS ED
3.) Data Telegram
DSAP = Destination Service Access PointSSAP = Source Service Access PointDU = Data Unit3.) Data Telegram
SD2 LE LEr SD2 DA SA FC DSAP SSAP DU FCS ED
T lHead
Oslo University College
TaleHead
Data transmission at 1.5 MBaudTbit t i i ti 1 bit 0 6667Tbit = transmission time, 1 bit = 0.6667μsOCTET : 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
” Idle time ” for master : typical 75 Tbit = 50 μs” Station delay time ” for slave : typical 11 Tbit = 7.3 μs
y μ
Total, 2 bytes of data : (33+66+143+75+11)Tbit = 0.219 ms
Oslo University College
C l ti DP M t tCycle time, DP Mono-master-system
B l ti
Each Slave : 2 bytes in / 2 bytes out
Bus cycle time[ms]
00 kBi /500 kBit/s
1.5 MBit/s
12 MBit/s
Number of Slaves
Oslo University College
ConfigurationConfigurationPROFIBUS
Configuration SoftwareConfiguration Software
Electronic Data Sheet (GSD - files)
PLC
GSD GSD
PLC
PROFIBUS
GSD GSD GSD GSD GSD GSD
Oslo University College
GSD-file (WINblock station)GSD-file (WINblock station)
; WIWB0250 GSD; 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; Version: 1.6 Stand: 10.6.97 Km ;================================;#Profibus_DPGSD_Revision = 1Vendor_Name = "Weidmueller Interface"Model_Name = "WINbloc 8DI"Revision = "V1 6"Revision V1.6Ident_Number = 0x250;
Oslo University College
Protocol_Ident = 0Station Type = 0
GSD-filecont
Station_Type 0FMS_supp = 0Hardware_Release = "Ver.4"Software_Release = "00"cont. ;9.6_supp = 119.2_supp = 1O s vO.s.v12M_supp = 1;MaxTsdr_9.6 = 60MaxTsdr_19.2 = 60O.s.vMaxTsdr_12M = 800;;Redundancy = 0Repeater_Ctrl_Sig = 224V_Pins = 0;Implementation_Type = "LSPM2"Bitmap_Device = "winblocn"Bitmap Diag = "winblocs"
Oslo University College
Bitmap_Diag winblocs;
GSD-file contGSD-file cont.; Slavespezifische Werte;;OrderNumber = "827516"Periphery = "WINbloc"Freeze_Mode_supp = 1_ _ ppSync_Mode_supp = 1Auto_Baud_supp = 1Set_Slave_Add_supp = 0Min Slave Intervall = 1Min_Slave_Intervall = 1Modular_Station = 0Modul_Offset = 0Fail_Safe = 0Slave_Family = 3@TdF@WINbloc;Max_Diag_Data_Len = 13User Prm Data Len = 0x05User_Prm_Data_Len = 0x05User_Prm_Data = 0x00,0x00,0x00,0x00,0x00Module = "DP-Kompaktgeraet 8 I" 0x00,0x10EndModule
Oslo University College