Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: c+c on June 04, 2009, 07:12:14 AM

Title: softlimit disables moving after homing
Post by: c+c on June 04, 2009, 07:12:14 AM
I would like to use softlimits to prevent running into the limit switches.
I use softlimits to make the machine stop just a little before the limit switches, and I included a slow-zone.

The limit switch is also my home-switch.
The problem is that after homing the machine is still in the softlimitted region (because my softlimit is just a little before the limitswitch).
This mean that I can not jog to some other position, because the softlimit prevents me to move.

How to handle this?

Can I automatically move to some predefined location after homing (ignoring the softlimits)? So that I can move a little to be inside the region allowed by the softlimit.
Title: Re: softlimit disables moving after homing
Post by: Hood on June 04, 2009, 07:49:25 AM
You set the soflimits Min for X and Y  and Max for Z to zero. This will still mean that you can jog after homing. The thing to remember that the zero position is when the switch has closed again so if you set up the slow zone correctly you should never trigger the true limit switch as the softlimits will stop before that happens.
Hood
Title: Re: softlimit disables moving after homing
Post by: c+c on June 04, 2009, 10:03:36 AM
But because of inaccuracy of the limit/home switch I think it is possible that after homing, the limit switch can go off at for instance 0.01 mm.
Therefore I want to stay away from the home position for about 0.5mm.
Title: Re: softlimit disables moving after homing
Post by: Hood on June 04, 2009, 10:07:38 AM
Have you tried setting a debounce interval value in the General config page?
 The move you are wanting could be done via VB codein the Ref All button, you would need to disable the softlimits in the code, do the homing in the code, do the move off and then finally re-enable the soft limits.
Hood