Hello Guest it is May 15, 2021, 08:11:18 PM

Author Topic: Mist (M07) stays on if the program is stopped  (Read 1178 times)

0 Members and 1 Guest are viewing this topic.

Mist (M07) stays on if the program is stopped
« on: December 05, 2016, 12:16:27 PM »
It is not a big deal to go into the run ops tab and turn it off after the stop button is pushed, but it does get annoying. Mach 3 did not do this and i know of several others who are bugged by this feature. Is there any way i can make the mist turn off with the stop button?

Offline Chaoticone

*
  • *
  •  5,626 5,626
  • Precision Chaos
    • View Profile
Re: Mist (M07) stays on if the program is stopped
« Reply #1 on: December 05, 2016, 01:36:07 PM »
Editing your Cycle Stop function in the screen load script to look like this might work.

Code: [Select]
---------------------------------------------------------------
-- Cycle Stop function.
---------------------------------------------------------------
function CycleStop()
    local hSig = mc.mcSignalGetHandle(inst, mc.OSIG_MISTON); --Get the mist on signal handle
    mc.mcSignalSetState(hSig, false); --Turn the mist on signal off
    mc.mcCntlCycleStop(inst);
    mc.mcSpindleSetDirection(inst, 0);
    mc.mcCntlSetLastError("Cycle Stopped");
end
« Last Edit: December 05, 2016, 02:38:46 PM by Chaoticone »
;D If you could see the things I have in my head, you would be laughing too. ;D

My guard dog is not what you need to worry about!
Re: Mist (M07) stays on if the program is stopped
« Reply #2 on: December 05, 2016, 04:05:30 PM »
worked perfect, Thanks

Offline Chaoticone

*
  • *
  •  5,626 5,626
  • Precision Chaos
    • View Profile
Re: Mist (M07) stays on if the program is stopped
« Reply #3 on: December 05, 2016, 04:42:04 PM »
 :)

Just remember, now your screen is custom and you are not using the default. You need to save the screen as something unique if you haven't already so when you update your custom tweak doesn't get overwritten.
« Last Edit: December 05, 2016, 04:45:12 PM by Chaoticone »
;D If you could see the things I have in my head, you would be laughing too. ;D

My guard dog is not what you need to worry about!