Handbuch EKS Schlüsselaufnahme Ethernet TCP/IP
8.3.2 Lesevorgang
Kommandotelegramm (Telegrammkern, PC/Steuerung → EKS, siehe Abbildung 6):
TL (Geräte-Adr.) (Start-Adr. Nutzdaten) (Byte-Anzahl Nutzdaten)
Antworttelegramm (Telegrammkern, EKS → PC/Steuerung, siehe Abbildung 7 oder Abbildung 8):
Bei diesem Kommando gibt es zwei verschiedene Möglichkeiten einer Antwort:
RL (Geräte-Adr.) (Start-Adr. Nutzdaten) (Byte-Anzahl Nutzdaten) (Nutzdaten)
oder
RF (Geräte-Adr.) (00
Das Antworttelegramm RL (siehe Abbildung 7) steht für fehlerfreien Empfang der Daten.
Wenn ein Schlüssel nicht gelesen werden kann, bekommt man ein RF Antworttelegramm (siehe Abbildung 8).
Die Statusnummer zeigt dann die Fehlerursache an.
Byte Nr.
Beschreibung
0
Anzahl der Telegrammbytes
1
Kommando-Identifikation
2
3
Konstante
4
5
Start-Adresse der Nutzdaten
6
Byte-Anzahl der Nutzdaten
Abbildung 6: Kommandotelegramm Schreib-/Lese-Schlüssel lesen (Telegrammkern)
Byte Nr.
Beschreibung
0
Anzahl der Telegrammbytes
1
Kommando-Identifikation
2
3
Konstante
4
5
Start-Adresse der Nutzdaten
6
Byte-Anzahl der Nutzdaten
7 ... 130
Nutzdaten
Abbildung 7: Antworttelegramm Schreib-/Lese-Schlüssel lesen (Telegrammkern)
Byte Nr.
Beschreibung
0
Anzahl der Telegrammbytes
1
Kommando-Identifikation
2
3
Konstante
4
Fülldaten
5
6
Statusnummer
Abbildung 8: Antworttelegramm Schreib-/Lese-Schlüssel lesen - Status (Telegrammkern)
* Statusnummer
2100420-03-05/19
, 00
) (Statusnummer)
hex
hex
02
:
Schlüssel nicht im Ansprechbereich
hex
(Weitere Statusnummern siehe Kapitel 8.5)
Technische Änderungen vorbehalten
Inhalt
ASCII
hexadezimal
07
T
54
L
4C
01
00
00 ... 74
01 ... 7C
Inhalt
ASCII
hexadezimal
08 ... 83
R
52
L
4C
01
00
00 ... 74
01 ... 7C
ASCII oder hexadezimal bzw. BCD
(codetransparent)
Inhalt
ASCII
hexadezimal
07
R
52
F
46
01
00
00
*
dezimal
7
84
76
1
0
0 ... 116
1 ... 124
dezimal
8 ... 131
82
76
1
0
0 ... 116
1 ... 124
dezimal
7
82
70
1
0
0
Seite 29/34