Rigid Taping - DAC closed loop Spindle
Moderators: TomKerekes, dynomotion
Rigid Taping - DAC closed loop Spindle
Hello Tom,
I'm very eager to give a go with Rigid Tap functionality. I went thru different forums and still is something missing.
Starting from beginning,
- I found this Patch KiT https://dynomotion.com/Software/Patch/A ... dTapV434h/ .DO I have to replace some of the files in GCodeInterpeter Catalogue ?
- My Spindle is DAC closed loop setup. I'm running CW and CCW over OnCWJog.c and OnCCWJog.c scripts and analog +/-10V. I'could not find any example how to configure such case. In most cases people were changing bits.
- I'm worry about position overshoots during direction change from M3 to M4 or M5 for example. I found this during my tests.
When I'm starting spindle with command M3, Axis Dest = Position spindle starts nicely and there is no noticeable speed fluctuations.
Afterwards I'm switching Spindle off with M5 command, this situation generates situation Axis Dest > Position (because stop ramp in VFD is much more sharper then set during tuning) . Now I'm starting Spindle again with M3, Spindle Overshoots badly goes nuts in every direction until stabilises (overshooting 15kW in both direction makes you think..). To overcome this problem I placed DisableAxis command in OffJog.c and EnableAxis in OnCWJog.c This little change has fixed the problem noticeably, but I'm nut sure how this will work with Tapping
Cheers
Mateusz
I'm very eager to give a go with Rigid Tap functionality. I went thru different forums and still is something missing.
Starting from beginning,
- I found this Patch KiT https://dynomotion.com/Software/Patch/A ... dTapV434h/ .DO I have to replace some of the files in GCodeInterpeter Catalogue ?
- My Spindle is DAC closed loop setup. I'm running CW and CCW over OnCWJog.c and OnCCWJog.c scripts and analog +/-10V. I'could not find any example how to configure such case. In most cases people were changing bits.
- I'm worry about position overshoots during direction change from M3 to M4 or M5 for example. I found this during my tests.
When I'm starting spindle with command M3, Axis Dest = Position spindle starts nicely and there is no noticeable speed fluctuations.
Afterwards I'm switching Spindle off with M5 command, this situation generates situation Axis Dest > Position (because stop ramp in VFD is much more sharper then set during tuning) . Now I'm starting Spindle again with M3, Spindle Overshoots badly goes nuts in every direction until stabilises (overshooting 15kW in both direction makes you think..). To overcome this problem I placed DisableAxis command in OffJog.c and EnableAxis in OnCWJog.c This little change has fixed the problem noticeably, but I'm nut sure how this will work with Tapping
Cheers
Mateusz
- Attachments
-
- InitAxis.c
- (5.27 KiB) Downloaded 338 times
-
- OnCWJog.c
- (1.18 KiB) Downloaded 338 times
-
- OnCCWJog.c
- (1.15 KiB) Downloaded 336 times
-
- OffJog.c
- (516 Bytes) Downloaded 334 times
- TomKerekes
- Posts: 2676
- Joined: Mon Dec 04, 2017 1:49 am
Re: Rigid Taping - DAC closed loop Spindle
Hi Mateusz,
That G84 patch is not required if you are using Release Version 4.34 or later.
In your case it will probably be better to never disable your drives. Or if you do, do it after you have commanded the speed to zero and waited for the Axis to be finished decelerating to a stop.
That G84 patch is not required if you are using Release Version 4.34 or later.
In your case it will probably be better to never disable your drives. Or if you do, do it after you have commanded the speed to zero and waited for the Axis to be finished decelerating to a stop.
Regards,
Tom Kerekes
Dynomotion, Inc.
Tom Kerekes
Dynomotion, Inc.
-
- Posts: 39
- Joined: Tue Jun 02, 2020 11:14 pm
Re: Rigid Taping - DAC closed loop Spindle
You ever get this working? I am in the same position. Running spindle closed loop.
In the example code using bits for forward/reverse, it looks like I could probably just replace the bit setting for forward/reverse with calls to the onCWjog and onCCWjog functions.
In the example code using bits for forward/reverse, it looks like I could probably just replace the bit setting for forward/reverse with calls to the onCWjog and onCCWjog functions.
- TomKerekes
- Posts: 2676
- Joined: Mon Dec 04, 2017 1:49 am
Re: Rigid Taping - DAC closed loop Spindle
Hi cwatson1982,
Not sure what you mean. Those are C Programs not functions. You can't "call" them. But you can code equivalent things.
Not sure what you mean. Those are C Programs not functions. You can't "call" them. But you can code equivalent things.
Regards,
Tom Kerekes
Dynomotion, Inc.
Tom Kerekes
Dynomotion, Inc.
Re: Rigid Taping - DAC closed loop Spindle
Hello Gents,
I would like to refresh this topic, I'm sorry I had no chance to get finish this project, things went off on a tangent.
This time machine is very similar, Spindle on DAC working as servo well tuned. Now machine is ready to implement Rigid Taping, thing is I feel confused regarding information. I did observed many smart discussions, but....
- which C code should I use to configure my Spindle it does operate with two bits to switch ON and +/- 10V to change a direction of spin.
- how to implement configuration code or is already embedded ? , Does M119 should start the thread once G84 is called ?
- Threading window in Trajectory Planner is configured: Encoder 1 ; Encoder Axis 3 ;
Regards
Mateusz
I would like to refresh this topic, I'm sorry I had no chance to get finish this project, things went off on a tangent.
This time machine is very similar, Spindle on DAC working as servo well tuned. Now machine is ready to implement Rigid Taping, thing is I feel confused regarding information. I did observed many smart discussions, but....
- which C code should I use to configure my Spindle it does operate with two bits to switch ON and +/- 10V to change a direction of spin.
- how to implement configuration code or is already embedded ? , Does M119 should start the thread once G84 is called ?
- Threading window in Trajectory Planner is configured: Encoder 1 ; Encoder Axis 3 ;
Regards
Mateusz
- TomKerekes
- Posts: 2676
- Joined: Mon Dec 04, 2017 1:49 am
Re: Rigid Taping - DAC closed loop Spindle
Hi Mateusz,
You might use: \C Programs\RigidTap\RigidTapMultiPassJogM119_v1.cwhich C code should I use to configure my Spindle it does operate with two bits to switch ON and +/- 10V to change a direction of spin
I'm not sure what you mean. You would change the defines in the above program to configure things for your System.how to implement configuration code or is already embedded ?
Yes, when G84 is interpreted it invokes the M119 Action.Does M119 should start the thread once G84 is called ?
You also need to know counts/rev and configure those in the C Program.Threading window in Trajectory Planner is configured: Encoder 1 ; Encoder Axis 3
Regards,
Tom Kerekes
Dynomotion, Inc.
Tom Kerekes
Dynomotion, Inc.
Re: Rigid Taping - DAC closed loop Spindle
Hi Tom,
I will continue this post, in some point we run two the same topics.
thank you for above answer it works but with V1.Jim version.
I mentioned that I've got signal "Speed reached" (current speed n = n set point) from Spindle VFD .
It is actually not useful because having ramp up / down for Spindle generated by KFklop, I'm getting this signal read out all of the time, sometimes it is flickering of course but it is enough to trigger program further.. I can set very tight window to assess this signal but sometimes I'm getting short pulses to early.
To overcome this problem I was thinking to do very steep ramp acceleration and introduce ramp in the drive to make this signal useful. In that way Spindle will be behind of the set point till will reach it. What do you think Tom ? does PID will cope with this situation?
OR.. There is a simple function to write when Spindle has reached the end of the ramp ?
At the moment I placed delay for safety reason in each script, but of of course this is good just for certain speeds.
Regards Mateusz
I will continue this post, in some point we run two the same topics.
thank you for above answer it works but with V1.Jim version.
I mentioned that I've got signal "Speed reached" (current speed n = n set point) from Spindle VFD .
It is actually not useful because having ramp up / down for Spindle generated by KFklop, I'm getting this signal read out all of the time, sometimes it is flickering of course but it is enough to trigger program further.. I can set very tight window to assess this signal but sometimes I'm getting short pulses to early.
To overcome this problem I was thinking to do very steep ramp acceleration and introduce ramp in the drive to make this signal useful. In that way Spindle will be behind of the set point till will reach it. What do you think Tom ? does PID will cope with this situation?
OR.. There is a simple function to write when Spindle has reached the end of the ramp ?
At the moment I placed delay for safety reason in each script, but of of course this is good just for certain speeds.
Regards Mateusz
- TomKerekes
- Posts: 2676
- Joined: Mon Dec 04, 2017 1:49 am
Re: Rigid Taping - DAC closed loop Spindle
Hi Mateuse,
No I would not set a high Acceleration to cause a huge following error.
You might add something like this that should wait until the commanded Spindle speed is within 1 RPM of the set speed.
No I would not set a high Acceleration to cause a huge following error.
You might add something like this that should wait until the commanded Spindle speed is within 1 RPM of the set speed.
Code: Select all
while (fast_fabs(fast_fabs(chan[SPINDLEAXIS].last_vel) - speed * FACTOR) > 1.0) ;
Regards,
Tom Kerekes
Dynomotion, Inc.
Tom Kerekes
Dynomotion, Inc.
Re: Rigid Taping - DAC closed loop Spindle
Thank you it works!
BTW, what is fast_fabs ? some math function?
BTW, what is fast_fabs ? some math function?
- TomKerekes
- Posts: 2676
- Joined: Mon Dec 04, 2017 1:49 am
Re: Rigid Taping - DAC closed loop Spindle
fast_fabs() is a function to take the absolute value of a floating point number quickly.
Regards,
Tom Kerekes
Dynomotion, Inc.
Tom Kerekes
Dynomotion, Inc.