![Camille Bauer SIRAX BM1450 Скачать руководство пользователя страница 22](http://html.mh-extra.com/html/camille-bauer/sirax-bm1450/sirax-bm1450_operating-instructions-manual_487907022.webp)
PM 1001812 000 00
Device handbook SIRAX BM1450
22/36
10. Interface definition Modbus RTU
SIRAX BM1450 supports Modbus RTU protocol (RS485).
The permissible address range for the BM1450 is between 1 and 247. Broadcast Mode (address 0) is not allowed.
The maximum latency time of an BM1450 is 200ms i.e. this is the amount of time that can pass before the first response character is output.
After sending any query through software (of the Master), it must allow 200ms of time to elapse before assuming that the BM1450 is not going
to respond. If slave does not respond within 200 ms, Master can ignore the previous query and can issue fresh query to the slave.
10.1 Modbus functions
Following code functions are provide:
Function code Function
Address
03
Read holding registers
40001 to 40079
04
Read input registers
30001 to 30231
16
Presets multiple registers
40001 to 40079
The slave only answers Modbus requests with a valid parity and correct checksum. The slave responds with the following exception codes (0x80 +
function code) to requests with unsupported functions, unimportant data addresses or invalid data values:
01
Illegal function
The function code is not supported.
02
Illegal data address
Attempt to access an invalid address or an attempt to read or write part of a floating point value.
03
Illegal data value
Attempt to set a floating point variable to an invalid value.
Access to 3X and 4X registers for reading measured values
Example: Current Ch 2 from 3X:
Start adress = 00 04
Number of Register = 02
Power Ch 1 from 4X:
Start adress = 10 0A
Number of Register = 02
Query for 3X read:
Device address
Function code
Start adress Hi
Start adress Lo
No. of Register Hi
Datenbytes
CRC Low
CRC High
01 (Hex)
04 (Hex)
00 (Hex)
04 (Hex)
00 (Hex)
02 (Hex)
30 (Hex)
0A (Hex)
3X Response: Current Ch2 (219.254 A)
Device address Function code
Byte count
Data Register 1
High Byte
Data Register 1
Low Byte
Data Register 2
High Byte
Data Register 2
Low Byte
CRC Low
CRC High
01 (Hex)
04 (Hex)
04 (Hex)
43 (Hex)
5B (Hex)
41 (Hex)
21 (Hex)
6F (Hex)
9B (Hex
Byte Count : Total number of data bytes received.
Query for 4X read:
Device address
Function code
Start adress Hi
Start adress Lo
No. of Register Hi
Datenbytes
CRC Low
CRC High
01 (Hex)
03 (Hex)
10 (Hex)
0A (Hex)
00 (Hex)
02 (Hex)
E0 (Hex)
C9 (Hex)
4X Response: Power Ch 1 (2000W)
Device address Function code
Byte count
Data Register 1
High Byte
Data Register 1
Low Byte
Data Register 2
High Byte
Data Register 2
Low Byte
CRC Low
CRC High
01 (Hex)
03 (Hex)
04 (Hex)
44 (Hex)
FA (Hex)
00 (Hex)
00 (Hex)
CE (Hex)
F2 (Hex
Access to 4X Register zum Lesen und Schreiben von Messwerten
Example: Nominal voltage of 4X:
Start adress = 1A (Hex)
Number of Register = 02
Query for 4X read:
Device address
Function code
Start adress Hi
Start adress Lo
No. of Register Hi
Datenbytes
CRC Low
CRC High
01 (Hex)
03 (Hex)
00 (Hex)
1A (Hex)
00 (Hex)
02 (Hex)
E5 (Hex)
CC (Hex)
4X Response: Nominal voltage 24V
Device address Function code
Byte count
Data Register 1
High Byte
Data Register 1
Low Byte
Data Register 2
High Byte
Data Register 2
Low Byte
CRC Low
CRC High
01 (Hex)
03 (Hex)
04 (Hex)
41 (Hex)
C0 (Hex)
00 (Hex)
00 (Hex)
44 (Hex)
C6 (Hex