#include pins.h #include vars.h main() { portclr(OUTPUT_FUEL); //Off Valves portclr(OUTPUT_IGNITION); portclr(OUTPUT_OXY_HEAT_HI); portclr(OUTPUT_OXY_CUT_LO); portclr(OUTPUT_OXY_CUT_HI); if (proc==plc_proc_cutting) { portset(OUTPUT_OXY_HEAT_LO); timer=timeout_purge; //Set Ignition process do{ timer--; }while(timer>0); //wait ignition }; portclr(OUTPUT_OXY_HEAT_LO); // command=0xa4;//Stop Height sensing parameter=0; message=PLCCMD_SET_CNC_VAR; timer=2;do{timer--;}while(timer>0); proc=plc_proc_idle; exit(99); };