On Tue, 2008-12-16 at 22:44 -0600, Len Shelton wrote:

> With the method that Ray described with G92.2 and
> G92.3, its still several un-necessary steps I think. I mean, what if it is
> the first time you run the program? Would you have to set the offsets with
> G92 in MDI and then save with G92.2 in MDI, then place G92.3 at the
> beginning of every file?

All of the offsets used by EMC are defined when it starts up.  They are
assigned the values that their variables hold in the var and tbl files.
A call to restore g92 values will assign them zero values if the
relevant g92 values are zero.  For that reason you don't need to worry
much about a first encounter with g92.3 in a program unless you change
these offsets and they are saved when EMC2 shuts down.

If you have set g92 values in manual or MDI mode before you start your
program, and that program has a g92.3 near the start, you don't loose
anything.  It simply rereads them from the status structure which holds
the current values you previously set.  There are a couple of gotchas
that are described in detail in the g92 doc I wrote a few years ago.  

http://www.linuxcnc.org/dropbox/g92test1.pdf

(This doc was not intended for bedside reading.)

(1) What you are describing was addressed when an attempt was made to
allow integrators the ability to set these behaviors by parameter
changes.  I've argued for such things for years and a first stab at it
was made by Keith Rumley about three+ years ago on the BDI versions.
You could see his revisions in CVS.

IMO the proper way to handle these things will require a major rework
and expansion of the EMC2 task planning code.  

(2) A related ability, suspending a program using abort or some such
then switching to manual and moving to allow the replacement of a broken
or worn tool, has been discussed at some length.  A similar issue is
raised with auto tool wear sensing.

IMO there is a solution to this and several other "issues" but it would
require a significant revision of the interpreter code.  

HTH

Rayh





------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to