Hello Guest it is December 26, 2024, 02:26:13 PM

Author Topic: More TURN Threading Questions  (Read 29976 times)

0 Members and 1 Guest are viewing this topic.

More TURN Threading Questions
« on: July 22, 2008, 02:45:09 PM »
:)
I am curious as to how Mach Turn is designed to operate when threading.
Here is one of many very informative topics with some different views of the process.
http://www.machsupport.com/forum/index.php/topic,6707.30.html
 
1. When the G76 sequence starts, does Mach just sample/average the RPM, then calculate the feedrate for Z and maintain that pulse train to the Z axis motor REGARDLESS of any fluctuation in the spindle speed ?
2. If so, is this calculation done at the beginning of each PASS, or just the once for the entire G76 cycle ?
3. If YES to 1 or 2, would it be true then that all Mach needs is a good clean true sampling of a ROCK STEADY RPM at the beginning, and sufficient power to maintain that RPM throughout the cycle ?
4.Does Index/Timing inputs, Single slot/Multi slot discs, or any combination thereof, ONLY serve the purpose of establishing the initial RPM input for Mach to calculate the Z feedrate, and serve absolutely NO function thereafter in the G76 cycle ? (other than maybe a Watchdog trip if extreme) Or can Mach actually change the Z feedrate during the pass accordingly ?

I have read where production machine DO follow the spindle and can cut "Progressive Pitch" threads, but there seems to differences of opinion on whether or not Mach cannot follow the spindle at all after the G76 starts.

I am attempting to maintain consistency on close tolerance threads and the spindle RPM fluctuation must be the culprit.
Which brings up:
5. I have an extra 1KW, 1.34HP ac Servo motor and drive. Can I do away with the VFD and run Step/Dir to the servo and get rock solid stable RPM?
(monitoring the following error with the drive)

To the best of my knowledge, these questions have not been definitively answered anywhere in the forum...however, I may have overlooked some while searching. ::)

Thanks,
rc

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
Re: More TURN Threading Questions
« Reply #1 on: July 22, 2008, 03:12:29 PM »
Here you go RC, Art posted this a day or so ago.
Hood

Quote

Just to help clear confusion..

The INDEX input takes a one per revolution pulse. IT then calculates the speed
of the spindle from that timing,
and during a thread, calcuates if the timing from rotation to rotation slows. If
for example, the average rotation is 350us
prior to the actual motion of the thread.. ( Average time per rotation is
calculated when the spindle is on and no motion
is in effect ), and during a thread the time of one rotation is found to be
400us, this means that the last rotation took 50us
longer than the standing average ( a 14.28% slowdown) , then the axis motion is
slowed by 14.28% during the next rotation,
this repeats from rotation to rotation to end up with as near a perfect average
time of axis vs spindle rotation speed.

When using the TIMING input instead of the INDEX input, the system looks for
multiple pulses, but in particular looks
for a pulse 50% wider than the others. This 50% wider pulse is then considered
the INDEX, and the system does the
rotation speed calculation only from that pulse for the spiindle speed display.
However, the other pulses are counted, and
the total rotation time is divided by the number of pulses. SO lets say you have
4 pulses, one of which is 50% wider than the
rest. Any threading will begin on the widest pulse as the trigger, but the time
from pulse to pulse will be calculated and
compared to the total average time of rotation divided by the number of pulses.
The system will slow down axis motion to
correct for deviations between the pulses.

So more pulses will not give you a faster DRO update of rotation speed, but in
theory will correct more often for slowed
down rotations. Its been proven however, to have no advantage in the thread.
While a mathmatically theoretical advantage
exists in the multiple slot theory, any advantage gained seems to be lost in the
disadvantage of additional complexity of the
correction. There are several reasons for this internally and in the required
timing and math. My suggestion is to use INDEX
and not TIMING as a result. KISS is an important principle here IMO.

The SS is being written to use the INDEX method of timing sync at first, it
will then branch to encoder sync which is much
more exact and allows for things such as stopping a spindle and having a thread
stop and continue when the spindle is restarted.
This really required only a much higher granularity of timing than the PP
driver. TO sync to a encoder in the PP woudl require
the ability to vary the interrupt timer on granularities smaller than the
available 40us ones ( in 25Khz mode). Since the SS has
a 4MHZ maximum granularity, its much more possible to vary timing in smaller
increments thus matching exactly ( pretty much) with the varying encoder count
to count time. It is this granularity issue that guides the threading design in
current Mach3, and forces the consideration as above. By all that I mean if the
system determines a motion must slow to match a spindle, the PP driver has only
the power to create a bresenhamed output timing based on 40us granularity, the
SS could use a sub microsecond timing variation which would be invisable to the
end drivers. Any such correction can be thought of as purposely added jitter to
the output stream, Jitter slows the output stream by the required percentage but
causes a phase shift on the drivers output, so it must be kept low and the PP
driver is limited to 40us pulse to pulse variablity, usually thats much lower
than a driver can effectively see in its resultant phase shift, but in the SS
the timing jitter should be able to be much much smaller and totally invisable
to the driver which is the sought after end effect for a perfect threading sync.
Jitter, often thought to be a problem in pulsing output, is actually used as a
benificial effect in Mach3, and the amount of jitter is tightly controlled to
take advantage of its good effects, and keep it low enough to minimise its
negative effects on the drivers phase timing stability. All digital based output
timing has jitter, its a matter of understanding it and using it effectively. In
threading , Mach3 uses a system of control very similar to Mariss's look forward
trajectory smoothing technique, but it was developed long before that.

End analysis: stay with INDEX when using a PP unless you have some inherent
reason for trying the TIMING input. The theoretical advantages dont outweigh the
mathmatical disadvantages.


Thanks,
Art ( just a user who knows a little bit about timing. :-) )
Re: More TURN Threading Questions
« Reply #2 on: July 22, 2008, 03:15:47 PM »
Where in the heck was THAT posted ? ??  A day or so ago ? ? ?
Thanks,
rc

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
Re: More TURN Threading Questions
« Reply #3 on: July 22, 2008, 03:20:23 PM »
Unfortunately for us Art prefers the Yahoo group and that is where he posts all this wonderful info.
Hood
Re: More TURN Threading Questions
« Reply #4 on: July 22, 2008, 03:25:10 PM »
Holy CRAP....never been there.
Thanks, that pretty well sums it up for me.
so...how bout that servo spindle ? No advantage to that I guess.
Thanks Hood,
RC

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
Re: More TURN Threading Questions
« Reply #5 on: July 22, 2008, 03:30:53 PM »
Many advantages to the Servo on the spindle but at this point in time not as far as threading is concerned, hopefully the SS will make that a thing of the past and rigid tapping will be easily achieved.

Hood
Re: More TURN Threading Questions
« Reply #6 on: July 22, 2008, 04:09:27 PM »
wow...TWO forums to search now ::).....AND review the manuals..... :P

probably just as well save some time and just post questions...even if they HAVE been posted before. :-\

rc :)

Offline RICH

*
  • *
  •  7,427 7,427
Re: More TURN Threading Questions
« Reply #7 on: July 23, 2008, 08:19:47 PM »
Excellent topic.

"then the axis motion is slowed by 14.28% during the next rotation"
Will the amount of slow down be any restricted or limited to some percentage?

RICH

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
Re: More TURN Threading Questions
« Reply #8 on: July 23, 2008, 11:18:59 PM »
What I understand by that is the rotational time  is calculated every revolution and the axis slowed or increased accordingly for the next revolution. No percentage  restrictions at all, it will continue to speed or slow until the thread is completed.
Hood
Hood

Offline Vicke

*
  •  13 13
Re: More TURN Threading Questions
« Reply #9 on: July 24, 2008, 06:23:26 PM »
Well everything looks like clear as water. 
When I was test wizard threading I would like to have some more thin end turn like 0.05mm but not only in to the last turn. Can I edit the wizard G76 or maybe better write some threading in G33.  Anybody hows have wrote som G33  (or if mach3 have any othe code)  always better to se some code before any test.

Regards
Dan