G-code format

More
22 May 2010 15:30 #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
23 May 2010 21:42 - 23 May 2010 21:49 #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: 23 May 2010 21:49 by BigJohnT.

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

More
25 May 2010 13:55 - 25 May 2010 14:16 #3000 by piasdom
Replied by piasdom on topic Re:G-code format
how do i set g28.1 to use g28

i got this g28.1 (x-2 y2 z.2)
<<<<<codes>>>>>>>>>
g28
but g28 go to xyz zeros

i tried g28.1 =
but it no like the = :)
thanks
Last edit: 25 May 2010 14:16 by piasdom.

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

More
25 May 2010 16:16 - 25 May 2010 16:31 #3003 by piasdom
Replied by piasdom on topic Re:G-code format
i think i see.

g0 x1 y1 z1
g28.1
<<<<codes>>>

g28

will bring it back to x1 y1 z1 when it hit g28
but it has to go to that point FIRST to be recorded.
i don't see the point, why not just put g0 x1 y1 z1 at the end of the file?
why make the move to start with?
Last edit: 25 May 2010 16:31 by piasdom.

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

More
26 May 2010 18:29 - 26 May 2010 18:49 #3018 by piasdom
Replied by piasdom on topic Re:G-code format
and can someone explain how to use global in subroutine?

i have;

%
g17 g20 g40 g49 g54 g80 g90 g94
(Mill Four Ports)
#<feed> = 4
o100 sub
f#<1>
x.04 y.04
y2.27
x1.21
y.04
x.04

x.02 y.02
y2.29
x1.23
y.02
x.02
x.04 y.04
o100 endsub

g64 p.005 q.005
g0 x.05 y.05
m6 t5
z.1
o100 call [1]

where does the [1] get its' value? SWPadnos says it nothing to do with "#<feed> = 4" from above,i agree
but no one wants to tell me how to USE <feed> in the sub.i want to be able to change the feed every now a then
and don't want to have to look thru the whole file. i understand a little about functions in c++ and know
i can't use the value of one function in another. but all i need to do put the values outside the function.
is that about the same? THANKS
Last edit: 26 May 2010 18:49 by piasdom.

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

Time to create page: 0.142 seconds
Powered by Kunena Forum