A Kineto-Elastodynamic Model of a Mechanism for Automatic Machine