In the present invention, a control procedure
data acquisition unit (101) acquires control procedure data (200) in which the control procedure is described by using a plurality of ordered conditions and a plurality of control variables which are associated with corresponding conditions, the corresponding conditions being any of the conditions, and in which values are substituted according to the success or failure of the corresponding conditions. A
program management unit (102) selects each condition, and generates, for each selected selection condition, a state determination block that determines the value of the
state variable of the selection condition on the basis of the success or failure of the selection condition and the value of the
state variable of the preceding condition whose order position precedes the selection condition. The
program management unit (102) selects each
control variable, and generates, for each selected selection
control variable, a control execution block that determines a value to be substituted for the selection
control variable on the basis of the value of the
state variable of the corresponding condition of the selection control variable. Furthermore, the
program management unit (102) uses the state determination block and the control execution block to generate a control program (300) in which the control procedure is reflected.