Hello Guest it is March 28, 2024, 09:32:00 PM

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

0 Members and 1 Guest are viewing this topic.

Offline Greolt

*
  •  956 956
    • View Profile
Re: External Button for Auto Tool Zero
« Reply #20 on: May 29, 2010, 08:30:44 PM »
I realized that the process works well, But only during the run of the code does not work
why?

Perhaps you need to provide some more information so that others can help.

What is the VB macro that is failing?  Does it run from the editor?   Can you call it from the MDI?  What happens when you step through it with the editor?

Greg
Re: External Button for Auto Tool Zero
« Reply #21 on: May 30, 2010, 01:52:09 AM »
i attach my file.
this macro should work during cut.
when trigger input#1 ,first feedhold>Torch off>stop>set position>...
i test it,macro is ok.
Quote
Can you call it from the MDI?
yes
when is stationary, input#1 work and trigger macro but in during cut dont work
please check them.
**Even a clock that does not work is right twice a day**
Re: External Button for Auto Tool Zero
« Reply #22 on: May 31, 2010, 10:52:48 AM »
Someone faced with this problem
**Even a clock that does not work is right twice a day**

Offline Greolt

*
  •  956 956
    • View Profile
Re: External Button for Auto Tool Zero
« Reply #23 on: May 31, 2010, 04:34:20 PM »
I have no experience with plasma.

Can you trigger the macro with an onscreen button during a cut?

Is there noise swamping the input while plasma is running?

Greg
Re: External Button for Auto Tool Zero
« Reply #24 on: June 01, 2010, 01:46:54 AM »
This problem is not in plasma. General case.

Quote
Can you trigger the macro with an onscreen button during a cut?
yes, i can with button and no problem even during cut

Quote
Is there noise swamping the input while plasma is running?
no, i dont test this Steps with machine. i test only with PC but when i run code ,Trigger does not cause to activate macro
If possible please test my file on the your PC.
may I get wrong step.
again thx.

Amir
**Even a clock that does not work is right twice a day**

Offline poppabear

*
  • *
  •  2,235 2,235
  • Briceville, TN, USA
    • View Profile
Re: External Button for Auto Tool Zero
« Reply #25 on: June 03, 2010, 03:34:32 AM »
In your Macropump.m1s

you need to change GetOEMled(1140) to GetUserLED(1140), there is NO OEM Leds in that range.

Also in your Brain:

   You will need to INVERT your noop, for your UserLED to be ON when your Input1 is ON, you will have to use a INverted op. otherwise when the Brian says your Screen User LED is on, it will be off, and vice versa.
so you brain rung should be:

INPUT1 -> Invert signal -> UserLED

(I recommend reading the "Brains Users Guide" in the member docs section.)
BTW: make sure under Ports and Pins for the INPUT1 signal you have it enabled, AND make sure the Logic (active high, or active low), is correct for what you want the state of that signal doing when active.

scott
fun times
Re: External Button for Auto Tool Zero
« Reply #26 on: June 03, 2010, 03:37:19 AM »
thx Scott
i check it

Amir
**Even a clock that does not work is right twice a day**
Re: External Button for Auto Tool Zero
« Reply #27 on: June 03, 2010, 03:48:59 AM »
i change OEMled to userled and invert signal.
result :
no change. actually it work well but only when code dont run( Axes are no moving )
**Even a clock that does not work is right twice a day**
Re: External Button for Auto Tool Zero
« Reply #28 on: June 06, 2010, 04:48:21 PM »
I renamed my zerotool macro to M615 and now everything works fine. Thanks for everybody's help.

Offline johnv

*
  •  43 43
    • View Profile
Re: External Button for Auto Tool Zero
« Reply #29 on: September 18, 2010, 05:03:12 PM »
Hi All,
I would appreciate if ranchak or greg would enclose a corrected m1s & brn file. I'm been trying all different versions and am at a standstill. Thanks in advance.
Johnv