Welcome, Guest. Please login or register.
Did you miss your activation email?
May 28, 2012, 08:28:13 AM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
+  Machsupport Forum
|-+  Mach Discussion
| |-+  VB and the development of wizards
| | |-+  Ref All Home script
Pages: 1 2 »   Go Down
Print
Author Topic: Ref All Home script  (Read 730 times)
0 Members and 1 Guest are viewing this topic.
swanner
Active Member

Offline Offline

Posts: 57


View Profile
« on: October 03, 2011, 07: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 )
Logged
ger21
Global Moderator
*
Offline Offline

Posts: 2,619



View Profile WWW
« Reply #1 on: October 03, 2011, 08:08:58 PM »

DoButton(24)
RefCombination(3)
Logged

swanner
Active Member

Offline Offline

Posts: 57


View Profile
« Reply #2 on: October 03, 2011, 09: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...?
Logged
ger21
Global Moderator
*
Offline Offline

Posts: 2,619



View Profile WWW
« Reply #3 on: October 04, 2011, 10:45:23 AM »

Are your X and Y home switches using different pins? It should work.
Logged

swanner
Active Member

Offline Offline

Posts: 57


View Profile
« Reply #4 on: October 04, 2011, 10: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.
Logged
BR549
Active Member

Offline Offline

Posts: 2,557


View Profile
« Reply #5 on: October 04, 2011, 06: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



Logged
Fastest1
Active Member

Offline Offline

Posts: 443


Houston, TX



View Profile
« Reply #6 on: October 05, 2011, 06: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.
Logged

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

Offline Offline

Posts: 57


View Profile
« Reply #7 on: October 05, 2011, 12: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.
Logged
BR549
Active Member

Offline Offline

Posts: 2,557


View Profile
« Reply #8 on: October 05, 2011, 12: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
Logged
swanner
Active Member

Offline Offline

Posts: 57


View Profile
« Reply #9 on: October 05, 2011, 01:13:19 PM »

Yes. Just tested. 24=z 23=y 22=x

And...uhhh....what??? Just guessing I would say no.
Logged
Pages: 1 2 »   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!