Hello Guest it is April 23, 2024, 02:17:25 PM

Author Topic: code "G04 P2.0" problem  (Read 9871 times)

0 Members and 1 Guest are viewing this topic.

Re: code "G04 P2.0" problem
« Reply #10 on: April 28, 2008, 08:00:02 PM »
Always good to hear when an answer is found. There are many places in Mach for that kind of duplication. I have had several problems with macropumps using the same DROs as my wizards.

Offline tantan

*
  •  130 130
    • View Profile
Re: code "G04 P2.0" problem
« Reply #11 on: May 02, 2008, 09:19:52 AM »
Hi ron,

I am doing quite well with my ATC for my emcoturn120 but i hope you can spend a little more time for me. my code is actually working completely as a button script. When I copy the code into the M6start macro, and I type T2 or another T6 request in the MDI the macrocode is executed but…..

If I type T6 in the MDI line, I would like to change to the sixed tool. How can I pick up the wanted toolnumber in my m6start code. As soon as I type T6 and the M6start.m1s is executed the “newtool=getselectedtool()” is forced to zero.

i did a little test with the next instruction in the M6start macro;

MsgBox ("newtool = " &GetSelectedTool())

if i type T3 in the MDI line, the m6start runs automatically but the selected tool is resetted to zero.

(i reinstalled mach3 and did no configuration changes; so it is a fresh an clean installation).

i hope you can help me again, i think i am almost there

Thanks for your reply.

antoine
Re: code "G04 P2.0" problem
« Reply #12 on: May 02, 2008, 10:31:28 AM »
I am having the same trouble with my macro. It appears to me that when the m6start macro runs the tool number is the old tool, not the one we are changing to. I think when m6end runs the tool number has been changed.

I have a message in to Brian to get help on this, when I get it figured out I will post more here.
Re: code "G04 P2.0" problem
« Reply #13 on: May 02, 2008, 10:59:45 AM »
OK, I have some updated info. If you check the box in config/general that says auto toolchanger then only the m6start runs. The m6end is only used when you do manual tool change.

Are you entering the full command- " m6 t0303" I dont think T3 alone works.

Offline tantan

*
  •  130 130
    • View Profile
Re: code "G04 P2.0" problem
« Reply #14 on: May 02, 2008, 01:50:59 PM »
thanks again ron,

using the full statement seems to bee the trick. i am gone try this on my emco and i think my toolchanger will work.

 :)

antoine
the netherlands