Modeling a Ratchet Mechanism with Leadscrew