A control system for a cylinder (2) and a piston (1) set driven by a linear motor, the control system comprising at least a controller operatively connected to the motor, the control system comprising an impact detector between the cylinder (2) and the piston (1), the impact detector being electrically connected to the controller, the impact detector comprising:
- a conditioning circuit (200) electrically connected to the linear motor, wherein the conditioning circuit (200) comprises:
- a filter (201) configured to select and output a high frequency range of an electric signal coming from the motor;
- a comparing means (202) electrically connected to the filter (201), the comparing means (202) comparing a reference signal (Sr) coming from the filter (201) to a detection signal (Sd) coming from the filter (201), and the comparing means is configured to:
- obtain the reference signal (Sr) from the high frequency signal output by the filter (201) before the piston attains an upper dead center position during a reference time interval (Δtr) defined between a first instant (t1) and a second instant (t2), wherein the second instant (t2) occurs after the first instant (t1), and the second instant (t2) corresponds to the instant the piston (1) attains the upper dead center position,
- obtain a reference value (Vr) from the reference signal (Sr);
- and
- obtain the detection signal (Sd) from the high frequency signal output by the filter (201) after the piston attains the upper dead center position during a detection time interval (Δtd) defined between the second instant (t2) and a third instant (t3), wherein the third instant (t3) occurs after the second instant (t2),
- obtain a peak value (Vp) from the detection signal (Sd);
- wherein the comparing means calculates the difference between the reference value (Vr) and the peak value (Vp) of the detection signal and a result of said calculation is an output of the comparing means;
- and
- a monitoring means (203) for monitoring the electric signal associated to the output of the comparing means (202),
- wherein the monitoring means (203) is configured to detect an impact when the output of the comparing means (202) is higher than a pre-established tolerance value (δ).