A determining section integrates amount of
oxygen that is stored in or released from a
exhaust gas purifying catalyst from when a
signal from an
oxygen sensor is changed until when the
signal is changed subsequently, thereby calculating an
oxygen storage capacity. The determining section uses the calculated
oxygen storage capacity to determine a deterioration state of the
exhaust gas purifying catalyst. A limiting section sets, as an allowable change amount, a change amount of the air-fuel ratio that corresponds to an allowable maximum fluctuation amount of a torque of a output shaft of the engine. The limiting section limits a change of the target air-fuel ratio such that a change amount of the target air-fuel ratio due to a change of the
signal does not exceed the allowable change amount. Therefore, a deterioration of a drivability while ensuring opportunities of detecting a deterioration of an
exhaust gas purifying catalyst is suppressed.