Hello Guest it is August 18, 2019, 09:50:05 AM

Author Topic: Homing indicators  (Read 2479 times)

0 Members and 1 Guest are viewing this topic.

Homing indicators
« on: May 17, 2007, 09:48:08 AM »
I have been reading through the various "how to make sure my machine is homed after startup" threads,
and have a question... why is it that in each code example that has been posted, LED 808 (Y axis ref) is checked to make sure the machine has been homed?  As opposed to checking all the valid axis in the machine anyway...

Just trying to understand the mental paths behind the code that is being put up for use/examples.

Thank you all!

-Nate
Re: Homing indicators
« Reply #1 on: May 17, 2007, 10:21:26 AM »
If you would like to check every one that is not a problem! You can do the following:

Sub Main()

If( GetLED(86) = false)Then
If(GetLED(7) = true)Then
'The X has not been homed and is enabled
Code("(  X not referenced.    Please Ref All Home)")
Exit Sub
End If
End If

If(GetLED(87) = false)Then
If(GetLED(8) = true)Then
'The y has not been homed and is enabled
Code("(   Y not referenced.    Please Ref All Home)")
Exit Sub
End If
End If

If(GetLED(88) = false)Then
If(GetLED(9) = true)Then
'The z has not been homed and is enabled
Code("(   Z not referenced.    Please Ref All Home)")
Exit Sub
End If
End If



End Sub


Main
Fixing problems one post at a time ;)

www.newfangledsolutions.com
www.machsupport.com
Re: Homing indicators
« Reply #2 on: May 17, 2007, 10:27:00 AM »
thanks brian,

wasn't looking for full code, just wondering what the mental path had been on why the Y-axis was the only one that was checked.

either way,

Thanks!

-nate
Re: Homing indicators
« Reply #3 on: May 17, 2007, 10:33:43 AM »
You "should" check them all but you know how that is :)
Fixing problems one post at a time ;)

www.newfangledsolutions.com
www.machsupport.com
Re: Homing indicators
« Reply #4 on: May 17, 2007, 10:39:10 AM »
haha.. i do I do..

you are aware you're speaking to one of the original "but if i can accomplish it with less work... why do extra?" people, right? :)