Herunterladen Inhalt Inhalt Diese Seite drucken

Beispiel Für Eine Konfiguration - Siemens DP AS-Interface Link 20E Handbuch

Simatic net
Inhaltsverzeichnis

Werbung

Datenaustausch zwischen DP−Master und AS−i−Slave
Beispiel für eine Konfiguration
Bild 2−2 zeigt ein Beispiel für die Adressierung von 4 AS−i Slaves durch den
PROFIBUS−DP−Master. Im DP−Master wird die Anfangsadresse m = 0 für die
E/A−Daten verwendet.
Die für das Anwenderprogramm relevanten Bits vorhandener AS−i Slaves sind
grau hinterlegt. Die weiß hinterlegten Bits sind für das Anwenderprogramm ohne
Bedeutung, da hier keine AS−i Slaves zugeordnet sind.
DP−Master
32
Eingangsbyte
0
Bit 3
Bit 2
Bit 1
Bit 0
Slave 2
1
Bit 3
Bit 2
Bit 1
Bit 0
Slave 4
2
Bit 1
Bit 0
.
Bit 3
Bit 2
.
.
Slave 30B
31
Bit 2
Bit 1
Bit 0
Bit 3
4
7
6
5
Slave Nr. 2
AS−i Slaves
4 E−Modul
4 E−Modul
Bild 2-2
In obigem Bild belegt z. B. das 2E/2A−Modul (AS−i Slave Nr.3 mit zwei Eingängen
und zwei Ausgängen) die Bits 0 und 1 im Eingangsbyte 1 und die Bits 2 und 3 im
Ausgangsbyte 1.
Die Zuordnung der AS−i Anschlüsse der AS−i Busmodule zu den Datenbits der
Ein−/Ausgangsbytes ist nachfolgend exemplarisch für Slave Nr. 3 dargestellt:
Eingangsbyte 1
Ausgangsbyte 1
Anschluss 4 am AS−i Busmodul
Anschluss 3 am AS−i Busmodul
48
Slave 1
Bit 3
Bit 2
Bit 1
Bit 0
Slave 3
Bit 3
Bit 2
Bit 1
Bit 0
Slave 5
Bit 3
Bit 2
Bit 1
Bit 0
Slave 31B
Bit 3
Bit 2
Bit 1
Bit 0
3
2
0
1
Slave Nr. 3
2 E/2 A−Modul
Anschluss 2 am AS−i Busmodul
Anschluss 1 am AS−i Busmodul
32
Ausgangsbyte
Slave 1
0
Bit 0
Bit 3
Bit 2
Bit 1
Bit 3
Bit 2
Slave 2
Slave 3
1
Bit 3
Bit 2
Bit 1 Bit 0
Bit 3
Bit 2
Slave 4
Slave 5
2
Bit 2
Bit 3
Bit 0
Bit 3
Bit 1
Bit 2
.
.
.
Slave 30B
Slave 31B
31
Bit 2
Bit 1
Bit 0
Bit 3
Bit 3
Bit 2
7
6
5
4
Slave Nr. 4
Slave Nr.31B
4 A−Modul
4 E/3 A−Modul
1
3
2
DP/AS−Interface Link 20E
C79000−G8900−C235−01
Bit 0
Bit 1
Bit 0
Bit 1
Bit 0
Bit 1
Bit 1
Bit 0
0
0
Bit−Nr.
Bit−Nr.
Ausgabe 08/2008

Werbung

Inhaltsverzeichnis
loading

Inhaltsverzeichnis