The paper studies the QY20 truck crane slewing mechanism hydraulic system and expounded its working principle. The models of slewing mechanism were built by AMSim and the model of buffer oil compensating valve was built by the HCD function of the software. The correctness of the models were validated by in-situ measurement. Influence factors of slewing mechanism dynamic characteristics about the models were analyzed.