ATC persistent position

More
31 Dec 2015 15:10 - 31 Dec 2015 15:10 #67598 by andypugh
Replied by andypugh on topic ATC persistent position

I tried to put it in
[RS274NGC]
RS274NGC_STARTUP_CODE=M61 Q#5451


Is your toolchange controlled by a G-code subroutine?

If it is, then the subroutine could start with
O900 IF [#5451 GT 0 AND #<tool_in_spindle> EQ 0]
M61 Q#5451
O900 ENDIF
Last edit: 31 Dec 2015 15:10 by andypugh.

Please Log in or Create an account to join the conversation.

More
01 Jan 2016 10:59 #67641 by bobobo
Replied by bobobo on topic ATC persistent position
I think my toolchanging config is finished now.

I have done a couple of M-codes for each move of the ATC (down, right, rotate cw, etc.) just like the original system.
Then i have done a G-code macro, Toolchange.ngc, that is executing a sequence of above m-codes and remapped M6 to this g-code macro.

I have used two persistent variables in the parameter .var file. One keeps track of the position of the carousel. The carousel can be rotated by M6 or by two buttons used when loading tools.

The other persistent parameter holds the "tool_in_spindle" I write this parameter in the end of Toolchange.ngc and i read it with M61 when homing is finished. (by halui.mdi-command triggerd by all axis.*.homed)

Andy: I think it's too late to put the M61 in the toolchange macro, because if I start up the machine, finds the present tool is fine for use and just start to run, then linuxcnc don't know the tool.

Please Log in or Create an account to join the conversation.

More
03 Mar 2016 08:52 #70951 by tkamsker
Replied by tkamsker on topic ATC persistent position
Hi i know i am late to that discussion
i had to take car of a lot of other things (you must patriot or lunatic to found an company in my country now i have proven to be both ;)-
So i am about to integrate an tool changer for our lathe in linuxcnc where i intend to reuse the umbrella stuff i did on the bridgeport
so i would first want to know if there is something open where i might be able to help and or how you realized the back and forth button it seems that we both used remap and intelligent ngc files to do the magic best reg thomas

Please Log in or Create an account to join the conversation.

More
19 Dec 2016 00:46 #84387 by G21
Replied by G21 on topic ATC persistent position
Hello Bobobo,

Could you help me out doing the same thing as you did? I also have an ATC controlled by the carousel.comp and a M6 remap with a toolchange.ngc file. All seems to be working OK now but I need to find a way to read the tool in spindle when LinuxCNC starts up. I also need the current pocket to be read and will simply issue a 'dummy' tool change that only rotates the carousel to the current pocket and by doing this, the carousel gets homed and this is what I need.
Could you let me know how you save and read the 'tool_in_spindle' and 'current_pocket' and how you get this back into LinuxCNC after you press the 'home all' button?

Thanks!

G21

Please Log in or Create an account to join the conversation.

More
19 Dec 2016 03:45 #84396 by Jake
Replied by Jake on topic ATC persistent position
subd

Please Log in or Create an account to join the conversation.

More
19 Dec 2016 05:45 #84399 by tommylight
Replied by tommylight on topic ATC persistent position

subd

O.K. i think i am still awake so .........Jake smoke signals ???

Please Log in or Create an account to join the conversation.

More
19 Dec 2016 07:53 #84402 by bobobo
Replied by bobobo on topic ATC persistent position
Hope this helps.

File Attachment:

File Name: m10.ngc
File Size:0 KB

File Attachment:

File Name: m11.ngc
File Size:1 KB

File Attachment:

File Name: m12.ngc
File Size:1 KB

File Attachment:

File Name: toolchange.ngc
File Size:1 KB

File Attachment:

File Name: postgui.hal
File Size:0 KB

I have not used the carousel comp but made all in g-code.

This is in my ini-file:
[HALUI]
MDI_COMMAND = M11
MDI_COMMAND = M12
MDI_COMMAND = M61 Q#5451

Please Log in or Create an account to join the conversation.

More
19 Dec 2016 08:30 #84403 by G21
Replied by G21 on topic ATC persistent position
Thanks a lot, let me download, print and study them to see how it's done.

Thanks a lot for your quick reply!
G21

Please Log in or Create an account to join the conversation.

More
19 Dec 2016 08:47 - 19 Dec 2016 08:48 #84404 by bobobo
Replied by bobobo on topic ATC persistent position
Here is the other macros also. Not exactly related to persistent storage of tool number, but to get the complete picture of my tool changing.
(I couldn't attach all files in one post)

File Attachment:

File Name: m21.ngc
File Size:0 KB

File Attachment:

File Name: m23.ngc
File Size:0 KB

File Attachment:

File Name: m22.ngc
File Size:0 KB

File Attachment:

File Name: m25.ngc
File Size:0 KB

File Attachment:

File Name: m26.ngc
File Size:0 KB

File Attachment:

File Name: m24.ngc
File Size:0 KB
Last edit: 19 Dec 2016 08:48 by bobobo.

Please Log in or Create an account to join the conversation.

More
19 Dec 2016 12:28 #84406 by Jake
Replied by Jake on topic ATC persistent position

subd

O.K. i think i am still awake so .........Jake smoke signals ???


subscribed, after the last software update I lost all my subscribed threads. This was one of the threads I need to get my ATC rolling

Please Log in or Create an account to join the conversation.

Time to create page: 0.136 seconds
Powered by Kunena Forum