I am using the post processor for EMC-2. Is there a way to put a space after the line number in the G code. It would be allot easier to read it. I have tried to change things in the file but have had no success. Thanks Jan
I am using the post processor for EMC-2. Is there a way to put a space after the line number in the G code. It would be allot easier to read it. I have tried to change things in the file but have had no success. Thanks Jan
Hello
You can introduce a space character after the block number macro #N
So where you see #N add " " (there is space character between the quotes) to read #N " "
You will need to do this on each lines that contains the #N in the RULES section of the post
ATb
andre
HI
Carrying on from this post, can you add a space between program content like the following?
N11 G99G83X183.0Y41.0Z-14.667Q2.933R3.0F200
make it like
N11 G99 G83 X183.0 Y41.0 Z-14.667 Q2.933 R3.0 F200
Thanks
Phil
Hello Phil,
Yes, you need to add an underscore character before each word ..... this is the groups section from a fanuc lathe post ....
GROUPS:
:G1 = { _G00 _G01 _G02 _G03 _G33 _G77 _G78 _G79 _G92 }
:G2 = { _G96 _G97 }
:G3 = { _G90 _G91 }
:G4 = { _G94 _G95 }
:G6 = { _G20 _G21 }
:G7 = { _G40 _G41 _G42 }
:M1 = { _M03 _M04 _M05 }
:M2 = { _M08 _M09 }
:M3 = { _M33 _M34 _M35 }
:M4 = { _M78 _M79 }
END:
Then use this in the MACRO and RULES sections ....... examples below
#CRC = { [CUTCOM ? (_G40) / (_G41) / (_G42) ] }
:GOCLW = { #N (_G02) #CRC #Y #X #I #J #F EOB }
ATb
Andre
Thanks Andre
Worked like a charm.
I feel it is much easier to read like this.
N10 G94
N11 G99 G83 X183.0 Y41.0 Z-14.667 Q2.933 R3.0 F200
N12 G80
N13 M09
N14 G49
N15 T4 M06 ( Ball Nosed End Mill 10mm Dia )
N16 G00 G43 Z50.0 H0
N17 S700 M03
N18 G94
N19 X60.0 Y51.624
N20 Z3.0
N21 G01 Z-1.0 F100
N22 X60.0 Y30.376 F200
N23 X166.0 Y37.829
N24 X166.0 Y44.171
N25 X60.0 Y51.624
N26 X64.5 Y46.796
Cheers
Phil