qtdragon setting manual spindle speed?

More
19 Sep 2023 09:23 #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 or Create an account to join the conversation.

More
20 Sep 2023 01:59 #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
Attachments:

Please Log in or Create an account to join the conversation.

More
20 Sep 2023 07:18 #281210 by Hakan
Perfect! Awesome. Thank you!

Please Log in or Create an account to join the conversation.

More
23 Sep 2023 01:16 #281416 by cmorley
Did it work they way you wanted?

Please Log in or Create an account to join the conversation.

More
23 Sep 2023 06:57 #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 or Create an account to join the conversation.

More
24 Sep 2023 00:57 #281521 by cmorley
Excellent!

Please Log in or Create an account to join the conversation.

Moderators: cmorley
Time to create page: 0.072 seconds
Powered by Kunena Forum