Homing an axis

Results 1 to 15 of 15

Thread: Homing an axis

  1. #1
    Member vmax549's Avatar
    Join Date
    Oct 2005
    Location
    Lady Lake
    Posts
    1145
    Downloads
    3
    Uploads
    0

    Default Homing an axis

    Do I understand it correctly that there is no way to Home an axis from Gcode or Mcodes ?? How does the Home axis button work ?

    (;-) TP

    Similar Threads:


  2. #2
    Member
    Join Date
    Aug 2010
    Location
    US
    Posts
    130
    Downloads
    0
    Uploads
    0

    Default Re: Homing an axis

    It would be helpful to know what you are trying to accomplish.

    Do you want to re-reference one axis of the machine? Do you just want to move to the limit switch location?



  3. #3
    Member vmax549's Avatar
    Join Date
    Oct 2005
    Location
    Lady Lake
    Posts
    1145
    Downloads
    3
    Uploads
    0

    Default Re: Homing an axis

    I wish to send the axis to the home switch and set machine coord to zero. Home the axis.

    (;-) TP



  4. #4
    Member
    Join Date
    Aug 2010
    Location
    US
    Posts
    130
    Downloads
    0
    Uploads
    0

    Default Re: Homing an axis

    Just wondering. I can tell you what I have done that might be related. I ran a program with XYZ and A moves in it. I programmed the A axis (rotary table) from a starting point of A=0. The program didn't end on A=0, so rather than wind or rewind the A axis to 0 for the next part, I just did a G92 A0 to set the A position to 0, regardless of how many rotations it had gone through. That position was now A=0, so going to A360 was exactly one rotation. I don't remember all the details of the G92, but that is what came to mind when I read your question.

    Maybe you could just do G0 x-100 to go in the -x direction until the limit switch is hit, then G92 x=0. (or whichever axis direction and limit you want to zero).



  5. #5
    Member vmax549's Avatar
    Join Date
    Oct 2005
    Location
    Lady Lake
    Posts
    1145
    Downloads
    3
    Uploads
    0

    Default Re: Homing an axis

    That would be just resetting the work coord to zero and has nothing to do with homing the axis . But thanks for the thought..

    (;-) TP



  6. #6
    Member
    Join Date
    Apr 2012
    Location
    Canada
    Posts
    64
    Downloads
    0
    Uploads
    0

    Default Re: Homing an axis

    I think what you are looking for is G53? https://gcodetutor.com/fanuc-trainin...0-g53-g54.html



  7. #7
    Member
    Join Date
    May 2015
    Location
    Australia
    Posts
    686
    Downloads
    0
    Uploads
    0

    Default Re: Homing an axis

    When you home an axis in Linuxcnc (which Tormach uses), homing usually searches for a home switch. It is possible to set your config to have an axis to home immediate which means the current position becomes the home position.

    Rod Webster
    www.vmn.com.au


  8. #8
    Member vmax549's Avatar
    Join Date
    Oct 2005
    Location
    Lady Lake
    Posts
    1145
    Downloads
    3
    Uploads
    0

    Default Re: Homing an axis

    Yes that is true BUT that is not what I am looking for. I am looking for a process to REF_HOME the B and C axis from a GCODE call similar to how every one else does it with G28.1 .

    have found a Python call " ref_axis(4)" That indicates it can refhome an axis . I will try a remap to see if it can do it from there.

    (;-) TP



  9. #9
    Member mountaindew's Avatar
    Join Date
    Nov 2007
    Location
    earth
    Posts
    2151
    Downloads
    0
    Uploads
    0

    Default Re: Homing an axis

    Quote Originally Posted by vmax549 View Post
    Yes that is true BUT that is not what I am looking for. I am looking for a process to REF_HOME the B and C axis from a GCODE call similar to how every one else does it with G28.1 .

    have found a Python call " ref_axis(4)" That indicates it can refhome an axis . I will try a remap to see if it can do it from there.

    (;-) TP


    I would suspect Linux cnc /Tormach Path Pilot developers follow g-code industry standards as close as possible. That does not stop them from hiding, changing or disabling behaviors or codes. But I dont think your going to find what you want unless its a standard g-code.



  10. #10
    Member
    Join Date
    May 2015
    Location
    Australia
    Posts
    686
    Downloads
    0
    Uploads
    0

    Default Re: Homing an axis

    Quote Originally Posted by vmax549 View Post
    Yes that is true BUT that is not what I am looking for. I am looking for a process to REF_HOME the B and C axis from a GCODE call similar to how every one else does it with G28.1 .

    have found a Python call " ref_axis(4)" That indicates it can refhome an axis . I will try a remap to see if it can do it from there.

    (;-) TP
    Why don't you use G28.1 similar to how anyone else does it?
    G Codes

    Rod Webster
    www.vmn.com.au


  11. #11
    Member kstrauss's Avatar
    Join Date
    Apr 2013
    Location
    Canada
    Posts
    1788
    Downloads
    0
    Uploads
    0

    Default Re: Homing an axis

    I believe that G28.1 is a best efforts move to the PREVIOUS home position rather than going to the CURRENT home position. Consider the difference in results if steps have been lost on a mill without absolute encoders or if the home switches were repositioned.



  12. #12
    Member vmax549's Avatar
    Join Date
    Oct 2005
    Location
    Lady Lake
    Posts
    1145
    Downloads
    3
    Uploads
    0

    Default Re: Homing an axis

    IN PathPilot G28.1 assigns the current location to return to. It could be anywhere. Calling G28 then simply returns to that location. Same with the G30/G30.1 .

    Having a REFHOME gcode is very handy when working with rotary axis that can do both continuous and indexed moves. When in continuous rotation like a spindle then there is NO home position. When you change back to index mode then it is required that you refhome the Axis so it know where it is at in 3d space.. Most usefull in mill/turn like applications.

    Linuxcnc has several Gcodes that are not Gcode standard codes (;-) G38(g31) and G10(g68/69). Polar mode (G15/16).



  13. #13
    Member
    Join Date
    May 2015
    Location
    Australia
    Posts
    686
    Downloads
    0
    Uploads
    0

    Default Re: Homing an axis

    I just had a play on my Linuxcnc plasma cutter. Homed machine, jogged to some random position and touched off to my laser pointer using G54 as I usually do. Now at X0,Y0.
    G28 returned to the home switch position
    Typing G0 X0 Y0 had no affect I was expecting it to go back to my touch off position (X0,Y0)
    Jogged to some random position, entered G28.1 and jogged away.
    G28 returned me to that position


    Its a long time since I have used G28. I stopped using it.

    From what I understand the expected usage is to use G54 offsets (well any from G54 to G59.3)
    See: G Codes

    Life is much easier now I use G54. Try it and see how you go

    Rod Webster
    www.vmn.com.au


  14. #14
    Member vmax549's Avatar
    Join Date
    Oct 2005
    Location
    Lady Lake
    Posts
    1145
    Downloads
    3
    Uploads
    0

    Default Re: Homing an axis

    HI Rod, I think you are missing teh point. I do not want to just return to a point I want to refHome the axis back to the home switch. That will in turn reset the"Machine" home position not the WORK position.

    (;-) TP



  15. #15
    Member
    Join Date
    May 2015
    Location
    Australia
    Posts
    686
    Downloads
    0
    Uploads
    0

    Default Re: Homing an axis

    You might be able to use the halui home and unhome pins
    HALUI
    and use the digital output pins (M62-M65) to set them
    Looks like you also would need to select the axis (halui.axis.joint.N.select)

    halui is designed to program a user console so its possible they pins you need are in use so you could unlinkp them and use an or2 component so either source worked.

    Rod Webster
    www.vmn.com.au


Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


About CNCzone.com

    We are the largest and most active discussion forum for manufacturing industry. The site is 100% free to join and use, so join today!

Follow us on


Our Brands

Homing an axis

Homing an axis