Energy regulation on dental welding spot machine