Modbus User Guide
Modbus User Guide
User Guide
PowerShield Limited
PO Box 102-190
NSMC
North Shore City 0745
New Zealand
Introduction ............................................................................................................................................... 2
Contents.................................................................................................................................................... 3
Definitions for this manual ......................................................................................................................... 4
Alarms ....................................................................................................................................................... 5
Initial Setup ............................................................................................................................................... 5
Modbus Map ............................................................................................................................................. 6
Introduction ........................................................................................................................................... 6
Table Formatting ................................................................................................................................... 6
Holding Registers (Function Code 3 & 6) .............................................................................................. 6
Input Registers (Function Code 4) ........................................................................................................ 7
Appendix A: Data Formats ...................................................................................................................... 16
Initial Setup
Connect to the Controller as per the instructions in the Controller Configuration manual and login as an
admin user.
Go to the Network -> Modbus page to adjust the Modbus settings as shown below.
The first, “Modicon” Register, is a non-standard yet common method that combines a single digit
representative of (but not the same as) the Modbus Function Code followed by either a 4 or 5 digit
address. This address is typically 1 greater than the devices internal address and the software will
usually subtract 1 from it before sending the Modbus packet.
The Internal Address given in the second column is the address that the device expects in the Modbus
packet (along with the appropriate Modbus Function Code).
For the reasons given above you may also need to add or even subtract one to the addresses when
entering it into the software you use.
Table Formatting
Given that Modbus is a flat address space and cannot represent hierarchy, string and block data are
compacted into a continuous sequence of addresses with no gaps for each measurement. Since there
can be a large number of blocks and strings in a system the tables only show the start and end parts to
show the sequence that is followed. For block data, the blocks are arranged numerically from block 1 in
string 1 up to the last block in string 1 immediately followed by block 1 in string 2 and so on, depending
on the string configuration. These are then numbered starting from 1 up to the total number of blocks in
the system.
“Modicon” Internal
Length Description Value
Register Address
30002 1 16 System name First 32 characters
30017 16 16 Facility name First 32 characters
30033 32 16 Timezone First 32 characters
String Configuration
“Modicon” Internal
Length Description Value
Register Address
30101 100 1 Number of Strings
“Modicon” Internal
Length Description Value
Register Address
30311 310 1 String 1 critical 0 = no critical alarm
alarm count , >0 = number of
critical alarm
30312 311 1 String 2 critical 0 = no critical alarm
alarm count , >0 = number of
critical alarm
“Modicon” Internal
Length Description Value
Register Address
30401 400 1 Count of Alarm String Idle
30402 401 1 String Float
30403 402 1 String Charge
30404 403 1 String Discharge
30405 404 1 String State Unknown
30406 405 1 Critical Block Charge
Voltage High
30407 406 1 Warning Block Charge
Voltage High
30408 407 1 Critical Block Float
Voltage High
30409 408 1 Warning Block Float
Voltage High
30410 409 1 Critical Block Float
Voltage Low
30411 410 1 Warning Block Float
Voltage Low
30412 411 1 Critical Block Discharge
Voltage Low
30413 412 1 Warning Block
Discharge Voltage Low
30414 413 1 Critical Block Idle
Voltage Low
30415 414 1 Warning Block Idle
Voltage Low
30416 415 1 Warning Block Float
Ripple Voltage High
30417 416 1 Critical Block Charge
Temperature High
30418 417 1 Warning Block Charge
Temperature High
30419 418 1 Critical Block Charge
Temperature Low
30420 419 1 Warning Block Charge
Temperature Low
30421 420 1 Critical Block Float
Temperature High
30422 421 1 Warning Block Float
Temperature High
30423 422 1 Critical Block Float
Temperature Low
30424 423 1 Warning Block Float
Temperature Low
30425 424 1 Critical Block Discharge
Temperature High
30426 425 1 Warning Block
Discharge Temperature
High
30427 426 1 Critical Block Discharge
Temperature Low
30428 427 1 Warning Block
Discharge Temperature
Low
30429 428 1 Critical Block Idle
Temperature High
30430 429 1 Warning Block Idle
Temperature High
String State
“Modicon” Internal
Length Description Value
Register Address
30701 700 1 String 1 State 1=idle,2=float,
3=charge,
4=discharge,
5=unknown
30702 701 1 String 2 State 1=idle,2=float,
3=charge,
4=discharge,
5=unknown
30703 702 1 String 3 State 1=idle,2=float,
3=charge,
4=discharge,
5=unknown
30704 703 1 String 4 State 1=idle,2=float,
3=charge,
4=discharge,
5=unknown
“Modicon” Internal
Length Description Value
Register Address
30751 750 1 Controller Input 1 1=active,0=inactive
30752 751 1 Controller Input 2 1=active,0=inactive
30753 752 1 Hub 1 Input 1 1=active,0=inactive
30754 753 1 Hub 1 Input 2 1=active,0=inactive
Block Voltage
See appendix A for data format of values.
“Modicon” Internal
Length Description Value
Register Address
31001 1000 1 Block 1 voltage mV units
31002 1001 1 Block 2 voltage mV units
“Modicon” Internal
Length Description Value
Register Address
32001 2000 1 Block 1 ripple voltage mV units
32002 2001 1 Block 2 ripple voltage mV units
Block Temperature
See appendix A for data format of values.
“Modicon” Internal
Length Description Value
Register Address
33001 3000 1 Block 1 temperature 0.1C
33002 3001 1 Block 2 temperature
“Modicon” Internal
Length Description Value
Register Address
34001 4000 1 Block 1 ohmic µΩ
34002 4001 1 Block 2 ohmic
“Modicon” Internal
Length Description Value
Register Address
35001 5000 1 Block 1 ohmic baseline µΩ
35002 5001 1 Block 2 ohmic baseline
String Current
See appendix A for data format of values.
“Modicon” Internal
Length Description Value
Register Address
36001 6000 1 String 1 current 0.1 Amps
36002 6001 1 String 2 current 0.1 Amps
String Voltage
See appendix A for data format of values.
“Modicon” Internal
Length Description Value
Register Address
36051 6050 1 String 1 voltage 0.1 V
36052 6051 1 String 2 voltage 0.1 V
“Modicon” Internal
Length Description Value
Register Address
36101 6100 1 String 1 ripple 0.1 Amps
current
36102 6101 1 String 2 ripple 0.1 Amps
current
Ambient Temperature
See appendix A for data format of values.
“Modicon” Internal
Length Description Value
Register Address
36151 6150 1 String 1 ambient 0.1 °C
temperature 1
36152 6151 1 String 1 ambient 0.1 °C
temperature 2
Humidity
See appendix A for data format of values.
“Modicon” Internal
Length Description Value
Register Address
36251 6250 1 String 1 humidity %
36252 6251 1 String 2 humidity %
A.12: Humidity
This is an unsigned value in %.