What's new
What's new

M-code for X-axis home?

Mokki

Plastic
Joined
Feb 26, 2019
Hey,

When turn threading we remove the start/end of the thread by milling using manual program.
Program looks like this (for external thread using endmill at B90(non freedom units)):

HTML:
G1  G2  Data1    Data2    Data3    Data4    Data5    Data6    S    M/B
95  17                                                       3183   M3
90  0   X 26.5  C 180                                              M51
        Z  70
    1   Z  66.1          F  0.3
91      X   3   C -360
        Z   5   C  -25
    0   Z   20

Here, the last line just tells the tool to go up 20mm incremental in X. This is where I wonder if it would be possible to
change to a code which said return to X-home instead :scratchchin:
Oh, using Mazatrol Matrix2
 
Replying to my own thread with the "answer".
G28Z0 = Home point in X.

It's a bit confusing, my machine swap Z/X when using manual program, so using the above program ending with G28Z0 brings it back home in X.

BUT, it does something weird. It goes to X0 (program point) THEN X0 (machine point), does anyone know how to fix this?
If I use MDI only with G28X0 it goes home, but using it in a program it goes first to position x0 then machine x0 :willy_nilly:
 
Lol g91 with a g28... old thread i know but couldn't help myself 🤣🤣🤣

For future reference can always do G00 G90 G53 X0.
 








 
Back
Top