Hello Guest it is August 10, 2020, 06:29:55 PM

Author Topic: G98 not working in canned cycle  (Read 1292 times)

0 Members and 1 Guest are viewing this topic.

G98 not working in canned cycle
« on: February 08, 2016, 11:52:03 AM »
Trying out some canned cycle examples in mach3 (also tried in mach4 demo) and found that the return to initial plane not happening. G98 is active and the code works correctly under other simulators. Any ideas?  Here is a sample:

N005 G54 G90 S1200 M03 T02
N010 G00 X0.5 Y0.
N015 G43 H01 Z2.0 (Establish initial plane)
N020 M08
N025 G81 X.5 Y.5 R.1 Z-.25 F3. G99 (returns to 0.1", aok)
N030 X1.75 G98 (SHOULD RETURN TO INITIAL PLANE 2.0" after cycle. MOVES TO 0.1")
N035 X3.0 G99
N040 X5.5
N045 Y3.5
N050 X4.25
N055 X3.
N060 X.5 G98
N065 X3. Y2.
N070 G80 M09
N075 G49 G91 G28 Z0 M19
N080 M30

Thanks!

Offline BR549

*
  •  6,932 6,932
    • View Profile
Re: G98 not working in canned cycle
« Reply #1 on: February 08, 2016, 02:09:49 PM »
YEP that is pretty much how it has always been . Once set at teh start it stays the entire canned cycle. IF you need to raise it USe the Rword instead of teh G98 . NOT the best option but it works.

(;-) TP

Offline BR549

*
  •  6,932 6,932
    • View Profile
Re: G98 not working in canned cycle
« Reply #2 on: February 08, 2016, 05:16:38 PM »
Now just for teh record and I had to go check to make sure THAT is the way it is suppose to work. Once you set teh Retract level mode in a canned cycle you cannot change it UNLESS you cancel teh cycle With G80 and restart.

(;-) TP
Re: G98 not working in canned cycle
« Reply #3 on: February 08, 2016, 11:50:37 PM »
Thanks for the info. What is interesting is if you begin the cycle with G98 and change it inside the cycle with G99 it will go to initial plane for all the cycles until the first G99,then will be G99 from there on. I see how the R word helps but that means that you have to change all your code inside the cycle every time you change a fixture...  Oh well. Thank again!

N005 G54 G90 S1200 M03 T02
N010 G00 X0.5 Y0.
N015 G43 H01 Z2.0
N020 M08
N025 G81 X.5 Y.5 R.1 Z-.25 F3. G98 (goes to initial plane 2.0)
N030 X1.75 (goes to initial plane 2.0)
N035 X3.0 G99 (goes to retract height 0.1)
N040 X5.5 G98 (ALSO GOES TO RETRACT HEIGHT 0.1 ????)
N045 Y3.5
N050 X4.25
N055 X3.
N060 X.5 G98 (0.1)
N065 X3. Y2.
N070 G80 M09
N075 G49 G91 G28 Z0 M19
N080 M30

Offline BR549

*
  •  6,932 6,932
    • View Profile
Re: G98 not working in canned cycle
« Reply #4 on: February 09, 2016, 11:56:54 AM »
The way it is suppose to work IS you set teh initial Retract MODE at teh beginning of teh cycle. Once set and the cycle turns ON then you cannot change it untill teh cycle is complete or you cancell with G80 .

That is also teh Fanuc standard for G98/99