Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: Poppey_au on July 13, 2017, 12:00:52 PM

Title: Threading Wizard
Post by: Poppey_au on July 13, 2017, 12:00:52 PM
Hi
I tried the threading vizzard for the first time but it just stoppe at line 7. The spindel was still running but nothing happen. Its M16x1.
What di I do wrong?

Here are the code:
G0 G40 G18 G80 G50 G90
G00 X16.025
G00 Z1.1
G00 X16
M03 S300
M08
G76 X15 Z10 Q1 P1 J0.006 L45 H0.3 I29 C0.025 B0.0001 T0
M9
M5
M30

Gaute
Title: Re: Threading Wizard
Post by: RICH on July 13, 2017, 07:21:39 PM
Do have an index configured for the rpm?
Are you using a licensed version of Mach?

Maybe have a read of Threading On The Lathe which can be found in Member's Doc's.

RICH
Title: Re: Threading Wizard
Post by: Poppey_au on July 14, 2017, 12:41:12 AM
I will check the index configuration. The index plate should be correct as I made it according to the Mach3 Turn manual. Yes I have a paid licence.
Thanlks for the advice Rich.
Title: Re: Threading Wizard
Post by: RICH on July 14, 2017, 08:38:56 AM
Quote
G76 X15 Z10 Q1 P1 J0.006 L45 H0.3 I29 C0.025 B0.0001 T0

So your putting an M6-1 thread on a 15 diameter stock.

? Z10  You realise that normaly one would thread towards the chuck
  so Z-10 and NOT Z10.? Note also that the there should be a move
  of 3 to 5 P ( or greater) before the actual start of the threading
  as this give time for the axis to accelerate. You should also check
  the feedrate in the wizard so that chosen feedrate is acceptable.  

? H.3 I would suggest a smaller first pass depth

? C.025 Why so small?

? B.0001  Practicaly speaking, doubt that your lathe accomplish that.
          B is optional....

Are you using a SmoothStepper? It would control the threading.

? M03 S300 You need to set spindle speed manualy and based on the index
           pulse signal.See the Threading Write up.

If Mach3 sees no index pulse there will be no threading ie; changing from G94 to G95. Note that threading will not start
until the index debounce is satisfied ( needs to see so manny index pulses before it accepts the signal).

RICH
Title: Re: Threading Wizard
Post by: Poppey_au on July 14, 2017, 09:04:42 AM
I belive my problem is the card, that is a cheap china USB card:
https://www.aliexpress.com/item/Factory-outlets-100KHz-CNC-mach3-USB-4-Axis-Stepper-Motor-Driver-Breakout-Board-USBCNC-Smooth-Stepper/32334451366.html?spm=a2g0s.9042311.0.0.Q6q1FJ

Every thing else on the lathe works fine. I'm relative new to CNC som bear with me. I build a CNC router/3D printer and this works perfect after some try and failing

So your putting an M6-1 thread on a 15 diameter stock. No M16-1, just for test purpose. I have a 16 mm stock X start is 16 mm.

? Z10  You realise that normaly one would thread towards the chuck
  so Z-10 and NOT Z10.? Yes it was -10 in the wizzard but I see it is positive.
Note also that the there should be a move
  of 3 to 5 P ( or greater) before the actual start of the threading
  as this give time for the axis to accelerate. You should also check
  the feedrate in the wizard so that chosen feedrate is acceptable. 

? H.3 I would suggest a smaller first pass depth it is 0.3 mm

? C.025 Why so small? I don't know?

? B.0001  Practicaly speaking, doubt that your lathe accomplish that.
          B is optional.... I don't know

Are you using a SmoothStepper? It would control the threading. No I'm using this:https://www.aliexpress.com/item/Factory-outlets-100KHz-CNC-mach3-USB-4-Axis-Stepper-Motor-Driver-Breakout-Board-USBCNC-Smooth-Stepper/32334451366.html?spm=a2g0s.9042311.0.0.Q6q1FJ and I think this is the problem. I do not find any index connection

? M03 S300 You need to set spindle speed manualy and based on the index
           pulse signal.See the Threading Write up. Yes I just read it and learned a lot. Now I understand what the codes means.

If Mach3 sees no index pulse there will be no threading ie; changing from G94 to G95. Note that threading will not start
until the index debounce is satisfied ( needs to see so manny index pulses before it accepts the signal). This is properbly the problem.

I have a standard brakout card that I can connect to the computer LPT port, can I use this in addition to the USB (of cause it must handle index) or should I just buy a USB smooth stepper card?

It's a lot to learn and this is the purpose of my project. I do not have any particular use for the CNC late other than finding out how it works.
Title: Re: Threading Wizard
Post by: Poppey_au on July 14, 2017, 09:20:43 AM
One strange thing is the actual speed DRO show correct speed and I have connected the speed/index pickup to somewhere. I will check this when I'm back home tonight.
Title: Re: Threading Wizard
Post by: Poppey_au on July 14, 2017, 11:08:08 AM
I hav checked the index connection to the card. I have used I2 for the Index and configured Mach3 for this port. When I turn the spindel I get green on the index led every time the sensor passes one of the four open slots in the disk. When I run the spindel the led goes off now and then. The card documentation does not say anything about index.
Title: Re: Threading Wizard
Post by: RICH on July 15, 2017, 06:03:42 AM
You only use a ONE SLOT of the disk, timing / use of a multi slotted disc is not supported ( page 42, 43 in the writeup ) and don't enable  any turn diagnostics. Just put some black tape over the other three slots so the sensor will not see them.

RICH


Title: Re: Threading Wizard
Post by: RICH on July 15, 2017, 07:42:03 AM
Gaute,
1.Post the xml file you are using for the lathe.
2.Post the manual for the usb driver board.
  Mach 3 reads spindle rpm in real time based on the index pulse and that input is used for threading and shown in the DRO.
  
  So ask the seller these questions:
  ? Does the driver board support Mach3 threading?
  ? What exactly is represented by that output from the card?
NOTE: I personaly will not provide support for a Chinese card that lacks information relative to Mach3.


Quote
I have a standard breakout card that I can connect to the computer LPT port, can I use this in addition to the USB (of cause it must handle index) or should I just buy a USB smooth stepper card?
 
In past topics you said you got / had a SmoothStepper.
If you are, then use the Warp9 Site for info on that card and plugin. I have not kept current
on the SmoothStepper.

As far as using the lpt port and the usb driver / breakout board.......
Can't specifically answer if that will work.
The usb is providing control of the steppers based on Mach3 instructions. Threading is an internal
function of Mach3. That usb may not know what to do with the instructions given with that
combination. That is why external motion control is given to an external card like the SmoothStepper.

RICH
Title: Re: Threading Wizard
Post by: Thoroco on July 17, 2017, 04:29:53 PM
I had the very same issue, It turned out to be a corrupt license file. I closed the program and re installed the license and it worked, It will not run line 7 in demo mode or without reading a valid license.
Title: Re: Threading Wizard
Post by: Poppey_au on July 18, 2017, 02:02:29 AM
Rich
I´m on vacation and not near the Mach3 PC. I have attached the manual and the wiring diagram. Google drive is with you every where. There was also a MACH3 copy with the card but I did not use it. I have a legal copy. The seller claimed it was a Smooth Stepper card. I´m quite sure that the card does not handle treading and this is the problem.
What if I connect the index sensor direct to the LPT? It´s possible to have several cards in the Mach3.
Thank you for the advices Rich.
Gaute
Title: Re: Threading Wizard
Post by: RICH on July 18, 2017, 08:26:49 AM
Gaute,

Quote
The seller claimed it was a Smooth Stepper card.
Yea, right, and he also has a bridge in China he would like to sell you! >:D

What if I connect the index sensor direct to the LPT?
As replied before,  Can't specifically answer if that will work.
You can try and see what happens.....................

Quote
So ask the seller these questions:
  Does the driver board support Mach3 threading?
Did he say yes?

In threading you can't have two different inputs for the RPM as indicated by the DRO.
The index provides rpm info to Mach, and as you said, the index and DRO indication seems to be working. So manualy set the rpm for the spindle, then Mach3 should be using the info from the index input for threading, and that will be reflected in the DRO.

When time to implement threading, the rpm value is given to Mach, it must be stable before it will be used ( else motion will not occur). With two inputs they would be fighting each other where one implies  speed up whle the other may slow down, and that fighting also impacts the next threading  move.

This goes back to:
Quote
So ask the seller these questions:
   What exactly is represented by that output from the card?
BTW, I requested the xml file you are using for the lathe.
I am not a mind reader on how you have things configured ........... :)

RICH
Title: Re: Threading Wizard
Post by: Poppey_au on August 12, 2017, 12:10:53 PM
Hello Rich
I´m back and here is the file.
This is the reply from the card supplier:
Hello, I'm sorry this card can not be used for treading , you need buy a parallel port card

Is it possible to use two cards one USB and one parallell and connect the index sensor to  the parallell card?
Thanks
Gaute
Title: Re: Threading Wizard
Post by: Poppey_au on August 13, 2017, 03:12:25 AM
I must also commit that I said I had speed feedback from the pickup. This may not bee correct. S True reads speed but when I use a hand held tachometer the speeds are not the same. It could be that I get feedback from the VSD??
Title: Re: Threading Wizard
Post by: RICH on August 13, 2017, 06:19:19 AM
Quote
Is it possible to use two cards one USB and one parallell and connect the index sensor to  the parallell card?

I do not know if that  will work.

RICH
Title: Re: Threading Wizard
Post by: Poppey_au on August 13, 2017, 07:45:42 AM
Her is a correct file
Title: Re: Threading Wizard
Post by: Vogavt on August 23, 2017, 08:33:13 AM
Quote
Is it possible to use two cards one USB and one parallell and connect the index sensor to  the parallell card?

I do not know if that  will work.

RICH
Was wondering the same thing. I have the 6040Z USB (XHC MachMotion), but would like to have more inputs/outputs. I did not install the parallel port driver as instructed by seller. I know I'd have to do that but am concerned about conflicts with all of it.

Sent from my VS990 using Tapatalk
Title: Re: Threading Wizard
Post by: joeaverage on August 24, 2017, 02:56:20 PM
Hi,
it is not possible to have two motion controllers active at once. Given that a parallel port is a motion control device then I suspect its not
possible to have it active at the same time as a USB controller.

Something similar is possible with Mach4. You can still only have one motion controller, say an ESS, but have another board like a PoKeys 57E active with
the 57E behaving as an IO board only. Whether a similar arrangement can be done in Mach3 I don't know.

It certainly is possible for Mach3 to accommodate both serial and/or Modbus data in addition to its regular motion controller.

The other way to achieve more input is to use a board that has it already. An ESS has three 'ports' worth of IO, a PMDX-424 has two 'ports' worth
and a PoKeys 57E or 57U has 55 digital IOs, some of which can be configured as analogue IO, very flexible. Any of these boards would allow you
to control your machine and have maybe a dozen or more inputs left over.

Craig
Title: Re: Threading Wizard
Post by: Poppey_au on August 27, 2017, 10:01:11 AM
Hi
I have removed the USB card and put in two parallell port cards. This solved the treading issue but I have some problems with the speed control. I have a Vacon VFD vit 0-10 VDC.e
When I give S1000 the speed is 672 rpm and STrue shows 224
In ports & pins, Spindel Use Spindel Motor Output and PWM Control is ticked.Minimum PWM 0%, PWM Base Freq 5
Spindel pulley is set to ratio 1 max speed 3000.
Any idea what is wrong?