- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
Currently modifying a post for a control I'm testing, I've done a couple of bits but I'm not very efficient at this yet, so hoping someone can help me.
Take the code below for example,
I would like to cancel the tool length compensation before home position, so I would like the G49 to be above the G53 line and not below it. G28 home cycles my machine which is very slow, but if I home with G53 I will get an over-travel alarm unless I cancel the tool length compensation, since this is the last line it's ok to cancel while the tool is down near the work.
After the G80 cancels the cycle I would like the Z0.6 to have a G00 command in front of it, to speed things up. Or alternatively if that cannot be done, a feed of 200 next to it.
(DRILL1)
N305 M01
N310 G121 T3
N315 S800 M03
N320 G17 G90 G94
N325 G54
N330 G00 X-1.25 Y-0.1875
N335 G43 Z0.6 H03
N340 G00 Z0.2
N345 G98 G81 X-1.25 Y-0.1875 Z-0.05 R0.2 F4.
N350 G80
N355 Z0.6
N360 M05
N365 G53 G00 Z0.
N370 G49
At the very end of the program I only want it to go to home in Z, so I would like to delete out the X,Y home lines.
Lastly, at the end I would like it to change back to tool 1, so before the M30 I would like the line G121 T1 (A custom macro I wrote for the tool change on my machine).
N435 M05
N440 M09
N445 G53 G00 Z0.
N450 G49
N455 G53 G00 X0. Y0.
N460 M30
I would greatly appreciate the help, thanks !
Attached is my post
Solved! Go to Solution.