# Numeric input
Wejście numeryczne modułu Voldeno
Numeric input
V
# Wyjścia
| ID | Skrót | Nazwa | Typ | Domyślnie | Opis |
|---|---|---|---|---|---|
value | V | Wartość | NUMBER | 0 | Wartość numeryczna |
# Konfiguracja
| ID | Nazwa | Typ | Domyślnie | Jednostka | Opis |
|---|---|---|---|---|---|
scale | Skala | NUMBER | 1 | Skala | |
offset | Przesunięcie | NUMBER | 0 | Przesunięcie |
# Kod źródłowy
Pokaż kod Volang
// 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)
