Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: jve on July 11, 2010, 05:29:47 AM

Title: mach3 tool remember
Post by: jve on July 11, 2010, 05:29:47 AM
hi guys
i have a milling with a 16 atc carousel and my problem is that when i reboot mach3 the tool go to position 1 cause the brain is sending this to the plc via modbus
so i always have to rotate to tool 1 before i turn off the computer  or mach3
how i can resolve this ???
Title: Re: mach3 tool remember
Post by: Hood on July 11, 2010, 06:54:45 AM
I personally prefer to change back to tool 1 at the end of every G-Code file, that way I know where everything is when I start afresh but others may think differently ;)
Have you tried setting "Tool Selections Persistent", its lower left of General Config page.
Hood
Title: Re: mach3 tool remember
Post by: jve on July 11, 2010, 09:19:07 AM
yes i selected that but it is something in the brain i think or the vb
Title: Re: mach3 tool remember
Post by: BR549 on July 11, 2010, 10:56:56 AM
Hood has it right, same here at every job end return the machine to it's starting point in both position AND modal values.  The rule here is leave it like you found it.

As to the machine setup and control codes YOU are the only one that knows how it works VB or Brain wise.(;-)
Title: Re: mach3 tool remember
Post by: Hood on July 11, 2010, 10:58:17 AM
Without seeing your brain and M6 macros I cant say, then again with my expertise with VB I probably wouldnt know even if I saw them ;D.
Hood
Title: Re: mach3 tool remember
Post by: jve on July 11, 2010, 01:10:48 PM
ok here it goes
Title: Re: mach3 tool remember
Post by: jve on July 11, 2010, 01:11:26 PM
brain
Title: Re: mach3 tool remember
Post by: jve on July 11, 2010, 01:12:11 PM
xml
Title: Re: mach3 tool remember
Post by: jve on July 13, 2010, 02:18:35 AM
any help guys ???????
Title: Re: mach3 tool remember
Post by: Hood on July 13, 2010, 04:24:54 AM
From the quick look I have had I cant see how that macro or Brain could operate an ATC.
Can you explain how the ATC is actually controlled as it may help me understand, especially as VB is a weak point for me, one of many ;)

Hood
Title: Re: mach3 tool remember
Post by: jve on July 13, 2010, 03:13:36 PM
the brain is sending the tool number to the plc via modbus after the tool change is ready controled by the plc then the plc send a bit which mach3 recive and conected to input 4 so when mach3 recive input 4 means that toolchange is ready the problem is when i hit the reset the brain send for tool 1  
Title: Re: mach3 tool remember
Post by: Hood on July 13, 2010, 05:28:43 PM
Ok see now what you are doing however not sure I can get the problem.
I used your xml and set to tool 2, shut Mach down and restarted and the Tool DRO was 2, User DRO 2000 was 2 and in the Brain it still said 2 on the mod output so not sure why it would send a call for tool 1 to your PLC. I am wondering if it may be your ladder that is doing this?

Hood
Title: Re: mach3 tool remember
Post by: jve on July 14, 2010, 12:45:01 PM
i dont think that it is a ladder problem but i will try to check , the problem is as soon i press the reset the user dro 2000 is sending 1 to the plc but now i am trying this at home and as you said it is working properly and now i am realy confused  ???
shall i uninstall mach3 and try to set up again ?
Title: Re: mach3 tool remember
Post by: Hood on July 14, 2010, 02:11:25 PM
Check that you dont have any other Brain or macropump etc writing to that DRO when it sees a reset.
Hood
Title: Re: mach3 tool remember
Post by: jve on July 16, 2010, 12:30:38 PM
it was exectly as you said hood there was a macro pump that was reseting the tool to 1
many thanks hood
Title: Re: mach3 tool remember
Post by: Hood on July 16, 2010, 02:23:25 PM
Glad you got sorted.

Hood
Title: Re: mach3 tool remember
Post by: Mattw on July 16, 2010, 03:27:21 PM
Jekran, If I may ask, and now that I won't be hijacking your thread, what PLC are you using and what can you tell me about the modbus interface.  I will eventually be hooking in with a PLC on my setup.
Title: Re: mach3 tool remember
Post by: jve on July 17, 2010, 12:20:06 PM
i am using allen bradley micro logics via modbus
if i can help you let me know