On the separation of a mass travelling on a beam with axial forces