I’ve spent some time playing with the spindle component. It seems to have a number of bugs, beyond the issue with the documentation. Somehow a negative speed command multiplied by a negative gear ratio yields a negative speed. And the forward and reverse pins track the commanded speed, not the gear ratio, despite what the documentation indicates. It has promise, but seems to have quite a few things that need to be worked out. At the moment I’d declare it unusable for any reversal of speed due to gearing, despite the documentation indicating it should work. However, it does properly handle the forward and reverse pins for positive and negative commanded speeds, so it should work for more conventional gearing. It seems I’ll be going with Andy’s solution and scaling the speed in a mult component for now.
> On Dec 14, 2020, at 11:00 AM, andy pugh <[email protected]> wrote: > > I suggest playing with it in an interactive hal session. See if the > inputs and outputs do what you want. > > Open a terminal, and with linuxcnc not running: > > halrun > loadrt spindle names=spindlegear numgears=2 > loadrt threads > addf spindlegear.0 thread1 > start > > {You now have a very basic HAL system running realtime, and containing > only the spindle component. > Now you can experiment with the behaviour} > > show pin > {Will show all the pins) > > {Let's load a halmeter to look at the output} > loadusr halmeter pin spindlegear.0.output > > {Now fiddle with inputs and outputs to see what happens. You can use > tab-completion to save typing} > setp spindlegear.0.scale.0 1 > setp spindlegear.0.scale.1 8.3 > setp spindlegear.0.select.1 1 > setp spindlegear.0.commanded-speed 100 > show pin spindlegear.0.forward > {and so on} > > {when finished, or to start again} > exit _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
