Mathematical Modeling of Multilink System Controlled Motion