LIMIT3(9) HAL Component LIMIT3(9)

limit3 - Follow input signal while obeying limits

Limit the output signal to fall between min and max, limit its slew rate to less than maxv per second, and limit its second derivative to less than maxa per second squared. When the signal is a position, this means that the position, velocity, and acceleration are limited.


1: out follows in, 0: out returns to 0 (always per constraints)

When TRUE, immediately set out to in, ignoring maxv and maxa



Max Acceleration. Note that the component becomes unstable with maxa greater than about 1e7 in a 1kHz thread
Smooth out acceleration this many periods before reaching input or max/min limit. Higher values avoid oscillation, but will accelerate slightly more slowly.

John Kasunich

GPL

2024-07-13 LinuxCNC Documentation