The influence of the Casimir excitation on dynamic pull-in instability of a nanoelectromechanical beam under ramp-input voltage is studied. The ramp-input actuation has applications in frequency sweeping of RF-N/MEMS. The presented model is nonlinear due to the inherent nonlinearity of electrostatics and the Casimir excitations as well as the geometric nonlinearity of midplane stretching. A Galerkin based reduced order modeling is utilized. It is found that the calculated dynamic pull-in ramp input voltage leads to dynamic pull-in step input voltage by increasing the slope of voltage-time diagram. This fact is utilized to verify the results of present study.