Hello Guest it is December 04, 2021, 12:30:29 PM

Author Topic: Macro working in MDI but not in Program Run  (Read 1502 times)

0 Members and 1 Guest are viewing this topic.

Offline TM

*
  •  4 4
    • View Profile
Macro working in MDI but not in Program Run
« on: October 04, 2016, 01:41:29 AM »
Hello members of the forum,

I am experiencing a problem with a macro that I wrote recently. The macro is assigned to a M31(random number) function and when I call it in MDI it runs it, but when I call it as part of a whole g-code program, MACH3 doesn't even load the g-code. The macro is very simple, it activated and deactivated several inputs and output for a mechanical testing station that I created. Any ideas what may be the reason for that?

Thank you!
TM

Offline Hood

*
  •  25,838 25,838
  • Carnoustie, Scotland
    • View Profile
Re: Macro working in MDI but not in Program Run
« Reply #1 on: October 04, 2016, 04:22:58 AM »
Can you attach the code that is not working, also the macro as well.
Hood

Offline Hood

*
  •  25,838 25,838
  • Carnoustie, Scotland
    • View Profile
Re: Macro working in MDI but not in Program Run
« Reply #2 on: October 04, 2016, 04:24:36 AM »
Also worth mentioning, custom macros should really start with m101 and upwards, 100 and under are supposed to be reserved for Mach3 internal use.
Hood

Offline TM

*
  •  4 4
    • View Profile
Re: Macro working in MDI but not in Program Run
« Reply #3 on: October 04, 2016, 04:49:28 AM »
Thank you for the feedback! I will try to change the number to M1 _ _ and if I dont have result I will upload the macro.