Method, apparatus and program for generating application program

US10983772B2 · US · B2

Patent metadata
FieldValue
Publication numberUS-10983772-B2
Application numberUS-201816190172-A
CountryUS
Kind codeB2
Filing dateNov 14, 2018
Priority dateFeb 7, 2018
Publication dateApr 20, 2021
Grant dateApr 20, 2021

How to read this patent

A practical reading order for non-experts. Skip the full description unless you need deep technical detail.

  1. Title

    What the patent document calls the invention.

  2. Abstract

    A short plain-language summary of the technical disclosure.

  3. Assignees and inventors

    Who owns or filed the patent and who is credited as inventor.

  4. Key dates

    Filing, priority, publication, and grant dates set the timeline.

  5. First independent claim

    The legal scope of protection — read this for what is actually claimed.

  6. CPC / IPC classifications

    Technology tags used to group this patent with similar filings.

  7. Citations and related patents

    Prior art links and similar publications in this corpus.

Abstract

Official abstract text for this publication.

Provided is an environment for executing an application program included in a task to be periodically executed every fixed task cycle within a predetermined task cycle. A method includes: receiving input of a source code of the application program, and generating an execution module of the application program by adding, to the source code of the application program, a first command for interrupting the application program after executing the application program for a preset time within the task cycle and resuming execution of the application program in the next task cycle.

First claim

Opening claim text (preview).

What is claimed is: 1. A method for generating an application program comprised in a task to be periodically executed every fixed task cycle, the method comprising: receiving input of a source code of the application program; and generating an execution module of the application program by adding, to the source code of the application program, a first command for interrupting the application program after executing the application program for a preset time within a task cycle and resuming execution of the application program in a next task cycle, wherein the preset time is a set division time allocated from a start of execution of the application program to interruption in the task cycle and the task cycle is a control cycle in which the application program is periodically executed from beginning to end; and wherein the first command comprises: a command to save an execution state at a moment when the preset time elapses from the start of execution of the application program; and a command to restore the saved execution state in a subsequent task cycle, and wherein the first command further comprises a command for setting an interrupt timer so as to generate an interrupt event when the preset time elapses from the start of execution of the application program within the task cycle. 2. The method according to claim 1 , wherein the first command further comprises a command to determine whether or not the preset time has elapsed at each interruption point preset in the source code of the application program. 3. The method according to claim 2 , further comprising: inserting the interruption point into the source code of the application program. 4. The method according to claim 1 , wherein the step of generating the execution module generates the execution module comprising a first execution code and a second execution code, the first execution code is generated by adding the first command, and the second execution code is generated from the source code of the application program to which the first command is not added. 5. The method according to claim 2 , wherein the step of generating the execution module generates the execution module comprising a first execution code and a second execution code, the first execution code is generated by adding the first command, and the second execution code is generated from the source code of the application program to which the first command is not added. 6. The method according to claim 3 , wherein the step of generating the execution module generates the execution module comprising a first execution code and a second execution code, the first execution code is generated by adding the first command, and the second execution code is generated from the source code of the application program to which the first command is not added. 7. The method according to claim 4 , wherein the step of generating the execution module comprises: generating program definition information, in association with the execution module, comprising information indicating a state of an execution code comprised in the execution module. 8. The method according to claim 1 , wherein the step of generating the execution module comprises: further adding, to the source code of the application program, a second command for receiving setting of control parameters related to execution, interruption and resumption of the application program. 9. The method according to claim 2 , wherein the step of generating the execution module comprises: further adding, to the source code of the application program, a second command for receiving setting of control parameters related to execution, interruption and resumption of the application program. 10. The method according to claim 3 , wherein the step of generating the execution module comprises: further adding, to the source code of the application program, a second command for receiving setting of control parameters related to execution, interruption and resumption of the application program. 11. The method according to claim 8 , wherein the control parameters comprise information for selecting either to resume from a point where execution of the application program was interrupted or to execute the application program from the beginning. 12. The method according to claim 8 , further comprising: changing whether or not to enable receipt of the setting of the control parameters in a process of creating a user program referring to the execution module according to whether or not a function of interrupting the application program after executing the application program for the preset time within the task cycle is enabled. 13. An apparatus for generating an application program comprised in a task to be periodically executed every fixed task cycle, the apparatus comprising: a processor, being configured to: receive input of a source code of the application program; and generate an execution module of the application program by adding, to the source code of the application program, a first command for interrupting the application program after executing the application program for a preset time within a task cycle and resuming execution of the application program in a next task cycle, wherein the preset time is a set division time allocated from a start of execution of the application program to interruption in the task cycle and the task cycle is a control cycle in which the application program is periodically executed from beginning to end; and wherein the first command comprises: a command to save an execution state at a moment when the preset time elapses from the start of execution of the application program; and a command to restore the saved execution state in a subsequent task cycle, and wherein the first command further comprises a command for setting an interrupt timer so as to generate an interrupt event when the preset time elapses from the start of execution of the application program within the task cycle. 14. A non-transitory computer readable medium storing a program that causes a computer to generate an application program comprised in a task to be periodically executed every fixed task cycle, the program causing the computer to execute: receiving input of a source code of the application program; and generating an execution module of the application program by adding, to the source code of the application program, a first command for interrupting the application program after executing the application program for a preset time within a task cycle and resuming execution of the application program in a next task cycle, wherein the preset time is a set division time allocated from a start of execution of the application program to interruption in the task cycle and the task cycle is a control cycle in which the application program is periodically executed from beginning to end; and wherein the first command comprises: a command to save an execution state at a moment when the preset time elapses from the start of execution of the application program; and a command to restore the saved execution state in a subsequent task cycle, and wherein the first command further comprises a command for setting an interrupt timer so as to generate an interrupt event when the preset time elapses from the start of execution of the application program within the task cycle.

Assignees

Inventors

Classifications

  • G06F9/485Primary

    Task life-cycle, e.g. stopping, restarting, resuming execution (G06F9/4881 takes precedence) · CPC title

  • Programming the PLC · CPC title

  • G06F8/44Primary

    Encoding · CPC title

Patent family

Related publications grouped by family.

External sources

Frequently asked questions

Answers are generated from the same data shown on this page.

What does patent US10983772B2 cover?
Provided is an environment for executing an application program included in a task to be periodically executed every fixed task cycle within a predetermined task cycle. A method includes: receiving input of a source code of the application program, and generating an execution module of the application program by adding, to the source code of the application program, a first command for interrup…
Who is the assignee on this patent?
Omron Tateisi Electronics Co
What technology area does this patent fall under?
Primary CPC classification G06F9/485. Mapped technology areas include Physics.
When was this patent published?
Publication date Tue Apr 20 2021 00:00:00 GMT+0000 (Coordinated Universal Time) (B2). Legal status and post-grant events are not shown on this page.
What related patents are in patentsdb?
We list 3 related publications on this page (citations in our corpus or others sharing the same primary CPC).