Hello Guest it is March 28, 2024, 07:10:03 PM

Author Topic: Ref All Home  (Read 3424 times)

0 Members and 1 Guest are viewing this topic.

Ref All Home
« on: April 22, 2019, 09:06:42 AM »
Hi All

When I 'Ref All Home', the gantry crashes into the stops and then zeros. Is there a way to slow it down when it is near to 'machine zero'?

Thanks Andrew
Re: Ref All Home
« Reply #1 on: April 22, 2019, 09:51:14 AM »
Your debounce setting might be so high that its passing the switch before it is sensed.
Slow the homing speed in the config.
Move the switch further from the hard stops.
Re: Ref All Home
« Reply #2 on: April 22, 2019, 10:04:09 AM »
Hi,
you can set the speed at which the machine homes.

Look on Config/HomnigSoftLimits. The setting "Speed" is the speed as a percentage of the rapid speed for that axis.

What Mach wont do, without extra switches and programming, is go fast until it gets clos and then slow down.

Craig
'I enjoy sex at 73.....I live at 71 so its not too far to walk.'
Re: Ref All Home
« Reply #3 on: April 22, 2019, 04:06:40 PM »
Thanks again. Now resolved.

Offline reuelt

*
  •  520 520
    • View Profile
Re: Ref All Home
« Reply #4 on: April 23, 2019, 03:29:03 AM »
Craig: "What Mach wont do, without extra switches and programming, is go fast until it gets clos and then slow down."

But that is what the SLOW ZONE column is for.
In my case, I set it to SLOW DOWN when 20mm from the switches (see attached).
This only works if you ALSO set soft limits from 0 to say 1mm from the far end limit switch and the SOFTLIMITS is also on during program run.
"the gift of God is eternal life through Jesus Christ our Lord"
Re: Ref All Home
« Reply #5 on: April 23, 2019, 03:33:06 AM »
Craig: "What Mach wont do, without extra switches and programming, is go fast until it gets clos and then slow down."

But that is what the SLOW ZONE column is for.
In my case, I set it to SLOW DOWN when 20mm from the switches (see attached).
This only works if you ALSO set soft limits from 0 to say 1mm from the far end limit switch and the SOFTLIMITS is also on during program run.

I tried changing the 'slow zone' but I could not get it to work. Maybe my 'soft limits' are not set correctly.

Offline reuelt

*
  •  520 520
    • View Profile
Re: Ref All Home
« Reply #6 on: April 23, 2019, 03:41:56 AM »
Craig: "What Mach wont do, without extra switches and programming, is go fast until it gets clos and then slow down."

But that is what the SLOW ZONE column is for.
In my case, I set it to SLOW DOWN when 20mm from the switches (see attached).
This only works if you ALSO set soft limits from 0 to say 1mm from the far end limit switch and the SOFTLIMITS is also on during program run.

I tried changing the 'slow zone' but I could not get it to work. Maybe my 'soft limits' are not set correctly.

Study my limit switch settings and set to suit you machine size. SLOW ZONE also works for manual jogging using 360games pad.
When you make a fundamental change, please save the settings and restart Mach3 before you can confirm it working or NOT.
DO NOT TURN OFF SOFTLIMITS before restart or it will not work.
"the gift of God is eternal life through Jesus Christ our Lord"
Re: Ref All Home
« Reply #7 on: April 23, 2019, 03:44:31 AM »
Hi,
to my knowledge that is not how the slow zone works.

If you had an extra set of switches that activated 1/2 inch or so before the home switch you could make that work.

As reuelt has suggested the slow zone as allowed for in Mach applies only AFTER the machine is referenced and soft limits
are ACCURATELY applied.

Craig
« Last Edit: April 23, 2019, 03:48:32 AM by joeaverage »
'I enjoy sex at 73.....I live at 71 so its not too far to walk.'

Offline reuelt

*
  •  520 520
    • View Profile
Re: Ref All Home
« Reply #8 on: April 23, 2019, 06:58:40 AM »
Hi,
to my knowledge that is not how the slow zone works.

If you had an extra set of switches that activated 1/2 inch or so before the home switch you could make that work.

As reuelt has suggested the slow zone as allowed for in Mach applies only AFTER the machine is referenced and soft limits
are ACCURATELY applied.

Craig
YOU are correct. Sorry.
"Slow zone" is a soft limits feature.
The  std. v.062 Mach3 [ref all zero] VB script PROBABLY does not slow down based on slow zone. (I was using 066 before).
I have tried some better [ref all zero] scripts written by someone in this forum (sorry, can't remember who off hand).
It does [ref all zero] for each axis twice, first at high speed, backs off "the slow zone distance" and then does it again at much slower speed for a very accurate zero position before setting that axis to zero.
« Last Edit: April 23, 2019, 07:09:42 AM by reuelt »
"the gift of God is eternal life through Jesus Christ our Lord"

Offline TPS

*
  •  2,501 2,501
    • View Profile
Re: Ref All Home
« Reply #9 on: April 23, 2019, 12:42:05 PM »
This will home at the homing speed in Config>Homing/Limits, then home again at 1/10 the speed.

So if you set the Homing speed at 50%, it will home at 50% first, then 5%.

DoButton(24)
DoButton(23)
DoButton(22)
While IsMoving()
Wend
SetParam("XRefPer", GetParam("XRefPer")/10)
SetParam("YRefPer", GetParam("YRefPer")/10)
SetParam("ZRefPer", GetParam("ZRefPer")/10)
DoButton(24)
DoButton(23)
DoButton(22)
While IsMoving()
Wend
SetParam("XRefPer", GetParam("XRefPer")*10)
SetParam("YRefPer", GetParam("YRefPer")*10)
SetParam("ZRefPer", GetParam("ZRefPer")*10)

sometimes i wonder why a searchfunction has been invented ;)
« Last Edit: April 23, 2019, 12:44:27 PM by TPS »
anything is possible, just try to do it.
if you find some mistakes, in my bad bavarian english,they are yours.