# Thread: Limit switch

1. ## Limit switch

Hi,

I program A60,the limit switch was hit (led lamp was for 1 sec on) there was no response.
When I move slow the machine stops G1 A60 F100 (100mm/min) by F500
Machine doesn't stop

IF #13=1 THEN ESTOP

What is your response time ?
thanks
I have camsoft pro + new industrial computer win xp

2. <I'm at grandma's house and not near my manuals so my advice could be better otherwise>

I make it a practice to not use ESTOP in a situation like this. I think your control is fighting itself here. The Galil board has program logic that halts motion when a limit switch is hit. Doing an Estop in additon defeats this logic. Make a trial with the IF#13 line commented out and see wh

3. Originally Posted by Karl_T
<I'm at grandma's house and not near my manuals so my advice could be better otherwise>

I make it a practice to not use ESTOP in a situation like this. I think your control is fighting itself here. The Galil board has program logic that halts motion when a limit switch is hit. Doing an Estop in additon defeats this logic. Make a trial with the IF#13 line commented out and see wh
<Sorry baby nephew hit SEND KEY>
and see what happens. Your galil board should stop the motion for you. IIRC. my .cbk has logic to keep the control from locking up after hitting a limit switch but I don't remember extactly how it goes. If you'd like this for your control, email me next week.

Karl

4. You need to write logic for your limits.fil and perhaps for the Estop.fil

I'd prefer to not go into a real Estop just because a limit was hit, so I used the STOP command in the limits.fil shown below. Estop turns your motors off, which then does not permit you to back off the limit with motor power.
~@~LIMITS.FIL
IF#6=1THENSTOP :LIGHT 9;ON;12 :LABEL2 Z- LIMIT HIT;12
IF#7=1THENSTOP :LIGHT 10;ON;12 :LABEL2 X+ LIMIT HIT;12
IF#11=1THENSTOP :LIGHT 9;ON;12 :LABEL2 Z+ LIMIT HIT;12
IF#12=1THENSTOP :LIGHT 10;ON;12 :LABEL2 X- LIMIT HIT;12
IF#6=0THENIF#11=0THENLIGHT 9;OFF
IF#7=0THENIF#12=0THENLIGHT 10;OFF
IF#6=0THENIF#7=0THENIF#11=0THENIF#12=0THEN LABEL2 LIMITS CLEARED :SLEEP 1 :LABEL2 ;11

### About CNCzone.com

We are the largest and most active discussion forum from DIY CNC Machines to the Cad/Cam software to run them. The site is 100% free to join and use, so join today!

### Follow us on

Search Engine Friendly URLs by vBSEO ©2011, Crawlability, Inc.