De Ref on Reset
Posted: Sat Mar 03, 2018 10:18 am
I cannot find where I can DE-REF all axis upon RESET.
Is it possible ?
Is it possible ?
UCCNC machine control software support forum
https://forum.cncdrive.com/
// ================================================================================================
// Automatic Unhome v1.0
// ================================================================================================
if (exec.GetLED(ResetLED))
{
if (NeedCheck)
{
NeedCheck = false;
for (int i = 0; i <= 5; i++)
{
if (exec.GetLED(XhomedLED + i))
exec.Setaxishomestate(i, false);
}
}
}
else
{
NeedCheck = true;
}
// ================================================================================================
#Events
// ================================================================================================
const int ResetLED = 25;
const int XhomedLED = 56;
static bool NeedCheck = true;
// ================================================================================================