Friction with hard stops model
This demonstration shows how to model friction in Simulink. The two integrators in the model calculate the velocity and position of the system, which is then used in the Friction Model to calculate the friction force.
Running the simulation shows the initial condition response on the Scope.