Calculation of nonlinear transient motion of cables