LinuxCNC Documentation

SYNOPSIS

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

DESCRIPTION

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".

FUNCTIONS

oneshot.N

Produce output pulses from input edges

PINS

oneshot.N.in bool in

Trigger input

oneshot.N.reset bool in

Reset

oneshot.N.out bool out

Active high pulse

oneshot.N.out-not bool out

Active low pulse

oneshot.N.width real in (default: 0)

Pulse width in seconds

oneshot.N.time-left real out

Time left in current output pulse

PARAMETERS

oneshot.N.retriggerable bool rw (default: TRUE)

Allow additional edges to extend pulse

oneshot.N.rising bool rw (default: TRUE)

Trigger on rising edge

oneshot.N.falling bool rw (default: FALSE)

Trigger on falling edge

AUTHOR

John Kasunich

LICENSE

GPL