Estop Code
Posted: Sun Jun 16, 2024 10:51 pm
TK
I have my NC estop button to kflop's j7 pin12 bit 5 pin, and I'm not sure why this code does not work.
#define Estop 5
....
Main{
if (!ReadBit(Estop))
{
SetBit(Estop);
if (ch0->Enable)DisableAxis(0);
if (ch1->Enable)DisableAxis(1);
if (ch2->Enable)DisableAxis(2);
if (ch3->Enable)DisableAxis(3);
}
I have my NC estop button to kflop's j7 pin12 bit 5 pin, and I'm not sure why this code does not work.
#define Estop 5
....
Main{
if (!ReadBit(Estop))
{
SetBit(Estop);
if (ch0->Enable)DisableAxis(0);
if (ch1->Enable)DisableAxis(1);
if (ch2->Enable)DisableAxis(2);
if (ch3->Enable)DisableAxis(3);
}