Aiming at the problem of uneven trajectory during turning of plate workpiece surface reciprocating machining, a trajectory planning method based on Pythagorean velocity end curve (PH curve) is proposed. Firstly, for the right angle commutation part between round-trip movements, the PH curve is used to smooth the transition and determine the operation track; secondly, the 3-4-5 degree polynomial is used to plan the determined trajectory curve and determine the position of trajectory interpolation points. Thirdly, the modified trapezoidal motion law is used to plan the gate shape trajectory. The simulation results show that the peak velocity of the robot end based on the PH curve trajectory is 19.86% less than that of the modified trapezoidal motion law. The experimental results show that PH curve trajectory planning can make the impact smaller and the motion more stable.