
if(st_stop == 1)
 {
 st_stop_press_count++;
 if(st_stop == 1 && st_stop_press_count == debounce)
      {
 	  if(cycle_run == 1)//this means machine was already running
	      {
 	      st_stop_press_count == 0;
		  machine_stop_function();
		  }
	  else if(cycle_run == 0)//this means that the machine was stopped earlier
	  	  {
 	      st_stop_press_count == 0;
 	      machine_run_function();
	      }
	  }
 }
