# Level to pulse
Level to pulse
I
O
# Eingänge
| ID | Kürzel | Name | Typ | Standard | Beschreibung |
|---|---|---|---|---|---|
input | I | input | BOOLEAN | false |
# Ausgänge
| ID | Kürzel | Name | Typ | Standard | Beschreibung |
|---|---|---|---|---|---|
output | O | output | BOOLEAN | false |
# Konfiguration
| ID | Name | Typ | Standard | Einheit | Beschreibung |
|---|---|---|---|---|---|
pulse_duration | pulse_duration | NUMBER | 0.1 | s | Details: > 0 |
# Quellcode
Volang-Quellcode anzeigen
value = input::value()
extern fn onPulseEnd() {
output::set("output", false)
}
if (value) {
callback::clear()
output::set("output", true)
pulse_ms = math::round(config::get("pulse_duration") * 1000)
callback::set(pulse_ms, "onPulseEnd")
}
