Kapitel
5
Betriebsanleitung
IOLSHPB-P3104R01
30
© SICK AG • Industrial Sensors • Deutschland • Irrtümer und Änderungen vorbehalten
2010-07-05
Inbetriebnahme und Betrieb
5.8.3
Beispiel 2
Schreiben eines Strings (Länge 10 Byte) auf den Device an Port 4 (hier „Alles i.O.“ auf
Index 67dec, SubIndex 3dec):
Write-Request (Master -> Device)
PD-Daten des Tunnels (4 Worte VC1) hex
Struktur der Daten
14 / 00 / 04 / 00 43 / 03 / 41 6C
Write-Request IO-Link-Master/Gerätenum-
mer/Port/Index High Index Low/Subindex/
2 Byte Objektdaten
Write-Response (Device -> Master)
PD-Daten des Tunnels (4 Worte VC1) hex
Struktur der Daten
14 / xx xx xx xx xx xx xx
Response/7 Byte ungenutzt
Write-Request (Master -> Device)
PD-Daten des Tunnels (4 Worte VC1) hex
Struktur der Daten
21 / 6C 6C 73 20 69 2E 4F
1. Fortsetzungsfragment/7 Byte
Objektdaten
Write-Response (Device -> Master)
PD-Daten des Tunnels (4 Worte VC1) hex
Struktur der Daten
21 / xx xx xx xx xx xx xx
Response/7 Byte ungenutzt
Write-Request (Master -> Device)
PD-Daten des Tunnels (4 Worte VC1) hex
Struktur der Daten
40 / 2E / xx xx xx xx xx xx
Abschlussfragment/1 Byte Objektdaten/
6 Byte ungenutzt
Write-Response (Device -> Master)
PD-Daten des Tunnels (4 Worte VC1) hex
Struktur der Daten
84 / 00 / xx xx xx xx xx xx
Response/Status/6 Byte ungenutzt
Clear-Request (Master -> Device)
PD-Daten des Tunnels (4 Worte VC1) hex
Struktur der Daten
00 / 00 00 00 00 00 00 00
Response/Status/6 Byte ungenutzt
Clear-Response (Device -> Master)
PD-Daten des Tunnels (4 Worte VC1) hex
Struktur der Daten
00 / 00 00 00 00 00 00 00
Clear-Response
Hier wird die Write-Vorgabe in drei Fragmenten gemacht. Erst nach dem Empfang des
letzten Fragments übernimmt der IO-Link-Master die Anforderung. Die Response „84“
zeigt, dass das Kommando „04“ ausgeführt wurde. Mit dem Status „0“ wird gezeigt, dass
die Übertragung erfolgreich war.
Mit einem „Clear“ können die Kommunikationsdaten wieder in ihren Ausgangszustand
gesetzt werden.