Hello Guest it is March 28, 2024, 12:05:56 PM

Author Topic: Limit Switches  (Read 2931 times)

0 Members and 1 Guest are viewing this topic.

Limit Switches
« on: November 30, 2015, 11:56:42 AM »
Hi
I am a new member and I 'm sure this has been discussed many times, In searching for limit switch wiring options I decided on using one pin for  X,Y, Z, per a post I read here. Being new to this I was wondering if in the future I would regret this decision. Have any of you done this and just learned to work with it or could it cause problems down the road. I am just completing a build that I started a few years ago.
Thanks
I look forward to being part of this forum
Bill
Re: Limit Switches
« Reply #1 on: November 30, 2015, 01:44:45 PM »
Bill,

Not that its much credibility, but I use one pin for X, Y and Z limit and home switches.

It means that if you hit a limit switch you won't know which axis has had the limit switch.... but in all fairness... just look at the machine... and over-ride the limit switches and jog it off the limit switch.

It also means that you can only home one axis at a time..... not really a problem for me  (no hurry).....

I did not follow the schematic in the mach3 manual for my setup.... in that I did not wire my limit switches in series with my e-stop (section 4.14, manual link below).... I have my estop on another pin, and I have my probe input on another pin.

http://www.machsupport.com/wp-content/uploads/2013/02/Mach3Mill_Install_Config.pdf
sections: 4.5.5.3  and 4.5.5.4 cover the shared pins
Rob

Albert Einstein ― “If you can't explain it to a six year old, you don't understand it yourself.”
Re: Limit Switches
« Reply #2 on: November 30, 2015, 02:09:07 PM »
Thanks Robert
Thats kind of what I thought, as for the over-ride I haven't figured out how to do that yet. I ended up disabling the pins in Mach 3 to continue my setup
Bill
Re: Limit Switches
« Reply #3 on: November 30, 2015, 03:09:26 PM »
You have a few choices....

Easiest way... Go to ports and pins... Then inputs and scroll down to the input defined as limit override... Click on the emulate input... And click on the hotkey... Click on an unused key on the keyboard... This will assign this hotkey to the limit override.  .... One catch... I suspect that the limits will only be overridden when the key is depressed...

Option 2 (the way I did it...)... I used machscreen to create a button on my screenset that would toggle the limits override via the oembutton code... Very simple... And an led in the background to show when it's overridden.   I'll give you the code if you're interested... Once you start fiddling with screenset, macros and brains, you will have some fun setting stuff up the way you want or need
Rob

Albert Einstein ― “If you can't explain it to a six year old, you don't understand it yourself.”
Re: Limit Switches
« Reply #4 on: November 30, 2015, 08:19:24 PM »
Hi
Thanks for the advice, I would like to take a look at the code, never done something like that before. That's what makes life fun.
Bill

Offline Fastest1

*
  •  920 920
  • Houston, TX
    • View Profile
Re: Limit Switches
« Reply #5 on: December 01, 2015, 09:19:21 AM »
Limit override is an option on the diagnostics page.
I want to die in my sleep like my grandfather, not like the passengers in the car! :-)
Re: Limit Switches
« Reply #6 on: December 01, 2015, 11:08:32 AM »
If you wish to have a go at modifying a screen to your own requirements, I use machscreen and find it very easy to use.
Website here for download and also the description of how it works.
http://www.kd-dietz.com/klausphp/pages/eng/machscreen/tutorials/ms_tutorial.html

When you want a button to do something or an LED (or DRO) to display something, Mach3 has a whole load of OEM codes built into it, which allows you via mach3 / screen editor to define the "OEM" code for that object.
https://www.google.co.uk/url?sa=t&rct=j&q=&esrc=s&source=web&cd=2&ved=0ahUKEwiygKeo_7rJAhUBlxQKHatWBI0QFggnMAE&url=https%3A%2F%2Fwww.machsupport.com%2Fforum%2Findex.php%3Faction%3Ddlattach%3Btopic%3D19482.0%3Battach%3D27839&usg=AFQjCNGJn1E7RpKyfyjY7STvwaxPFsA6ng&sig2=pANJpax6NoeK1JIkVXG1dg&cad=rja



You can also use the OEM codes for other things like Macros, Brains and a Macropump too.
http://www.machsupport.com/wp-content/uploads/2013/02/Mach3_V3.x_Macro_Prog_Ref.pdf
http://www.machsupport.com/wp-content/uploads/2013/02/VBScript_Commands.pdf

Basically if you want to create a button which allows you to over-ride your limit switches, you create a button and enter the OEM code "150", and if you were typing code it would be "DoOEMButton(150)"

And if you wanted an LED behind the button, you would define a bmp / png image (have a look at one of the other LED's on the screen hidden behind a button), and you would enter code "34", or again if you were doing code for a macro, you would use GetLED(34).
Rob

Albert Einstein ― “If you can't explain it to a six year old, you don't understand it yourself.”