How can I change my post processor to change my program in the following way?
Processor is for a Cincinatti Talon lathe (modified 850 sx post processor)
I need to change where the tool comment is, and add the G95 and Feedrate into the same
line as the G96 line.
Included is a simple program, written as it is coming from the post processor, and written as
how I would like it:
1st one is what the post processor is writing
2nd one is the changes I want to make
%
(MSG, TOOL - 1 OFFSET - 1 )
(MSG, LROUGH OD ROUGH RIGHT - 80 DEG. INSERT - CNMG-432 )
:1G0G62G70G97S191M4T1M6X4.Z6.
N1G92S3000
N2G0X1.3527Z.11M8
N3G96R1.3527S200
N4G95G1Z-.99F.01
N5X1.5F.01
N6X1.6414Z-.9193F.01
N7G0Z.11
N8X1.2054
N9G1Z-.99F.01
N10X1.3727F.01
N11X1.5141Z-.9193F.01
N12G0Z.11
N13X1.058
N14G1Z-.99F.01
N15X1.2254F.01
N16X1.3668Z-.9193F.01
N17M9
N18G0X4.Z6.
(MSG, TOOL - 2 OFFSET - 2 )
(MSG, LFINISH OD FINISH RIGHT - 35 DEG. INSERT - VNMG-431 )
:2G0G62G70G97S286M4T2M6X4.Z6.
N19G92S3000
N20G0X.5Z.1M8
N21G96R.5S300
N22G95G1Z0.F.005
N23X.9587F.005
N24G3X1.Z-.0206I.9587K-.0206F.005
N25G1Z-1.F.005
N26X1.5F.005
N27X1.6414Z-.9293F.005
N28M9
N29G0X4.Z6.
N30M05
N31M02
%
I would like to change the comment line to go after the tool call line.
Also get the G95 and Feed Rate in the line with the G96 callout.
%
:1G0G62G70G97S191M4T1M6X4.Z6.
(MSG, TOOL - 1 OFFSET - 1 )
(MSG, LROUGH OD ROUGH RIGHT - 80 DEG. INSERT - CNMG-432 )
N1G92S3000
N2G0X1.3527Z.11M8
N3G96G95R1.3527S200F.01
N4G1Z-.99F.01
N5X1.5F.01
N6X1.6414Z-.9193F.01
N7G0Z.11
N8X1.2054
N9G1Z-.99F.01
N10X1.3727F.01
N11X1.5141Z-.9193F.01
N12G0Z.11
N13X1.058
N14G1Z-.99F.01
N15X1.2254F.01
N16X1.3668Z-.9193F.01
N17M9
N18G0X4.Z6.
:2G0G62G70G97S286M4T2M6X4.Z6.
(MSG, TOOL - 2 OFFSET - 2 )
(MSG, LFINISH OD FINISH RIGHT - 35 DEG. INSERT - VNMG-431 )
N19G92S3000
N20G0X.5Z.1M8
N21G96G95R.5S300F.005
N22G1Z0.F.005
N23X.9587F.005
N24G3X1.Z-.0206I.9587K-.0206F.005
N25G1Z-1.F.005
N26X1.5F.005
N27X1.6414Z-.9293F.005
N28M9
N29G0X4.Z6.
N30M05
N31M02
%