2181
Mach4 General Discussion / Re: How to turn off an output when the machine is Not Enabled (Disabled)?
« on: August 03, 2019, 07:53:22 PM »
Hi,
no, not necessarily. I presume if it was already there then it has some use.
This occurs at the top of the screen load script:
Note that all these are global variables and are visible through out the GUI.
I have found where machEnabled is used.....in the PLC script. So it does have a use.
Please disregard my comment about its inclusion in your function.
Craig
no, not necessarily. I presume if it was already there then it has some use.
This occurs at the top of the screen load script:
Code: [Select]
pageId = 0
screenId = 0
testcount = 0
machState = 0
machStateOld = -1
machEnabled = 0
machWasEnabled = 0
inst = mc.mcGetInstance()
Note that all these are global variables and are visible through out the GUI.
I have found where machEnabled is used.....in the PLC script. So it does have a use.
Please disregard my comment about its inclusion in your function.
Craig