Herunterladen Inhalt Inhalt Diese Seite drucken

Betrieb Und Kommunikation; Kommunikation Über Die Rs-485-Schnittstelle; Anforderungstelegramm; Antworttelegramm - Pepperl+Fuchs Pxv100A-F200-R4-V19-Sew Handbuch

Datamatrix-positioniersystem
Inhaltsverzeichnis
PXV100A-F200-R4-V19-SEW

Betrieb und Kommunikation

8
Betrieb und Kommunikation
8.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).
8.1.1

Anforderungstelegramm

Ein Anforderungstelegramm besteht immer aus 2 Bytes. Das 2. Byte entspricht dem ersten
Byte, wobei jedoch die 8 Datenbit des 1. Byte invertiert sind.
Aufbau eines Anforderungstelegramms
Byte 1 Parity
Byte 2 Parity
Tabelle 8.1
Bedeutung der Bits:
Parity:
A0, A1:
8.1.2

Antworttelegramm

Byte/
Bit
8
7
6
1
Parity
0
0
2
Parity
0
C.1
3
Parity
0
C.9
4
Parity
0
C.17
5
Parity
0
C.25
6
Parity
0
0
7
Parity
0
P.7.6
8
Parity
0
P.6.7
9
Parity
0
P.6.0
10
Parity
0
P.5.1
11
Parity
0
P.4.2
12
Parity
0
P.3.3
13
Parity
0
P.2.4
14
Parity
0
P.1.5
15
Parity
0
P.0.6
Bit 8
Bit 7
Bit 6
Bit 5
1
0
0
1
Anforderungstelegramm
Even Parity
Lesekopfadresse (Default = 0)
5
4
3
0
C.6
C.5
C.0
0
C.13
C.8
C.7
0
C.16
C.15
C.14
C.24
C.23
C.22
0
C.31
C.30
P.7.5
P.7.4
P.7.3
P.6.6
P.6.5
P.6.4
P.5.7
P.5.6
P.5.5
P.5.0
P.4.7
P.4.6
P.4.1
P.4.0
P.3.7
P.3.2
P.3.1
P.3.0
P.2.3
P.2.2
P.2.1
P.1.4
P.1.3
P.1.2
P.0.5
P.0.4
P.0.3
Bit 4
Bit 3
Bit 2
0
0
1
1
1
1
0
0
2
1
0
C.4
C.3
C.2
C.12
C.11
C.10
C.20
C.19
C.18
0
C.27
C.26
C.21
0
0
C.29
C.28
P.7.7
P.7.2
P.7.1
P.7.0
P.6.3
P.6.2
P.6.1
P.5.4
P.5.3
P.5.2
P.4.5
P.4.4
P.4.3
P.3.6
P.3.5
P.3.4
P.2.7
P.2.6
P.2.5
P.2.0
P.1.7
P.1.6
P.1.1
P.1.0
P.0.7
P.0.2
P.0.1
P.0.0
Bit 1
Bit 0
Funktion
A1
A0
Request
~A1
~A0
Checksum
Funktion
XDM.C32
CRC32 Prüfsumme der Positi-
onsdaten des DataMatrix-
Codes (siehe Kapitel 8.1.3)
CY Segment Cluster Code Y
(MSB)
XDMC Positionsnummer X des
Datamatrix-Codes (DMC)
(MSB)
CB Check Byte/ Prüfbyte
(Länge 1 ASCII Zeichen) (LSB)
(siehe Kapitel 8.1.3)
29
Inhaltsverzeichnis
loading

Inhaltsverzeichnis