Hi all,
During a retrofit I came across a VFD that had no manual, so tuning frequencies to analog voltage input was looking to be a challenge.
This was a problem for the rigid tapping set up. As you know, proper spindle speed synch is the key to success here. After much head scratching, I came up with a novel solution to this situation (novel, not elegant ). I'm sharing here in the hope that it can help someone out of a bind one day as well!
Here's how I did it;
I first confirmed the deviation between the commanded spindle speed and the actual spindle speed (in this case it was 24RPM too low across the full 600rpm - 6,000rpm range). If you have a variable deviation across your speed range, you will need to find the deviation at your rigid tapping speed (usually 640RPM).
Next, I opened the post processor used for this machine with Visual Studio code and found the spindle speed output line (John Saunders / NYCNC has an excellent video detailing post editing on YouTube. His video is Fusion focused, but I can confirm the method also works with HSMXpress).
I then edited the post processor code for this speed command line to compensate for the deviation between commanded and actual speed (in this case +24)
All other rigid tapping parameters are set in the Wizard based on the technical bulletin 304. If you are struggling to find your spindle drift & accel/deceleration times the high speed camera on your phone can be a help).
Now when the toolpaths are posted from CAM, all commanded speeds have the compensatory amount added (e.g for 640rpm in CAM, the post output gives 664rpm as the S command.). By changing the spindle speed AFTER CAM, the inbuilt calculators for speed / feed sync will remain unchanged. (If you were to simply bump the speed up in CAM, the feed would also change proportionally as it is linked to both the speed and pitch of the tool).
In practice this seems to be working well. I stress tested the system tapping an M5x0.8mm blind hole, 20mm deep in cold rolled 1020 'mild' steel at 800rpm with good results. This particular machine will not be tapping more than 10mm in 6061 aluminium for production, so the performance is adequate for the application. Your mileage may vary!
Now yes, I know this isn't a best practice post. It is always better to set things up correctly rather than fudge things in code, but hopefully this provides people with another hammer in the tool bag when they find themselves in this same situation!
Good luck, and have fun!
Rigid Tapping - A novel approach to spindle speed synch
Moderator: cnckeith
-
- Posts: 14
- Joined: Wed Oct 28, 2020 2:54 am
- Acorn CNC Controller: Yes
- Allin1DC CNC Controller: No
- Oak CNC controller: No
- CNC Control System Serial Number: none
- DC3IOB: No
- CNC12: Yes
- CNC11: No
- CPU10 or CPU7: No
- Location: Christchurch, New Zealand
Re: Rigid Tapping - A novel approach to spindle speed synch
If you are actually using rigid tapping (i.e. you have Parameter 36 set to 1, and your post is using G84), then this adjustment is not necessary.
During G84 (or G74) rigid tapping, the Centroid control will slave Z movement to the observed counts of the spindle encoder as the tapping cycle runs: if the spindle turns faster, Z will move faster; if the spindle turns slower, Z will move slower.
Matching actual speed to commanded speed is more important when you don't have rigid tapping, and are instead using the floating-tap version of G84 (with Parameter 36 set to 0). Then the G codes do have a feedrate (mm/min or in/min) that is calculated based on the expected spindle RPM.
During G84 (or G74) rigid tapping, the Centroid control will slave Z movement to the observed counts of the spindle encoder as the tapping cycle runs: if the spindle turns faster, Z will move faster; if the spindle turns slower, Z will move slower.
Matching actual speed to commanded speed is more important when you don't have rigid tapping, and are instead using the floating-tap version of G84 (with Parameter 36 set to 0). Then the G codes do have a feedrate (mm/min or in/min) that is calculated based on the expected spindle RPM.
-
- Posts: 14
- Joined: Wed Oct 28, 2020 2:54 am
- Acorn CNC Controller: Yes
- Allin1DC CNC Controller: No
- Oak CNC controller: No
- CNC Control System Serial Number: none
- DC3IOB: No
- CNC12: Yes
- CNC11: No
- CPU10 or CPU7: No
- Location: Christchurch, New Zealand
Re: Rigid Tapping - A novel approach to spindle speed synch
Hi cncsnw,
Thanks for that. That is exactly how I understood the rigid tapping function to work. I found that I was still making a mess with the threads though until I managed to sort the spindle speed via the bodge above.
It's entirely possible that I do have an incorrect setting - I enabled rigid tapping in the wizard rather than the parameters menu - do you know if this is incorrect and I needed to do a parameter adjustment in the configuration as well / instead? I'll investigate further when I see the machine again and report back.
As a happy side effect, the spindle speed displayed when running is now correct!
Thanks for that. That is exactly how I understood the rigid tapping function to work. I found that I was still making a mess with the threads though until I managed to sort the spindle speed via the bodge above.
It's entirely possible that I do have an incorrect setting - I enabled rigid tapping in the wizard rather than the parameters menu - do you know if this is incorrect and I needed to do a parameter adjustment in the configuration as well / instead? I'll investigate further when I see the machine again and report back.
As a happy side effect, the spindle speed displayed when running is now correct!
Re: Rigid Tapping - A novel approach to spindle speed synch
The Wizard should set the appropriate parameters.
I prefer to quote parameters, because they are what govern how the control runs. The Wizard is just a front end to make setup easier for beginners.
I prefer to quote parameters, because they are what govern how the control runs. The Wizard is just a front end to make setup easier for beginners.
-
- Posts: 7507
- Joined: Wed Mar 03, 2010 4:23 pm
- Acorn CNC Controller: Yes
- Allin1DC CNC Controller: Yes
- Oak CNC controller: Yes
- CNC Control System Serial Number: none
- DC3IOB: Yes
- CNC11: Yes
- CPU10 or CPU7: Yes
- Contact:
Re: Rigid Tapping - A novel approach to spindle speed synch
Need support? READ THIS POST first. http://centroidcncforum.com/viewtopic.php?f=60&t=1043
All Acorn Documentation is located here: viewtopic.php?f=60&t=3397
Answers to common questions: viewforum.php?f=63
and here viewforum.php?f=61
Gear we use but don't sell. https://www.centroidcnc.com/centroid_di ... _gear.html
All Acorn Documentation is located here: viewtopic.php?f=60&t=3397
Answers to common questions: viewforum.php?f=63
and here viewforum.php?f=61
Gear we use but don't sell. https://www.centroidcnc.com/centroid_di ... _gear.html