For the welding cell in the manufacturing process of large excavation motor arm workpieces, a system framework, based on a digital twin welding robot cell, is proposed and constructed in order to optimize the robotic collaboration process of the welding workstation with digital twin technology. For the automated welding cell, combined with the actual robotic welding process, the physical entity was digitally modeled in 3D, and the twin welding robot operating posture process beats and other data were updated in real time, through real-time interactive data drive, to achieve real-time synchronization and faithful mapping of the virtual twin as well as 3D visualization and monitoring of the system. For the robot welding process in the arc welding operation process, a mathematical model of the kinematics of the welding robot was established, and an optimization method for the placement planning of the initial welding position of the robot base was proposed, with the goal of smooth operation of the robot arm joints, which assist in the process simulation verification of the welding process through the virtual twin scenario. The implementation and validation process of welding process optimization, based on this digital twin framework, is introduced with a moving arm robot welding example.