beefy wrote:Are you directly controlling Torch On/Off with the M10.1/M11.1 ??
Yes, is that not the correct way to do it?
beefy wrote:Are you directly controlling Torch On/Off with the M10.1/M11.1 ??
// ================================================================================================
// Task when Cycle stopped
// ================================================================================================
bool CurrentCycleState = exec.GetLED(CycleStartLED);
if (CurrentCycleState != LastCycleState)
{
LastCycleState = CurrentCycleState;
if (!CurrentCycleState)
{
exec.AddStatusmessage("Cycle finished!"); // Put your message here
exec.Codesync("M11.1"); // Put your command here
while (exec.IsMoving());
}
}
// ================================================================================================
#Events
// ================================================================================================
const int CycleStartLED = 54;
static bool LastCycleState = false;
dezsoe wrote:Just a quick code for you. Save this code as a macro (e.g. M25100.txt) and set it as Macroloop and select Autorun. This macroloop will check the Cycle Start LED and when it goes off then displays the message and runs the code.
Users browsing this forum: No registered users and 4 guests