Modbus Protocol
Strona 3 z 5
1. Revision history
Version
Date
Author
Changes
1.0
1.06.2017
BTR
Initial release
2. The Modbus Protocol
The Modbus Protocol is an industrial communication protocol that is currently used in PSBEN Power Supplies.
The Power Supplies use two type of connections:
RS-485 - Modbus RTU (19200 kbps, 8E1 – default settings)
TCP/IP - Modbus RTU over TCP
3. Function codes
The following Modbus function codes are supported by the implemented protocol:
Function code
Dec
Read Input Registers
04
4. Registers
Register
address
Register description
Function description
Position
Type
Format
Access
00
Firmware version and
power supply version
Firmware version
7…0
uint8_t
v1.0 is equal to 10
R
Power supply type
11…8
4-bit
0 – PSBEN
1 – EN54
03
Error flags (1)
F13 - Cover opened
3
1-bit
0 – inactive
1 – active
R
F61 - Internal supply
fail
4
1-bit
0 – inactive
1 – active
F60 - No
communication
5
1-bit
0 – inactive
1 – active
F61 - Control panel fail
6
1-bit
0 – inactive
1 – active
04
Error flags (2)
F05 - Battery test error
0
1-bit
0 – inactive
1 – active
R
F03 - Battery fuse fail
1
1-bit
0 – inactive
1 – active
F02 - AUX fuse fail
2
1-bit
0 – inactive
1 – active