There are a typically two different mechanism that can control the stroke of the press. The first being a set of micro-switches which are set by the operator to control the top return position and the extended or bottom position of the stroke.  The micro-switch mechanism has a metric analog linear scale to assist with setting the two positions.  The second mechanism is an incorporated HMI (Human-Machine Interface) that has data entry pockets for the top and bottom stroke positions of the press.  The overall-stroke is limited by the physical dimensions of the the press no matter what control is implemented.