Hello Guest it is March 28, 2024, 05:09:49 PM

Author Topic: Thrading on mach 3 with ss and c10 bob  (Read 4119 times)

0 Members and 1 Guest are viewing this topic.

Thrading on mach 3 with ss and c10 bob
« 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
« Last Edit: September 02, 2017, 01:43:38 PM by Deimosjuf85 »

Offline rcaffin

*
  •  1,052 1,052
    • View Profile
Re: Thrading on mach 3 with ss and c10 bob
« Reply #1 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
Re: Thrading on mach 3 with ss and c10 bob
« Reply #2 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.
Re: Thrading on mach 3 with ss and c10 bob
« Reply #3 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

Offline rcaffin

*
  •  1,052 1,052
    • View Profile
Re: Thrading on mach 3 with ss and c10 bob
« Reply #4 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

Re: Thrading on mach 3 with ss and c10 bob
« Reply #5 on: September 11, 2017, 05:26:16 PM »
debounde interval = 0
index debounce =100

Thanks for the answer and help

Offline rcaffin

*
  •  1,052 1,052
    • View Profile
Re: Thrading on mach 3 with ss and c10 bob
« Reply #6 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
Re: Thrading on mach 3 with ss and c10 bob
« Reply #7 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.

Offline RICH

*
  • *
  •  7,427 7,427
    • View Profile
Re: Thrading on mach 3 with ss and c10 bob
« Reply #8 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

Offline rcaffin

*
  •  1,052 1,052
    • View Profile
Re: Thrading on mach 3 with ss and c10 bob
« Reply #9 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