US 12,455,546 B2
Recording medium and programming support apparatus
Shinya Nawata, Tokyo (JP)
Assigned to MITSUBISHI ELECTRIC CORPORATION, Tokyo (JP)
Appl. No. 18/704,086
Filed by Mitsubishi Electric Corporation, Tokyo (JP)
PCT Filed Jan. 14, 2022, PCT No. PCT/JP2022/001083
§ 371(c)(1), (2) Date Apr. 24, 2024,
PCT Pub. No. WO2023/135735, PCT Pub. Date Jul. 20, 2023.
Prior Publication US 2024/0329615 A1, Oct. 3, 2024
Int. Cl. G05B 19/042 (2006.01)
CPC G05B 19/0426 (2013.01) [G05B 2219/13101 (2013.01)] 21 Claims
OG exemplary drawing
 
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.