On Thu, 28 Sept 2023 at 08:28, <hdpre...@gmail.com> wrote:

> And i issue the MDI command when the machine is on and homed. I did this
> using classicladder,

Another option that springs to mind would be a Python userspace component.

On first loading it would load the last-loaded tool from a file
(possibly the .VAR file, possibly a special single-purpose file) then
sit in a loop waiting for "ready for MDI" (which is easier to do in
Python than HAL) and then issue the M61 command.
It would then sleep, with a callback on the "shutdown" message, at
which point it would save the current tool to disc. (Or, maybe, it
would just sit there polling the tool number all the time and saving
it when it changed.

The only advantage of this is that it's a load-and-forget. It needs no
HAL connections or external logic.

But, really, this should be built-in behaviour.

-- 
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