Hello Guest it is December 01, 2024, 03:29:58 PM

Author Topic: Homing Macro?  (Read 17876 times)

0 Members and 1 Guest are viewing this topic.

Offline ger21

*
  • *
  •  6,295 6,295
    • The CNC Woodworker
Re: Homing Macro?
« Reply #10 on: September 10, 2011, 10:07:26 PM »
The proper way is probably:

DoButton(24)
Refcombination(3)

And you need to change every button, as each is unique.
Gerry

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

JointCAM Dovetail and Box Joint software
http://www.g-forcecnc.com/jointcam.html

Offline Fastest1

*
  •  920 920
  • Houston, TX
Re: Homing Macro?
« Reply #11 on: September 10, 2011, 10:17:29 PM »
Gerry, thanks for the input. What exactly is the difference here? Today is the first day of me figuring any of this out. Or should I say altering any of my own screens after much deliberation and hesitancy. Like most things, it hasnt been as bad as I thought. Of course dont tell Dave of CVI/MSM that, he has been answering plenty of questions before I got this far. :-)
The proper way is probably:

DoButton(24)
Refcombination(3)

And you need to change every button, as each is unique.

I want to die in my sleep like my grandfather, not like the passengers in the car! :-)

Offline Fastest1

*
  •  920 920
  • Houston, TX
Re: Homing Macro?
« Reply #12 on: September 10, 2011, 10:24:30 PM »
Gerry, I did change it to the above script with the DoButton(24) etc. I didnt see any difference in its operaton in relation to the RefCombination(4) RefCombination(3) script.
I want to die in my sleep like my grandfather, not like the passengers in the car! :-)
Re: Homing Macro?
« Reply #13 on: September 10, 2011, 10:26:57 PM »
http://groups.yahoo.com/group/mach1mach2cnc/files/Mach3%20v3%20Documentation/

On page 50 all you ever needed to know about the RefCombination() sub routine

Thanks Hood; another great doc that needs to be added to BR549 reading library he is trying to get organized.

Offline BR549

*
  •  6,965 6,965
Re: Homing Macro?
« Reply #14 on: September 10, 2011, 10:27:40 PM »
 I would do it this way. It ensures the Z completes before the XY starts.

DoOemButton(1024)
While Ismoving()
Wend
RefCombination(3)

Just a thought, (;-) TP

Offline ger21

*
  • *
  •  6,295 6,295
    • The CNC Woodworker
Re: Homing Macro?
« Reply #15 on: September 11, 2011, 04:49:49 AM »
Gerry, thanks for the input. What exactly is the difference here?

RefCombination is for homing multiple axis' together, Since your homing one axis, I'd just use the button for that.

Terry is correct, that DoOEMButton(1024) is the newer version of DoButton(24).

While some say that you should use While IsMoving just about anytime you do anything, the stock Ref All doesn't use it, and I've never seen anyone say the stock RefAll doesn't work without it.
Gerry

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

JointCAM Dovetail and Box Joint software
http://www.g-forcecnc.com/jointcam.html

Offline BR549

*
  •  6,965 6,965
Re: Homing Macro?
« Reply #16 on: September 11, 2011, 10:10:04 AM »
Ger, I really wonder how many people ACTUALLY use the RefAll on a daily basis? WOULD most even NOTICE that all axis ended up homing at once instead of Z first then XY? Most people I have talked with when they find something acting strange they just don't use it any more. It seems to be the nature of the DIY crowd.

Just a thought, (;-) TP

Offline ger21

*
  • *
  •  6,295 6,295
    • The CNC Woodworker
Re: Homing Macro?
« Reply #17 on: September 11, 2011, 02:54:28 PM »
Quote
Ger, I really wonder how many people ACTUALLY use the RefAll on a daily basis?

I think that a lot of router users do.

Quote
Most people I have talked with when they find something acting strange they just don't use it any more

Maybe some features, but homing is pretty important. If you go through the trouble of installing all the switches, I'd think that you would figure out how to make it work if it didn't. And you see at least a few posts every once in a while if it didn't work, and I don't see any.

Mine homes Z first, then Y and the slaved X and A together, and it works every time with no While IsMoving.
Gerry

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

JointCAM Dovetail and Box Joint software
http://www.g-forcecnc.com/jointcam.html

Offline BR549

*
  •  6,965 6,965
Re: Homing Macro?
« Reply #18 on: September 11, 2011, 03:15:13 PM »
Not picking on ya but I bet MOST don't ever refhome the machine. I would say 50% don't even know what it means to refhome(;-)

 Fire up the machine, Load Gcode program , load material ,set Work 0,0,0 and go(;-)

NOw that is just an opinion based on years of working with Mach3 and PEOPLE,

 (;-) TP

Re: Homing Macro?
« Reply #19 on: September 11, 2011, 03:44:16 PM »
When I hit my reference home button, that's what impresses the onlookers; to see it move all at once and find each of the homes at the same time. Their expression is priceless. Great way to get there attention before the chips fly.