Response Modbus-Server Client, mit Fehlermeldung:

Offs

Bytes

Typ

Modbus Beschreibung

Inhalt (hex)

ibaPDA Beschreibung

MBAP

00

2

UINT

Transaktions-ID

xx xx

Spiegel der Anfrage

02

2

UINT

Protokoll-ID

00 00

0

04

2

UINT

Cmd Länge

00 03

06

1

BYTE

Unit-ID

xx

Spiegel der Anfrage

Fcode

07

1

BYTE

Funktionscode "Exception"

0x80 + xx

Spiegel des Funktionscodes mit MSB=1

Daten

08

1

BYTE

Fehlercode

xx

Fehlercode

Der empfangene Funktions-Code wird kopiert und das höchstwertige Bit (MSB) gesetzt.

Beispiel:

Funktion 03: Read Holding Registers

Request

(hex)

(hex)

Response

Trans-ID

00 03

00 03

Trans-ID

Prot-ID

00 00

00 00

Prot-ID

Cmd LEN

00 06

00 03

Cmd LEN

Unit-ID

01

01

Unit-ID

FCode

03

83

FCode mit Fehlerkennung

Start Adr (Hi)

00

02

Fehlercode

Start Adr (Lo)

6D

Anz. Werte (Hi)

00

Anz. Werte (Lo)

04