Machsupport Forum

Mach Discussion => Mach4 General Discussion => Topic started by: rhtuttle on November 10, 2017, 03:28:24 PM

Title: Check if Enabled
Post by: rhtuttle on November 10, 2017, 03:28:24 PM
What is the proper script language to check if Mach4 is currently enabled?

TIA

RT
Title: Re: Check if Enabled
Post by: DazTheGas on November 10, 2017, 04:38:03 PM
This is a small snippet from one of my scripts if it helps

Code: [Select]
if mc.mcSignalGetState (mc.mcSignalGetHandle (mInst, mc.OSIG_MACHINE_ENABLED)) == 1 then

DazTheGas
Title: Re: Check if Enabled
Post by: rhtuttle on November 10, 2017, 05:47:12 PM
Thank you Daz.

I need to be more diligent.  I looked at the signals and must have scanned too fast because I missed it.  They're not alphabetical.

TYOGO

RT