Hello Guest it is April 26, 2024, 04:27:56 AM

Author Topic: Ref All Axes - All at same time?  (Read 7029 times)

0 Members and 1 Guest are viewing this topic.

Offline ger21

*
  • *
  •  6,295 6,295
    • View Profile
    • The CNC Woodworker
Re: Ref All Axes - All at same time?
« Reply #10 on: October 19, 2014, 06:02:55 PM »
Post your homing code.
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 Axes - All at same time?
« Reply #11 on: October 19, 2014, 08:11:50 PM »
RefCombination(7)

While IsMoving()
Wend

SetParam("XRefPer", GetParam("XRefPer")/10)
SetParam("YRefPer", GetParam("YRefPer")/10)
SetParam("ZRefPer", GetParam("ZRefPer")/10)

RefCombination(7)

While IsMoving()
Wend

SetParam("XRefPer", GetParam("XRefPer")*10)
SetParam("YRefPer", GetParam("YRefPer")*10)
SetParam("ZRefPer", GetParam("ZRefPer")*10)

Offline ger21

*
  • *
  •  6,295 6,295
    • View Profile
    • The CNC Woodworker
Re: Ref All Axes - All at same time?
« Reply #12 on: October 19, 2014, 08:16:20 PM »
Are you seeing a limit switch error?
Set a debounce of about 5000 and see if it works. Sounds like noise is triggering the switches while backing off.
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 Axes - All at same time?
« Reply #13 on: October 19, 2014, 10:03:58 PM »
Debounce in Mach settings or in the homing code?  Can I put a pause command after the 1st Wend in the homing code I posted?

Offline ger21

*
  • *
  •  6,295 6,295
    • View Profile
    • The CNC Woodworker
Re: Ref All Axes - All at same time?
« Reply #14 on: October 19, 2014, 10:08:02 PM »
General Config.
Gerry

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

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

Offline TPS

*
  •  2,505 2,505
    • View Profile
Re: Ref All Axes - All at same time?
« Reply #15 on: October 20, 2014, 03:55:27 AM »
try this code, had a simular thing couple of weeks ago:



RefCombination(7)

Sleep(300)
While ((GetOemLed(807) = true) Or (GetOemLed(808) = true) Or (GetOemLed(809) = true))
   Sleep(50)
Wend

SetParam("XRefPer", GetParam("XRefPer")/10)
SetParam("YRefPer", GetParam("YRefPer")/10)
SetParam("ZRefPer", GetParam("ZRefPer")/10)

RefCombination(7)

Sleep(300)
While ((GetOemLed(807) = true) Or (GetOemLed(808) = true) Or (GetOemLed(809) = true))
   Sleep(50)
Wend

SetParam("XRefPer", GetParam("XRefPer")*10)
SetParam("YRefPer", GetParam("YRefPer")*10)
SetParam("ZRefPer", GetParam("ZRefPer")*10)



Thomas
anything is possible, just try to do it.
if you find some mistakes, in my bad bavarian english,they are yours.
Ref All Axes - All at same time?
« Reply #16 on: October 24, 2014, 01:40:32 PM »
It sort of worked. The parameters would get out of sync so on subsequent homing it would sometimes start off on the lower federate.  Instead of using getparam, I just typed in an actual value that suited my needs.   Thanks guys.