Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: Tackleboxman on October 25, 2018, 09:45:52 AM

Title: invisible gremlins
Post by: Tackleboxman on October 25, 2018, 09:45:52 AM
Hi everyone,

I'm new to this forum but glad to be here, i have a strange problem that i'm hoping someone can help me with.

I have a 3 axis router, 3m x 1.5m x 350mm gantry type. I have Mach 3 and i have just finished building it and i am soo looking forward to running some code, (its my first build) but therein is my problem, when i "Ref all home" it does exactly what it should, if i "go to zero"... no problem, i can type a line of code on the MDI and it executes without a hitch, but i cant run a gcode without all the axis's going scatty, they make jerky movements big enough to shake the neighbours house.

I chased EMI around for about 3 weeks till i realized its not that, i did have a little trouble with that (emi) but i re routed my spindle cable and it is sorted.

Does anyone have any idea why i cannot run a code through mach3 without this jerking.

I tried some of my own code and i tried the default road runner but i get the same jerky movements, i cant let it run for more than a few seconds, its too rough. My motors are fine, my break out board is ok, my micro stepper controllers are ok, the spindle is ok, it just wont let me run gcode from the computer.

I think it is a mach 3 setting somewhere but i can't find it. Any ideas?

Thanks in advance
Tackleboxman
Title: Re: invisible gremlins
Post by: ger21 on October 25, 2018, 10:58:15 AM
Try turning on CV mode in general config, and see if it helps?

Without seeing the machine run, it's a bit difficult to understand what you are saying.
Title: Re: invisible gremlins
Post by: Tackleboxman on October 25, 2018, 11:07:13 AM
Hi ger21,

Thanks for the response, i'm willing to try any suggestions.

I did try that (CV mode) back and forth for a while but it didn't fix the problem, i will make a short video of what its doing in the morning, i'm in South Africa and our work day has just ended.
Title: Re: invisible gremlins
Post by: Tackleboxman on October 26, 2018, 12:08:07 PM
Hi again,

I managed top take a few videos but they are a little bit too big to post here so here's a link to download them, i think they are both less than 20 megs each. the short video 45s is the machine running under mach 3 control, its not fun to watch, and the 1 minute video is everything running smoothly with me controlling the movements from the keyboard.

I cant imagine that the problem is anything other than mach 3 somewhere, but i don't know where.

https://1drv.ms/f/s!AvolCJeAoVysumTmMTN1RSwiHrk3

I hope there someone in this universe who can help me with this, i am going crazy not being able to run some code after all this time.

Regards

Tackleboxman
Title: Re: invisible gremlins
Post by: ZASto on October 26, 2018, 02:37:08 PM
You have problem, in my opinion with acceleration. It is way too high.
Post your xml file so that we can discuss further.
Title: Re: invisible gremlins
Post by: Tackleboxman on October 27, 2018, 03:05:15 AM
Hey ZASto, ger21,

here's a link to my xml files, hoping you can find something here.

Thanks again.

https://1drv.ms/f/s!AvolCJeAoVysumVTAkMYBicY5x4u

Tackleboxman
Title: Re: invisible gremlins
Post by: Tweakie.CNC on October 27, 2018, 03:13:47 AM
Hi Tackleboxman,

It would perhaps be best if you use the Reply Tab then the Additional Options... to post your .xml file to the forum.
Title: Re: invisible gremlins
Post by: Tackleboxman on October 27, 2018, 03:21:38 AM
Hi Tweakie.CNC,

I thought my files were too large so i was sharing them via a link, I'll try adding the xml backup here after typing this, the files are about 6.5 megs tho... lemme try and see.  ;)
Title: Re: invisible gremlins
Post by: Tackleboxman on October 27, 2018, 03:38:04 AM
Please excuse my ignorance, i see now having looked at the xml files there are many "backups" with different dates, i have attached the latest ones and i'm hoping they are correct. one is for the mill setup and the other for the router, which i think is the same setup. (aish i hope i don't sound too stupid here).  ;D

Thanks

Tackleboxman

hmmm, ok it wouldnt let me upload files of that type.... ill try zip them first and see what happens.
Title: Re: invisible gremlins
Post by: Tweakie.CNC on October 27, 2018, 04:04:43 AM
Hi Tackleboxman,

The zipped files look just fine.

( Sorry but I forgot to mention earlier that the forum only allows files with a unique name to be posted)

Title: Re: invisible gremlins
Post by: Tweakie.CNC on October 27, 2018, 04:32:04 AM
Assuming I have the correct .xml...

As ZASto has said your accelerations are too high.

I think you need to make many changes to your setup but just make one at a time, saving the change, restarting Mach then checking the result.

I suggest...

1) Set your X an Y axis Velocity to 2000 and Acceleration to 200.
2) Z acceleration to 90

You have a conflict of Pins where you have Enable1 set as Port 1 Pin 14 and also X Axis Direction Pin as Port 1 Pin 14 - this needs correcting.
You have M3 set for Output#6 which is not enabled or set to any Port or Pin.

There are many other things that need attention but just try those to start with.
Title: Re: invisible gremlins
Post by: Tackleboxman on October 27, 2018, 04:46:31 AM
Thank you Tweakie.CNC,

I will make the corrections and let you know how it goes, I think I've stared at it all so much i can't see the wood for the trees now so a fresh pair of eyes is needed, i would be interested in the other changes that are needed as we go. I still have to configure the mpg (Wireless) and also see if i can get the spindle running through mach 3, i am using an RS485 adapter to the vfd. I disconnected it and have been switching it on at the vfd which seems to run with no interference to the steppers. When i run it through mach 3 it "jitters".

Thank you for the help and as i said i will let you know how it goes.

Regards

Tackleboxman

Title: Re: invisible gremlins
Post by: ZASto on October 27, 2018, 11:27:38 AM
OK, I "messed" a bit with your xml, slightly modified you can find here: https://cloud.mail.ru/public/Ge8H/kygbcU1Q9
Title: Re: invisible gremlins
Post by: Tackleboxman on October 27, 2018, 11:41:29 AM
Wow ZASto,

Thank you very much, i will definitely try it out and report back here. I appreciate the help very much. Thank you.



Title: Re: invisible gremlins
Post by: ZASto on October 27, 2018, 02:34:58 PM
You're welcome.
Title: Re: invisible gremlins
Post by: Tackleboxman on October 29, 2018, 02:31:22 AM
Hi Zasto,

Just tried the new xml file with the better settings for accel and velocity and still the machine is jerky. Do you have any other ideas for me.  ???
Title: Re: invisible gremlins
Post by: Tackleboxman on October 29, 2018, 02:40:50 AM
I also have a new gremlin... When I load the g code it all load into the g code window but only a small section loads into the table display window.
Title: Re: invisible gremlins
Post by: Tackleboxman on October 29, 2018, 03:53:30 AM
OK, I went into config, ports and pins, spindle setup and unchecked "use spindle motor output" and the jerking went away. It seems that problem is there somewhere. And I've just noticed I'm running in demo mode hence the limited lines. Just added my license and all good. I can run the spindle manually for now and the machine is running smoothly. Gonna try some code. Smiley face, smiley face.
Title: Re: invisible gremlins
Post by: ZASto on October 29, 2018, 03:57:27 AM
Well, it depends on your job size.
Your table is set to be 2350mm x 1320mm.
Mach usually displays the whole table defined in Confing->Homing/Limits (you have Soft limits enabled si Mach "knows" size of your table).
On second image it is visible the size of the job ~263 x 338 :)

A bit more tweaked xml: https://cloud.mail.ru/public/5Xbx/3sCDS1hq5