Das Dynamic Configuration Protocol (DCP) hat die Aufgabe, die Adressen und Namen in einem PROFINET IO System den einzelnen Teilnehmern zu verteilen.
Das DCP Protokoll ist in der Norm IEC 61158 festgelegt.
Sequenzen von Telegrammen und die Dienste werden im Abschnitt der Adressverwaltung erläutert.
Die DCP Telegramme hat den Ethernet TYPE 0x8892 = PROFINET und die folgende Struktur:
DCP Telegramm |
Umfang |
Werte |
Bedeutung |
---|---|---|---|
FrameID |
2 Byte |
0xfefd - 0xfeff |
Reservierter Bereich für das DCP |
ServiceID |
1 Byte |
1 = Get 2 = Set 5 = Identify |
|
Service-Type |
1 Byte |
|
|
xid |
4 Bytes |
|
Identifikation der Transaktion |
ResponseDelay |
2 Bytes |
|
|
DCPDataLength |
2 Bytes |
|
Anzahl der Bytes in den nachfolgenden Blöcken |
Block |
x Bytes |
|
|
Ein DCP Telegramm kann bei Wireshark so aussehen:
Der Service-Type wird wie folgt kodiert:
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
Service-Type |
0 |
0 |
0 |
0 |
0 |
||||
x |
0 = success (Erfolgreich) |
|||||||
x |
x |
0 = Request (Anforderung) 1 = Response (Antwort) |
Jeder Block in einem DCP Telegramm beschreibt nun spezielle Eigenschaften:
Option |
Suboption |
len |
Status |
Data |
1 Byte |
1 Byte |
2 Bytes |
2 Bytes |
len Bytes |
1 |
1 = MAC Address 2 = IP Address |
6 14 |
||
2 |
1 = Manufacturer Specific 2 = Name of Station 3 = Device ID 4 = Device 5 = Device options |
4 1 |
||
3 |
All DHCP options |
|||
4 |
LLDP options |
|||
5 |
1 = Start Transaction 2 = End Transaction |
0 0 |
Ein DCP-Block zum setzen einer IP Adresse kann bei Wireshark so aussehen: