#include pins.h #include vars.h main() { dac01=eparam; //set spindle speed through DAC portset(OUT_SPINDLE); //turn ON Spindle relay timer=spindle_on_delay; //delay <<<< variable do{ timer--; }while (timer>0); exit(99); //normal exit. };