How to model two-rack-one-pinion coupling in Simscape Multibody?

I would like to model the coupling which consists of two parallel racks with the mutual pinion in between of them in Simscape Multibody. Based on tutorial I connected two racks to F-ports of two Rack and Pinion Constraint Blocks and one pinion to Blocks' B-ports. Each Rack in its turn were connected to the prismatic joint and pinion was connected to revolute joint. In order to connect racks properly I used different reference frames in pinion which were opposite in their X, Y - directions. But I got an error "Model not assembled: position violation". I would appreciate any help.

2 Comments

COMMENT MOVED TO THE ANSWER SECTION
Thank you for the clue. The problem was in incorrect rack-pinion-rack distance assignment.

Sign in to comment.

 Accepted Answer

Seems like you have a geometric loop with incompatible constraints. Try to break the geometric loop by commenting out one of the Rack and Pinion Constraint Blocks, and assemble your mechanism. This should give you a idea of how to correctly orient the frames to close the loop.

More Answers (0)

Asked:

on 13 Oct 2017

Edited:

on 18 Oct 2017

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!