Class ElementToChannelScaleFactorConverter

java.lang.Object
io.openems.edge.bridge.modbus.api.ElementToChannelConverter
io.openems.edge.bridge.modbus.api.ElementToChannelScaleFactorConverter

public class ElementToChannelScaleFactorConverter extends ElementToChannelConverter
Converts between Element and Channel by applying a scale factor.

(channel = element * 10^scaleFactor)

Example: if the Register is in unit [0.1 V] and this converter has a scaleFactor of '2', it converts to unit [1 mV]

  • Constructor Details

    • ElementToChannelScaleFactorConverter

      public ElementToChannelScaleFactorConverter(OpenemsComponent component, SunSpecPoint point, ChannelId scaleFactorChannel)
    • ElementToChannelScaleFactorConverter

      public ElementToChannelScaleFactorConverter(int scaleFactor)