On Sat, 28 Mar 2020 at 07:45, Gene Heskett <ghesk...@shentel.net> wrote:

> Now, the actual line from the gcode which should be good
> #<_Z_dist>=hal.get_value("ovrtrvl-scaler-mux.out")

Where did you find that format? Is it in the docs somewhere?

If so, can you say which file and which page?

You seem to be trying to put Python code in G-code.
http://linuxcnc.org/docs/2.8/html/hal/halmodule.html

You can read HAL pins at the _beginning_ of a G-code routine, but the
format is quite different.
#<_Z_dist>=#<_hal[ovrtrvl-scaler-mux.out])
http://linuxcnc.org/docs/2.7/html/remap/remap.html#remap:referto-hal-items

But that won't work here, as the G-code gets the interpreter value,
not the run-time value.

What you need to do is

net G-code-input ovrtrvl-scaler-mux.out => motion.analog-in-00

Then in the g-code
M66 E0 L0
#<Z_dist> = #5399


--
atp
"A motorcycle is a bicycle with a pandemonium attachment and is
designed for the especial use of mechanical geniuses, daredevils and
lunatics."
— George Fitch, Atlanta Constitution Newspaper, 1912


_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to