On 1 March 2010 18:42, ulises barrera <[email protected]> wrote:

> Is this the right approach?

There is no right and wrong, only alternatives.

http://wiki.linuxcnc.org/cgi-bin/emcinfo.pl?SimpleCycleTimer
Is another way to do a timer.

As for storing the value run-to-run... I am not sure how to do that.
One possibility would be to add it to the persistent parameters that
are stored in one of the files in the config directory (I am at work,
so can't look at the actual files to see the name). This stores things
like the coordinate system offsets, but will also store any other
numbered parameter that you add to the list. The issue is linking that
to a value visible in HAL. A simple bit of G-code can output it to an
analogue output and read it back from an analogue input (see
http://wiki.linuxcnc.org/cgi-bin/emcinfo.pl?Mword )
but I am not sure how you would force that G-code to run at startup
and shutdown. I suspect that others might have ideas though.

-- 
atp

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to