Hello guys,
I am tweaking a post for my machine and started with a Fanuc base which is close, but it has raised a few questions. In my search I came across some confusing information, see below.
In the Mach3 G-code reference (button in the software that pops up the code references) it states that G28 and G90/91 should not be used in the same line, however my base post shows them on the same line (sample below). I was just wondering why they shouldn't be on the same line if the fanuc post puts them there. I am guessing its because mach doesn't want to mix something up and perform a G28 prior to setting G90 or G91 so the machine is sure to move in the correct manner? if this thinking is right I can simply put the G90/91 command on the line before the G28 Z0, but I wanted to fully understand and make sure i owned the answer before committing to it.
This is the first Post Processor I have ever played with so I want to be sure I understand exactly what is being changed and why so I can build on the premise. so below is the condensed code snippet
O0001
N1 G17 G20 G40 G80
N2 (1/2 EM HSS 4FL 2 LOC)
N3 T07 M06
N4 S5000 M03
N5 G54
N6 M08
N7 G90 G00 X.079 Y-.3625
N8 G43 Z.0984 H07
N9 G01 Z-.9016 F100.
N10 X.1001 Y-.326 Z-.9334 F60.
(Time Warp)
N375 G00 Z.1
N376 Z1. M09
N377 G40 X3.75 Y.25
N378 G91 G28 Z0
N379 (#8 HSS 60Deg Centerdrill)
N380 T10 M06
N381 S2800 M03
N382 G54
N383 M08
N384 G90 X.75 Y3.
N385 G43 Z1. H10
N386 G81 G98 R.1 Z-.0751 F6.
N387 X8.25
N388 G80
N389 Z1. M09
N390 G91 G28 Z0
N391 (E, 1/4 JOBBER DRILL)
N392 T11 M06
N393 S1500 M03
N394 G54
N395 M08
N396 G90 X.75 Y3.
N397 G43 Z.1 H11
N398 G81 G99 R.1 Z-1.125 F8.
N399 X8.25
N400 G80
N401 Z1. M09
N402 G91 G28 Z0
N403 (1/2 EM HSS 4FL 2 LOC)
N404 T07 M06
N405 S5000 M03
N406 G54
N407 M08
N408 G90 X5.775 Y3.
N409 G43 Z.0984 H07
(Time Warp)
N703 G00 Z.1
N704 Z1. M09
N705 G40 X4.5 Y4.75
N706 M05
N707 G91 G28 Z0
N708 G28 X0 Y0
N709 M30
Thanks for looking guys!!
Chris