6.5.2
Exemple de requête d'écriture
Ceci est un exemple d'une requête pour ECRIRE
vers la variable avec :
Exemple de requête
Variable
Bus address
Function code
Read Starting Address Hi
Read Starting Address Lo
Quantity to Read Hi
Quantity to Read Lo
Write Starting Address Hi
Write Starting Address Lo
Quantity to Write Hi
Quantity to Write Lo
Write Byte Count (Fixed)
IDAL
IDB Hi
IDB Mi
IDB Lo
TabNr Hi
TabNr Lo
Index Hi
Index Lo
Value Lo (Float IEEE 754)
Value Mi
Value Hi
Value Exponent
CRC Lo
CRC Hi
Exemple de réponse
Variable
Bus address
Function code
Byte Count(Fixed)
IDAL
IDB Hi
IDB Mi
IDB Lo
TabNr Hi
TabNr Lo
Index Hi
Index Lo
Value Lo (Float IEEE 754)
Value Mi
Value Hi
Value Exponent
CRC Lo
CRC Hi
FR / MasterBus – Modbus Interface / Septembre 2014
Monitoring (TabNr = 0);
Index variable (Index = 1);
Appareil MasterBus IDAL = 0x0E ID;
Appareil MasterBus IDB = 0x0217C1.
Valeur
0x01
0x17
0x00
0x00
0x00
0x06
0
1
0x00
0x06
0x0C
0x0E
0x02
0x17
0xC1
0x00
0x00
0x00
0x01
0x00
0x00
0x80
0x3F
0x85
0xFA
Valeur
0x01
0x17
0x0C
0x0E
0x02
0x17
0xC1
0x00
0x00
0x00
0x01
0x00
0x00
0x80
0x3F
0x94
0xC1
Gamme
[1..247]
Fixed
Fixed
Fixed
Fixed
Fixed
Fixed
0 = read / 1 = write
Fixed
Fixed
Fixed
[0..31]
[0..3]
[0..255]
[0..255]
Fixed
[0..3]
[0..255]
[0..255]
[0..255]
[0..255]
[0..255]
[0..255]
[0..255]
[0..255]
Gamme
[1..247]
Fixed
Fixed
[0..31]
[0..3]
[0..255]
[0..255]
Fixed
[0..3]
[0..255]
[0..255]
[0..255]
[0..255]
[0..255]
[0..255]
[0..255]
[0..255]
7