On 19 October 2011 13:07, Kasey Matejcek <[email protected]> wrote:
> Is there a way in gcode that I can read what tool is loaded

#5400 should be tool number, #5403 is Z-length.
http://www.linuxcnc.org/docview/2.5/html/common/machining_center.html


> Is there a way to read hal variables in the gcode

You can net them to an analog input (net sig1 some_hal_label =>
motion.analog-in-NN ), and read them with M66.
http://www.linuxcnc.org/docview/2.5/html/gcode/main.html#sec:M66-Input-Control
http://www.linuxcnc.org/docview/html/config_emc2hal.html#r1_1_2

-- 
atp
"Torque wrenches are for the obedience of fools and the guidance of wise men"

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2d-oct
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to