主权项 |
1. A controller for controlling an internal combustion engine that includes a valve timing adjuster, which adjusts a relative rotational phase, which is a rotational phase of a camshaft relative to an engine output shaft, by using a first motor, and a variable valve lift mechanism, which changes a maximum valve lift of an engine valve by using a second motor, the controller comprising:
a motor sensor, which detects a rotation angle of an output shaft of the second motor; and a processor, which controls a duty cycle of a drive signal delivered to the first motor, thereby driving the valve timing adjuster, wherein when a positive current is supplied to the first motor, an output shaft of the first motor rotates in a first direction, which is a direction for advancing the relative rotational phase, when a negative current is supplied to the first motor, the output shaft of the first motor rotates in a second direction, which is a direction opposite to the first direction, the processor is configured to control the duty cycle of the drive signal in a selected one of a plurality of control modes, thereby changing the relative rotational phase, the plurality of control modes includes a specific control mode in which the duty cycle of the drive signal is adjusted to change a value of the current through the first motor, the processor is configured to perform, when changing the relative rotational phase through execution of the specific control mode, an abnormality diagnosis for the variable valve lift mechanism based on a comparison between the value of the current through the first motor and a reference current value, and the processor is configured to set the reference current value in accordance with the rotation angle of the output shaft of the second motor, which is detected by the motor sensor. |