minSegmentTime()

Set the minimum time (in milliseconds) any single move is allowed to take.

Short, fast moves can finish faster than the serial link can send the next command, starving the printer's planner buffer and causing stuttering. This clamps the feedrate so each move lasts at least ms, keeping motion smooth. It only ever lowers the feedrate, and only for moves shorter than feedrate * ms; longer moves are unaffected. Set to 0 to disable. Mirrors Marlin's DEFAULT_MINSEGMENTTIME (default 20ms). Resets to the printer profile default at the start of each fabDraw() call. Use push() / pop() to scope a temporary change.

Parameters

Name Type Description
ms number Minimum move duration in milliseconds. 0 disables the clamp.

Examples

Syntax

fab.minSegmentTime(ms)