Rigid tapping
Moderators: TomKerekes, dynomotion
Re: Rigid tapping
Hello Francois,
I've got the same problem, I did testing with the same file on version 4.35f what I've discovered tapping process goes just when you will turn spindle on prior starting Gcode program also Spindle spins in opposite way round, when program ends spindle turns off which is fine.
Please try, because I've got the same issue I'll describe it on my already open thread.
Regards
Mateusz
I've got the same problem, I did testing with the same file on version 4.35f what I've discovered tapping process goes just when you will turn spindle on prior starting Gcode program also Spindle spins in opposite way round, when program ends spindle turns off which is fine.
Please try, because I've got the same issue I'll describe it on my already open thread.
Regards
Mateusz
Re: Rigid tapping
I would like to correct my previous post:
- behaviour which I have described is present with file : RigidTapMultiPassJogM119_v1_Jim.c
- also I tested recommended file: RigidTapMultiPassJogM119_v1.c but no luck does not turn Spindle ON.
- behaviour which I have described is present with file : RigidTapMultiPassJogM119_v1_Jim.c
- also I tested recommended file: RigidTapMultiPassJogM119_v1.c but no luck does not turn Spindle ON.
- TomKerekes
- Posts: 2676
- Joined: Mon Dec 04, 2017 1:49 am
Re: Rigid tapping
Hi Mateusz,
What programs are you using for M3, M4, S? Do they work correctly? Post them including MySpindleDefs.h.
How do you turn your Spindle on and off?
What programs are you using for M3, M4, S? Do they work correctly? Post them including MySpindleDefs.h.
How do you turn your Spindle on and off?
Regards,
Tom Kerekes
Dynomotion, Inc.
Tom Kerekes
Dynomotion, Inc.
Re: Rigid tapping
Hi Tom,
Thank you for answer,
- Yes my Spindle control works great M3, M4, M5 commands are invoking adequate programs in thread 2
Spindle files: OffJog.c , OnCCWJog.c , OnCWJog.c
- M119 Invoking RigidTapMultiPassJogM119_v1.c file in thread 6
I was testing code below:
(Call a Rigid Tap Sequence)
G21
F1000
S300
G1 X40 Y40
G1 Z20
G98 G84 Z-12 R2 Q2 F2
M30
Results: spindle is not turning on, Z axis starts from Z20 goes to Z2 and goes back to Z20.
Console read out:
Units = mm
Bottom = -12.000000
Pitch = 2.000000
Jogging Spindle Stop
From the other hand I Invoked file : RigidTapMultiPassJogM119_v1_Jim.c First reaction was the same like above- no tapping, but when I turned Spindle on before Gcode program went fine with whole tapping procedure a part of spinning spindle in opposite way round with every step
Jogging Spindle 12873.142850 counts/sec
Jogging Spindle 12873.142850 counts/sec
Bottom = -12.000000
Retract = 2.000000
Peck = 4.000000
Pitch = 2.000000
RPM = 300.000000
Units = mm
Axis = 2
AxisRes = 254000.000000
Bottom = -0.472441 Inches
Retract = 0.078740 Inches
Peck = 0.157480 Inches
Pitch = 0.078740 Inches
Z0 = 19997.994336 counts
Z0 = 0.078732 inches
Z_Dist = 0.551173 inches
TotalCut = 0.000000 inches
TotalCut = 0.157480 inches
TotalCut = 0.314961 inches
TotalCut = 0.472441 inches
Jogging Spindle Stop
This code also hasn't changed calculated units into mm's,
Thank you for answer,
- Yes my Spindle control works great M3, M4, M5 commands are invoking adequate programs in thread 2
Spindle files: OffJog.c , OnCCWJog.c , OnCWJog.c
- M119 Invoking RigidTapMultiPassJogM119_v1.c file in thread 6
I was testing code below:
(Call a Rigid Tap Sequence)
G21
F1000
S300
G1 X40 Y40
G1 Z20
G98 G84 Z-12 R2 Q2 F2
M30
Results: spindle is not turning on, Z axis starts from Z20 goes to Z2 and goes back to Z20.
Console read out:
Units = mm
Bottom = -12.000000
Pitch = 2.000000
Jogging Spindle Stop
From the other hand I Invoked file : RigidTapMultiPassJogM119_v1_Jim.c First reaction was the same like above- no tapping, but when I turned Spindle on before Gcode program went fine with whole tapping procedure a part of spinning spindle in opposite way round with every step
Jogging Spindle 12873.142850 counts/sec
Jogging Spindle 12873.142850 counts/sec
Bottom = -12.000000
Retract = 2.000000
Peck = 4.000000
Pitch = 2.000000
RPM = 300.000000
Units = mm
Axis = 2
AxisRes = 254000.000000
Bottom = -0.472441 Inches
Retract = 0.078740 Inches
Peck = 0.157480 Inches
Pitch = 0.078740 Inches
Z0 = 19997.994336 counts
Z0 = 0.078732 inches
Z_Dist = 0.551173 inches
TotalCut = 0.000000 inches
TotalCut = 0.157480 inches
TotalCut = 0.314961 inches
TotalCut = 0.472441 inches
Jogging Spindle Stop
This code also hasn't changed calculated units into mm's,
- Attachments
-
- MySpindleDefs.h
- (800 Bytes) Downloaded 104 times
-
- OnCWJog.c
- (1.24 KiB) Downloaded 107 times
-
- OnCCWJog.c
- (1.16 KiB) Downloaded 97 times
-
- OffJog.c
- (521 Bytes) Downloaded 98 times
Re: Rigid tapping
Hello Mateusz, Tom,
I am relieved to see I am not the only one struggling with programming. With my huge knowledge of C I have been checking the M119 supplied by Tom (thanks), and I do not understant on line 78 :
while (TotalCut < Bottom)
In my understanding, TotcalCut being 0 and Bottom a negative value most of the times the program will never enter the loop and then no tapping... (for the Jim version it seems correct to me) that would explain why it does not do anything on your machine or mine.
But just changing the it to while (TotalCut > Bottom) seems not enough, I tried it, machine had a very strange behaviour with Spindle going to very high RPMs (max of it actually 6000) and Z axis maybe trying to follow but I am not sure about that.
For what I see, the F parameter is not even used in the code, but S is, this is maybe why you need to activate the spindle before. Maybe replace Fxx by Sxxx will be enough in your case.
Cordially
Francois
I am relieved to see I am not the only one struggling with programming. With my huge knowledge of C I have been checking the M119 supplied by Tom (thanks), and I do not understant on line 78 :
while (TotalCut < Bottom)
In my understanding, TotcalCut being 0 and Bottom a negative value most of the times the program will never enter the loop and then no tapping... (for the Jim version it seems correct to me) that would explain why it does not do anything on your machine or mine.
But just changing the it to while (TotalCut > Bottom) seems not enough, I tried it, machine had a very strange behaviour with Spindle going to very high RPMs (max of it actually 6000) and Z axis maybe trying to follow but I am not sure about that.
For what I see, the F parameter is not even used in the code, but S is, this is maybe why you need to activate the spindle before. Maybe replace Fxx by Sxxx will be enough in your case.
Cordially
Francois
- TomKerekes
- Posts: 2676
- Joined: Mon Dec 04, 2017 1:49 am
Re: Rigid tapping
Hi Mateusz,
Your OnCWJog and OnCCWJog have this code to turn on the Spindle
You will need to add this to the rigid tap program to turn on the Spindle.
Also those are controlling Axis 3 as the spindle. Did you set the Rigid Tap program to use Axis 3?
Your OnCWJog and OnCCWJog have this code to turn on the Spindle
Code: Select all
// turn spindle on CW and ramp to new speed
EnableAxis(3);
SetBit(SPINDLEENA_BIT);
SetBit(SPINDLEHALT_BIT);
Also those are controlling Axis 3 as the spindle. Did you set the Rigid Tap program to use Axis 3?
Regards,
Tom Kerekes
Dynomotion, Inc.
Tom Kerekes
Dynomotion, Inc.
- TomKerekes
- Posts: 2676
- Joined: Mon Dec 04, 2017 1:49 am
Re: Rigid tapping
You are correct that version v1 has bugs. Is the v1_Jim version working for you?while (TotalCut < Bottom)
In my understanding, TotcalCut being 0 and Bottom a negative value most of the times the program will never enter the loop and then no tapping... (for the Jim version it seems correct to me) that would explain why it does not do anything on your machine or mine.
yes the z motion is slaved to the Spindle motion based on the Pitch.For what I see, the F parameter is not even used in the code, but S is, this is maybe why you need to activate the spindle before. Maybe replace Fxx by Sxxx will be enough in your case.
Regards,
Tom Kerekes
Dynomotion, Inc.
Tom Kerekes
Dynomotion, Inc.
Re: Rigid tapping
Hi Tom,
Simple is that ...I managed to write spindle start ,,, works as it should,
Last Thing regarding Tapping..I hope:
How to change spindle rotation direction in this code ? I tried few things but always was something wrong. At the moment tapping cycle is in CCW and retracting in CW direction.
Thanks
Mateusz
Simple is that ...I managed to write spindle start ,,, works as it should,
Last Thing regarding Tapping..I hope:
How to change spindle rotation direction in this code ? I tried few things but always was something wrong. At the moment tapping cycle is in CCW and retracting in CW direction.
Thanks
Mateusz
- TomKerekes
- Posts: 2676
- Joined: Mon Dec 04, 2017 1:49 am
Re: Rigid tapping
Hi Mateusz,
Is M3 configured for OnCWJog.c? Does M3 run the Spindle CW?
Post the tapping program you are using.
Is M3 configured for OnCWJog.c? Does M3 run the Spindle CW?
Post the tapping program you are using.
Regards,
Tom Kerekes
Dynomotion, Inc.
Tom Kerekes
Dynomotion, Inc.
Re: Rigid tapping
Hello Tom,
Correct , Yes it does spin in CW direction
Is M3 configured for OnCWJog.c? Does M3 run the Spindle CW?
Correct , Yes it does spin in CW direction
- Attachments
-
- RigidTapMultiPassJogM119_v1_Jim.c
- (4.32 KiB) Downloaded 110 times