3.3 Schreiben von n Worten
Anweisung
Antwort
Beispiel
Mit dieser Funktion werden n Worte ab einer bestimmten Adresse ge-
schrieben.
Slave-
Funktion
Adresse
0x10
1 Byte
1 Byte
Slave-Ad-
Funktion
resse
0x10
1 Byte
1 Byte
Schreibe Sollwert = 12,34
Modbusadresse = 0x0044
Anweisung:
01
10 00
44
Antwort:
01
10
00 44 00 02 01DD
Adresse
Wortan-
erstes Wort
zahl
(max. 127)
2 Bytes
2 Bytes
Adresse
erstes
Wort
2 Bytes
00
02
04 70
3 Funktionen
Byte-
Wort-
anzahl
wert(e)
1 Byte
x Byte
Wort-
Checksumme
anzahl
2 Bytes
A3
41
45
Solllwert = 12,34
Checksumme
CRC16
2 Bytes
CRC16
2 Bytes
ED2D
CRC
17