I am trying to figure out, for a while and with no success, how to configure the steplen and dirhold parameters, for STEPGEN software to improve the latency (for a parallel port). On some parts of the documentation I found, quote:
"
But the LinuxCNC software step generator has some parameters that let you increase the various time from one period to several. For example, if steplen is changed from 1 to 2, then it there will be two periods between the beginning and end of the step pulse. Likewise, if dirhold is changed from 1 to 3, there will be at least three periods between the step pulse and a change of the direction pin."
(
linuxcnc.org/docs/html/motion/tweaking-steppers.html
&
linuxcnc.org/docs/stable/html/config/integrator-concepts.html
)
According to this information, steplen and dirhold parameters set the number of the periods. But looking into STEPGEN documentation, steplen and dirhold set the timing in nanoseconds.
How to set steplen and dirhold to imporve the latency on a software STEPGEN? Could be steplen and dirhold parameters used to define both, a number of periods and a timing interval in nanoseconds?