MRP21-FBP MODBUS-RTU FieldBusPlug
Technische Beschreibung
Lesen Binäreingangswerte serielle Geräte (Read binary input values, serial device)
Es können die MODBUS-Funktionscodes 1 "Read Coils" oder 2 "Read Discrete Inputs" verwendet wer-
den.
Anforderung
MODBUS-Funktionscode
Startadresse
Anzahl Spulen / Eingänge
Antwort
MODBUS-Funktionscode
Byte-Zählung
Status Spule / Eingang
N* = Anzahl Eingänge / 8, wenn Division mit Rest ungleich 0 N = N+1
Fehlerantwort
Fehlercode
Fehlermeldung (Exception Code)
Hinweis: Wenn ein paralleles Gerät angeschlossen ist, erscheint eine Fehlerantwort.
MODBUS-Frame auf der seriellen Leitung
Anforderung
1 Byte
Slave-
Adresse
*
* abhängig vom Gerät
Antwort
1 Byte
Slave-
Adresse
*
* abhängig vom Gerät
Binäreingangsdaten Gerät
Byte 0
Bit 7
Bit 15
Bit 23
MRP21-FBP
1 Byte
2 Bytes
Funktions-
Start-
code
adresse
Spulen / Eingänge
0x01 oder
0x0000
0x02
1 Byte
1 Byte
Funktions-
Byte
code
Zählung
0x10 oder
*
0x02
Byte 1
Byte 2
Bit 6
Bit 5
Bit 14
Bit 13
Bit 22
Bit 21
1 Byte
0x01 oder 0x02
2 Bytes
0x0000 ... 0x00FF
2 Bytes
0x0001...0x0100 (256 Eingänge))
1 Byte
0x01 oder 0x02
1 Byte
N*
n Bytes
n = N oder N+1
1 Byte
0x81 oder 0x82
1 Byte
01 oder 02 oder 03 oder 04
2 Bytes
2 Bytes
Anzahl
CRC
*
Byte 0
...
Byte n
Binäreingangsdaten vom
Gerät
*
...
...
Byte 0
Bit 4
Bit 3
Byte 1
Bit 12
Bit 11
Byte 2
Bit 20
Bit 19
- 30 -
abhängig vom Gerät
2 Bytes
CRC
...
Byte n
Bit 2
Bit 1
Bit 10
Bit 9
Bit 18
Bit 17
FieldBusPlug / Stand: 03.2010
G 6
Bit 0
Bit 8
Bit 16