587,316 active members*
3,361 visitors online*
Register for free
Login
Results 1 to 16 of 16
  1. #1
    Join Date
    Mar 2007
    Posts
    60

    Question about Limit switches

    Is it common or even nessesary to have limit switches on your axis'?

    Do most people put limit switches on their machines?

    Are they for safety - so the axis doesn't slam into the end of it's travel? and if it did, would that burn out the motors if they are trying to move the axis but is at the end of it's travel?

    If the axis hits a limit switch, does it screw up the step count, or does the motor (or driver) still know where it is? Or should the software (i.e.Mach 3) know not to go far enough to hit a limit switch.

    If someone could explain in detail the purpose and workings of how limit switches are incorporated, that would be wonderful.

    Jon

  2. #2
    Join Date
    Mar 2003
    Posts
    35538
    Limit switches are safety devices, to prevent the machine from crashing and causing damage or destroying itself. If you have servos, then the motors could overheat if the machine crashed against the stops. Steppers probably wouldn't be damaged, but if they are strong enough, they could tear apart the machine.

    If you hit a limit switch, the machine will usually lose position and need to be homed or referenced. Mach3 incorporates "soft" limits (software limits) which you can set up to stop the machine before it gets to the limits, which I think will avoid losing steps.

    Basically, the purpose of the limit switches is to prevent machine crashes. They are usually installed at both ends of each axis. One switch on each axis can also act as a home switch in addition to a limit switch, which will save you a few switches.
    Gerry

    UCCNC 2017 Screenset
    http://www.thecncwoodworker.com/2017.html

    Mach3 2010 Screenset
    http://www.thecncwoodworker.com/2010.html

    JointCAM - CNC Dovetails & Box Joints
    http://www.g-forcecnc.com/jointcam.html

    (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)

  3. #3
    Join Date
    Mar 2003
    Posts
    4826
    A stepper system will likely be out of position if it hits a limit, because the control issued the move and has no feedback to tell it how far the machine moved before the power was cut.

    A servo system should not lose position when hitting a limit. The limits should be positioned before the dead stop so that the machine has time to decelerate under control of the system. Even then, the encoder feedback on the system cannot be fooled, and the position is always accessible from anywhere along the slideways.

    Many servo systems will permit motion of the axis off the limit switch in the one free direction.

    Needless to say, the interruption caused by hitting the limit may require rerunning the program from the beginning, but midprogram starts are possible under certain circumstances.
    First you get good, then you get fast. Then grouchiness sets in.

    (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)

  4. #4
    Join Date
    Mar 2007
    Posts
    60
    Another question I have now that I'm getting close to hooking up the motors and electronics. The reason I'm asking about home switches is because someone told me you need them to use the soft limits feature in Mach3.

    I assume Home switches are the same type of switch as a limit switch(a little black box with a plunger usually depressed by a flat metal arm with or without a roller on the end) My question is, if I'm using 8 limit switches(2 per axis on a four axis system) Do I need seperate home switches?
    Do I add more switches in addition to the limit switches? Can I use the same switches for home & limits? Do I only put home switches at one end of each axis where I want the machine to zero out?

    Can someone please explain what, where and how many switches I will need in a typical setup? I know where to put the limit switches on each axis but I dont know how & where to incorporate the home switches.

  5. #5
    Join Date
    Nov 2006
    Posts
    40
    As I understand it, you only need two switches per axis, if using Mach software it will treat the limit as a home when you tell it to "reference all" if you set it to reference in a negative direction it will treat the limit switch in that direction as a home switch until it has been triggered and reset. With a single parallel port you have limited inputs so its best to configure home and limits to share an input so you dont run out.
    As far as soft limits goes, if you set them in configs to the usable size of your table they will still work if you dont have switches. jog the axis to their zeros and then "reference all" and the machine coordinates will be set to zero in this position, then when soft limits are enabled the machine should stop movement when it reaches the values defined in configs. The only problem will arrise if steps are missed and the machine returns to zero, it will foul before the DROs think it has reached home! Hardware switches will obviously overcome this problem. hope this helps a bit!!
    Mark

  6. #6
    Join Date
    May 2006
    Posts
    1469
    Quote Originally Posted by watsonstudios View Post
    ......................if I'm using 8 limit switches(2 per axis on a four axis system) Do I need seperate home switches?
    Do I add more switches in addition to the limit switches? Can I use the same switches for home & limits? Do I only put home switches at one end of each axis where I want the machine to zero out?
    If using Mach then you can use the limit as a home switch. Mach knows when to see it as a home.

    Also you can have the switch move with the axis and have actuators each end for limits. So that means only one switch per axis.

    Don't know about your fourth axis. Is it rotary? Then probably only one switch too.

    Another thing is depending on how many inputs you have available you can wire multiple switches to one input.

    Greg

  7. #7
    Join Date
    Mar 2007
    Posts
    60
    Quote Originally Posted by Greolt View Post

    Don't know about your fourth axis. Is it rotary? Then probably only one switch too.

    Another thing is depending on how many inputs you have available you can wire multiple switches to one input.

    Greg
    I actually only have 3 axis' the fourth is really having a dual X axis drive so I will still need 4 motors and drivers. So I guess I will only need 6 switches to cover all my axis' and if I can use the same switches as home switches, that would be great.

    Now, are the home switches only at the end of the machine where you want zero to be? In other words, only using 1 switch per axis for home? Say at the top of Z, the back of X and to the right of Y?

  8. #8
    Join Date
    Dec 2006
    Posts
    532
    Quote Originally Posted by watsonstudios View Post
    I actually only have 3 axis' the fourth is really having a dual X axis drive so I will still need 4 motors and drivers. So I guess I will only need 6 switches to cover all my axis' and if I can use the same switches as home switches, that would be great.
    For limit switches you should be ok with 1 per axis.


    Quote Originally Posted by watsonstudios View Post
    Now, are the home switches only at the end of the machine where you want zero to be? In other words, only using 1 switch per axis for home? Say at the top of Z, the back of X and to the right of Y?
    You are correct about Home switches, only on one end of axis. However, you would be much better of with having two on your X axis(if this is the one you have two motors on) so it will square itself when it homes.

    So that would mean you need 7 switches, 3 for X, 2 for Y and 2 for Z.

  9. #9
    Join Date
    Mar 2007
    Posts
    60
    Quote Originally Posted by rustamd View Post
    However, you would be much better of with having two on your X axis(if this is the one you have two motors on) so it will square itself when it homes.
    I don't know if that statement makes sense to me because of the rigidity of the Y axis along the X rails. The Y axis is fixed & square along the X so the motors would have little or no effect on how square it is unless one motor pushes further than the other in which case one motor will give out before it twists the Y off square. I could be wrong but these are 495oz motors and I don't know how that translates into pounds of pressure.

    (Let's call the two X axis motors 1 and 2)
    When having both X axis motors, one master(1) and one slave(2), I would assume that the master would control the slave (in Mach3) so one could not work independently of the other - which would prevent any twisting or racking.

    On the X, What if motor(1) fails or the wiring fails, will the other motor(2) fight until it fails or burns-up? Or will Mach know that motor(1) is not working and shut motor(2) down or stop the system? It's an extreme scenario but it could happen.

    Hope I didn't stray off topic too much.

  10. #10
    Join Date
    Dec 2006
    Posts
    532
    It still home's independently.

  11. #11
    Join Date
    Dec 2006
    Posts
    532
    What i mean, it can share one switch, but if you have two home switches, i will home indepdently. If it homes exactly at same time you are lucky, that means your gantry is not racking. But pretty much 90% of the time you will have some racking(might be very small, but still). This will help it have a good start for next operation. Of course everything is just mine opinion.

  12. #12
    Join Date
    Jun 2007
    Posts
    44
    Quote Originally Posted by HuFlungDung View Post
    A stepper system will likely be out of position if it hits a limit, because the control issued the move and has no feedback to tell it how far the machine moved before the power was cut.
    is there a way to hook up the switches so they issue the feed back?
    i dont know sqat!!! will be asking dumb questions

  13. #13
    Join Date
    Dec 2006
    Posts
    532
    Quote Originally Posted by shashank ayyar View Post
    is there a way to hook up the switches so they issue the feed back?
    the problem is not with limit switch, which is input device, but rather with stepper motor which provides no feedback to the controller. The way to fix this problem is to get servos.

    Or put encoders on steppers.

    But probably best way is to try not to run into your limit switches

  14. #14
    Join Date
    Jun 2007
    Posts
    44
    cant find reading material for encoders online.suggest please!
    i dont know sqat!!! will be asking dumb questions

  15. #15
    Join Date
    Dec 2006
    Posts
    532
    http://www.cnczone.com/forums/search...archid=1425118

    search is your friend

    also try googling (google.com)

    quadrature encoder tutorial
    opticas encoder tutorial

  16. #16
    Join Date
    Jun 2007
    Posts
    44
    did you mean optical encoders?? i understand now,thanks. they seem to be used mainly for dc servo.are they hooked up behind the motor? posting too early,stilll reading up will probably know all in a while.(maybe not all)
    i dont know sqat!!! will be asking dumb questions

Similar Threads

  1. Limit switches question
    By wjfiles in forum DNC Problems and Solutions
    Replies: 2
    Last Post: 11-28-2006, 09:36 AM
  2. limit switches
    By planescott in forum CNC Machine Related Electronics
    Replies: 5
    Last Post: 01-13-2006, 10:23 PM
  3. The relationship of limit switches to home switches.
    By MikeAber in forum CNC Machine Related Electronics
    Replies: 4
    Last Post: 11-04-2004, 08:28 PM
  4. Limit switches and home switches
    By viktorcnc in forum CNC (Mill / Lathe) Control Software (NC)
    Replies: 2
    Last Post: 08-03-2004, 12:11 PM
  5. Home switches and limit switches.
    By ynneb in forum CNC Machine Related Electronics
    Replies: 5
    Last Post: 04-08-2004, 11:32 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •