Hello Guest it is August 25, 2019, 10:31:20 AM

Author Topic: RefCombination during RefAllHome causes Mach to hang.  (Read 903 times)

0 Members and 1 Guest are viewing this topic.

RefCombination during RefAllHome causes Mach to hang.
« on: July 14, 2017, 10:31:54 AM »
Hi, I have searched a lot for some sort of answer to this but haven't found any solutions yet. When I use RefCombination in my RefAllHome script it refs the axis's but I have to hit the reset button after to get mach to do anything else. I have tried various combinations of RefCombination and DoButton on three different computers with the same results. What I am wanting is to do:

Refcombination(15) 'Ref all 4 axis simultaneously'
Code "G28"

but mach won't run the G28 and I have to reset before any other macros (eg auto zero) will work.

If I use DoButton for each axis the G28 at the end runs fine.

I have tried in both the 1024 and 2010 screensets with the same results

Any help is greatly appreciated.




Offline ger21

*
  • *
  •  6,288 6,288
    • View Profile
    • The CNC Woodworker
Re: RefCombination during RefAllHome causes Mach to hang.
« Reply #1 on: July 14, 2017, 12:01:11 PM »
Are you using a chinese motion controller?
Gerry

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

JointCAM Dovetail and Box Joint software
http://www.g-forcecnc.com/jointcam.html
Re: RefCombination during RefAllHome causes Mach to hang.
« Reply #2 on: July 14, 2017, 12:17:16 PM »
No I am using this Chinese parallel port breakout board from Longs Motor. It came with my motor kit.

http://www.ebay.ca/itm/6-Axis-DB25-Breakout-Board-Interface-Adapter-DB25-Cable-/301160481180

Offline ger21

*
  • *
  •  6,288 6,288
    • View Profile
    • The CNC Woodworker
Re: RefCombination during RefAllHome causes Mach to hang.
« Reply #3 on: July 14, 2017, 02:06:41 PM »
What version of Mach3 are you using?

Try RefCombination(15)
While IsMoving()
Wend
Code "G28"
While IsMoving()
Wend
Gerry

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

JointCAM Dovetail and Box Joint software
http://www.g-forcecnc.com/jointcam.html
Re: RefCombination during RefAllHome causes Mach to hang.
« Reply #4 on: July 14, 2017, 07:39:41 PM »
I am using the latest version on the website, that code did not change anything for me, mach still hangs and needs to be reset, no other buttons work after refall until I reset and if I run the script in the editor it crashes mach and I have to do a hard shutdown of my PC. This problem is also consistent across three different PC's I have used with my machine over the last two months (1st one died, 2nd held me over for a week, 3rd installed a few days ago.)

Offline ger21

*
  • *
  •  6,288 6,288
    • View Profile
    • The CNC Woodworker
Re: RefCombination during RefAllHome causes Mach to hang.
« Reply #5 on: July 14, 2017, 11:16:41 PM »
Try using version 3.043.062.
The version on the website is known to be very buggy for some people.
If that doesn't help, I don't have an answer for you. RefCombination has always worked fine for me.
Gerry

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

JointCAM Dovetail and Box Joint software
http://www.g-forcecnc.com/jointcam.html
Re: RefCombination during RefAllHome causes Mach to hang.
« Reply #6 on: August 06, 2017, 10:32:03 AM »
Try using version 3.043.062.

That worked! Sorry it took me a while to dive in and do the install and setup but I finally did it this morning and everything is working perfectly. Thanks for your help!