Vinito wrote: ... but there's enable, make-pulses, scaling (what the...), even step and dir, and others, then various parameters, all of which I can somewhat understand but I don't know which are actually required or necessary.
It is indeed baffling.
To simplify the puzzling configuration: use stepconf to create a valid PWM spindle configuration, pretending your spindle motor has a PWM-signal velocity-control. Then hand-edit the configuration (.ini and .hal files) to modify the
pwmgen to the
stepgen that matches your hardware. This minimizes the amount of HAL schemas you have to invent.
You should also qualify your system's base-thread bandwidth available before investing in the approach. This is an upper bound on stepped spindle performance. For example, if your system were limited to, say, 12 kHz step rates and the motor is 600 steps/rev, then that's 12K/600 = 20 rev/sec = 1200 rpm max spindle speed. That's going to foil any 1800, 3000, or 3600 rpm imaginations you might dream from a given motor's native capacity. Motor speeds are a problem for small machine tools, which require using small diameter cutters, which require higher rpms to maintain SFM speed. In the end you can find yourself unhappily cornered into an unfavorable area of the performance envelope and crossing into infeasible areas. Then you'll regret the investment and learn the hard way that a 6000 rpm motor-spindle with sub-thou runout/rigidity is what a small machine needs as a basic element. These competing factors all must be orchestrated and harmonized from the concept stage, if you're inventing instead of following a proven configuration recipe.