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

Reply via email to