The invention relates to a method and device for controlling the engine
oil pressure of a
diesel engine and a generator set. The corresponding relation of the overflow
pressure threshold, changing along with the temperature of engine oil, of an engine oil
system is set, wherein when t is smaller than TO, p is equal to PO, when t is larger than or equal to TO but smaller than TC, p is equal to PO+kdeltat, and when t is larger than or equal to TC, p is equal to PO+kTC; after the
diesel engine is started, the
diesel engine can be loaded to reach the working condition with the rated rotating speed or the rotating speed smaller than the rated rotating speed, meanwhile, the real-time overflow
pressure threshold is obtained according to the corresponding relation, and the engine
oil pressure of the engine oil
system is regulated. According to the control device for achieving the method, a
temperature control valve can be connected with an overflow pressure reducing valve in parallel, and the
temperature control valve is initially in a starting state and is gradually closed along with the gradual rising of the engine
oil temperature. The structure is simple and compact, and cost is low. The initial pressure of the engine oil
system after engine starting is regulated continuously along with the change of the engine
oil temperature, parts such as a
supercharger and an oil
injection pump cannot be damaged, meanwhile, the lubricating and cooling effects are reliably ensured, the time for warming-up is saved, and the light oil saving effect of a heavy oil unit is especially obvious.