qtdragon setting manual spindle speed?

More
3 years 1 month ago #281144 by Hakan
Just started to work with qtdragon and its a pleasure..
But there isn't a way to set the manual spindle speed, is there?
When I press the forward or reverse button it always starts the spindle with [DISPLAY]DEFAULT_SPINDLE_0_SPEED speed.
I know I can press again and the speed changes in increments. Also, I can start the spindle with the mdi s1000m3 for example but that speed doesn't stick. After a stop, the next press on spindle fwd means the default_spindle_0_speed.
What I am after is to set the spindle starting speed other than the [DISPLAY]DEFAULT_SPINDLE_0_SPEED that comes from the ini file. So every time I start the spindle with the manual buttons (and the pendant button now when I think of it) it uses the set speed. It doesn't necessarily have to be the Sxx speed from the MDI, but that could be a choise.

Please Log in to join the conversation.

More
3 years 1 month ago #281202 by cmorley
Try this hack to follow the last S code setting.

add the attatcjed file in your config folder, named 'spindle_default_speed.py'
add this command in the INI under the [DISPLAY] heading:

USER_COMMAND_FILE = CONFIGFOLDER/spindle_default_speed.py

first manual button press (before setting S speed) will be the ini default setting.
After setting the S code in MDI or Program, the next time it will start at that speed.

Chris

Please Log in to join the conversation.

More
3 years 1 month ago #281210 by Hakan
Perfect! Awesome. Thank you!

Please Log in to join the conversation.

More
3 years 1 month ago #281416 by cmorley
Did it work they way you wanted?

Please Log in to join the conversation.

More
3 years 1 month ago #281437 by Hakan
Yes it did, that's what I tried to express above.
The best thing is that it doesn't change the gui code, the gui can still be updated and the only additions are in my config directory.

Please Log in to join the conversation.

More
3 years 1 month ago #281521 by cmorley
Excellent!

Please Log in to join the conversation.

Time to create page: 0.106 seconds
Powered by Kunena Forum