Okay, i got it running now
Next question:
- The Production is shown as “Consumption” but in fact there is no “Consumption-Meter” there, so it should be sent to grid instead on the UI…
This is my Impl. so far, where i handle if the inverter is only a String-Inverter without a Battery:
@Override
protected ModbusProtocol defineModbusProtocol() throws OpenemsException {
if (isFeedGrid()) {
// In feed-grid mode, read only production and grid feeding registers
return new ModbusProtocol(this, new FC4ReadInputRegistersTask(4989, Priority.HIGH,
// Read production registers
m(ElectricityMeter.ChannelId.ACTIVE_PRODUCTION_ENERGY,
new UnsignedDoublewordElement(5003).wordOrder(WordOrder.LSWMSW),
ElementToChannelConverter.SCALE_FACTOR_3),
new DummyRegisterElement(5004, 5029),
// Read grid feeding registers
m(ElectricityMeter.ChannelId.ACTIVE_POWER,
new UnsignedDoublewordElement(5030).wordOrder(WordOrder.LSWMSW))
));
} else {
How do i fix this?