#include pins.h #include vars.h main() { portset(OUTPUT_FUEL); //turn ON fuel valve portset(OUTPUT_IGNITION); //turn ON sparkle relay proc=plc_proc_ignition; timer=timeout_ignition; do{ timer--; }while(timer>0); //delay for ignition portclr(OUTPUT_IGNITION); //turn OFF sparkle relay portset(OUTPUT_OXY_HEAT); //turn ON Preheat Oxygen valve proc=plc_proc_preheat; timer=timeout_heating; do{ timer--; }while(timer>0); //pre-heating loop portset(OUTPUT_OXY_CUT); //turn ON Cutting Oxygen valve proc=plc_proc_cutting; exit(99); };