# Numeric input

Wejścia register

Wejście numeryczne modułu Voldeno

Numeric input
V

# Wyjścia

IDSkrótNazwaTypDomyślnieOpis
valueVWartośćNUMBER0Wartość numeryczna

# Konfiguracja

IDNazwaTypDomyślnieJednostkaOpis
scaleSkalaNUMBER1Skala
offsetPrzesunięcieNUMBER0Przesunię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)
Wejście numeryczne modułu Voldeno