Herunterladen Inhalt Inhalt Diese Seite drucken

Betrieb Und Kommunikation; Kommunikation Über Die Rs-485-Schnittstelle; Anforderungstelegramm - Pepperl+Fuchs PGV100R-F200-R4-1.5M Handbuch

Auflicht-positioniersystem
Inhaltsverzeichnis

Werbung

PGV100R-F200-R4-1.5M

Betrieb und Kommunikation

5
Betrieb und Kommunikation
5.1
Kommunikation über die RS-485-Schnittstelle
Die Kommunikation zwischen Steuerung und Lesekopf findet im laufenden Betrieb über die
RS-485-Schnittstelle statt. Stellen Sie sicher, dass die grundlegenden Kommunikationseinstel-
lungen am Lesekopf vorgenommen wurden, wie z. B. Setzen der Lesekopfadresse und Bau-
drate.
Man unterscheidet zwischen Anforderungstelegrammen, die die Steuerung an den Lesekopf
sendet und Antworttelegrammen, die der Lesekopf an die Steuerung sendet. Jedes Byte eines
Anforderungs- oder Antworttelegramms besteht aus 9 Bit (= 8 Datenbits + 1 Paritätsbit).
5.1.1

Anforderungstelegramm

Ein Anforderungstelegramm besteht immer aus 2 Bytes. Das zweite Byte entspricht dem
ersten Byte, wobei die 8 Datenbits des ersten Byte invertiert sind.
Aufbau eines Anforderungstelegramms
Byte/
Bit
Byte 1 Parität
Byte 2 Parität
Tabelle 5.1
1. R/W: 0 = Antwort, 1 = Anforderung
Bedeutung der Bits
PAR
Parität 1
Parität 1
Parität 1
Parität 1
Parität 1
Parität 1
Parität 1
Parität 1
Parität 1
Tabelle 5.2
28
Bit 8
Bit 7 Bit 6
Bit 5
Anf.-
Anf.-
1
1
Bit 4
Bit 3
0
~Anf.-
~Anf.-
Bit 4
Bit 3
Aufbau eines Anforderungstelegramms
Anf.-
Anf.-
Anf.-
R/W
Bit 4
Bit 3
Bit 2
x
x
x
x
x
x
x
x
x
x
x
x
1
0
0
0
0
0
1
0
R=0
0
0
R=0
0
0
R=1
Bedeutung der Bits
Bit 4
Bit 3
Bit 2
Bit 1
Anf.-
Anf.-
Anf.-
A1
Bit 2
Bit 1
Bit 0
~Anf.-
~Anf.-
~Anf.-
~A1
Bit 2
Bit 1
Bit 0
Anf.-
Anf.-
Bit 1
Bit 0
A1
A0
x
x
0
0
x
x
0
1
x
x
1
0
x
x
1
1
1
0
x
x
LL
RL
x
x
G=0
B=1
x
x
G=1
B=0
x
x
G=0
B=0
x
x
Bit 0
Funktion
A0
Anforderung
~A0
Prüfsumme
Funktion
Lesekopfadresse 0
Lesekopfadresse 1
Lesekopfadresse 2
Lesekopfadresse 3
Positionsanfrage
Richtungswahl
intern
intern
intern

Werbung

Inhaltsverzeichnis
loading

Inhaltsverzeichnis