Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: shapeshaver on December 05, 2012, 12:20:02 PM

Title: Setup for homing X and Z but not Y
Post by: shapeshaver on December 05, 2012, 12:20:02 PM
Hello,

I have a custom cnc machine that pulls long lengths of material through it as it cuts. It uses X Y & Z axis with the y axis being the infinite axis that pulls material through. I just installed home switches on the X and Z axis. Y has no home. When I click Ref All Home, the Z homes but nothing else happens. The home switches show up on the diagnostics screen correctly when actuated.

I was wondering if the Y has to be homed before the X and that is why it never gets to homing the X axis. I have tried setting the Y axis as a virtual switch and setting Y's switch to active low but nothing has made a difference. I have looked for settings that might be selected on the General config and homing and limits screens but I can't see anything relevant that I haven't tried already.

I am using Mach version R3.043.067

Thanks
ShapeShaver
Title: Re: Setup for homing X and Z but not Y
Post by: Overloaded on December 05, 2012, 01:16:56 PM
Are you sure you have the Y homing Disabled ? If so, it should be ignored.
Title: Re: Setup for homing X and Z but not Y
Post by: shapeshaver on December 06, 2012, 09:55:50 AM
I'm not sure how to disable homing on only one axis. I have no inputs checked off or activated for the Y axis in the ports and pins "inputs" settings page if that's what you mean. I only have the home switches activated for the X and Z axis.
Title: Re: Setup for homing X and Z but not Y
Post by: Hood on December 06, 2012, 10:28:53 AM
Does the LED at the side of the Z go green when you home?
Hood
Title: Re: Setup for homing X and Z but not Y
Post by: Overloaded on December 06, 2012, 10:56:30 AM
  I have a custom cnc machine ..........

Is it a CUSTOM screen set as well ? ? ? or the Standard MACH screen ?

Title: Re: Setup for homing X and Z but not Y
Post by: strong6515 on December 06, 2012, 10:04:22 PM
OK, here is a DUMB ASS cobblers way around this. My machine homes in Z first. it looks for the switch to set the backs off until switch is unset.
The switch set and then unset is IMPORTANT. Mach3 is expecting the change.
My machine then homes Y axis, IF you don't care where Y axis home is then assign a switch to it and when it is trying to find home, trip the switch, after it reverses to untrip the switch manually untrip the switch. (let go!)
It will think Y is homed and proceed to home Z axis.
Any switch that can be easily reached by the operator can be used. I suggest to use the x-axis switch again.
Mach 3 allows ALL LIMIT switches and homing switches to be the same input. And that is what I do. so, if I trip any limit switch when it is homing in any axis, Mach3 thinks it has reached home and reverses the axis drive until the switch unsets.
Is this the BEST SOLUTION. I'm sure NOT. but it will work for now. Just make sure you config a home switch for Y. like you nhave foe X and Z.
so Mach 3 has something to look for and find when you trip it manually.
Title: Re: Setup for homing X and Z but not Y
Post by: BR549 on December 06, 2012, 11:23:42 PM
YOu may want to take a look at the code in the REF HOME button.

(;-) TP
Title: Re: Setup for homing X and Z but not Y
Post by: Hood on December 07, 2012, 03:49:53 AM
strong6515

Making sure you do not have the Home switch enabled in Ports and Pins, Inputs for any axis you do not have a home switch on should work fine. What would happen, if say no Y home switch, would be Mach homes Z sees switch and backs off, it then sees no home assigned for Y so it just sets home where it is without moving the axis and then moves onto the next axis in line. If the next axis has a switch enabled then it will move it, if it doesnt then it will just be set to home without moving.
Hood
Title: Re: Setup for homing X and Z but not Y
Post by: shapeshaver on December 07, 2012, 10:29:12 AM
Hood - Yes the Z goes green after it homes.

Overloaded - I am using the standard Mach four axis screen set, nothing customized.

strong6515 - I can try that quickly. But if it works then I would say this is a bug in Mach.

BR549 - How do I do that? Is that accessed through the screen designer?



Title: Re: Setup for homing X and Z but not Y
Post by: Hood on December 07, 2012, 10:39:05 AM
Attach your xml please and I will have a look.
Its unlikely  a bug in Mach as you shouldnt have to do that and I have never heard anyone else saying they have to so more likely a config issue.
Hood.
Title: Re: Setup for homing X and Z but not Y
Post by: shapeshaver on December 07, 2012, 11:42:11 AM
Here is the XML
Title: Re: Setup for homing X and Z but not Y
Post by: Hood on December 07, 2012, 01:45:04 PM
Ok I see you are using the ESS, so possibly that may have a bearing on your problems. Unfortunately I dont have a ESS here at home so I cant test out until tomorrow to see if it is a problem with it.
In the mean time maybe  go to Ports and Pins, Inputs and set Y Home to port 0 pin 0 and restart Mach and see if it makes a difference. The

Hood
Title: Re: Setup for homing X and Z but not Y
Post by: shapeshaver on December 11, 2012, 01:02:10 AM
Y is set to pin 0 port 0, no change.  :(

Do you think it has something to do with the ESS? I keep thinking it has to be something simple but I can't find it.
Title: Re: Setup for homing X and Z but not Y
Post by: Hood on December 11, 2012, 03:18:18 AM
I dont see anything wrong with your xml so it should work fine. I only have a ESS on the big lathe but I dont have any home switches connected to Mach as I have them direct to my servo drives and do the homing in the drives, so it is hard for me to test with one home enabled and another not.
Might be worth an email to greg attaching your xml and see if he can find the problem, might even be worth trying an earlier plugin version if you can.
Hood