Skip to content

Commit

Permalink
Fix SDM 630 modbus addresses for Reactive Power (#1772)
Browse files Browse the repository at this point in the history
  • Loading branch information
DerWahreKlinki authored Mar 28, 2022
1 parent 88af541 commit 9df274e
Showing 1 changed file with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,19 +123,20 @@ protected ModbusProtocol defineModbusProtocol() throws OpenemsException {
new FloatDoublewordElement(30017 - offset).wordOrder(WordOrder.MSWLSW)
.byteOrder(ByteOrder.BIG_ENDIAN),
ElementToChannelConverter.DIRECT_1_TO_1),
new DummyRegisterElement(30019 - offset, 30024 - offset),
m(AsymmetricMeter.ChannelId.REACTIVE_POWER_L1,
new FloatDoublewordElement(30019 - offset).wordOrder(WordOrder.MSWLSW)
new FloatDoublewordElement(30025 - offset).wordOrder(WordOrder.MSWLSW)
.byteOrder(ByteOrder.BIG_ENDIAN),
ElementToChannelConverter.DIRECT_1_TO_1),
m(AsymmetricMeter.ChannelId.REACTIVE_POWER_L2,
new FloatDoublewordElement(30021 - offset).wordOrder(WordOrder.MSWLSW)
new FloatDoublewordElement(30027 - offset).wordOrder(WordOrder.MSWLSW)
.byteOrder(ByteOrder.BIG_ENDIAN),
ElementToChannelConverter.DIRECT_1_TO_1),
m(AsymmetricMeter.ChannelId.REACTIVE_POWER_L3,
new FloatDoublewordElement(30023 - offset).wordOrder(WordOrder.MSWLSW)
new FloatDoublewordElement(30029 - offset).wordOrder(WordOrder.MSWLSW)
.byteOrder(ByteOrder.BIG_ENDIAN),
ElementToChannelConverter.DIRECT_1_TO_1),
new DummyRegisterElement(30025 - offset, 30048 - offset),
new DummyRegisterElement(30031 - offset, 30048 - offset),
m(SymmetricMeter.ChannelId.CURRENT,
new FloatDoublewordElement(30049 - offset).wordOrder(WordOrder.MSWLSW)
.byteOrder(ByteOrder.BIG_ENDIAN),
Expand All @@ -145,12 +146,12 @@ protected ModbusProtocol defineModbusProtocol() throws OpenemsException {
new FloatDoublewordElement(30053 - offset).wordOrder(WordOrder.MSWLSW)
.byteOrder(ByteOrder.BIG_ENDIAN),
ElementToChannelConverter.DIRECT_1_TO_1),
new DummyRegisterElement(30055 - offset, 30056 - offset),
new DummyRegisterElement(30055 - offset, 30060 - offset),
m(SymmetricMeter.ChannelId.REACTIVE_POWER,
new FloatDoublewordElement(30057 - offset).wordOrder(WordOrder.MSWLSW)
new FloatDoublewordElement(30061 - offset).wordOrder(WordOrder.MSWLSW)
.byteOrder(ByteOrder.BIG_ENDIAN),
ElementToChannelConverter.DIRECT_1_TO_1),
new DummyRegisterElement(30059 - offset, 30070 - offset),
new DummyRegisterElement(30063 - offset, 30070 - offset),
m(SymmetricMeter.ChannelId.FREQUENCY,
new FloatDoublewordElement(30071 - offset).wordOrder(WordOrder.MSWLSW)
.byteOrder(ByteOrder.BIG_ENDIAN),
Expand Down

0 comments on commit 9df274e

Please sign in to comment.