Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: Mortenx on December 07, 2020, 10:45:01 AM

Title: Mach3turn Stop button?
Post by: Mortenx on December 07, 2020, 10:45:01 AM
Hi all,

I have a lathe with 2 vfds, one for the spindle and one for a livetool, they are both controlled via modbus and I have made macros for the livetool and is started with m133/m134 cw/ccw (output4/5) and stopped with m135 and working fine.

But if I start the spindle and press "Stop" it stops, but if I start the livetool and press "Stop" it just keeps running, is there anyway to add a "deactivate (output4)" in the "stop" command?

Or any other way/suggestions?

Any help is appreciated.

Regards Morten
Title: Re: Mach3turn Stop button?
Post by: TPS on December 07, 2020, 03:34:13 PM
ypo have to customize your stop button from a "normal" buttonpress to a custom macro, where you do the stopbutton and seperate DeActivate(output4).
Title: Re: Mach3turn Stop button?
Post by: Mortenx on December 07, 2020, 03:40:58 PM
Hi, thanks for your reply,

I can change the button to a macro and get the deactivate(output4) to work, but I can't figure out how to use the "Stop" command in a macro?
Title: Re: Mach3turn Stop button?
Post by: TPS on December 08, 2020, 02:49:26 AM
DoOemButton(1003)
Title: Re: Mach3turn Stop button?
Post by: Mortenx on December 08, 2020, 03:21:03 AM
Thanks, working superb now, thanks once again you are a life saver ;)

Regards Morten