Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: Deimosjuf85 on September 02, 2017, 01:39:18 PM

Title: Thrading on mach 3 with ss and c10 bob
Post by: Deimosjuf85 on September 02, 2017, 01:39:18 PM
Best regardsI have a 7x12 mini lathe with warp9 Ethernet SmoothStepper, c10 bob , c3 idex pulse card , two  Stepper Motors 570 Oz-in, Nema 23, I have mach 3  3.043.062 and a disk with one slot for index.When i try to cut threads no matter wich pitch i put on the g code the machine cut the same pitch  no matter the value that i put  in the index debounce the machine cut the same pitch. Can you help me to setup the mach 3 nad the hardware that i have? Sorry for my bad english
Title: Re: Thrading on mach 3 with ss and c10 bob
Post by: rcaffin on September 11, 2017, 05:39:36 AM
Threading does work quite well. Perhaps a problem with your code?
Post the key bit of the program.

Cheers
Roger
Title: Re: Thrading on mach 3 with ss and c10 bob
Post by: Deimosjuf85 on September 11, 2017, 01:14:35 PM
Thanks for answer. C10 it´s wired in the pin 15 with active low activated;The spindel pulleys its set to 1100 in max speed ratio :1; I attach images:

the have two programs: One with g76, and the other with g32:

With g76:
G18 G40 G21 G49 G50 G80
T404
S500 M3

G0 X17 Z4
G76 X13.5 Z-5 P1.5 J0.06 L45 H0.3 I29.5 C0.3
G0 X17
Z4 M30

With G32:
g32 z-1.5 f1.5

the machine is set in mm.The pitch are 1.5 mm

Thanks for the help.
Title: Re: Thrading on mach 3 with ss and c10 bob
Post by: Deimosjuf85 on September 11, 2017, 01:17:10 PM
these options are checked on:

Disable spindle relays
use spindle feedback in sync mode
closed loop spindle control P:0.2 i0.1 D 0.2

Title: Re: Thrading on mach 3 with ss and c10 bob
Post by: rcaffin on September 11, 2017, 04:58:38 PM
Ports&Pins:
Closed Loop feedback won't work with the ESS.
You need to enable spindle speed averaging.
For a 1.5 mm pitch a longer lead-in (at least 2 turns) is desirable.

What value do you have in the spindle index debounce?

Cheers
Roger

Title: Re: Thrading on mach 3 with ss and c10 bob
Post by: Deimosjuf85 on September 11, 2017, 05:26:16 PM
debounde interval = 0
index debounce =100

Thanks for the answer and help
Title: Re: Thrading on mach 3 with ss and c10 bob
Post by: rcaffin on September 11, 2017, 05:35:20 PM
Index debounce = 100 means that you have a filter of 100 * 40 uS = 4 mS. That is far too much! Mach may not even see the index pulses at all. Try Index debounce = 1 instead.

Cheers
Roger
Title: Re: Thrading on mach 3 with ss and c10 bob
Post by: Deimosjuf85 on September 11, 2017, 08:06:00 PM
Thank you so much.I tried and later i told you.I will hope that i can cut threads. Cheers.
Title: Re: Thrading on mach 3 with ss and c10 bob
Post by: RICH on September 12, 2017, 06:04:11 AM
Index debounce is relative to the number of times a stable  index pulse is seen by Mach before it will accept the index signal.
The amount of debounce required varies from system to system. A value of one is not practical since it's not possible to average the
the true rpm. If you set it really high you could be waiting  be waiting a long time before implementation of threading. 

RICH
Title: Re: Thrading on mach 3 with ss and c10 bob
Post by: rcaffin on September 12, 2017, 07:02:46 AM
Hi Rich

Now I am puzzled. Does the x40 uS only apply to the 'other inputs', and not to the index? That would be odd, because I am sure I solved a spindle speed problem by reducing the Index debounce down to about 1 or 0.

My logic was that the index pulse from a standard encoder is about 1/512 of a rev. At 3,000 rpm one rev takes 50 mS, so the index pulse is about 97 uS. Actually, it is half of that as the index pulse is usually only half the 4-cycle interval. An index debounce of 2 is 80 uS, and that can mask the 50 uS index pulse. Changing down to 0 meant that the displayed spindle speed at 3,000 rpm went from all over the place to a nice solid stable value.

Now, all this could be wrong of course, so please tell.

Cheers
Roger
Title: Re: Thrading on mach 3 with ss and c10 bob
Post by: RICH on September 12, 2017, 01:44:58 PM
From what I recall, from a along time ago when we were fixing threading , what I say is true as it applies to the internal threading
code. 

I would have to look through a lot of notes to see if my exactly wording is correct....I think so as the words are not mine.

RICH
Title: Re: Thrading on mach 3 with ss and c10 bob
Post by: Deimosjuf85 on September 13, 2017, 04:31:43 PM
Best regards:

I change the configutarion and no matter the valor tahta i put , the pitch threading are the same.I send two photos.

Thanks for the help

Cheers
Title: Re: Thrading on mach 3 with ss and c10 bob
Post by: rcaffin on September 13, 2017, 05:46:12 PM
Tricky stuff!
If you command S300, S400, S500, what revs appear on the screen DRO?

Cheers
Roger
Title: Re: Thrading on mach 3 with ss and c10 bob
Post by: Deimosjuf85 on September 13, 2017, 08:51:25 PM
If i put s500 in the dro shows 600
 Cheers
Deimos
Title: Re: Thrading on mach 3 with ss and c10 bob
Post by: rcaffin on September 13, 2017, 11:34:56 PM
Ok, but what about S300, S400, and what are the exact values, not rounded off?

Cheers
Roger
Title: Re: Thrading on mach 3 with ss and c10 bob
Post by: Deimosjuf85 on September 17, 2017, 12:41:08 PM
i set the speed manually.Th diffrence it´s about 50-100 rpm
Thank´s
Title: Re: Thrading on mach 3 with ss and c10 bob
Post by: rcaffin on September 17, 2017, 04:48:32 PM
>> OK, but what about S300, S400, and what are the exact values, not rounded off?

If you want help, you need to help the people answering you with the information requested. Otherwise we cannot help you.

Cheers
Roger
Title: Re: Thrading on mach 3 with ss and c10 bob
Post by: Deimosjuf85 on September 18, 2017, 08:28:17 AM
Best regards:

If i turn the bottom of the lathe and set the speed to 300 (For example) Read the dro´s mach3 and try to adjust to 300 the difference it´s about 300=350, 400 rpm .The maximun preccission that i can make it´s about 10 -15 rpm (If the speed it´s 300 rpm i can make 310 rpm, i  only c3 index card and the disk to calculate the rpm)
Cheers and many thanks for you help