Hello Guest it is March 28, 2024, 09:20:55 AM

Author Topic: External Button for Auto Tool Zero  (Read 21831 times)

0 Members and 1 Guest are viewing this topic.

Re: External Button for Auto Tool Zero
« Reply #10 on: May 26, 2010, 02:13:54 AM »
Greolt -
thx for information.very good

i think "ranchak" copy macropump to macro folder and rename it.
this is wrong.
in fact macropump call M615 and These two are different
I say wrong?

But one question:
i assigned a macro to a button, why sometimes i press button see this error: "Scripter Compile Error. In" ?
At this time, in "operator/Edit Button Script"   i see my code and press run  and all things is ok and Macro runs.
why?
« Last Edit: May 26, 2010, 02:26:16 AM by manmardam »
**Even a clock that does not work is right twice a day**
Re: External Button for Auto Tool Zero
« Reply #11 on: May 26, 2010, 05:08:10 AM »
i test your Method:
i design button +LED  in Mach3Screen. i set OEMled =1200
then create macropump.m1s :
A = GetOEMled (1200)

 If A Then
 Code "M113"
 End If

and create brain that i attach it.
but mach3 shows behavior strange and error.
Where I got wrong?
**Even a clock that does not work is right twice a day**
Re: External Button for Auto Tool Zero
« Reply #12 on: May 26, 2010, 11:03:41 AM »
No I meant ZeroSwitch, but this is where the mistake is. I used the "ZeroSwitch" file and renamed it. I guess I didn't read the directions! I'll delete it and then rename my zeroing program, that should work. Thanks, Ron

Offline Greolt

*
  •  956 956
    • View Profile
Re: External Button for Auto Tool Zero
« Reply #13 on: May 26, 2010, 04:10:51 PM »
i test your Method:
i design button +LED  in Mach3Screen. i set OEMled =1200
then create macropump.m1s :
A = GetOEMled (1200)

 If A Then
 Code "M113"
 End If

and create brain that i attach it.
but mach3 shows behavior strange and error.
Where I got wrong?

Try this instead

A = GetOEMled (1200)
B = GetUserDRO (1200)

If A And (B = 0) Then
Code "M113"
SetUserDRO(1200,1)
End If

If Not A And (B > 0) Then
SetUserDRO(1200,0)
End If 
Re: External Button for Auto Tool Zero
« Reply #14 on: May 27, 2010, 02:41:59 AM »
thx Greolt
macropump problem solved , but brain problem
dont work
« Last Edit: May 27, 2010, 02:44:43 AM by manmardam »
**Even a clock that does not work is right twice a day**
Re: External Button for Auto Tool Zero
« Reply #15 on: May 27, 2010, 10:57:46 AM »
i have two button(user button) and two VB code.i have modbus pendant with 32 key.
and them should after pressing the button be activated immediately.
please guide .
i try but not work.
http://www.machsupport.com/forum/index.php/topic,14964.0.html
« Last Edit: May 27, 2010, 10:59:47 AM by manmardam »
**Even a clock that does not work is right twice a day**
Re: External Button for Auto Tool Zero
« Reply #16 on: May 27, 2010, 12:14:52 PM »
I love this idea of a button!

Would look great in a little panel on the head next to the powered drawbar "In" and "Out" switches:

In
Out
Zero

I'll have to give that some thought.  Definiitely worth waiting for Mach 4 as the new functionality for tool tables would likely support it better.

Cheers,

BW
Try G-Wizard Machinist's Calculator for free:

http://www.cnccookbook.com/CCGWizard.html
Re: External Button for Auto Tool Zero
« Reply #17 on: May 28, 2010, 02:16:52 PM »
I still have not succeeded .
i read this Thread but dont understand.
http://www.machsupport.com/forum/index.php/topic,9636.0.html
« Last Edit: May 28, 2010, 02:23:52 PM by manmardam »
**Even a clock that does not work is right twice a day**
Re: External Button for Auto Tool Zero
« Reply #18 on: May 28, 2010, 03:16:56 PM »
I realized that the process works well, But only during the run of the code does not work
why?
**Even a clock that does not work is right twice a day**
Re: External Button for Auto Tool Zero
« Reply #19 on: May 29, 2010, 11:40:47 AM »
nobody guide me.
**Even a clock that does not work is right twice a day**