Class ElementToChannelScaleFactorConverter
java.lang.Object
io.openems.edge.bridge.modbus.api.ElementToChannelConverter
io.openems.edge.bridge.modbus.api.ElementToChannelScaleFactorConverter
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]
-
Field Summary
Fields inherited from class io.openems.edge.bridge.modbus.api.ElementToChannelConverter
DIRECT_1_TO_1, INVERT, KEEP_NEGATIVE_AND_INVERT, KEEP_POSITIVE, SCALE_FACTOR_1, SCALE_FACTOR_1_AND_KEEP_NEGATIVE_AND_INVERT, SCALE_FACTOR_1_AND_KEEP_POSITIVE, SCALE_FACTOR_2, SCALE_FACTOR_2_AND_INVERT, SCALE_FACTOR_2_AND_KEEP_NEGATIVE, SCALE_FACTOR_2_AND_KEEP_NEGATIVE_AND_INVERT, SCALE_FACTOR_2_AND_KEEP_POSITIVE, SCALE_FACTOR_3, SCALE_FACTOR_MINUS_1, SCALE_FACTOR_MINUS_2, SCALE_FACTOR_MINUS_3
-
Constructor Summary
ConstructorsConstructorDescriptionElementToChannelScaleFactorConverter
(int scaleFactor) ElementToChannelScaleFactorConverter
(OpenemsComponent component, SunSpecPoint point, ChannelId scaleFactorChannel) -
Method Summary
Methods inherited from class io.openems.edge.bridge.modbus.api.ElementToChannelConverter
channelToElement, elementToChannel, INVERT_IF_TRUE, SCALE_FACTOR_1_AND_INVERT_IF_TRUE, SCALE_FACTOR_2_AND_INVERT_IF_TRUE, SCALE_FACTOR_3_AND_INVERT_IF_TRUE, SCALE_FACTOR_MINUS_1_AND_INVERT_IF_TRUE, SET_ZERO_IF_TRUE
-
Constructor Details
-
ElementToChannelScaleFactorConverter
public ElementToChannelScaleFactorConverter(OpenemsComponent component, SunSpecPoint point, ChannelId scaleFactorChannel) -
ElementToChannelScaleFactorConverter
public ElementToChannelScaleFactorConverter(int scaleFactor)
-