Machsupport Forum
Mach Discussion => Mach4 General Discussion => Topic started 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?
-
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
-
Thank you!