Hello Guest it is August 17, 2019, 11:48:46 AM

Author Topic: homing and limit switches  (Read 7695 times)

0 Members and 1 Guest are viewing this topic.

Offline Hood

*
  •  25,849 25,849
  • Carnoustie, Scotland
    • View Profile
Re: homing and limit switches
« Reply #10 on: January 17, 2011, 08:20:24 PM »
But is it machine coords or offset for A that is wanting zeroed? That is what I am unsure of.
Hood
Re: homing and limit switches
« Reply #11 on: January 17, 2011, 08:30:14 PM »
If it's the offset, looks like it would be DoButton (1011)   
or DoButton (86) for mach. zero

Offline Vogavt

*
  •  258 258
    • View Profile
Re: homing and limit switches
« Reply #12 on: January 17, 2011, 09:02:08 PM »

If you want to zero the A Axis after the homing then DoOEMButton(1011) should work fine.


Yes, I'm hitting the "Ref All Home" button (which is where I got the code from and posted in post #5).

Looks like I don't need all the information that's in there since I don't have encoders. Correct?

I simply added the DoOEMButton(1025) to the bottom of the list.

Thanks for taking the time to look at this.
Re: homing and limit switches
« Reply #13 on: January 17, 2011, 09:03:05 PM »
ooops.. meant to say SetOEMDRO(86,0) Like Jer said, not DoButton
« Last Edit: January 17, 2011, 09:05:30 PM by Overloaded »
Re: homing and limit switches
« Reply #14 on: January 17, 2011, 09:21:46 PM »

Looks like I don't need all the information that's in there since I don't have encoders. Correct?




I would guess that to be correct.

Offline Vogavt

*
  •  258 258
    • View Profile
Re: homing and limit switches
« Reply #15 on: January 17, 2011, 09:57:10 PM »
DoButton( 24 )
DoButton( 23 )
DoButton( 22 )
DoButton( 25 )


DoOEMButton(133)
DoOEMButton(134)
DoOEMButton(135)
DoOEMButton(1025) 


So do I keep the blue or the red?

Offline ger21

*
  • *
  •  6,288 6,288
    • View Profile
    • The CNC Woodworker
Re: homing and limit switches
« Reply #16 on: January 17, 2011, 10:02:01 PM »
They are two different things. Use either:

DoButton( 24 )
DoButton( 23 )
DoButton( 22 )
DoButton( 25 )
or
DoOEMButton(1024)
DoOEMButton(1023) 
DoOEMButton(1022) 
DoOEMButton(1025) 
Gerry

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

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

Offline Vogavt

*
  •  258 258
    • View Profile
Re: homing and limit switches
« Reply #17 on: January 17, 2011, 10:11:53 PM »
Thank you!
Re: homing and limit switches
« Reply #18 on: January 19, 2011, 10:55:17 AM »
Hello All,
While this is not directly related to the above it is a similar problem I am currently having re: homing.  My machine has worked fine for some time and all of a sudden sees the switches as active when I know they are not, I've got them jumpered out.  Checking diagnostics I see that there is no active pin on port1, but pin 12 is configured for the home and limit switches strung together.
So, where to start, the control box, the parallel cable, the PC, or the software?  Or am I missing something all-together different?
Thanks,

Offline Hood

*
  •  25,849 25,849
  • Carnoustie, Scotland
    • View Profile
Re: homing and limit switches
« Reply #19 on: January 19, 2011, 12:02:20 PM »
Sounds like you are getting noise on the limits wiring, try a debounce interval of 2000 but preferably shield the wiring and ground correctly if you have not done so already.
Hood