#include pins.h #include vars.h main() { portset(OUTPUT_FUEL); //On Valves for ignition portset(OUTPUT_IGNITION); portset(OUTPUT_OXY_HEAT_LO); proc=plc_proc_ignition; timer=timeout_ignition; //Set Ignition process do{ timer--; }while(timer>0); //wait ignition portclr(OUTPUT_IGNITION); portset(OUTPUT_OXY_HEAT_HI); proc=plc_proc_preheat; break_heating=1; timer=timeout_preheat; do{ timer--; if (break_heating==0) { timer=0; }; } while(timer>0); //heating loop portset(OUTPUT_OXY_CUT_LO); //add Oxy Cutting Lo pressure timer=timeout_soft_start; do{ timer--; }while(timer>0); //wait for Soft Oxy start portset(OUTPUT_OXY_CUT_HI); //add Oxy Cutting Hi pressure timer=ihc_pierce_time; do{ timer--; }while(timer>0); //wait for Pierce portclr(OUTPUT_OXY_HEAT_HI); //add Oxy Cutting Hi pressure if (thc_enabled!=0) { command=0xa4;//Start Height sensing parameter=1; message=PLCCMD_SET_CNC_VAR; texit=timer+3;do{timer++;}while(timer