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
Position
Type
Format
Access
00
Firmware version and
power supply version
7…0
uint8_t
v1.0 is equal to 10
R
11…8
4-bit
0 PSBEN
1 EN54
03
Error flags (1)
3
1-bit
0 inactive
1 active
R
4
1-bit
0 inactive
1 active
5
1-bit
0 inactive
1 active
6
1-bit
0 inactive
1 active
04
Error flags (2)
0
1-bit
0 inactive
1 active
R
1
1-bit
0 inactive
1 active
2
1-bit
0 inactive
1 active