Hi Amnon,
I'm not sure what you are implying, but using the Override you manually jog the axis' well clear of any of the homing/limit switches (being careful to jog in the proper direction as it will allow you to crash if you jog into the switch) then do a Ref All.
Hope this may help,
Russ