Hello Guest it is April 16, 2024, 05:32:42 AM

Author Topic: One physical switch as end switch and ref  (Read 4287 times)

0 Members and 1 Guest are viewing this topic.

One physical switch as end switch and ref
« 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é

Offline TPS

*
  •  2,505 2,505
    • View Profile
Re: One physical switch as end switch and ref
« Reply #1 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
anything is possible, just try to do it.
if you find some mistakes, in my bad bavarian english,they are yours.
Re: One physical switch as end switch and ref
« Reply #2 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é
Re: One physical switch as end switch and ref
« Reply #3 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

Offline dude1

*
  •  1,253 1,253
    • View Profile
Re: One physical switch as end switch and ref
« Reply #4 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
« Last Edit: August 29, 2015, 06:30:07 AM by blockhead »
Re: One physical switch as end switch and ref
« Reply #5 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.

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: One physical switch as end switch and ref
« Reply #6 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

Offline dude1

*
  •  1,253 1,253
    • View Profile
Re: One physical switch as end switch and ref
« Reply #7 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
(No subject)
« Reply #8 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

Offline dude1

*
  •  1,253 1,253
    • View Profile
Re: One physical switch as end switch and ref
« Reply #9 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