Hello Guest it is March 28, 2024, 02:12:20 PM

Author Topic: Terminate a brain with "run macro M650.m1s" ???????  (Read 39504 times)

0 Members and 2 Guests are viewing this topic.

Re: Terminate a brain with "run macro M650.m1s" ???????
« Reply #70 on: January 20, 2014, 11:25:10 AM »
and i have Run Macro Pump clicked in Config/gen set
there's no other setting some where. is there ?

running ver 3.043.062
« Last Edit: January 20, 2014, 11:29:33 AM by Kenneth »
Kenneth
Re: Terminate a brain with "run macro M650.m1s" ???????
« Reply #71 on: January 20, 2014, 11:38:38 AM »
vel Dro X =806
vel Dro Y =807
vel Dro Z =808

Every time you check / uncheck run macro pump, or after you edited it you must resart Mach3

Alex
Re: Terminate a brain with "run macro M650.m1s" ???????
« Reply #72 on: January 20, 2014, 11:51:25 AM »
yes sir, i do restart mach3 after clicking RMP.
what's "ChargePump On In Estop" ?
does that start macropump when estop is pressed ?
Thanks

kenneth
Kenneth
Re: Terminate a brain with "run macro M650.m1s" ???????
« Reply #73 on: January 20, 2014, 11:55:02 AM »
think i misunderstood MacroPump. i'm not using file macropump.
this is a macro. does that matter ?
Kenneth
Re: Terminate a brain with "run macro M650.m1s" ???????
« Reply #74 on: January 20, 2014, 12:07:31 PM »
i noticed if i "step" it in the editor, it skips SetUserLed and just
goes to Get....
Kenneth
Re: Terminate a brain with "run macro M650.m1s" ???????
« Reply #75 on: January 20, 2014, 12:22:04 PM »
If you want it run " all the time "  then you need the macropump.m1s  All other macros run only one time when you call them from MDI or G-Code or Butten Press.
Also it can be done with a Brain.
The "ChargePump On In Estop" means that the saftey signal  ( ChargePump ) will be activated even when Mach is in E-Stop ( Reset ) state.
Alex
Re: Terminate a brain with "run macro M650.m1s" ???????
« Reply #76 on: January 20, 2014, 12:28:38 PM »
thank Alex,
using the macropump, the waits a couple of seconds
before lighting. i know the pump runs fast. are the leds
waiting for the pump to cycle ? and a while back, they helped
me get it working as a separate macro.
« Last Edit: January 20, 2014, 12:36:10 PM by Kenneth »
Kenneth
Re: Terminate a brain with "run macro M650.m1s" ???????
« Reply #77 on: January 20, 2014, 02:38:23 PM »
got macropump to work. it hesitates starting and stopping.
but i guess that would be my computer slowing the macropump.
THANKS Alex !
Kenneth
Re: Terminate a brain with "run macro M650.m1s" ???????
« Reply #78 on: January 20, 2014, 02:46:08 PM »
for those who would like this macro...

'Axis Motion LED Control**********************
' X axis LED = 1120
' Y axis LED = 1121
' Z axis LED = 1122


'X axis LED Control***************************
If GetOEMDro(806) > 0 And  GetUserLED(1120) = 0 Then
   SetUserLED(1120,1)
End If

If GetOEMDro(806) = 0 And GetUserLEd(1120) = 1 Then
   SetUserLed(1120,0)
End If

'Y axis LED Control***************************

If GetOEMDro(807) > 0 And  GetUserLED(1121) = 0 Then
   SetUserLED(1121,1)
End If

If GetOEMDro(807) = 0 And GetUserLEd(1121) = 1 Then
   SetUserLed(1121,0)
End If

'Z axis LED Control*****************************
If GetOEMDro(808) > 0 And  GetUserLED(1122) = 0 Then
   SetUserLED(1122,1)
End If

If GetOEMDro(808) = 0 And GetUserLEd(1122) = 1 Then
   SetUserLed(1122,0)
End If

'End of File************************************

End
Kenneth
Re: Terminate a brain with "run macro M650.m1s" ???????
« Reply #79 on: January 20, 2014, 03:37:07 PM »
Glad you are sorted.  :)

The  Brian works also. see pict.

Alex