# Numeric input
Numeric input
V
# Ausgänge
| ID | Kürzel | Name | Typ | Standard | Beschreibung |
|---|---|---|---|---|---|
value | V | value | NUMBER | 0 |
# Konfiguration
| ID | Name | Typ | Standard | Einheit | Beschreibung |
|---|---|---|---|---|---|
scale | scale | NUMBER | 1 | ||
offset | offset | NUMBER | 0 |
# Quellcode
Volang-Quellcode anzeigen
// NOTE: Input registers from Voldeno modules are sent as integers with 1000 multiplier
scale = config::get("scale") * 0.001
offset = config::get("offset")
value = input::value()
output::set("value", math::round((value * scale + offset) * 1000) / 1000)
