CBI2801224A Modbus
CBI2801224A Modbus
Introduction
For the correct management of a MODBUS network the master must know how to query each
slave, that which communication protocol, which function codes and which addresses for the
slaves and their parameters. This document provides all the information required for the master
configuration: details about the physical layer (RTU, baud rate, etc), implemented Modbus
function codes, and exchange parameters address map.
Electrical characteristics
The unit is a SLAVE in a MODBUS network. The slave units are compliant to the following
specifications:
According to the device size, as specified in the user manual, the following differences apply:
Size 3 Size 4
Connector name AUX2 AUX2 – AUX3
Terminator 120fixed none (dipswitch off) or
120(dipswitch on)
Bias 560fixed resistorbetween A FAILSAFE A: none (dipswitch
and +5V off) or 560resistorbetween
A and +5V (dipswitch on)
560 fixed resistor between B
and GND FAILSAFE B: none (dipswitch
off) or 560 resistor between
B and GND (dipswitch on)
RJ-45 connector
Functional characteristics
The slave waits for a request from the master, and checks the received packet before
performing the action requested in it. In case of errors in the request (e.g. illegal function, illegal
address, etc..), the master is notified with an error packet. If no errors are found, the requested
action is performed and a reply is sent to the master. All the parameters are 16 bit Holding
Registers (HR), with address range 40001-40114.
As far as the Modbus communications is concerned, the device can be operated in monitoring
mode or in configuration mode. For the setting of the monitoring and configuration mode refer
to the product user manual.
The configuration mode is activated engaging the relevant dipswitch or jumper in conjunction
with a battery chemistry selected by means of the device hardware controls at powerup. The
configuration mode allows customizing the charging curve of the selected chemistry and storing
the modified values in the device internal non-volatile memory. In the configuration mode, the
device ignores the front panel controls and uses the parameter values recalled from the device
non-volatile memory. However, if during the configuration mode the chemistry is changed with
respect to the chemistry referred to by the stored parameters, the newly selected chemistry
defaults are stored and the previously customized parameters are lost. The holding register
40027 provides information on whether the configuration mode is enabled (value = 1) or not
(value = 0). The configuration mode can be enabled or disabled as described when the battery
is not connected to the device.
When the configuration mode is not enabled the device uses the front panel controls. The
corresponding configuration holding registers become read-only and mirror the relevant
configuration value set using the front panel controls (e.g. the holding register 40072 displays
the charge current limit currently set by the front panel potentiometer; the holding register 40104
displays the buffering time in units of seconds corresponding to the front panel time buffering
control). Such operating mode is called the monitoring mode.
The following hardware controls are always used in both the configuration and the monitoring
mode and have no writable configuration holding register counterpart:
The battery chemistry selection dipswitches or jumpers, which are read at powerup only
The configuration mode enable dipswitch or jumper, which is read when no battery is
connected.
The “Selection out voltage” jumper, read at powerup only, and used to select the device
rated output voltage (size 4 only – refer to the device user manual)
The following holding registers can always be written both in the configuration and the
monitoring mode:
Holding register 40001 (Address of slave unit)
Holding register 40065 (History clear all: write the value 1 to clear all the histories)
The history holding registers (only the value 0 to clear the respective history is accepted)
The alarms that are mapped as bitmask in holding registers are active when the bit value is 1.
Note that valid values written to writable holding registers are automatically stored in the device
non-volatile memory.
In configuration mode, in size 3 products, turn the front panel potentiometer completely
clockwise to be able to perform the current limitation set in the holding register 40072.
The following Modbus functions for HR management are supported: function code 3 (read
holding registers), function code 6 (preset single register), function code 16 (preset multiple
registers). A summary of the implemented function codes follows.
In all cases, the slave address must be within 1 and 247; the data addresses are computed
subtracting 40001 from the holding register number, e.g. to access holding register 40092 the
value (40092 – 40001) = 91 = 0x5B must be entered. The CRC at the end of each frame is
computed as detailed in the “Modbus over serial line specification and implementation guide
V1.02” document, available for free from www.modbus.org.
NOTE – If during the 10 seconds the “BATTERY START” button is released or the “TIME
BUFFERING” selector or the “BATTERY CHARGING LEVEL” are changed , the unit starts up
immediately (without the 3 LEDs triple blinking) and the communication settings remain the
previous ones; the factory ones are NOT restored.