Page 1 of 1
Spindle Override Displayed Value Updating
Posted: Sat Nov 24, 2018 6:16 am
by MadTooler
I am now using the KStep to control my spindle via the 10v analog output. My new C programs seem to be working for all of the spindle control buttons on my new screens as well.
What I am missing is any output on the S speed override at anytime. Whether running at 1, under, or over. I do not have any encoders or feedback on the spindle to be truly accurate, but a general idea based on the PWM and spindle slider would be nice. Ideally, it would be nice if this would be updated anytime the spindle was on, regardless if a gcode was being run or not.
- SpindleSpeedUpdate.PNG (9.43 KiB) Viewed 3018 times
Thanks again and Happy after Turkey weekend!
Re: Spindle Override Displayed Value Updating
Posted: Sat Nov 24, 2018 4:47 pm
by TomKerekes
Hi MadTooler,
That readout is intended to display the actual measured spindle speed. There is also an associated red bar graph that indicates the relative speed vs the programmed speed.
- RedBarGraph.png (7.88 KiB) Viewed 3014 times
It requires Threading to be
properly configured to know which Axis will service the Spindle encoder and so forth.
- Threading[1].png (4.35 KiB) Viewed 3014 times
The best approach would be to add feedback from your Spindle.
Otherwise you might fake that you have an encoder by continuously setting the Axis Position to the Commanded Position by adding something like:
chx->Position = chx->Dest;
into a forever loop.
Another approach might be to create your own DRO and/or Vertical Bar Graph using the Screen Editor and update it whenever you change the Spindle Speed.
Regards
Re: Spindle Override Displayed Value Updating
Posted: Sun Nov 25, 2018 5:40 am
by MadTooler
I do not plan on spindle feedback for now. The DRO solution worked well. Thanks.
Interesting that the bar graphs do not show in the screen editor while a Kflop is not connected. They also do not function with the KStep where no encoders are present. I can see the usefulness where functionality, or lack there of, can help diagnose or confirm system integrity, but it also would be nice for setups limited like this one to have the checkbox option for as commanded/over ridden indicators. Maybe a new feature suggestion?