uArm Limit Movement

How can I limit the movement of my uArm?

For example when I move it vertically down using the H (polar) parameter the arm will hit the table top. If the base is attached the arm will make a loud (gear?) noise and it will move along the table top toward the base.

This cannot be good.

Is there a way to set hard limits?

What do you suggest?