HI
Had this same issue yesterday on a machine im retrofitting. 

I have a crude workaround that seems to be working...

M6 is remapped to do the toolchange using the .ngc program. When the tool is
changed, i update a paremeter #5000 with the new tool number. #5000 was
added to the .var file

I then added a MDI_command to the .ini file : M61 Q#5000

And i issue the MDI command when the machine is on and homed. I did this
using classicladder, with machine-is-on, x-is-homed, y-is-homed, and z-is
homed all in series, with a monostable to pulse the output and the mdi
command is then excecuted.

You can do this in hal as well with a couple of and2 and oneshot components.

Regards
Henk

-----Original Message-----
From: emc-users-requ...@lists.sourceforge.net
<emc-users-requ...@lists.sourceforge.net> 
Sent: Wednesday, September 27, 2023 11:25 AM
To: emc-users@lists.sourceforge.net
Subject: Emc-users Digest, Vol 209, Issue 31

Send Emc-users mailing list submissions to
        emc-users@lists.sourceforge.net

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.sourceforge.net/lists/listinfo/emc-users
or, via email, send a message with subject or body 'help' to
        emc-users-requ...@lists.sourceforge.net

You can reach the person managing the list at
        emc-users-ow...@lists.sourceforge.net

When replying, please edit your Subject line so it is more specific than
"Re: Contents of Emc-users digest..."


Today's Topics:

   1. Remembering the last tool in spindle before restart (andrew beck)


----------------------------------------------------------------------

Message: 1
Date: Wed, 27 Sep 2023 22:24:59 +1300
From: andrew beck <andrewbeck0...@gmail.com>
To: "Enhanced Machine Controller (EMC)"
        <emc-users@lists.sourceforge.net>
Subject: [Emc-users] Remembering the last tool in spindle before
        restart
Message-ID:
        <calqw8iopuwcumyrnsbc9hp--ibbrre2zfnswn2_1dxmoo18...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

Hey guys.

I got a fixed position toolchanger using Andy's carousel component.

Just need to remember the tool in spindle before shutdown

When you set toolchanger as random io control remembers the last tool when
you restart.  And that works perfectly for a few years on another machine.


But this machine I'm having issues with.

I found that this is a pretty common problem.

Hoping it's been fixed by now and would love to know how people get around
it if it's not fixed yet.

https://forum.linuxcnc.org/49-basic-configuration/31150-current-tool-number-
permanent?start=10


And Todd Zuercher had a interesting idea I saw maybe using a random
toolchanger setup and tricking it.


Also I think Andy got it working but would appreciate some clarification on
what people managed to get working

Anyway hoping someone can help cheers
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screenshot_2023-09-27-22-10-23-608_com.android.chrome-01.png
Type: image/png
Size: 112257 bytes
Desc: not available
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screenshot_2023-09-27-22-23-40-551_com.android.chrome-01.png
Type: image/png
Size: 115645 bytes
Desc: not available

------------------------------



------------------------------

Subject: Digest Footer

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


------------------------------

End of Emc-users Digest, Vol 209, Issue 31
******************************************



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

Reply via email to