To provide a program execution history managing device for efficiently operating trouble processing by easily specifying the cause of the failure of a control program.
At the time of controlling an object to be controlled by executing a control program constituted of plural functions, each module and the identification codes of the functions of the control program are stored in a data storing part 4, and when the control program is executed, each module and the identification codes of the functions are time-sequentially stored as execution history data in a history storing part 5 into the order of execution. Thus, the execution history data can be outputted by a display part 9 or a printing part 10 as necessary when any failure is generated, and trouble processing can be efficiently operated by easily specifying any cause when the failure is generated.