On 17 July 2010 19:18, yann jautard <[email protected]> wrote:

> So : Can I read the current Z tool position (no matter in what
> coordinates system) in a #parameter ?

Not that I know of.

> I need to read this value from within the gcode to improve my
> mdi-command retract-then-home routine. To make sure the tool is above
> the safe pos or not before homing.
> For the moment I do G53 G0 Zsafe_pos then G53 G0 X0Y0Z0

You can do it without moving the axes, at least.
G92 X0 Y0 Z0 will copy the current X,Y,Z into parameters 5211 onwards
(no "hash" key that I can find on this keyboard) then you can use
G92.2 immediately afterwards to remove the offset, but leave the
parameters there to be read.

-- 
atp

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to