摘要 |
PURPOSE:To prevent the generation of malfunction in case of a computer control by checking an input value of a sensor in a program executing process, and correcting the register concerned, if there is an error. CONSTITUTION:A CPU6 executes read of a sensor 1 in accordance with a procedure stored in a ROM8, and stores data in a RAM7. Subsequently, data stored in advance in the ROM8 is read out in accordance with this read value, and a forecasting value of the sensor 1 is obtained. Next, an actual value of the sensor 1 is read, and the actually measured value is compared with the forecasting value. As a result, when the actually measured value coincides with the forecasting value in the allowable range, and it is decided that there is no abnormality, the processing is shifted to the next routine, but in case when it has been decided that there is an abnormality, a value of the related register is initialized with regard to each sensor 1. Also, a record of the generation of the abnormality is left in the RAM7, and the value of the sensor 1 is read again. By such processing, the reset to normal data can be executed when a program is proceeding, and malfunction can be prevented against the outside. |