On Jun 5, 2012, at 18:16 , Brian May wrote:

> How can I see, what the numbers for the work offsets are and which work
> offset I am using?
> 
> For example, I can see the the tool offset values in HAL with
> motion.tooloffset.x, I would like to display on a Glade side panel - which
> work offset is being used and what the values are.
> 
> Is this possible?

All the information you seek is available in the parameters:

http://linuxcnc.org/docs/devel/html/gcode/overview.html#_parameters_variables_a_id_sec_parameters_a

#5220 tells you which coordinate system is currently active.  #5221 through 
#5390 tells you the offsets of all the coordinate systems (relative to g53).  
g92 stuff is in #5210-#5219.


But that doesn't help you much, because parameters are not accessible in HAL….  

Something sort of similar to what you asked for is available in HAL via the 
halui.axis pins, see the halui(1) manpage.  (It might make sense to extend 
halui to expose parameters and/or emc stat fields to HAL.)
 

-- 
Sebastian Kuzminsky


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to