During the operation of valve-controlled cylinder position systems, there are some problems, such as uncertainty and time-varying of the system parameters, imprecise modeling, and external interference. These problems will affect the position loading accuracy and safety reliability of the electro-hydraulic position servo system. This paper used the position servo system of a valve-controlled cylinder as the research object, and a mathematical model was established. Then, a sliding mode variable structure controller and dynamic soft variable structure controller were designed, and the Grey Wolf algorithm was used to adjust the controller parameters. The control effect of the two controllers in the valve-controlled cylinder system was verified with a simulation and experiment. The results showed that compared with the sliding mode variable structure controller, the dynamic soft variable structure controller had higher control precision and better stability and avoided the chattering phenomenon.