#include vars.h #include pins.h #include func_ihc.h #include func_plasma.h main() { if (proc==plc_proc_plasma) { message=PLC_MESSAGE_PLASMA_OK; //set OK message and exit exit(99); }; timeout_plasma_ready=10000; timer=0; do_plasma_probe(); do_move_ignition_height(); portset(OUTPUT_PLASMA); do_wait_plasma(); do_move_pierce_height(); do_wait_pierce(); do_move_cutting_height(); start_thc(); start_trigger1();//Arc ON sensor //start_trigger2();//Collision Sensor proc=plc_proc_plasma; //set OK message and exit message=PLC_MESSAGE_PLASMA_OK; //set OK message and exit exit(99); };