Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: Andre_DE on August 27, 2015, 04:54:16 PM

Title: One physical switch as end switch and ref
Post by: Andre_DE on August 27, 2015, 04:54:16 PM
Hi all!

For two weeks I tried figuring out a solution but no success...
In two of my axis I would like to combine end- and ref switch in one physical switch.

How do I get Mach3 to differentiate between a homeing action and a end switch state? If I define the same pins for both always the end switch function is triggered and the machine goes into reset state. On the other hand I do not want to loose the end switch functionality in case something with the machine goes bad.

Thank you!
André
Title: Re: One physical switch as end switch and ref
Post by: TPS on August 28, 2015, 03:27:04 AM
Hi Andre,

witch controller are you using ?

on my CSMIO-M and CSMIO-S this is working prefect,
just configure the same port and oin in input setup.

Thomas
Title: Re: One physical switch as end switch and ref
Post by: Andre_DE on August 28, 2015, 03:46:37 AM
Hi Thomas,

Thank you for your reply!

What a coincidence! I am using a CSMIO-S with input port/pin for home and limit set to the same values. With either one of them disabled, homing and limit functions correctly.

Regards,
André
Title: Re: One physical switch as end switch and ref
Post by: magicniner on August 29, 2015, 04:23:55 AM
I believe there's an override check box somewhere which also has to be set to allow homing to work with a switch which is both home and limit, I have this running on my Z but it's so long since I set it up ... ;-)

 - Nick
Title: Re: One physical switch as end switch and ref
Post by: dude1 on August 29, 2015, 06:28:15 AM
it should not matter when you are homing if the same switch is set as a limit switch as its looking for home nothing else mach takes care of that, if it is a problem you have something wrong
Title: Re: One physical switch as end switch and ref
Post by: Andre_DE on August 29, 2015, 09:18:25 AM
I cannot find the error... Mach3 recognizes both switch states but does fire an emergency stop when homing.

My setup:
Z zero is 0 at the highest and 260mm at the lowest point
Z Axis with two inductive switches one on ++ (Bottom of axis) and one on -- (Top of axis)

My configuration
Pins >> Z++ Pin 2, Z-- Pin 3, Z Home Pin 2
Homing&Limits >> SoftMax: 0.00; SoftMin: -260.00, Home NEG and Auto Zero enabled

Homing
When homing, both M3++ Limit and M3Home light up, followed by an immediate emergency stop.

When I disable the home switch under ports and pins, homing works fine.
The end switch functionality in general always works.
Title: Re: One physical switch as end switch and ref
Post by: Hood on August 29, 2015, 11:46:02 AM
Go to Config menu then General Config and change Home SW Safety setting to the opposite of what you have and see if that helps.
Hood
Title: Re: One physical switch as end switch and ref
Post by: dude1 on August 29, 2015, 08:34:36 PM
I cannot find the error... Mach3 recognizes both switch states but does fire an emergency stop when homing.

My setup:
Z zero is 0 at the highest and 260mm at the lowest point
Z Axis with two inductive switches one on ++ (Bottom of axis) and one on -- (Top of axis)

My configuration
Pins >> Z++ Pin 2, Z-- Pin 3, Z Home Pin 2
Homing&Limits >> SoftMax: 0.00; SoftMin: -260.00, Home NEG and Auto Zero enabled  (Z home is + not -) and Z only needs a + limit, home switch the - is a wast of time not needed.

Homing
When homing, both M3++ Limit and M3Home light up, followed by an immediate emergency stop.

When I disable the home switch under ports and pins, homing works fine.
The end switch functionality in general always works.

and do what HOOD says
Title:
Post by: lcvette on August 30, 2015, 01:18:04 AM
Your z lowest point should be a negative number as well..

Sent from my XT1080 using Tapatalk
Title: Re: One physical switch as end switch and ref
Post by: dude1 on August 30, 2015, 01:44:23 AM
correct but your lowest point is table top you home Z to the highest point of your Z axis what is up + not down -. home = machine position at the extremes of the machine`s travel in all axis in the - for x and y and + for z. so it left front or back corner at the extremes of the machine travel.

work is where the work pieces is relative to machine Zero.

but this is about Mach control of homing what need`s to be set correct for it to work in the first place, if it is set correct and plays up something else can be wrong. I have home/limits on the same switch it works fine
Title: Re: One physical switch as end switch and ref
Post by: Davek0974 on August 30, 2015, 05:09:05 AM
Maybe try adding some input debounce, 30-40 works on mine???
Title: Re: One physical switch as end switch and ref
Post by: Andre_DE on August 30, 2015, 05:13:48 AM
Go to Config menu then General Config and change Home SW Safety setting to the opposite of what you have and see if that helps.
Hood

Excellent, thank you very much.
No idea how I could overlook this obvious setting but this has solved the issue!
Title: Re: One physical switch as end switch and ref
Post by: Hood on August 30, 2015, 05:25:43 AM
You can be excused for overlooking it as it is not what it usually does in Mach3. The CS-Labs people have used it differently and thus looking at the Mach3 manual would give you no clues :)
Hood