G-code format

  • piasdom
  • Topic Author
  • New Member
  • New Member
More
16 years 5 months ago #2922 by piasdom
Replied by piasdom on topic Re:G-code format
one more thing, as far as the forum goes, i haven't been getting any email/questions from the forum i moderate.
(if i'm still moderator) if there have been no questions,do we really need this forum? if not, i'll be willing to help
any way i can.

Please Log in or Create an account to join the conversation.

More
16 years 5 months ago #2925 by BigJohnT
Replied by BigJohnT on topic Re:G-code format
Yep your still moderator and yes the traffic seems to be low in those areas.

John

Please Log in or Create an account to join the conversation.

  • piasdom
  • Topic Author
  • New Member
  • New Member
More
16 years 5 months ago - 16 years 5 months ago #2952 by piasdom
Replied by piasdom on topic Re:G-code format
another problem.
how deep can you call a subroutine? the program i have loads with no errors but doesn't run.
so i'm guessing i can't "call" as many as i have.
i have this;

%

g17 g20 g40 g49 g80 g90 g94 (Mill 4 Port)

o109 sub (the whole file under subroutine o109)
o101 sub (cutting closer to finish)
x.02 y.02
y2.29
x1.23
y.02
x.02

g0 x.05 y.05
o101 endsub
o102 sub
(Cleanup Top)
g1 f4 x.05 y.05
x1.1
y2.26
x.05
y.05
x.175 y.175
x.95
y2.11
x.175
y.175
x.3 y.3
x.8
y1.96
x.3
y.3
x.425 y.425
x.65
y1.75
x.475
y.6
g0 z.2
o102 endsub


o103 sub
(Roughing Step)
g1 f4 x.02 y.02
y2.01
x.92
y2.29
x1.23
y1.77
x.98
y.08
x1.23
y.02
x.02
x.05 y.05
(step cleanup)
x.8
y1.85
x1.075
y2.1
y1.85
x.15
y.1
x.65
y1.7
x.3
y.2
x.5
y1.5
g0 z.2
o103 endsub

o104 sub
(finish sides of step)
g1 f4 x.01 y.01
y2.02
x.91
y2.3
x1.24
y1.76
x.99
y.09
x1.24
y.01
x.01

(step finish)
x.003 y.003
y2.03
x.9
y2.31
x1.25
y1.75
x1
y.1
x1.25
y0
x.003

f8 y2.03
x.9
y2.31
x1.25
y1.75
x1
y.1
x1.25
y0
x.003
g0 x.05 y.05
z.5
o104 endsub
o105 sub (finish top)
g0 x.05 y.05
g1 f4 z-.69
x.015 y.015
y2.295
x1.235
y.015
x.015

x.01 y.01
y2.3
x1.24
y.01
x.01

x.005 y.005
y2.305
x1.245
y.005
x.005

x0 y0
y2.31
x1.255
y0
x0

f8 y2.31
x1.255
y0
x0

g0 x.05 y.05
z.2
o105 endsub

(program start)
g0 x.05 y.05
z.1
g1 f4 z-.1
o101 call
g1 f4 z-.2
o101 call
o102 call
g0 x.05 y.05
z.1
g1 f4 z-.3
o101 call
g1 f4 z-.4
o101 call
o102 call
g0 x.05 y.05
z.1
g1 f4 z-.5
o101 call
g1 f4 z-.6
o101 call
o102 call
g0 x.05 y.05
z.1
g1 f4 z-.67
o101 call
o102 call
g0 x.05 y.05
z.1
g1 f4 z-.69
o101 call
o102 call
g0 x.06 y.06 (end Top)
z.1
g1 f4 z-.69
o105 call
x.05 y.05
g1 f4 z-.77
o103 call
g0 x.05 y.05
g1 f4 z-.8
o103 call
x.05 y.05
g1 f4 z-.8
o104 call
o109 endsub (end subroutine o109)
m6 t1
g0 x.1 y-.1
z.1
o109 call
g0 z1
x0 y0


g17 g20 g40 g49 g80 g90 g94

m2
%
Last edit: 16 years 5 months ago by piasdom.

Please Log in or Create an account to join the conversation.

  • piasdom
  • Topic Author
  • New Member
  • New Member
More
16 years 5 months ago #2953 by piasdom
Replied by piasdom on topic Re:G-code format
well, i got it to run the first subroutine(o101), but it doesn't show the path when it loads.
it just makes the round and ends.

Please Log in or Create an account to join the conversation.

  • piasdom
  • Topic Author
  • New Member
  • New Member
More
16 years 5 months ago #2973 by piasdom
Replied by piasdom on topic Re:G-code format
i can't put g43 after m6 tn, it doesn't work. but if i do this;

g43 h5
g81 f4 m6 t5 x.1 y-.1 r.06 z-.03
x.667
x1.233
x1.8

i works great. and why does m6 have to be in or after the first line.
i had it like this;

m6 t5
g43 h5

g81 f4 x.1 y-.1 r.06 z-.03
x.667
x1.233
x1.8

and it doesn't show tool dia. unless i have it as the first one.

Please Log in or Create an account to join the conversation.

More
16 years 5 months ago - 16 years 5 months ago #2977 by BigJohnT
Replied by BigJohnT on topic Re:G-code format
I normally do a T3M6 on one line then a G43 on the next line however the order of execution states that you can have it all on one line. You can to a T3 before the M6 if your tool changer is the type that can stage a tool then the M6 does the tool change and the G43 applies the current tool offset. When you use the G43 Hn it bypasses so to speak the current tool...

John
Last edit: 16 years 5 months ago by BigJohnT.

Please Log in or Create an account to join the conversation.

Time to create page: 0.243 seconds
Powered by Kunena Forum