Hi dirtdigger257,
I can't think of an easy way to do this without adding some new functionality.
The Tool Length Index is -1 when Length Compensation is turned off.
Here is a C Program that maintains a Virtual Bit (actually a KFLOP LED Bit 46) based on periodically requesting the Index
Code:
#include "KMotionDef.h"
#define TMP 10 // which spare persist to use to transfer data
#include "KflopToKMotionCNCFunctions.c"
void ServiceToolOffsetMode(void);
main()
{
for (;;) // forever loop
{
ServiceToolOffsetMode();
}
}
#define STATUSBIT 46
// periodically set Virtual Bit based on Tool Table Index
void ServiceToolOffsetMode(void)
{
static double LastTime = 0;
int Units, TWORD, HWORD, DWORD;
if (Time_sec() < LastTime + 0.3)
return;
LastTime = Time_sec();
GetMiscSettings(&Units, &TWORD, &HWORD, &DWORD);
SetStateBit(STATUSBIT, HWORD != -1);
}
https://youtu.be/j82hDWQ9l3o
Attached Program and Screen Script