2.6.3
Schreiben von n Worten
Mit dieser Funktion werden n Worte ab einer bestimmten Adresse geschrieben.
Anweisung
Slave-Adres-
se
1 Byte
Antwort
Slave-Adres-
se
1 Byte
Beispiel
Analogwert 25,0 (Datentyp Float; 4 Bytes = 2 Worte) ab Wortadresse 0x3700 schreiben:
Anweisung (Wert im Modbus-Float-Format):
01
Slave
Antwort:
01
Slave
Kapitel 2.7.2 „Float-Werte", Seite 14
Kapitel 2.8 „Checksumme (CRC16)", Seite 16
Funktion
Adresse ers-
0x10
tes Wort
1 Byte
2 Byte
Funktion
Adresse ers-
0x10
tes Wort
1 Byte
2 Byte
10
37 00
Funktion
Adresse
erstes Wort
10
37 00
Funktion
Adresse
erstes Wort
2 Modbus-Protokollbeschreibung
Wortanzahl
Byte-Anzahl Wortwert(e) Check summe
2 Byte
1 Byte
Wortanzahl
Checksumme
CRC
2 Byte
2 Byte
00 02
04
Wortanzahl
Byte-Anzahl Wert
00 02
4F BC
Wortanzahl
CRC
CRC
x Byte
2 Byte
00 00 41 C8
B0 58
CRC
13