Due to the nonlinearity, time-varying and load disturbance in linear servo system, the conventional PID control is hard to get an ideal control effect, this paper deduces the mathematical model of the permanent magnet linear synchronous motor (PMLSM) direct drive system, designs a fuzzy PID controller by combining fuzzy control with conventional PID control, adjust the parameters of PID controller in real time by making use of fuzzy control's ability of adjusting online. Simulation and experimental results show that the fuzzy PID controller is superior to the conventional PID controller in responsiveness, steady performance and dynamic tracking, which can shorten the positioning time, improve the system positioning accuracy.