Adjustment of the punch stroke for compensating wear