I did a test program tonight to repeatedly set a bit, check if its on, and then clear it and repeat. Here is the program:
Code:
#include "KMotionDef.h"
#define TMP 10 // which spare persist to use to transfer data
#include "KflopToKMotionCNCFunctions.c"
main()
{
for(;;)
{
SetBit(146);
Delay_sec(0.05);
if (!ReadBit(146)) printf("output not set\n"); // Print error
ClearBit(146);
Delay_sec(0.05);
if (ReadBit(1038)) return 0; // if feedhold pressed, exit program
}
}
I ran this program for about 10 minuites and got the error 5 times. This would be about 6000 cycles and it failed to set the bit 5 times.
Also I should mention that the errors ive been having have always been with kanalog outputs, both the relay drivers and the opto outs. I have a bunch of stuff controlled by Konnect and never ever had an issue with those outputs.