摘要 |
PROBLEM TO BE SOLVED: To provide a data storing method where exceptional processing or the runaway of AP hardly occurs easily even when data on a variable becomes an unintended data and where abnormality hardly occurs easily in an arithmetic result in spite of calculating by using this variable. SOLUTION: In accordance with OS, the AP within an external storage device 4 is loaded in a RAM 3 (S1). A variable table 5 for managing an effective time monitoring object variable 6 is prepared in the variable area of the RAM 3 (S2) to perform the AP within the RAM 3 (S3). The variable 6 is registered in the table 5 by they performed AP (S4) to write data in this variable (S5). With time monitoring program in a ROM 2, data is written in the variable 6 and then, this variable is initialized after the lapse of time fixed in advance (S6). With the AP, when the result of investigating whether this variable is initialized or not in reading data written in this variable shows that it is initialized, data written in this variable is rewritten in this variable (S7). |