I assume you are referring to an aluminum extrusion press?
Peak min and max detectors are pretty easy to build in any PLC.
For a peak 'max' detector, you need a suitable trigger. Possibly use a bit that indicates 'Container closed' or 'Crush/Upset' or if you have an internal command relay label 'Extrude' that would work also. If your press has 'surge valves' or 'prefill' valves, I would make sure that you use a bit that is only true while these valves are closed, so that you are looking at true 'extrusion' pressure and not the pressure required to move the ram during rapid close, or during some auxiliary function like 'container close'.
Use a positive transitional one-shot contact from your 'trigger' to MOVE a zero value to some integer register that will hold your sampled value.
Next you need to put a normally open contact from your trigger in series with a 'GREATER THAN' instruction. The top node of the compare instruction should be the register for actual pressure. The bottom node should contain the peak value register.
At the end of this logic string put another move instruction. The top node will contain the actual pressure, the bottom node will contain the peak value.
The logic works as follows:
At the start of extrusion (or what ever you use for a trigger) a value of zero is initially written to your register that contains the peak pressure value. All the time that your trigger bit is true, your actual pressure will be compared to your peak value and if the actual is greater than the peak, it will write continuously over write the highest pressure value detected during the extrude cycle.
Since the pressure does drop off near the end of an extrusion cycle, the peak recorded value will be higher than the actual pressure so the value will not get over written.
Once your trigger event is false, the peak value will remain frozen, available for any other use. You can add optional logic, triggered by a negative transition one-shot to move the peak recorded value to some other register or data table if you need to further buffer this value.
I appologize for a verbal description of the logic instead of posting a sample diagram, but I never quite figured out how to post diagrams.
A peak 'min' detector is similar in concept but you write the largest value possible at the trigger transition (i.e. 32767 for an integer) and use a 'LESS THAN' evaluation to move the actual value to the 'peak' value. This isn't useful in your extrusion press but there might be other applications in which the minimum value needs to be recorded i.e. fluid level in a reservoir, lowest position reached for an axis, etc.