Sie sind auf Seite 1von 19

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-mastersystem
Configuration
GSD : Electronic data sheet
Oslo University

The PROFIBUS protocols

DP

PA

Layer

FMS

Application Profiles
User

DP-Functions
Application
(7)

Fieldbus Message
Specification (FMS)

(3)-(6)

not used

Fieldbus Data Link (FDL)

Data Link
(2)
Physical
(1)

RS-485 / Fiberoptikk
EN 50 170

Oslo University

DIN E 19245 partl 4

IEC Interface*
IEC 61158-2
PROFIBUS guidelines

Wiring

2 wires
shield

Oslo University

Pin assignement

Oslo University

Termination, RS485
Station 1

VP (6)

Station 2

390

Data line B
RxD/TxD-P (3)

RxD/TxD-P (3)

(3) RxD/TxD-P

DGND (5)

(5) DGND

VP (6)

220

(6) VP

RxD/TxD-N (8)

(8) RxD/TxD-N

Data line A

RxD/TxD-N (8)

Shield
390
DGND (5)

Oslo University

Installation, DP-nodes
First station

Last station
Bus termination

Bus termination

VP
390
B
220
A

390

Data line B

B
220

Data line A

390

390
DGND

DGND

Oslo University

VP

A B A B

A B A B

Station 2

Station 3

Installation, PA-nodes
Bus
termination

Power
Supply

Bus
termination

100

100

1 F

1 F

Max 32
PA-stations

Oslo University

The smallest data


package
The OCTET

2. octet

1. octet
Idle
LSB
Bit sequense:

Start

Oslo University

MSB
2

8 Parity Stop Start

LSB

Data representation
IEC 6 1158-2
1

bit 1

bit 2

bit 3

bit 4

bit 5

bit 6

I0+9mA

I0

I0-9mA

Oslo University

Stations, repeaters
and segments

Termination

Termination
Repeater

Station
1

30

31

61

33

32

Termination
Repeater

62

Oslo University

Token ring
Logical token ring
Aktive stations, MASTERS

PLC

PC

PLC

PROFIBUS

Passive stations , SLAVES

Oslo University

Oslo University

DP-Slave

Request

Data

Data

Status

DP-Slave

Master Slave

DP-Master

Slave Master

DP-Master

Exchange of data, master/slave

The 3 most common PROFIBUS


telegrams
1.) Token Passing
SD4 DA SA

SDx
DA
SA

= Start Delimiter x
= Destination Address
= Source Address

FC
FCS
ED

= Function Code
= Frame Check Sequence
= End Delimiter

LE
LEr
DSAP
SSAP
DU

= Length
= Repeated Length
= Destination Service Access Point
= Source Service Access Point
= Data Unit

2.) FDL Status Request Telegram


SD1 DA SA FC FCS ED

3.) Data Telegram

SD2 LE LEr SD2 DA SA FC DSAP SSAP DU FCS ED


Head
Oslo University

Tale

Data transmission at 1.5 MBaud


Tbit = transmission time, 1 bit = 0.6667s
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

Idle time for master :


typical 75 Tbit = 50 s
Station delay time for slave :
typical 11 Tbit = 7.3

Total, 2 bytes of data : (33+66+143+75+11)Tbit = 0.219 ms

Oslo University

Cycle time, DP Mono-mastersystem


Bus cycle time
[ms]

Each Slave : 2 bytes in / 2 bytes out


500 kBit/s

1.5 MBit/s

12 MBit/s

Number of Slaves

Oslo University

Configuration

t em
s
y
S

io n
t
a
r
gu
i
f
n
Co

PROFIBUS
Configuration Software

Electronic
Data Sheet
(GSD - files)

PLC
PLC
GSD

PROFIBUS

Oslo University

GSD

GSD

GSD

GSD

GSD

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

Oslo University

GSD-file
cont.

Oslo University

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
O.s.v
MaxTsdr_12M
= 800
;
Redundancy
=0
Repeater_Ctrl_Sig
=2
24V_Pins
=0
;
Implementation_Type = "LSPM2"
Bitmap_Device
= "winblocn"
Bitmap_Diag
= "winblocs"
;

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

Oslo University

Das könnte Ihnen auch gefallen