DOKK / manpages / debian 12 / linuxcnc-uspace / oneshot.9.en
ONESHOT(9) HAL Component ONESHOT(9)

oneshot - one-shot pulse generator

loadrt oneshot [count=N|names=name1[,name2...]]

creates a variable-length output pulse when the input changes state. This function needs to run in a thread which supports floating point (typically the servo thread). This means that the pulse length has to be a multiple of that thread period, typically 1mS. For a similar function that can run in the base thread, and which offers higher resolution, see "edge".

Produce output pulses from input edges

Trigger input
Reset
Active high pulse
Active low pulse
Pulse width in seconds
Time left in current output pulse

Allow additional edges to extend pulse
Trigger on rising edge
Trigger on falling edge

John Kasunich

GPL

2023-02-10 LinuxCNC Documentation