Machsupport Forum

Mach Discussion => Mach4 General Discussion => Topic started by: arhimedoffs on March 19, 2018, 04:22:18 PM

Title: Machine Enabled state
Post by: arhimedoffs on March 19, 2018, 04:22:18 PM
There is function mcCntlEnable which can Enable/Disable machine, like Enable button on standard screens. But I can`t find function for get current sate. Function mcCntlGetState return MC_STATE_IDLE regardless of Enabled state. Or I must do this via signal OSIG_MACHINE_ENABLED?
Title: Re: Machine Enabled state
Post by: joeaverage on March 19, 2018, 07:39:23 PM
Hi,

http://www.machsupport.com/forum/index.php/topic,36548.msg250379.html#msg250379 (http://www.machsupport.com/forum/index.php/topic,36548.msg250379.html#msg250379)

As you can see 'Enabled' is not a Mach state per se. It has certain properties like enable outputs activated and so on
but to my knowledge cannot be queried in the same manner as Mach's state. As far as I know OSIG_MACHINE_ENABLED
is the only way.

Craig
Title: Re: Machine Enabled state
Post by: arhimedoffs on March 20, 2018, 12:31:06 AM
Thank you!