Automatic variation of thickness according to a predetermined programme