The piston cooling has been converted from a conventional spring-loaded spray nozzle to an electrically switchable system. The new system allows the control of the temperature regulation, fuel consumption and the piston cooling. A suitable oil pressure switch is used to perform the system diagnosis.