| CPC G05B 19/0426 (2013.01) [G05B 2219/13101 (2013.01)] | 21 Claims |

|
1. A non-transitory computer-readable recording medium storing a programming support program for a computer that provides support for generation of an operational program for operating a programmable controller, the programming support program causing the computer to:
acquire a first source code of the operational program, wherein the first source code contains definitions of first function blocks corresponding to non-object-oriented subroutines;
receive a user selection of function blocks among the first function blocks of the first source code;
receive a user selection of variables to be integrated into a common variable among variables of the selected function blocks; and
generate a second source code of the operational program by replacing a plurality of first function blocks of the first function blocks described in the first source code with a second function block, the second function block describing the function as a plurality of methods, wherein
the second source code contains definitions of object-oriented function blocks,
the generation of the second source code includes:
receiving relationship information indicating a relationship between the variable of each of the plurality of first function blocks to be integrated into the common variable and a variable of the second function block that is the common variable, and
generating the second source code based on the relationship information by replacing the plurality of first function blocks selected from the first source code with the second function block containing the methods corresponding to the plurality of first function blocks.
|