Hi Tom,
I altered my M3 c code program to have a Pop up asking if converter is on. And that much works. Now how can Pop up be skipped
if the Virtual Bit 48 is set? Is there an ‘if ignore’ statement of some sort?
Here is my program so far….
Thanks,Code://Added Pop up to ask if 3 phase converter is turned on. #include "KMotionDef.h" #define TMP 10 // which spare persist to use to transfer data #include "KflopToKMotionCNCFunctions.c" main() { int Answer; Answer = MsgBox("Is 3phase Converter On?",MB_YESNO|MB_ICONEXCLAMATION); if (Answer == IDYES) //printf("Answer is Yes\n"); { SetBit(48); ClearBit(148); //Spindle CCW bit Delay_sec(.2); SetBit(147); // turn on spindle clockwise } else //printf("Answer is No\n"); { ClearBit(48); SetBit(147); // turn off spindle clockwise SetBit(148); // turn off spindle counterclockwise } }
Troy