Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: Burf86 on April 05, 2020, 06:18:43 PM

Title: N00b - DRO innacurate / calibration
Post by: Burf86 on April 05, 2020, 06:18:43 PM
Hey, I'm new to CNC and the forum. I have a 2030/3040 CNC router hooked up to an old pc tower with windows XP. My business partner purchased this little setup in a job lot on eBay and there is a bunch of extra boards and stepper motors in a box, I have no idea what any of it is so I will probably be asking questions about all of that at a later stage. The lot has been sat in the workshop for years, we never touched it and said partner left the business last year. What with the current lockdown situation I figured it would be great fun to get this little machine up and running  :o
The learning curve has been steep! I have never had anything to with CNC until last week, I am a TIG welder. Never heard of Mach3 and I've got a basic level of CAD experience. So, I have managed to get up to speed with CAM in Fusion, created g-code, run it through Mach and I now have an engraving of my logo in a piece of ply. I was pretty chuffed with myself to be fair. But it hasn't been without trouble, I've pulled what little hair still grows on my head more than once over.

Right now my problem is with the axis' being inaccurate. Just to re-iterate, the CNC is the bog-standard cheapo thing off eBay, the controller is a "T-D 3 axis controller" with the JP-328C board, Windows XP.
So I have gone through the calibration and got my steps per kinda sorted etc. The numbers there are:
G's - 0.00509. Pulse. 5 Dir - 1
x- Steps - 398.5. Vel - 1000. Acc - 50.
y- 540 - 1000 - 50
z- cannot get it anywhere near

Basically it won't stay accurate. I run my programme and at the end when it goes back to zero it's in a completely different place and most of the time it hits the stop and the motor freaks out. If I lay a ruler on the x-axis and run up and down the bed, each time it loses or gains a few mm. Same on the Y and the Z is just all over the place.
I have no idea what it could be and I can't seem to return any results on my searches... Please help.
Title: Re: N00b - DRO innacurate / calibration
Post by: joeaverage on April 05, 2020, 10:57:38 PM
Hi,
your steppers are 'losing steps'. That means that at the speed they are being asked to run the torque
of the steppers is so low that ocassionally it misses a step or two.

It may be that you are demanding that the steppers try to go too fast, all steppers lose torque as speed increases,
consequently losing steps is less of a problem at low speeds than high.

It may also be that you have a low voltage (24V) for the stepper drivers and/or stepper drivers that can only handle
low voltages which make the 'losing steps' problem worse.

What drivers do you have?
What voltage power supply to the drivers?
What are the specs of the steppers, the inductance particularly?

Craig
Title: Re: N00b - DRO innacurate / calibration
Post by: Burf86 on April 06, 2020, 06:41:11 AM
Hey Craig.
Thanks so much for your reply. Reducing the velocity has helped the x-axis, it runs pretty accurately now. I can't get my head around the y-axis, though. I set it to run 200mm in the axis calibration widget, it runs 208mm, make the advised adjustment. set it to run -200mm and it runs 190 ish. Just end up going round in circles.

I don't know the answer to any of your three questions... I didn't get any paperwork in the sale.
Drivers? The standard driver in Mach3...
Voltage to drivers, do I need to get my voltmeter out?
Stepper specs? This is the number on it 57HD-15S
Title: Re: N00b - DRO innacurate / calibration
Post by: joeaverage on April 06, 2020, 06:56:16 AM
Hi,
without information about your machine and/or the components that make it up I can't tell whether
its plain faulty or just trying to operate beyond its limits.

All I can tell you from 57HD-15S is that its a NEMA 23 sized motor, what I really want to know is its inductance. Inductance
is a good figure of merit that will give you an indication how it will perform at speed.

The Chinese (and others) are famous for producing high torque stepper motors but with really high inductance so they
crap out at speed. They make and sell them because they are cheap and most first time buyers don't know any better.

If I had to guess I would say you have med-high inductance steppers (6-12mH) and 24V drivers, they will work OK
but very slowly only.

If you want to make your machine work properly get low inductance motors and high voltage drivers.
In 23 size look for 1-2mH, 1mH preferred and reject anything over 2mH. You want 80V drivers and an 80V, prefereably
transformer/rectifier type 80V DC supply.

Craig

Title: Re: N00b - DRO innacurate / calibration
Post by: Burf86 on April 06, 2020, 11:39:10 AM
OK, understood. Thanks again!
I mentioned in my first post that I have a box full of stuff and I don't really know what most of it is. If you think I would be better off asking these questions on a non-Mach forum, please point me to your recommendation.

There are the stepper motors on the left, 60BYGH301B 31,Nm. A bunch of limit switches and a Mach3 manual control box
The boards, three of the same: Mach3 interface board BL-Mach-v1.1 D302. The one in packaging: DDMMV2.1
The two aluminium boxes. Neither of them has any kind of identification on them as to what they are. They do have information about the inputs and outputs.
The boxes with the vents. One with the lead coming out of it: Sunpower SP-240-24. The other one: AC->DC S-120-24

I can look the majority of it up, but its just those two aluminium boxes with no ID I really need help with.

Would you suggest I have a go at swapping out these motors?
Title: Re: N00b - DRO innacurate / calibration
Post by: Burf86 on April 06, 2020, 12:41:13 PM
One thing I  have noticed when moving the table around is that you can hear the motor bug out occasionally. I was wondering if the pulsing from the computer could have anything to do with the axis' going out of calibration?
Title: Re: N00b - DRO innacurate / calibration
Post by: joeaverage on April 06, 2020, 04:23:45 PM
Hi,

Quote
One thing I  have noticed when moving the table around is that you can hear the motor bug out occasionally. I was wondering if the pulsing from the computer could have anything to do with the axis' going out of calibration?

Very highly likely.

Craig
Title: Re: N00b - DRO innacurate / calibration
Post by: Burf86 on April 08, 2020, 04:53:37 AM
So I just wanted to get this machine up and running for a bit of fun, but it is rapidly turning into this huge thing and I'm not sure I should be jumping into this project, apart from the fact I just spent $170 on Mach3...

Please remember once again that I have no clue what I'm doing.
Can that T-D 3 Axis controller be replaced by the DDMMV2.1 and Mach3 Interface Boards? Or will I need some stepper drives on top?
I figured those two board would let me use a laptop with XP on it, but when I run the driver test the graph is just all black, and nothing happens with the 'special driver'. I saw in a different thread something about a smooth stepper board?

kinda regretting this a bit now but I have laid out the cash so I had better make use of it...
Title: Re: N00b - DRO innacurate / calibration
Post by: Tweakie.CNC on April 09, 2020, 01:22:23 AM
Hi Burf86,

My suggestion is that you get your existing T-D controller running correctly with Mach3 before embarking on buying new stuff. You will, however, need a 32bit PC with parallel port (not laptop) and the LPT port must output the 5 Volt TTL standard not the newer 3.3 Volt TTL standard. WinXP would be a good OS to use.
Unfortunately such computers are now becoming rare and perhaps hard to get.

If you attach your <your profile> .xml file (Typically Mach3Mill.xml) found in your Mach3 folder (you need to rename it to burf.xml as all attachments require a unique name) this file contains all your settings and we can check them and hopefully advise on any settings that may need to be changed.

Tweakie.
Title: Re: N00b - DRO innacurate / calibration
Post by: Burf86 on April 09, 2020, 04:18:10 AM
Thanks for the info Tweakie and Craig.
The PC tower is pretty old, and this router has been running off of it before it came into my possession. There is wood dust all over the router etc.
So here is the Mach profile you requested, and a couple of extra pics just to show my setup, perhaps it will shed some light...?
Title: Re: N00b - DRO innacurate / calibration
Post by: Tweakie.CNC on April 09, 2020, 07:30:19 AM
Hi Burf86,

You nearly fooled me there - in your initial post you said the board was a JP328C but from you pic. I see it is a JP3163B  :D

I have attached a modified .xml file which I would like you to try. Change the name of this .xml to the same name as your existing <your profile>.xml and then copy it to your Mach3 folder overwriting the existing .xml.
 
Please check that your JP3163B board has all the switches set…

K1 – ON
K2 – ON
K3 – OFF
K4 – ON

This is the setting for 1/8th Micro stepping.

SW1 – ON
SW2 – OFF
SW3 – ON

This is the setting for 2 Amp stepper motor current.

Perhaps let me know how (or if) it works and we can go on from there.

Tweakie.
Title: Re: N00b - DRO innacurate / calibration
Post by: Burf86 on April 09, 2020, 11:36:23 AM
Hey Tweakie, thanks for taking the time on this. Really appreciate it.

I'm not getting any movement at all. The ports and pins weren't selected and even after that still nothing. The DRO says its moving, but no movement on the router.
Title: Re: N00b - DRO innacurate / calibration
Post by: Tweakie.CNC on April 10, 2020, 01:56:51 AM
Hi Burf86,

Something went wrong & I think you are using a different profile and picking up the wrong .xml file but I have removed my .xml download while I check it.

No worries though we can take a different approach…

Make the following changes to your Mach3 settings and save the changes at each stage.

In Config. / Motor Tuning…

Set each axis and save after each change to…

X and Y Axis…
Steps per  400
Velocity  2000
Acceleration  200
Step pulse  5
Dir Pulse  5

Z Axis…
Steps per  400
Velocity  1000
Acceleration 100

The attached .zip file has screen shots of the other config. changes.

There will be some more changes but this should do to start with.

Tweakie.
Title: Re: N00b - DRO innacurate / calibration
Post by: Burf86 on April 11, 2020, 12:57:30 PM
Still no movement I'm afraid. I took a screen shot of the Mah3 folder, maybe I didn't delete something I was meant to when uploading that profile you sent?
Title: Re: N00b - DRO innacurate / calibration
Post by: Burf86 on April 11, 2020, 02:53:40 PM
Going to re-install and then input the setup you screen shot for me.
Title: Re: N00b - DRO innacurate / calibration
Post by: Burf86 on April 11, 2020, 03:14:14 PM
It moves now, but the calibration is so far out. Tell it to move 50mm and it travels the whole length of the bed and hits the stop...
Title: Re: N00b - DRO innacurate / calibration
Post by: Tweakie.CNC on April 12, 2020, 01:12:03 AM
Sounds like progress  ;)

Initially check that you have Mach3 set in mm Units (Config. / Select Native units).

Now you need to check the leadscrew pitch of your Z axis – I am assuming it is 4mm (one complete revolution of the lead screw moves the axis 4mm).
Steps per unit are calculated as follows…
Your steppers have 200 whole steps per revolution & at 1/8th microstepping that makes it 1600 steps per revolution ( 200*8 ). If your Z axis moves 4mm in one complete revolution of the leadscrew then to move it 1mm or 1 unit would require 400 steps (1600/4). This would make the steps per unit 400 in Motor Tuning.
You should repeat this measurement and calculation for the X and Y axis just to check that they are to be set at 400 steps per unit.

Next is axis direction…
Standing at the front of the machine, if you press the up arrow key on the keyboard the gantry should move away from you. If it moves in the wrong direction then change the Direction Low Active state for the Y axis in Config. / Ports & Pins / Motor Outputs and apply the change.
If you now press the left arrow key the carriage should move to the left. If it moves in the wrong direction then change the Direction Low Active state for the X axis in and apply the change.
If you press the Page Up key the Z axis should move upwards. If it moves in the wrong direction then change the Direction Low Active state for the Z axis in and apply the change.

One step at a time, we will get there  ;)

Tweakie.
Title: Re: N00b - DRO innacurate / calibration
Post by: Burf86 on April 12, 2020, 06:26:23 AM
One step at a time, wahey!  ;)

Things are starting to come right! The lead screw pitch is indeed 4mm and my motor tuning is now set to;
X-397.186 - 800 - 200 - 5 - 5
Y- 397.4377 - 800 - 200
Z- 399.002 - 200 - 100

Attached are a couple of pictures. One is showing how it cut before we fixed things, and the other shows what it's doing now. Much, much better, but could still do with some fine-tuning I think
Title: Re: N00b - DRO innacurate / calibration
Post by: Tweakie.CNC on April 12, 2020, 06:40:53 AM
Excellent result.

Now the learning begins  ;D ;D ;D

Tweakie.
Title: Re: N00b - DRO innacurate / calibration
Post by: Burf86 on April 12, 2020, 07:08:42 AM
So you'd say I'm good to go and start playing?
I'd appreciate any pointers to stuff I need to learn!
Title: Re: N00b - DRO innacurate / calibration
Post by: Tweakie.CNC on April 12, 2020, 08:00:30 AM
I’m a great believer in learning ‘hands on’ and perhaps using the Mach3 manual as a reference guide   https://www.machsupport.com/wp-content/uploads/2013/02/Mach3Mill_Install_Config.pdf
And, of course, the forum is here to help with any specific questions.

Just start making stuff and please post pictures of what you make, we all like pictures.

Tweakie.