Controller and editor
First Claim
Patent Images
1. A controller and an editor of a machine configured to detect an occurrence of an infinite loop of a loop process during execution of a ladder program, comprising:
- an infinite loop detection unit for;
monitoring states of execution condition signals for presence of a jump instruction;
comparing a destination indicated by the jump instruction to a processing direction of the ladder program; and
recording an execution condition signal of the loop process that may cause the infinite loop, in an infinite loop occurrence condition information table, wherein the recorded execution condition signal is embedded in object code of the ladder program and transmitted to the controller via an interface; and
an infinite loop escape unit for;
escaping the occurrence of the infinite loop by forcefully making a completion of an execution condition for a jump instruction false when the infinite loop occurs; and
entering an emergency stop state of the machine.
1 Assignment
0 Petitions
Accused Products
Abstract
A controller and an editor that enable a ladder program to escape an infinite loop are provided.
A controller that can detect a loop process being stuck in an infinite loop during execution of a ladder program includes an infinite loop escape unit for escaping the infinite loop by forcefully making an execution condition for a jump instruction false when the infinite loop occurs, the jump instruction being included in the loop process.
6 Citations
4 Claims
-
1. A controller and an editor of a machine configured to detect an occurrence of an infinite loop of a loop process during execution of a ladder program, comprising:
-
an infinite loop detection unit for; monitoring states of execution condition signals for presence of a jump instruction; comparing a destination indicated by the jump instruction to a processing direction of the ladder program; and recording an execution condition signal of the loop process that may cause the infinite loop, in an infinite loop occurrence condition information table, wherein the recorded execution condition signal is embedded in object code of the ladder program and transmitted to the controller via an interface; and an infinite loop escape unit for; escaping the occurrence of the infinite loop by forcefully making a completion of an execution condition for a jump instruction false when the infinite loop occurs; and entering an emergency stop state of the machine.
-
-
2. The controller according to claim 1, wherein the infinite loop escape unit escapes the infinite loop by referring to an infinite loop occurrence condition information table recording at least a state of an execution condition signal on normal completion of the loop process, and forcefully overwriting the current execution condition signal with the execution condition signal on the normal completion.
-
3. The controller according to claim 1, wherein the infinite loop escape unit escapes the infinite loop by forcefully overwriting a signal state of a closed contact provided within the jump instruction.
-
4. The controller according to claim 2, further comprising:
an infinite loop detection unit for recording the state of the execution condition signal on the normal completion of the loop process in the infinite loop occurrence condition information table during execution of the ladder program.
Specification