Welcome, Guest. Please login or register.
Did you miss your activation email?
May 28, 2012, 01:22:50 PM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
+  Machsupport Forum
|-+  Mach Discussion
| |-+  VB and the development of wizards
| | |-+  code "G04 P2.0" problem
Pages: « 1 2   Go Down
Print
Author Topic: code "G04 P2.0" problem  (Read 2544 times)
0 Members and 3 Guests are viewing this topic.
Ron Ginger
V4 Screen Contributor

Offline Offline

Posts: 568



View Profile WWW
« Reply #10 on: April 28, 2008, 07: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.
Logged
tantan
Active Member

Offline Offline

Posts: 68


View Profile
« Reply #11 on: May 02, 2008, 08: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
Logged
Ron Ginger
V4 Screen Contributor

Offline Offline

Posts: 568



View Profile WWW
« Reply #12 on: May 02, 2008, 09: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.
Logged
Ron Ginger
V4 Screen Contributor

Offline Offline

Posts: 568



View Profile WWW
« Reply #13 on: May 02, 2008, 09: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.
Logged
tantan
Active Member

Offline Offline

Posts: 68


View Profile
« Reply #14 on: May 02, 2008, 12: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.

 Smiley

antoine
the netherlands
Logged
Pages: « 1 2   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!