But when i just increased the controller gains by a fold of 100 the system was seem to be controlled. The system was measured with a difference of (0.002 milliseconds)
What are the parameters of {M1, B1, K1}, {M2, B2, K2}, and {M3, B3, K3}?
Please convert the equations of motion in the form of a state-space representation like z' = A·z + B·F, where A is a [6×6] state matrix and B is a [6×1] input vector.
Note: This is an under-actuated mass-spring-damper system.
If you just want to bring mass 1 to a steady state within 0.02 sec, then the following controller might work: