This paper contributes to investigation on vibration analysis for cradle subjected to the moving barrel. The tipping part of the gun is simplified by a beam with sloping support traversed by a moving mass. The cradle structure is modeled by Euler-Bernoulli variable cross-section beam and the elevating strut is modeled by elastic supporting rod. The beam and supporting rod are discretized into finite elements, and then the main mass matrix, stiffness matrix, and damping matrix can be formulated. Gravity and inertial force are described by external nodal load vectors. The time-varying additional mass matrix, stiffness matrix, and damping matrix are derived. Numerical computation is conducted to analyze the effect of the barrel velocity on dynamic response of system, which can provide theoretical foundation to structural design of such system.