Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: steel_nick on January 05, 2016, 04:53:31 AM

Title: mach 3 axis not running as DROs
Post by: steel_nick on January 05, 2016, 04:53:31 AM
Hello Guys,
I am very green here. I've just bought a very nice looking 4 axis foam cutter. Unfortunetely the guy that made it for me cannot help me with the problem.
So, running mach3, everything is done, all axis are working, limits are set, motors are tuned (no dfference in DROs and mms that the tool has gone), but when I start something to be cut axis are not moving as they should, the DROs however show that the axis are exactly where they should be.
I am using profili pro for the g-code. At the begining the Ys are supposed to go from the bottom to the middle of the foam twice and after that the cut to start, but what I am getting is - one Y goes always up and the other Y goes half of the way of the first, lets give some numbers - the foam block is 5cm thick, just before the cut starts one Y is about 5-10 cm aboive the block and the other Y is 3cm above the block and they are supposed to be in the middle of the block.
Also sometimes one X is going different direction.
What I have messed up? What should I check... or uncheck  ???

Thank You Guys!
Title: Re: mach 3 axis not running as DROs
Post by: Tweakie.CNC on January 05, 2016, 05:10:13 AM
A picture of your machine may help - I assume you have 2 slaved stepper motors for the X axis and 2 slaved stepper motors for the Y axis.

Are you using the parallel port or ethernet / usb to communicate with the machine?

Tweakie.
Title: Re: mach 3 axis not running as DROs
Post by: steel_nick on January 05, 2016, 06:15:48 AM
Hello Tweakie,
Yep, I will provide a pic, but later today. All the axis are independent - the main purpose is to cut swept wings. I am using parallel port.
Title: Re: mach 3 axis not running as DROs
Post by: Tweakie.CNC on January 05, 2016, 06:57:15 AM
When you post the picture it would be a good idea to post your .xml file (it is located in the Mach3 folder and named <your profile> .xml) it is typically called Mach3Mill.xml - this will enable us to check your set-up and hopefully be able to make suggestions as to how to resolve the problem you are having.

Tweakie.
Title: Re: mach 3 axis not running as DROs
Post by: steel_nick on January 05, 2016, 10:45:42 AM
OK,
here is the machine and the xml.

(http://i.imgur.com/nDzf00z.jpg)

(http://i.imgur.com/i7fQUMY.jpg)
https://drive.google.com/file/d/0B-L4pwEDBy4kemFHZjgwMjBNcHc/view?usp=shar (https://drive.google.com/file/d/0B-L4pwEDBy4kemFHZjgwMjBNcHc/view?usp=shar)
Title: Re: mach 3 axis not running as DROs
Post by: Tweakie.CNC on January 05, 2016, 11:19:43 AM
Excellent looking machine.

Velocity and Acceleration settings look good.
The only thing I have found that you need to correct;     Config. / General Config. - Uncheck A-Axis is angular.

Tweakie.
Title: Re: mach 3 axis not running as DROs
Post by: steel_nick on January 05, 2016, 12:03:20 PM
Thanks Tweakie, written from a moderator this really makes me happy :)
Do You think that when I fix the A axis to not angular it will run as it should be.
I can post a video of the problem if it still exists, may be I am doing something wrong...

THX again!
Title: Re: mach 3 axis not running as DROs
Post by: Tweakie.CNC on January 05, 2016, 12:22:18 PM
Just because I am a moderator doesn't mean that I know anything.  ;D

If you still occasionally get one axis going in the wrong direction then I would suspect that the axis direction signal is not being recognized correctly.
One cause could be that the voltage output from your computer’s LPT parallel port is to the 3.3volt TTL standard when your breakout board / controller is expecting signals which meet the 5volt TTL standard. If this is the case then fitting another PCI parallel port card (which does have 5volt TTL output) is probably the easiest solution.

Tweakie.
Title: Re: mach 3 axis not running as DROs
Post by: steel_nick on January 06, 2016, 04:35:44 AM
Tweakie,
I did that (with the A axis) what happened is that the two axis are going symetrical, so its a start :) but I still have problem with the machine, I've uploaded a video to show.
https://drive.google.com/file/d/0B-L4pwEDBy4kVzlhcXRhYnZ2UGM/view?usp=sharing (https://drive.google.com/file/d/0B-L4pwEDBy4kVzlhcXRhYnZ2UGM/view?usp=sharing)
Notice, that according to mach 3 the axis/tools (DROs are changing symetrical and at the beginning go up and down) are where they are supposed to be.
For me it is strange, for You may be not, but when I hit "reff all home" the axis are going this order - Z, Y, X, A is this something in relation to the problem or not?
Title: Re: mach 3 axis not running as DROs
Post by: Tweakie.CNC on January 06, 2016, 05:23:10 AM
It took a while to download the 950MB video but, as you say, it does show the problem.

Use a voltmeter to measure the voltage on any LPT parallel port Direction pin (between one of the pins 3,5,7 or 9 and one of the Pins 18-25). If the voltage is approx. 0v to 3.3v (dependant on jog direction) then it may well be a voltage issue as I mentioned in my previous post.
If the voltage is approx. 0v to 5v then it is not the parallel port voltage that is causing the problem. This will at least eliminate one possibility.

The Ref All Home button contains a script which is intended to act individually on the axes just as you describe.
In your case you have 2 pairs of axes and each pair should act together so it will mean altering the button script to perform the required action.


Tweakie.
Title: Re: mach 3 axis not running as DROs
Post by: steel_nick on January 06, 2016, 07:05:43 AM
Yep, sorry for the size of the video, I saw it when it was already uploaded :( next time will use Youtube
and Yep - You were right, on all 4 pins (3,5,7 and 9) it gave 3.32. I suppose that it is not strange that the voltage stays this way until I use the other direction.
So, I need a new card, which is a good thing, I think :)
Will update once I get a new card.

Thx again!
Title: Re: mach 3 axis not running as DROs
Post by: steel_nick on January 07, 2016, 03:34:02 AM
OK,
I got a card, should I know uninstall the driver of the mainboard, or leave it that way? I have a driver for the card, but which one to use - mach's one or the one downloaded?
Title: Re: mach 3 axis not running as DROs
Post by: Tweakie.CNC on January 07, 2016, 03:45:31 AM
I would be inclined to fit the card, let Windows find it and install it's own driver or insert the driver disk only if it asks for it.
May not be the right way to do it but, if it's any help, thats what I would do.

Don't forget to check the port address.  ;)

Tweakie.
Title: Re: mach 3 axis not running as DROs
Post by: steel_nick on January 07, 2016, 04:23:22 AM
Ok,
I got the driver installed, what should I put as a port address (device manager says cc00) in mach 3 - cxc00, 0xc00, or what?
Title: Re: mach 3 axis not running as DROs
Post by: Tweakie.CNC on January 07, 2016, 04:47:35 AM
Just type in  cc00  then click OK  ;)

Tweakie.
Title: Re: mach 3 axis not running as DROs
Post by: steel_nick on January 07, 2016, 05:01:29 AM
Yep!
I tried that just after I wrote the reply, feeling a bit silly now :), so I wrote it, clicked OK, everything is going great, just as it is supposed to be :)

Thank You, Tweakie!
Title: Re: mach 3 axis not running as DROs
Post by: Tweakie.CNC on January 07, 2016, 05:37:38 AM
That's great news, I am pleased you have it working OK now.

Tweakie.
Title: Re: mach 3 axis not running as DROs
Post by: Tweakie.CNC on January 07, 2016, 09:10:06 AM
You mentioned, back in post #8, the behaviour of the Ref All Home button. As standard this references each axis in turn (one at a time) and because of the design of your machine this behaviour is not suitable.

Referencing axes is not a procedure I ever need to use so I am no expert here – you will perhaps need to study the Mach manual http://www.machsupport.com/help-learning/product-manuals/ to get a grip of setting-up homing and using offsets but you may wish to consider making the following changes to the script in the Ref All Home button. Click Operator / Edit Button Script and then click the now flashing Ref All Home button. This will display the existing script. Delete all the existing script and insert…

                                            RefCombination(5)
                                            RefCombination(10)

Save the changes. This button will now reference your axes in their matching pairs X/Z and Y/A (and hopefully not break the wire).

Tweakie.
Title: Re: mach 3 axis not running as DROs
Post by: steel_nick on January 09, 2016, 06:29:06 AM
Tweakie,
Thank You SO MUCH! Now axis are reffing home beautifully! Be prepared for some pics and video soon (in the apropriate themes offcource :) )
Title: Re: mach 3 axis not running as DROs
Post by: Tweakie.CNC on January 09, 2016, 10:22:19 AM
I look forward to seeing your pictures and video  :)

Tweakie.