Author Topic: Check if Enabled  (Read 595 times)

0 Members and 1 Guest are viewing this topic.

Offline rhtuttle

  • Active Member
  • Posts: 358
    • View Profile
Check if Enabled
« on: November 10, 2017, 03:28:24 PM »
What is the proper script language to check if Mach4 is currently enabled?

TIA

RT

Offline DazTheGas

  • Active Member
  • Posts: 743
  • DazTheGas
    • View Profile
Re: Check if Enabled
« Reply #1 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
Theres always time for a choccy biccy

Offline rhtuttle

  • Active Member
  • Posts: 358
    • View Profile
Re: Check if Enabled
« Reply #2 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