How to enable wait for spindle-at-speed in QTDragon
- kas1kas
- Offline
- New Member
Less
More
- Posts: 12
- Thank you received: 0
16 Sep 2022 08:39 - 16 Sep 2022 12:20 #252069
by kas1kas
How to enable wait for spindle-at-speed in QTDragon was created by kas1kas
My spindle has analog input and output. So I am using the digital potmeter on my MESA card for spindle-output.
I use an analogin for feedback and scale it to show the correct value for RPM.
See the Spindle section of the hal file.
QTDragon correctly updates its display for SPINDLE RPM as it slowly increases to the demand value. The LED AT SPEED flashes until the speed is at the demand value. This all seems totally OK to me.
However: The spindle starts moving immediately. It does not wait at all until the spindle is at speed.
How can this be made to work correctly? What is the setting I need to change? I cannot find any pin or signal that controls this LED either.
The screenshot was made in manual mode for illustration, but the problem happens of course when I load a program and go into auto.
thanks!
I use an analogin for feedback and scale it to show the correct value for RPM.
See the Spindle section of the hal file.
QTDragon correctly updates its display for SPINDLE RPM as it slowly increases to the demand value. The LED AT SPEED flashes until the speed is at the demand value. This all seems totally OK to me.
However: The spindle starts moving immediately. It does not wait at all until the spindle is at speed.
How can this be made to work correctly? What is the setting I need to change? I cannot find any pin or signal that controls this LED either.
The screenshot was made in manual mode for illustration, but the problem happens of course when I load a program and go into auto.
thanks!
Last edit: 16 Sep 2022 12:20 by kas1kas.
Please Log in or Create an account to join the conversation.
- cmorley
- Away
- Moderator
Less
More
- Posts: 7758
- Thank you received: 2043
16 Sep 2022 12:59 - 16 Sep 2022 12:59 #252076
by cmorley
Replied by cmorley on topic How to enable wait for spindle-at-speed in QTDragon
is the signal spindle-at-speed connected to anything besides what shows in the HAL file you posted?
Last edit: 16 Sep 2022 12:59 by cmorley.
Please Log in or Create an account to join the conversation.
- kas1kas
- Offline
- New Member
Less
More
- Posts: 12
- Thank you received: 0
16 Sep 2022 15:23 #252083
by kas1kas
Replied by kas1kas on topic How to enable wait for spindle-at-speed in QTDragon
No, everything with spindle is in that one file
Please Log in or Create an account to join the conversation.
- persei8
- Offline
- Platinum Member
Less
More
- Posts: 386
- Thank you received: 121
16 Sep 2022 16:42 - 16 Sep 2022 16:51 #252088
by persei8
Replied by persei8 on topic How to enable wait for spindle-at-speed in QTDragon
Your spindle.0.at-speed pin isn't connected to anything. As an example, this is how mine is connected. I use a 7i96 board but the concept is the same.
[/code]
net at_speed and2.0.in0 <= hm2_7i96.0.gpio.006.in
net spindle-forward spindle.0.forward => and2.0.in1
net at_speed_fwd spindle.0.at-speed <= and2.0.out
net at_speed_fwd qtdragon.hal_led_atspeed
[code]The AND component is not necessary, I use it to ensure the spindle can only go forward. If your system doesn't have an external signal that you can connect to an input pin of your mesa card, you can use the NEAR HAL component. [url=http://linuxcnc.org/docs/2.7/html/man/man9/near.9.html]NEAR[/url]
Last edit: 16 Sep 2022 16:51 by persei8. Reason: Forgot the LED pin
Please Log in or Create an account to join the conversation.
- persei8
- Offline
- Platinum Member
Less
More
- Posts: 386
- Thank you received: 121
16 Sep 2022 16:56 #252089
by persei8
Replied by persei8 on topic How to enable wait for spindle-at-speed in QTDragon
Trying to fix a message just makes it worse.
Please Log in or Create an account to join the conversation.
- kas1kas
- Offline
- New Member
Less
More
- Posts: 12
- Thank you received: 0
16 Sep 2022 19:17 #252100
by kas1kas
Replied by kas1kas on topic How to enable wait for spindle-at-speed in QTDragon
Thanks!
I see now that the the spindle.0.at-speed is not connected.
So, I'm setting it up now to compare the voltage that I get back from the VFD with the output voltage from the 7i76e.
I still don't understand how this QTDragon LED gets it's information.
BTW, the line: net at_speed_fwd qtdragon.hal_led_atspeed
gives an error message:
Pin 'qtdragon.hal_led_atspeed' does not exist.
What is the name of that LED?
I see now that the the spindle.0.at-speed is not connected.
So, I'm setting it up now to compare the voltage that I get back from the VFD with the output voltage from the 7i76e.
I still don't understand how this QTDragon LED gets it's information.
BTW, the line: net at_speed_fwd qtdragon.hal_led_atspeed
gives an error message:
Pin 'qtdragon.hal_led_atspeed' does not exist.
What is the name of that LED?
Please Log in or Create an account to join the conversation.
- persei8
- Offline
- Platinum Member
Less
More
- Posts: 386
- Thank you received: 121
16 Sep 2022 20:40 #252118
by persei8
Replied by persei8 on topic How to enable wait for spindle-at-speed in QTDragon
The LED name may have changed over the various iterations. If you're using qtdragon_hd from the sim configuration that comes with qtvcp, it's name is hal_led_atspeed. If you're using qtdragon, it's name is led_at_speed.
Please Log in or Create an account to join the conversation.
- cmorley
- Away
- Moderator
Less
More
- Posts: 7758
- Thank you received: 2043
17 Sep 2022 00:54 #252132
by cmorley
Replied by cmorley on topic How to enable wait for spindle-at-speed in QTDragon
The LED is coded to do it's own comparison of requested vrs actual spindle speed.
It doesn't use a HAL pin at all.
hmm.. I could in the future export a HAL pin based on that comparison to connect to.
It doesn't use a HAL pin at all.
hmm.. I could in the future export a HAL pin based on that comparison to connect to.
Please Log in or Create an account to join the conversation.
- kas1kas
- Offline
- New Member
Less
More
- Posts: 12
- Thank you received: 0
17 Sep 2022 06:08 #252139
by kas1kas
Replied by kas1kas on topic How to enable wait for spindle-at-speed in QTDragon
Yes, if you could make a pin for the LED, that would be great. It will simplify using the spindle-at-speed, since you already calculate it.
If/when you do, how would we find out and upgrade?
Thanks
If/when you do, how would we find out and upgrade?
Thanks
Please Log in or Create an account to join the conversation.
- cmorley
- Away
- Moderator
Less
More
- Posts: 7758
- Thank you received: 2043
17 Sep 2022 12:52 #252166
by cmorley
Replied by cmorley on topic How to enable wait for spindle-at-speed in QTDragon
What version of linuxcnc do you use?
Please Log in or Create an account to join the conversation.
Moderators: cmorley
Time to create page: 0.138 seconds