摘要 |
PURPOSE:To increase the number of self diagnosis times so as to improve the reliability of a system by executing self-diagnosis whenever the starting command of an application program is outputted. CONSTITUTION:Initial self-diagnosis is executed in S11 when power is turned on. The self-diagnosis is executed once when power is turned on. When the starting instruction of the application program is given to a programmable controller after self-diagnosis, the system is judged to be during online or not S12. When it is judged to be during online, self-diagnosis S13 whose content is the same as that of S11 is executed. When abnormality is judged as the result, a processing such as the operation stop of the system is immediately executed. When the self-diagnosis processing of S13 is terminated, the application program S14 is executed. It is periodically judged whether the system is set to be offline S15 or not in an execution process. Thus, the reliability of the system is improved since self-diagnosis is executed whenever a processing loop is repeated. |