logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

sim_spindle - Simulated spindle with index pulse

Author

       Michael Haberler

Functions

sim-spindle.N (requires a floating-point thread)

License

       GPL

LinuxCNC Documentation                             2025-08-07                                     SIM_SPINDLE(9)

Name

       sim_spindle - Simulated spindle with index pulse

Parameters

sim-spindle.N.scale float rw (default: 1.0)
              factor applied to velocity-cmd.

              The  result  of 'velocity-cmd * scale' be in revolutions per second.  For example, if velocity-cmd
              is in revolutions/minute, scale should be set to 1/60 or 0.016666667.

Pins

sim-spindle.N.velocity-cmd float in
              Commanded speed

       sim-spindle.N.position-fb float out
              Feedback position, in revolutions

       sim-spindle.N.index-enable bit io
              Reset position-fb to 0 at the next full rotation

Synopsis

loadrtsim_spindle[count=N|names=name1[,name2...]]

See Also