Program editing device, program editing method, and computer readable medium
AssigneeMitsubishi Electric Corporation
InventorTomotaka Ogawa
Life of this patent
Estimating the term…
Abstract
An inter-variable dependency analyzing unit analyzes a relation between an argument and a return value between instructions of a plurality of instructions included in a sequence control program, which is a control program written in a language for sequence control. A PLC instruction sorting/division unit at least either changes an instruction execution order of the plurality of instructions or divides the sequence control program in units of instructions, based on the relation between the argument and the return value between the instructions analyzed by the inter-variable dependency analyzing unit.
Claims7
A program editing device comprising:
- processing circuitry to:
- analyze a relation between an argument and a return value between instructions of a plurality of instructions included in a sequence control program, which is a pre-compiled control program written in a language for sequence control, the plurality of instructions being sequenced according to a first instruction execution order;
- and
- at least either change the first instruction execution order of the plurality of instructions to a second instruction execution order or divide the sequence control program into simultaneously executable units of instructions, based on the relation between the argument and the return value between the instructions analyzed,
- wherein execution of the plurality of instructions according to the second instruction execution order achieves an equivalent result more efficiently than execution of the plurality of instructions according to the first instruction execution order,
- wherein the processing circuitry changes the first instruction execution order of the plurality of instructions based on the relation between the argument and the return value between the instructions analyzed and an operator included in each instruction, and
- wherein the processing circuitry specifies, from among the plurality of instructions, two or more instructions in which arithmetic operation efficiency is improved by successive execution, based on the relation between the argument and the return value between the instructions analyzed and the operator included in each instruction, and changes the instruction execution order of the plurality of instructions so that the specified two or more instructions are successively executed.
A program editing device comprising:
- processing circuitry to:
- analyze a relation between an argument and a return value between instructions of a plurality of instructions included in a sequence control program, which is a control program written in a language for sequence control;
- and
- at least divide the sequence control program in the units of instructions, based on the analyzed relation between the argument and the return value between the instructions and a number of simultaneously-executable instructions, which is a number of instructions simultaneously executable by a PLC (Programmable Logic Controller) device.
A program editing method comprising:
- analyzing, by a processor, a relation between an argument and a return value between instructions of a plurality of instructions included in a sequence control program, which is a pre-compiled control program written in a language for sequence control, the plurality of instructions being sequenced according to a first instruction execution order;
- and
- by the processor, at least either changing the first instruction execution order of the plurality of instructions to a second instruction execution order or dividing the sequence control program into simultaneously executable units of instructions, based on the analyzed relation between the argument and the return value between the instructions,
- wherein execution of the plurality of instructions according to the second execution order achieves an equivalent result more efficiently than execution of the plurality of instructions according to the first execution order,
- wherein the processor changes the first instruction execution order of the plurality of instructions based on the relation between the argument and the return value between the instructions analyzed and an operator included in each instruction, and
- wherein the processor specifies, from among the plurality of instructions, two or more instructions in which arithmetic operation efficiency is improved by successive execution, based on the relation between the argument and the return value between the instructions analyzed and the operator included in each instruction, and changes the instruction execution order of the plurality of instructions so that the specified two or more instructions are successively executed.
A non-transitory computer readable medium storing a program editing program that causes a computer to execute:
- a relation analyzing process of analyzing a relation between an argument and a return value between instructions of a plurality of instructions included in a sequence control program, which is a pre-compiled control program written in a language for sequence control, the plurality of instructions being sequenced according to a first instruction execution order;
- and
- a program editing process of at least either changing the first instruction execution order of the plurality of instructions to a second instruction execution order or dividing the sequence control program into simultaneously executable units of instructions, based on the relation between the argument and the return value between the instructions analyzed by the relation analyzing process,
- wherein execution of the plurality of instructions according to the second execution order achieves an equivalent result more efficiently than execution of the plurality of instructions according to the first execution order,
- wherein the program editing process changes the first instruction execution order of the plurality of instructions based on the relation between the argument and the return value between the instructions analyzed and an operator included in each instruction, and
- wherein the program editing process specifies, from among the plurality of instructions, two or more instructions in which arithmetic operation efficiency is improved by successive execution, based on the relation between the argument and the return value between the instructions analyzed and the operator included in each instruction, and changes the instruction execution order of the plurality of instructions so that the specified two or more instructions are successively executed.
Dependencies are inferred from the claim text.