[Emc-users] G41/G42 question

2010-06-08 Thread Viesturs Lācis
Hello, guys!

I am experimenting with G-code output from my CAM application for EMC.
I used this CAM programm for my old controls on waterjet machine and
now I would like to keep it also for EMC.

The question is - where and how to specify the amount of compensation
to be applied with G41 and G42? The CAM program automatically inserts
appropriate G41 or G42 before each block of G01/G02/G03 moves and
issues G40 after that. I just don't get, where the size of tool (in my
case - radius of water jet) is specified?

I was searcing the web, but all the places I looked are basically
talking about the difference between G41 and G42 - which is left, and
which is right side, and that they do not work in canned cycles and
some other stuff. I looked also in EMC2 G-code reference page, where
G41 and G42 commands are explained, but it also does not explain.
http://linuxcnc.org/docs/html/gcode_main.html#sec:G41,-G42

Is there a way to specify the tool radius as a variable in the same
line with G41 or G42? I think that this would be the most convinient
way for me, because then I can save the syntax of whole G41 or G42
line in my CAM program so that I do not have to edit file by hand and
also that would allow me from time to time adjust this number to meet
exact size of water jet - nozzle wears out and I have to adjust to
that.

with best regards,
Viesturs

--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] G41/G42 question

2010-06-08 Thread Andy Pugh
On 8 June 2010 13:49, Viesturs Lācis viesturs.la...@gmail.com wrote:

 The question is - where and how to specify the amount of compensation
 to be applied with G41 and G42?

It comes from the Tool Table for the currently loaded tool.

 Is there a way to specify the tool radius as a variable in the same
 line with G41 or G42?

G43.1 ?

http://linuxcnc.org/docs/html/gcode_main.html#sub:G43,-G49:-Tool

-- 
atp

--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] G41/G42 question

2010-06-08 Thread Alex Joni
G41 and G42 work with tools from the tool table.
In the tool table you define the exact diameter and other parameters of the 
tool.

You probably want to use G41.1 and G42.1 which allow you to specify the 
diameter along with the code.
http://linuxcnc.org/docs/html/gcode_main.html#sec:G41.1,-G42.1

The same is true for G43.1 but for tool lenght, not diameter compensation.

Regards,
Alex

- Original Message - 
From: Viesturs Lacis viesturs.la...@gmail.com
To: Enhanced Machine Controller (EMC) emc-users@lists.sourceforge.net
Sent: Tuesday, June 08, 2010 3:49 PM
Subject: [Emc-users] G41/G42 question


 Hello, guys!

 I am experimenting with G-code output from my CAM application for EMC.
 I used this CAM programm for my old controls on waterjet machine and
 now I would like to keep it also for EMC.

 The question is - where and how to specify the amount of compensation
 to be applied with G41 and G42? The CAM program automatically inserts
 appropriate G41 or G42 before each block of G01/G02/G03 moves and
 issues G40 after that. I just don't get, where the size of tool (in my
 case - radius of water jet) is specified?

 I was searcing the web, but all the places I looked are basically
 talking about the difference between G41 and G42 - which is left, and
 which is right side, and that they do not work in canned cycles and
 some other stuff. I looked also in EMC2 G-code reference page, where
 G41 and G42 commands are explained, but it also does not explain.
 http://linuxcnc.org/docs/html/gcode_main.html#sec:G41,-G42

 Is there a way to specify the tool radius as a variable in the same
 line with G41 or G42? I think that this would be the most convinient
 way for me, because then I can save the syntax of whole G41 or G42
 line in my CAM program so that I do not have to edit file by hand and
 also that would allow me from time to time adjust this number to meet
 exact size of water jet - nozzle wears out and I have to adjust to
 that.

 with best regards,
 Viesturs

 --
 ThinkGeek and WIRED's GeekDad team up for the Ultimate
 GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
 lucky parental unit.  See the prize list and enter to win:
 http://p.sf.net/sfu/thinkgeek-promo
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users
 


--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] G41/G42 question

2010-06-08 Thread Viesturs Lācis
2010/6/8 Andy Pugh a...@andypugh.fsnet.co.uk:
 On 8 June 2010 13:49, Viesturs Lācis viesturs.la...@gmail.com wrote:

 The question is - where and how to specify the amount of compensation
 to be applied with G41 and G42?

 It comes from the Tool Table for the currently loaded tool.


So there is no other way to adjust the kerf size as only in the tool
table? Ok, thank You for a suggestion, probably I can live with that
as I do not have to do it very often.


 Is there a way to specify the tool radius as a variable in the same
 line with G41 or G42?

 G43.1 ?

 http://linuxcnc.org/docs/html/gcode_main.html#sub:G43,-G49:-Tool


That is tool LENGTH compensation... Am I missing something? I feel
like that might be a good way to adjust for different nozzle lengths,
but I do not see, how to compensate the kerf size.

Viesturs

--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] G41/G42 question

2010-06-08 Thread Viesturs Lācis
2010/6/8 Alex Joni alex.j...@robcon.ro:
 G41 and G42 work with tools from the tool table.
 In the tool table you define the exact diameter and other parameters of the
 tool.

 You probably want to use G41.1 and G42.1 which allow you to specify the
 diameter along with the code.
 http://linuxcnc.org/docs/html/gcode_main.html#sec:G41.1,-G42.1

Thank You! My apologies for such an impatience, at the beginning I
read it once, but did not clearly understand, so asked this question
on the mailing list, now I read it twice and understood that it is
exactly, what I meant :))

Viesturs

--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users