Hi
I am trying to figure out how the spindle override slider works and how to make spindle over ride buttons for specific speeds. I have attached the screen I made to this post but it is not working as expected. I want the following done.
1) Use the slider to override the spindle at any point in the code and keep the range from 6000 to 18000 (what it does right now is it ranges on the rpms depending on the current spindle speed of the g-code program, I don't want it to be dependent on the program speed.)
2) Have buttons with specific rpm that when clicked it goes to that rpm and overrides the g code program. (what it does now is it ranges on the rpms depending on the current spindle speed of the g-code program and it doesn't over ride the program.)
My max speed is 18000 rpm and Min is 6000 rpm, so when coding it uses 100 as the 6000 and 300 as 18000
Here is the code I am using for the buttons under the left up script:
scr.SetProperty('slideSRO', 'Value', tostring(100)); <-- this is for the speed or 6000
scr.SetProperty('slideSRO', 'Value', tostring(133.3)); <-- This is for speed of 8000
scr.SetProperty('slideSRO', 'Value', tostring(166.6)); <-- This is for speed of 10000
scr.SetProperty('slideSRO', 'Value', tostring(200)); <-- This is for speed of 12000
scr.SetProperty('slideSRO', 'Value', tostring(233.3)); <-- This is for speed of 14000
scr.SetProperty('slideSRO', 'Value', tostring(266.6)); <-- This is for speed of 16000
scr.SetProperty('slideSRO', 'Value', tostring(300)); <-- This is for speed of 18000