Protective device, automatic welding, automatic detection, automatic discrimination, automatic blanking