Author Topic: G28.1 and Ref All Home Issue  (Read 3499 times)

0 Members and 1 Guest are viewing this topic.

Offline valenciaoranges

  • Active Member
  • Posts: 3
    • View Profile
G28.1 and Ref All Home Issue
« on: July 19, 2013, 06:52:47 PM »
The Good: I have just set up a Kitamura MC0 with Fanuc DC Servos with an Ajax/Centroid controller. General tuning is complete. Limit switches on + travel are intended to be used as homing switches when called for.  Jog direction and limit switches are correlated (+Jog will activate + limit switch).

The Bad: If I hit the Ref All Home Button nothing happens.  If I put G28.1 X(value short of limit switch) the axis moves to this intermediate point (in working coordinate system/not machine coordinate system) and then stops.  If I put G28.1 X (Value past limit switch) the machine gives an "Axis X Position Error" Message. I have tried a G90 and G91 before the G28.1 (per forum suggestions) with no improvement.  I have X++, X--, X Home enabled in Config/Ports Pins/Inputs. I have tried both with and without "Homed true with no home switches".  If I select G28.1 No Initial Move the intermediate point move does not happen (so I unchecked that box). I have my soft min and Max set way beyond table travel so they are not involved.  I have tried with Auto Zero on and off with no effect.

Other facts that may or may not be important: I can not Jog off a tripped limit switch.  I either use hardware over ride and jog off or turn off machine and turn ball screw by hand to move off switch. I am using a demo copy to verify compatibility before purchase. Simple path G Code works fine.

I have attached .xml file.  Thanks for any insight that can be given.

Offline Hood

  • Mach4 Alpha
  • Posts: 25,775
  • Carnoustie, Scotland
    • View Profile
Re: G28.1 and Ref All Home Issue
« Reply #1 on: July 19, 2013, 07:15:45 PM »
I am not sure how the Ajax control does homing. I see you do not have any inputs defined in Mach for home switches but this may still be correct as it all depends on whether they are set up to specific pins on the Ajax or defined in the plugin.
Really you would need to ask Ajax why your machine is not homing when asking it to by pressing RefAll, there may be some other method that you have to use with that controller.

Hood

Offline valenciaoranges

  • Active Member
  • Posts: 3
    • View Profile
Re: G28.1 and Ref All Home Issue
« Reply #2 on: August 03, 2013, 08:33:15 PM »
Thanks for the clue on the xml indicating that inputs were not properly defined.  I have all the boxes checked in the config screens but some how the M0RefHome, M1RefHome, and M2RefHome were still showing values as 0 not 1.  So I corrected that directly by editing the .xml.  Then G28 would at least run the machine to the current zero point.  A little more research on Ajax indicated that they use M92 to actually zero out the machine.  M92 P1 Q2 R3 in the MDI line works perfectly; the machine kisses against the limit switches and backs of the prescribed 0.1" and sets the Machine coordinates to zero.

Does anybody know which boxes in the standard Mach3 Screens control the value of  M(0,1,2)RefHome?

 I am off to sort out getting Ajax to Drive the Fanuc Spindle.

Thanks again.

Offline Hood

  • Mach4 Alpha
  • Posts: 25,775
  • Carnoustie, Scotland
    • View Profile
Re: G28.1 and Ref All Home Issue
« Reply #3 on: August 04, 2013, 06:06:48 PM »
Does anybody know which boxes in the standard Mach3 Screens control the value of  M(0,1,2)RefHome?

Not really sure what you are asking here?

If meaning can you have your RefAll button do as you need then yes, just go to Operator menu in Mach then Edit Button Scripts. The Ref All will be flashing, click it and the editor will open, delete what is there and enter your M92 P1 Q2 R3 as shown below then save and then close the editor, your RefAll will now do as you are currently doing from MDI.

code "M92 P1 Q2 R3"


Hood