I tried to post this message las Friday, and a couple of times over the weekend and it kept bouncing. What was up with that?
I think I was able to get an acceptable solution this morning from the forum by Aciera, here. https://forum.linuxcnc.org/24-hal-components/52747-custom-hal-component?start=0 And was able to use a user space python component to poll the tool table offsets I need and place them on hal pins. Todd Zuercher P. Graham Dunn Inc. 630 Henry Street Dalton, Ohio 44618 Phone: (330)828-2105ext. 2031 -----Original Message----- From: Todd Zuercher via Emc-users <emc-users@lists.sourceforge.net> Sent: Tuesday, May 28, 2024 8:40 AM To: Enhanced Machine Controller (EMC) <emc-users@lists.sourceforge.net> Cc: Todd Zuercher <to...@pgrahamdunn.com> Subject: [Emc-users] Tooloffset on Hal Pin? [EXTERNAL EMAIL] Be sure links are safe. Is there a good way to read the values of multiple tool offsets from the tool table to hal pins? For example I want to have 8 hal pins (offset-z1, offset-z2, offset-z3...) that would show the values saved in the tool table for (Tool#1 Z offset, Tool#2 Z offset, Tool#3 Z offset...). Loading each tool offset one at a time so it can then be read from #5403, then writhing that to a hal pin using M68, is just not going to cut it. I want to have all of the 8 different tool offsets I'm using expressed as hal pins at the same time, from machine start up, without user input or having to execute a g-code command. No I am not using the tool offsets in a conventional manor. The 8 offsets I'm using will be applied simultaneously to each of the 8 different Z axis joints for the 8 spindles on my gang router. (The machine will never use a G43 or T code in a normal g-code file) I do however want to be able to use G10 commands to set the values for each offset, both for manual adjustments, and probing routines. Unfortunately I don't think I'm capable of writing some fancy hal component that reads the tool table then writes the appropriate values to 8 different hal pins. (For me building a simple Python handler file that almost sort of works for a GladeVCP by cutting, pasting, and modifying excerpts of example code is daunting task that takes me days of fumbling around with.) Todd Zuercher P. Graham Dunn Inc.<http://www.pgrahamdunn.com/index.php> 630 Henry Street Dalton, Ohio 44618 Phone: (330)828-2105ext. 2031 _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users