Hello Guest it is April 18, 2024, 03:07:25 AM

Author Topic: Quick bit of gcoding help please  (Read 8105 times)

0 Members and 1 Guest are viewing this topic.

Re: Quick bit of gcoding help please
« Reply #10 on: March 07, 2013, 02:59:01 PM »
ok

G98
G0 Z7 (z goes to 7)
X5 Y40 (find position)
G73 X5 Y40 Z-7 Q1 R1 F76 (goes down 7)

sorry for being slow dont get how this would work?


so in my code being would g98 replace g73?

M6 T3
M03 S3200
M8 (Flood On)
G00 G43 H3 Z7
G73 X5 Y40 Z-7 Q1 R7 F76
 X15 Y40
 X25 Y40
 X35 Y40
 X45 Y40
 X55 Y40
 X65 Y40
 X75 Y40
 X85 Y40
 X95 Y40
 X105 Y40
 X115 Y40
G80

Re: Quick bit of gcoding help please
« Reply #11 on: March 07, 2013, 03:07:02 PM »
g98 will retract the z to the level where you started the canned cycle.
so everywhere you have a screw, put g98 before the move and then it will go
back to g73

M6 T3
M03 S3200
M8 (Flood On)
G00 G43 H3 Z7
g98
G73 X5 Y40 Z-7 Q1 R7 F76
 X15 Y40
 X25 Y40
 X35 Y40
 X45 Y40
 X55 Y40
 X65 Y40
 X75 Y40
 X85 Y40
 X95 Y40
 X105 Y40
 X115 Y40
G80
Kenneth

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: Quick bit of gcoding help please
« Reply #12 on: March 07, 2013, 05:56:35 PM »
I do not know of a way to do what you want OTHER than using SUB Programing and creating a drill cycle with a fast move to Z0 . That is a LOT of screws to have to clear (;-).

(;-) TP
Re: Quick bit of gcoding help please
« Reply #13 on: March 07, 2013, 08:00:13 PM »
Andy,
the G code you postet ( all the 144 holes ) already contains the G98.
Only thing you have to do is replace The R7 with R1 to get what you want( so far i can see)

Alex

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: Quick bit of gcoding help please
« Reply #14 on: March 08, 2013, 01:30:51 AM »
Alex I think he needs the R7 to clear the screws BUT does not want to start the drill function at Z7 but at Z0. Needs a rapid from Z7 to Zo before the cycle restarts.

Hopefully I read it correctly on this one. (;-)

I have a sub program that can do it but SUbs can be strange bedfellows if you are just getting started with Gcode.

Just a thought, (;-) TP

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: Quick bit of gcoding help please
« Reply #15 on: March 08, 2013, 01:43:24 AM »
Alex you are correct that will work that way , I had never thought of it that way.

Good Call (;-),

(;-) TP
Re: Quick bit of gcoding help please
« Reply #16 on: March 08, 2013, 03:50:03 AM »
i spoke to a friend last night as i just wasnt getting it and yes you are correct z7 r2

all sorted, many thanks
Re: Quick bit of gcoding help please
« Reply #17 on: March 08, 2013, 08:15:44 AM »
Hi all,

glad  you got it sorted     :)

Alex