The machine adopts a PLC control system and a mechanical transmission system to automate the production processes of straightening, welding, and cutting steel wires. The products have high welding strength and low weld leakage rate, and the machine is also easier to operate and maintain.