> But how from Gcode Open file, add coordinate to the end and close file?
> The way can be custom program M1xx. That can open and close file and
> even write betwen. But how to retrive machine coordinate ?!? I know M1xx
> can be uset easily for output. But how to get input from HAL? I looking
> that for near 1'st day I start with EMC.

Halsampler and Sampler are one way (and probably the best)

In your hal file add the lines:

loadrt sampler depth=3 cfg="FFF"
addf sampler.0 servo-thread
net xlog halui.axis.0.pos-feedback => sampler.0.pin.0
net ylog halui.axis.1.pos-feedback => sampler.0.pin.1
net zlog halui.axis.2.pos-feedback => sampler.0.pin.2

(You will need the line HALUI = halui in your .ini file [HAL] section

Then invoke " halsampler -n 1 >> logfile " in any way that suits you.

-- 
atp

------------------------------------------------------------------------------
Download Intel® 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
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to