beautypg.com

Blue Sky UCM User Manual

Page 18

background image

Blue Sky Energy – Universal Communication Module

17

Supported MODBUS Functions

1) Read Coils (0x01), Read Discrete Inputs (0x02)

Query Packet:

Slave address | Function code 0x02 or 0x03 | MSB starting address | LSB address |

MSB number of points | LSB number of points | LSB CRC | MSB CRC

Response Packet:

Slave address | Function code 0x02 or 0x03 | Number of data bytes always 1 |

Bit packed status, LS bit status of addressed point | LSB CRC | MSB CRC

READ COILS

PDU ADDRESS

LOGICAL COIL #

DESCRIPTION

0x0000

1

Charge Efficiency Mode, 0 = Auto, 1 = Fixed

0x0001 2

Aux Out Mode, 0 = Volts, 1 = Amp-Hours

0x0002 3

Aux Out State, 0 = Off, 1 = On

0x0003

4

Temperature Sensor, 0 = Bad or missing

TABLE 4

2a) Read Holding Registers (0x03), Read Input Registers (0x04)

Query Packet:

Slave address | Function code = 0x03 or 0x04 | MSB starting register address | LSB address |

MSB number of registers | LSB number of registers | LSB CRC | MSB CRC

Response Packet:

Slave address | Function code = 0x03 or 0x04 | number of data bytes | MSB of first register’s contents |

LSB of first register’s contents | … contents of more registers… | LSB CRC | MSB CRC

2b) Preset Single Register (0x06)

Used for changing all charge controller and IPN-ProRemote setpoints.

Query Packet:

Slave Address | Function = 0x06 | MSB register address | LSB register address |

MSB preset data | LSB preset data | LSB CRC | MSB CRC

Response Packet:

Slave Address | Function = 0x06 | MSB register address | LSB register address |

MSB preset data | LSB preset data | LSB CRC | MSB CRC

MODBUS REGISTERS

PDU

ADDRESS

LOGICAL

REGISTER #

FUNCTION

CODES

DESCRIPTION

UNITS

SCALING

0x0000

1

3, 4

Charge State

Coded

0 = Off 1 = Acceptance
2 = Float 3 = Equalize
4 = Bulk

0x0001

2

3, 4

Battery Volts

V

X10

0x0002

3

3, 4

Net Battery Amps, signed

A

X10

0x0003

4

3, 4

Sum of Input Amps from All Controllers

A

X10

0x0004

5

3, 4

Sum of Output Amps from All Controllers

A

X10

0x0005

6

3, 4

% Remaining Battery Capacity

%

None. Data valid following
first switch to Float

0x0006

7

3, 4

Battery Amp-Hours from Full, sent
unsigned

A

None. Data valid following
first switch to Float

0x0007 8

3,

4

Aux. Battery Volts from Master, also
functions in Load Control mode

V

X10

0x0008

9

3, 4

Remaining Equalize Time

Hours

X10

0x0009

10

3, 4

Days Since Last Full Charge

Days

none

0x000A

11

3, 4

Days Since Last Equalize

Days

none

0x000B

12

3, 4

Max. Battery Voltage Detected

V

X10

0x000C

13

3, 4

Min. Battery Voltage Detected

V

X10