1
General Mach Discussion / How to resume after G code is stopped safely - problem
« on: January 17, 2018, 02:55:48 PM »
Hi community, I have little problem / question.
I will give you real example , that will be G code for drilling process
N20 G21 G18 G64 G80 G90 M48 G90.1 G40 G49
N30 M08
; TOOL definition
N50 T0909
N60 G00 X0.0 Z10.0
N70 G49
N80 ( End Mill 12mm Dia )
N90 T0202
N100 G00 X0.0 Z5.0
N110 G97 S1000
N120 M04 G94 F40.0
N130 G00 Z1.0
N140 G01 Z-24.633
N150 G00 Z1.0
N160 Z-23.633
N170 G01 Z-49.267
N180 G00 Z1.0
N190 Z-48.267
N200 G01 Z-73.9
N210 G00 Z1.0
N220 M05 M09
N230 M30
Lets imagine spindle "feels" to much load at line N140 and Stop file is triggered /pressed, at line N120 there is command that sets feed at 40 mm/ min and when I resume with executing G code machine will continue with feed 40 mm/ minute (after I clean chips, press M4 manually and press Cycle start).
Now thing is when my endmill completed job of drilling hole I want to be retracted @ 300 RPM and Feed 300mm/min so I made little change in G code
N20 G21 G18 G64 G80 G90 M48 G90.1 G40 G49
N30 M08
; TOOL definition
N50 T0909
N60 G00 X0.0 Z10.0
N70 G49
N80 ( End Mill 12mm Dia )
N90 T0202
N100 G00 X0.0 Z5.0
N110 G97 S1000
N120 M04 G94 F40.0
N130 G00 Z1.0
N140 G01 Z-24.633
N150 G00 Z1.0
N160 Z-23.633
N170 G01 Z-49.267
N180 G00 Z1.0
N190 Z-48.267
N200 G01 Z-73.9
N205 S300 F300
N210 G01 Z1.0
N220 M05 M09
N230 M30
notice line N205 and N210
Now , if I activate Stop file button at line N140 as in example above and I clean chips, press manually M4 , Cycle start it is logical to me that Mach3 resume/ continue from where it stopped with executing G code with feedrate @ everything was stopped, BUT it will resume with Feed 300 mm/min.
Now I would like to know why, and is it possible to change something in order to that not be like that (edit some function, or do I write my Gcode wrong, it can be very dangerous and I become aware of that before few days ago even I use my CNC lathe for some time and I saw that something strange is going on but never succeed to define what is going on because all my programs are created with CAM and are much longer then this simple example.
I even made 10 minute video where I described what is going.
It came to my mind to try to edit post processor to generate with every G01 command Feed value , so will have redundancy , did not succeed yet with that idea so I am wondering do I do something wrong, and what is usual thing to do.
I can after every Stop of executing Gcode press Rewind button and start G code from line zero (start) but that is waste of time because usually 90 % of job is done already and I would cut air 90% of time.
Here is video
https://youtu.be/eYbE-kntcss
Thank you in advance for any help or idea, suggestions or something else
I will give you real example , that will be G code for drilling process
N20 G21 G18 G64 G80 G90 M48 G90.1 G40 G49
N30 M08
; TOOL definition
N50 T0909
N60 G00 X0.0 Z10.0
N70 G49
N80 ( End Mill 12mm Dia )
N90 T0202
N100 G00 X0.0 Z5.0
N110 G97 S1000
N120 M04 G94 F40.0
N130 G00 Z1.0
N140 G01 Z-24.633
N150 G00 Z1.0
N160 Z-23.633
N170 G01 Z-49.267
N180 G00 Z1.0
N190 Z-48.267
N200 G01 Z-73.9
N210 G00 Z1.0
N220 M05 M09
N230 M30
Lets imagine spindle "feels" to much load at line N140 and Stop file is triggered /pressed, at line N120 there is command that sets feed at 40 mm/ min and when I resume with executing G code machine will continue with feed 40 mm/ minute (after I clean chips, press M4 manually and press Cycle start).
Now thing is when my endmill completed job of drilling hole I want to be retracted @ 300 RPM and Feed 300mm/min so I made little change in G code
N20 G21 G18 G64 G80 G90 M48 G90.1 G40 G49
N30 M08
; TOOL definition
N50 T0909
N60 G00 X0.0 Z10.0
N70 G49
N80 ( End Mill 12mm Dia )
N90 T0202
N100 G00 X0.0 Z5.0
N110 G97 S1000
N120 M04 G94 F40.0
N130 G00 Z1.0
N140 G01 Z-24.633
N150 G00 Z1.0
N160 Z-23.633
N170 G01 Z-49.267
N180 G00 Z1.0
N190 Z-48.267
N200 G01 Z-73.9
N205 S300 F300
N210 G01 Z1.0
N220 M05 M09
N230 M30
notice line N205 and N210
Now , if I activate Stop file button at line N140 as in example above and I clean chips, press manually M4 , Cycle start it is logical to me that Mach3 resume/ continue from where it stopped with executing G code with feedrate @ everything was stopped, BUT it will resume with Feed 300 mm/min.
Now I would like to know why, and is it possible to change something in order to that not be like that (edit some function, or do I write my Gcode wrong, it can be very dangerous and I become aware of that before few days ago even I use my CNC lathe for some time and I saw that something strange is going on but never succeed to define what is going on because all my programs are created with CAM and are much longer then this simple example.
I even made 10 minute video where I described what is going.
It came to my mind to try to edit post processor to generate with every G01 command Feed value , so will have redundancy , did not succeed yet with that idea so I am wondering do I do something wrong, and what is usual thing to do.
I can after every Stop of executing Gcode press Rewind button and start G code from line zero (start) but that is waste of time because usually 90 % of job is done already and I would cut air 90% of time.
Here is video
https://youtu.be/eYbE-kntcss
Thank you in advance for any help or idea, suggestions or something else