Herunterladen Inhalt Inhalt Diese Seite drucken

Preset Single Register - Wago Modbus Handbuch

Inhaltsverzeichnis
5.3.1.7 Preset Single Register (Funktionscode 0x06):
Diese Funktion schreibt einen Wert in ein einzelnes Ausgangswort (auch
"Ausgangsregister"). Diese Funktion kann auch als Broadcast verschickt werden, dann
wird dasselbe Ausgangswort in allen Slaves gesetzt.
Anfrage:
Die Adressierung beginnt mit 0. Bei Modicon startet die Adressierung mit 1 (0x01).
Die Anfrage bestimmt die Adresse des ersten Ausgangswortes, das gesetzt werden soll.
Der zu setzende Wert wird im Anfragedatenfeld bestimmt.
Im Beispiel wird das Register 0 im Slave 11 gesetzt.
Feldname
Start of frame
Slave address
Function code
Register address high
Register address low
Preset data high
Preset data low
Error Check (LRC / CRC)
End of frame
Tabelle 5.40: Beispiel Anfrage, Preset Single Register
Antwort:
Die Antwort ist ein Echo der Anfrage. Sie wird nach dem Setzen der Register gesendet.
Feldname
Start of frame
Slave address
Function code
Register address high
Register address low
Preset data high
Preset data low
Error Check (LRC / CRC)
End of frame
Tabelle 5.41: Beispiel Antwort, Preset Single Register
Beispiel
RTU
-
t1-t2-t3
0x0B
0x0B
0x06
0x06
0x00
0x00
0x00
0x00
0x12
0x12
0x34
0x34
-
0x8C
0x17
t1-t2-t3
Beispiel
RTU
-
t1-t2-t3
0x0B
0x0B
0x06
0x06
0x00
0x00
0x00
0x00
0x12
0x12
0x34
0x34
-
0x8C
0x17
t1-t2-t3
62
ASCII
":"
0x3a
"0B"
0x30, 0x42
"06"
0x30, 0x36
"00"
0x30, 0x30
"00"
0x30, 0x30
"12"
0x31, 0x32
"34"
0x33, 0x34
"A9"
0x41, 0x39
-
0xD, 0xA
ASCII
":"
0x3a
"0B"
0x30, 0x42
"06"
0x30, 0x36
"00"
0x30, 0x30
"00"
0x30, 0x30
"12"
0x31, 0x32
"34"
0x33, 0x34
"A9"
0x41, 0x39
-
0xD, 0xA
MODBUS / Konfiguration
01.10.99

Quicklinks ausblenden:

Inhaltsverzeichnis
loading

Inhaltsverzeichnis