for preventing short circuits or other abnormal discharges by altering machining parameters using adaptive control