Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: piccyman on April 18, 2014, 03:54:38 AM

Title: Axis Problem
Post by: piccyman on April 18, 2014, 03:54:38 AM
Hi,

I have a small problem with setting up a second servo on the far side of the Y axis as a slave.

Everything seems to work well until homing (after hitting the switch), the y axis moves away from the homing switch just fine, but the axis doesn’t stop moving away from the switch, it keeps moving until I reset

The settings set are;

A axis set as angular
 Home slave with master axis

Motor outputs:
 A axis is enabled

Ports and pins:
 A Home pin number is set the same as Y home

Slave Axis
 A Axis Slaved with Y axis

Any ideas what I may have missed?


John
Title: Re: Axis Problem
Post by: Hood on April 18, 2014, 03:59:07 AM
I would imagine your A axis (assuming its the slave to Y ) should not be set as angular, ie if you untick that option it will set it as a linear axis.
Hood
Title: Re: Axis Problem
Post by: piccyman on April 18, 2014, 04:20:24 AM
I thought i read somewhere to set the slave axis as angular, it din't make sense at the time.

I have just changed the A axis set as linear, but no change, a axis doesn't stop after homing and moving away from the switch

Title: Re: Axis Problem
Post by: Hood on April 18, 2014, 10:16:18 AM
When homing look at the Diagnostics screen and watch the Y and A home switches. See if the come on then go off after the axis backs off.

One thing I am assuming you do not have a physical home switch on the A, is that correct?
Hood
Title: Re: Axis Problem
Post by: piccyman on April 18, 2014, 10:29:42 AM
this is the text i found

Slaving
On a gantry type miller or router where the two "legs" of the gantry are driven by separate
motors then each motor should be driven by its own axis. Suppose the gantry moves in the
Y direction then axis A should be defined as a linear (i.e. non-rotational) axis and A should
be slaved to Y - see the chapter 5 on Configuring Mach3 for details. Both axes should have
limit and home switches. In normal use both Y and A will be sent exactly the same step and
direction commands by Mach3. When a Reference operation is performed then the axes will
run together until the final part of referencing which is moving just off the home switches.
Here they will move so that each stops the same distance off its own switch. Referencing
will therefore correct any racking (i.e. out of squareness) of the gantry which might have
occurred when the machine is switched off or due to lost steps.

it is in the mach mill doc
Title: Re: Axis Problem
Post by: Hood on April 18, 2014, 10:44:29 AM
If you have a home switch on both the master and slave then you would need to have them on separate inputs I would think.
Hood
Title: Re: Axis Problem
Post by: piccyman on April 18, 2014, 12:23:25 PM
I will add another switch onto the a axis later and see if that solves it

Thank you Hood
Title: Re: Axis Problem
Post by: piccyman on April 19, 2014, 06:06:06 AM
I have added another switch on the A Axis, What is now happening is;

Both axis move back to the zero switch, then backing off, the Y axis stops, and the A axis carries on until I do a manual reset.

Also after the reset the A Axis won't move at all (Y is fine), in order to get the A axis to work again i have  to shut down the mach 3 software and relaunch it.

Title: Re: Axis Problem
Post by: Hood on April 19, 2014, 06:31:02 AM
Please attach your xml and I will try and simulate here to see if I can find the issue.
Hood
Title: Re: Axis Problem
Post by: piccyman on April 19, 2014, 07:09:17 AM
Thank you Hood
Title: Re: Axis Problem
Post by: Hood on April 19, 2014, 12:38:54 PM
I see you are using an external controller.
I am fairly certain that your external controller will need to support slaved homing for this to work correctly, reason I say that is because I remember the SmoothStepper having slaved axis homing problems at one time.
I think most likely your problems are with this, so possibly contact the vendor and see if they can shed any light on whether the controller supports slaved homing and how to set it up.
Hood
Title: Re: Axis Problem
Post by: piccyman on April 19, 2014, 01:28:29 PM
Thank you Hood, I have sent them an email today.

I swapped the motor drivers over Y axis with the A axis , and strangely enough it has started working, will do more testing later to see if its reliable.

Thank you for your help


Title: Re: Axis Problem
Post by: piccyman on April 19, 2014, 03:59:28 PM
I also wound down the amps on the Nema 23's to 1.8A, all seems to be working well now