- Posts: 96
- Thank you received: 0
why can not I cut the thread today?
8 years 10 months ago #103262
by pkasy
why can not I cut the thread today? was created by pkasy
Hello.
I cut a thread for more than a year.
why today when threading with a pitch of 1.5 mm cut thread with a pitch of 2.5?
with a pitch of 1 mm - 1 mm, 0.6 - 0.6
but at pitch 1.5 and 1.49 is still 2.5?
I restarted the axis several times.
the effect does not change.
I put a debugging message - it shows the pitch correctly.
what's wrong again?
I cut a thread for more than a year.
why today when threading with a pitch of 1.5 mm cut thread with a pitch of 2.5?
with a pitch of 1 mm - 1 mm, 0.6 - 0.6
but at pitch 1.5 and 1.49 is still 2.5?
I restarted the axis several times.
the effect does not change.
I put a debugging message - it shows the pitch correctly.
what's wrong again?
Code:
(DEBUG,#<P>)
G76 Z[-#<Len>+#<startZ>] P[#<P>] I[-#<I>] J[#<FC>] K[#7*2] H2 L[#<Taper>] E[#<TaperL>] R2
Please Log in to join the conversation.
8 years 10 months ago #103264
by pkasy
Replied by pkasy on topic why can not I cut the thread today?
G76 P[1.25] makes 2.5 pitch
but depth and length are correct
but depth and length are correct
Please Log in to join the conversation.
8 years 10 months ago #103285
by andypugh
Replied by andypugh on topic why can not I cut the thread today?
That sounds like the spindle encoder scale has changed.
It isn't that you are using a different gear on the lathe, is it?
It isn't that you are using a different gear on the lathe, is it?
Please Log in to join the conversation.
8 years 10 months ago #103287
by pkasy
Replied by pkasy on topic why can not I cut the thread today?
no. one gear all the time.
1:1 with inverter.
1:1 with inverter.
Please Log in to join the conversation.
8 years 10 months ago #103288
by andypugh
Replied by andypugh on topic why can not I cut the thread today?
If you use halmeter to look at motion.spindle.revs, how much does that number increase by if you manually rotate the spindle by one full turn.
Please Log in to join the conversation.
8 years 10 months ago #103324
by pkasy
Replied by pkasy on topic why can not I cut the thread today?
1 revs
spindle-revs was 17.78, now 18.78
spindle-revs was 17.78, now 18.78
Please Log in to join the conversation.
8 years 10 months ago #103327
by andypugh
Replied by andypugh on topic why can not I cut the thread today?
Well, that's odd.
And does moving the Z axis 10mm result in a 10mm movement?
And does moving the Z axis 10mm result in a 10mm movement?
Please Log in to join the conversation.
8 years 10 months ago #103332
by pkasy
Replied by pkasy on topic why can not I cut the thread today?
Z moves correctly. X moves correctly.
depth and length are both correct.
pitch is not.
here is full sourse
file one:
file two:
depth and length are both correct.
pitch is not.
here is full sourse
file one:
Warning: Spoiler!
Code:
N4 G18 G61
N6 M05
#<N1>=17.85 ( номинал )
#<N2>=1.5 ( шаг )
#<N7>=[0.61344*#<N2>] ( глубина резьбы )
#<N3>=5 ( начало резьбы )
#<N4>=16 ( длина резьбы )
#<N5>=1 ( заход и выход. L0 без, L1 заход, L2 выход, or L3 оба )
#<N6>=1.5 ( длина захода и выхода )
o<o_thread> call [#<N1>][#<N2>][#<N3>][#<N4>][#<N5>][#<N6>][#<N7>][1]
M2
file two:
Warning: Spoiler!
Code:
o<o_thread> sub
G21 G61 G95 G18 G7 ( DIAMETER MODE )
#<M>=[#1] ( номинал )
#<P>=[#2] ( шаг GAS 5/8 )
#<startZ>=[#3] ( начало резьбы )
#<Len>=[#4] ( длина резьбы )
#<Taper>=[#5] ( заход и выход. L0 без, L1 заход, L2 выход, or L3 оба )
#<TaperL>=[#6] ( длина захода и выхода )
#<I>=0.5 ( отступ )
#<StartD>=[#<M>+1]
#<D>=[#<M>]
#<FC> = [#<P>*0.5]
o1001 IF [#<FC> GT 0.65]
#<FC>=0.65
o1001 ENDIF
M6 T2G43
M3 G96 S70 D500
(DEBUG,#<P>)
G0 X[#<StartD>] Z[#<startZ>]
G1 X[#<M>+#<I>] F100
G76 Z[-#<Len>+#<startZ>] P[#<P>] I[-#<I>] J[#<FC>] K[#7*2] H2 L[#<Taper>] E[#<TaperL>] R2
G0 X[#<StartD>] Z[#<startZ>]
o<clear> IF [#8 GT 0]
(или еще один проход для чистки резьбы после универсальной пластины)
G96 D2250 S250
G1 G95 X[#<D>]F0.025
Z[-#<Len>+#<startZ>]
X[#<StartD>]
G0 X[#<StartD>] Z[#<startZ>]
o<clear> ENDIF
M5
o<o_thread> endsub
Please Log in to join the conversation.
8 years 10 months ago #103334
by andypugh
Replied by andypugh on topic why can not I cut the thread today?
I don't see anything obviously wrong with the code.
Adding (DEBUG, P = #<P>) to the code would make sure that the pitch is right at that point.
What happens if you cut a thread from MD using explicit numbers?
Perhaps the encoder counts double at higher speed, how much does motion.spindle.revs increase by if you run for 1 minute at 1000 rpm?
Adding (DEBUG, P = #<P>) to the code would make sure that the pitch is right at that point.
What happens if you cut a thread from MD using explicit numbers?
Perhaps the encoder counts double at higher speed, how much does motion.spindle.revs increase by if you run for 1 minute at 1000 rpm?
Please Log in to join the conversation.
8 years 10 months ago #103342
by pkasy
Replied by pkasy on topic why can not I cut the thread today?
yes, i did it first. P is correct.Adding (DEBUG, P = #<P>) to the code would make sure that the pitch is right at that point.
about +1000.Perhaps the encoder counts double at higher speed, how much does motion.spindle.revs increase by if you run for 1 minute at 1000 rpm?
if you will give me a mdi command I will try it.What happens if you cut a thread from MD using explicit numbers?
Please Log in to join the conversation.
Time to create page: 0.061 seconds
