Study on intelligent digital welding machine with a self-learning function