Hello Guest it is April 16, 2024, 12:18:09 PM

Author Topic: Ref All Home script  (Read 13338 times)

0 Members and 1 Guest are viewing this topic.

Ref All Home script
« on: October 03, 2011, 08:36:17 PM »
I know I saw a thread about this not too long ago but I can't seem to find it...anyway, I'm trying to make my machine home Z first, then X and Y at the same time. Right now it does Z, then Y, then X; the script looks like this:

DoButton( 24 )
DoButton( 23 )
DoButton( 22 )
DoButton( 25 )

Offline ger21

*
  • *
  •  6,295 6,295
    • View Profile
    • The CNC Woodworker
Re: Ref All Home script
« Reply #1 on: October 03, 2011, 09:08:58 PM »
DoButton(24)
RefCombination(3)
Gerry

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

JointCAM Dovetail and Box Joint software
http://www.g-forcecnc.com/jointcam.html
Re: Ref All Home script
« Reply #2 on: October 03, 2011, 10:07:41 PM »
Tried that and it homes my Z and then my X moves (by itself) but goes past the home switch and trips the limit...?

Offline ger21

*
  • *
  •  6,295 6,295
    • View Profile
    • The CNC Woodworker
Re: Ref All Home script
« Reply #3 on: October 04, 2011, 11:45:23 AM »
Are your X and Y home switches using different pins? It should work.
Gerry

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

JointCAM Dovetail and Box Joint software
http://www.g-forcecnc.com/jointcam.html
Re: Ref All Home script
« Reply #4 on: October 04, 2011, 11:50:25 AM »
I believe all the home switches are using separate pins. On the control board each axis has home/limit++/limit-- inputs if I remember correctly. If they were using the same pin how would it differentiate between them when it reaches one? I'll take a look at it in a little while.

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: Ref All Home script
« Reply #5 on: October 04, 2011, 07:44:15 PM »
IF you are using the same pins for all homes and or limits then the combo routine may not work right. You would need to use the individual routines as to not confuse Mach3.

Just a thought,(;-) TP



Offline Fastest1

*
  •  920 920
  • Houston, TX
    • View Profile
Re: Ref All Home script
« Reply #6 on: October 05, 2011, 07:50:35 AM »
Also be warned, if you use the same computer to run another machine with Mach 3 or even a different profile, the homing routine will change on all profiles. There might be a way to only call up that homing routine from a specific profile but it was more involved than I was patient.
I want to die in my sleep like my grandfather, not like the passengers in the car! :-)
Re: Ref All Home script
« Reply #7 on: October 05, 2011, 01:16:58 PM »
It's using three different inputs - on the diagnostics screen Z is M3Home, Y is M2Home, and X is M1Home, those are the LEDs that blink when the switches are hit. I'm only running one machine so no worries there.

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: Ref All Home script
« Reply #8 on: October 05, 2011, 01:50:36 PM »
2 questions
If you run the rehome independantly for each axis does it work right?

Does your BOB use any of the multiplexing MUX routines were it shares pins with multiple functions?

(;-) TP
Re: Ref All Home script
« Reply #9 on: October 05, 2011, 02:13:19 PM »
Yes. Just tested. 24=z 23=y 22=x

And...uhhh....what??? Just guessing I would say no.