JPH11242509A - Programmable logic controller - Google Patents
Programmable logic controllerInfo
- Publication number
- JPH11242509A JPH11242509A JP4513498A JP4513498A JPH11242509A JP H11242509 A JPH11242509 A JP H11242509A JP 4513498 A JP4513498 A JP 4513498A JP 4513498 A JP4513498 A JP 4513498A JP H11242509 A JPH11242509 A JP H11242509A
- Authority
- JP
- Japan
- Prior art keywords
- rung
- execution
- instruction
- object code
- executed
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Withdrawn
Links
Landscapes
- Testing And Monitoring For Control Systems (AREA)
- Stored Programmes (AREA)
- Programmable Controllers (AREA)
Abstract
Description
【0001】[0001]
【発明の属する技術分野】本発明は、センサ、アクチュ
エータ等の制御対象機器を制御する制御プログラムを実
行するプログラマブルロジックコントローラに関する。[0001] 1. Field of the Invention [0002] The present invention relates to a programmable logic controller for executing a control program for controlling a device to be controlled such as a sensor or an actuator.
【0002】[0002]
【従来の技術】従来から、プログラマブルロジックコン
トローラは、ラダープログラムからなる制御プログラム
を実行してセンサ,アクチュエータ等の制御対象機器を
制御するものであるが、近年、制御プログラムを単に実
行するだけでなく、制御プログラムをFA(Factory A
utomation )システムにリリースする前には、前もっ
て、システムが正常に稼働するか否かを調べるオンライ
ンデバッグ・テストを行う構成になっている。2. Description of the Related Art Conventionally, a programmable logic controller controls a device to be controlled such as a sensor or an actuator by executing a control program including a ladder program. , The control program is FA (Factory A)
Before the release to the system, an online debug test is performed to check whether the system operates normally.
【0003】このオンラインデバッグ・テストとして、
従来から一般的に行われてきた方法の1つには、NOP
命令を用いた方法がある。As an on-line debug test,
One of the methods commonly used in the past is NOP
There is a method using instructions.
【0004】この方法は、予めデバック・テストするた
めに埋め込む命令(回路)を有するラダープログラムを
作成しておき、このラダープログラムのオンラインデバ
ッグ・テストを実行するに際して、実行させない命令
(回路)には、その命令の前にオンラインエディットで
NOP命令を挿入することで、命令を実行させないよう
にしていた。According to this method, a ladder program having an instruction (circuit) to be embedded for debugging / testing is created in advance, and an instruction (circuit) not to be executed when executing an online debug test of the ladder program is executed. By inserting a NOP instruction by online editing before the instruction, the instruction is not executed.
【0005】このNOP命令を用のラダープログラムの
オンラインデバッグ・テストでは、ステップ番号を変化
させることなくプログラムチェックを行うことができる
という利点がある。The online debug test of a ladder program using the NOP instruction has an advantage that a program check can be performed without changing the step number.
【0006】[0006]
【発明が解決しようとする課題】しかしながら、上述し
たようなNOP命令を用いてラダープログラムのオンラ
インデバッグ・テストを実行する方法では、いちいちオ
ンラインエディットでNOP命令を挿入する必要があ
り、時間と手間を要するという問題点があった。However, in the above-described method of executing the online debug test of the ladder program using the NOP instruction, it is necessary to insert the NOP instruction by online edit each time. There was a problem that it required.
【0007】そこで、本発明は上述の問題点に鑑み、制
御プログラムをオンラインデバック・テストするに際し
て、プログラム編集に時間と手間を要しないプログラマ
ブルロジックコントローラを提供することを目的とす
る。SUMMARY OF THE INVENTION In view of the above problems, an object of the present invention is to provide a programmable logic controller which does not require time and effort for program editing when performing a control program online debugging test.
【0008】[0008]
【課題を解決するための手段】上述の目的を達成するた
めに、請求項1記載の発明は、一群の命令を1単位とす
るラングで形成された制御プログラムを実行するプログ
ラマブルロジックコントローラであって、前記ラングを
実行するか否かを示す実行・非実行フラグを有するラン
グ実行・非実行フラグ格納手段と、このラング実行・非
実行フラグ格納手段に格納されている実行・非実行フラ
グを必要に応じて修正するフラグ修正手段とを具備する
ようにする。SUMMARY OF THE INVENTION In order to achieve the above object, an invention according to claim 1 is a programmable logic controller for executing a control program formed by a rung having a group of instructions as one unit. A rung execution / non-execution flag storage unit having an execution / non-execution flag indicating whether or not to execute the rung, and an execution / non-execution flag stored in the rung execution / non-execution flag storage unit. And a flag correcting means for correcting the flag in response to the request.
【0009】請求項2記載の発明は、請求項1記載の発
明において、前記ラング実行・非実行フラグ格納手段に
は、各ラングごとにラング先頭アドレスを格納してお
り、前記ラングの実行を開始するときは、前記ラング先
頭アドレスに指示された命令から実行するようにする。According to a second aspect of the present invention, in the first aspect of the present invention, the rung execution / non-execution flag storage means stores a rung start address for each rung and starts execution of the rung. When executing, the instruction is executed from the instruction specified by the rung start address.
【0010】本発明では、ラングを実行するか否かを示
す実行・非実行フラグに基づき、制御プログラムを形成
するラングが実行されるため、デバック・テストを行う
に際し、予め実行しないラングを指定しておけば、改め
てラダープログラムのすべてをコンパイルして再びオブ
ジェクトコードを形成する必要がない。In the present invention, a rung for forming a control program is executed based on an execution / non-execution flag indicating whether or not to execute a rung. Therefore, when a debug test is performed, a rung not to be executed is designated in advance. If so, it is not necessary to compile all of the ladder programs again to form the object code again.
【0011】[0011]
【発明の実施の形態】以下、本発明に係るプログラマブ
ルロジックコントローラの構成を、図面を参照して説明
する。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS The configuration of a programmable logic controller according to the present invention will be described below with reference to the drawings.
【0012】図1は本発明に係るプログラマブルロジッ
クコントローラの一実施形態の構成を示すブロック図で
ある。FIG. 1 is a block diagram showing a configuration of an embodiment of a programmable logic controller according to the present invention.
【0013】この実施形態のプログラマブルロジックコ
ントローラ1は、デバック・テストにおいては所定のラ
ング(後述する)をスキップ(飛ばす)するように実行
するものであって、ソースプログラム記憶部11と、コ
ンパイル部12と、ラング管理テーブル13と、命令実
行部14と、ラング実行指定部15と、オブジェクトコ
ード記憶部16とから構成されている。The programmable logic controller 1 of this embodiment executes a predetermined rung (described later) in a debug test so as to skip (skip) the rung. The source program storage unit 11 and the compile unit 12 , A rung management table 13, an instruction execution unit 14, a rung execution designation unit 15, and an object code storage unit 16.
【0014】この実施形態のプログラマブルロジックコ
ントローラ1の各構成部分を説明するにあたって、図2
に示すようなラダープログラムおよび図3に示すような
ニーモニック表記プログラムからなる制御プログラムを
例にとり、ラングを説明する。In describing each component of the programmable logic controller 1 of this embodiment, FIG.
The rung will be described using a control program including a ladder program as shown in FIG. 3 and a mnemonic notation program as shown in FIG. 3 as an example.
【0015】ラングとは、図2に示すようなラダープロ
グラムにおいては、左母線1Hに接続する複数の接点か
ら右母線2Hに接続する出力または命令間に形成された
回路のことをいい、また、図3に示すようなニーモニッ
ク表記プログラムにおいては、LD(Loaed命令)
からRETURN命令までの一群の命令をいいう。In the ladder program as shown in FIG. 2, a rung is a circuit formed between a plurality of contacts connected to the left bus 1H and outputs or instructions connected to the right bus 2H. In a mnemonic notation program as shown in FIG. 3, LD (Loaded instruction)
To a RETURN instruction.
【0016】因みに、図2に示したラング1は、左母線
1Hに接続する接点1a,接点1bおよび右母線2Hに
接続する出力1cで形成された回路Aであり、また、ラ
ング2は左母線1Hに接続する接点2aおよび接点2
b,並びに右母線2Hに接続する命令で形成された回路
Bである。Incidentally, rung 1 shown in FIG. 2 is a circuit A formed by contacts 1a and 1b connected to left bus 1H and output 1c connected to right bus 2H, and rung 2 is a left bus. Contact 2a and contact 2 connected to 1H
b, and a circuit B formed by an instruction to connect to the right bus 2H.
【0017】また、図3に示したラング1は、ステップ
番号“0000”のLD命令,ステップ番号“000
1”のAND命令,ステップ番号“0002”のOUT
命令,およびステップ番号“0003”のRETURN
命令から形成されており、ラング2は、ステップ番号
“0004”のLD命令,ステップ番号“0005”の
OR命令,ステップ番号“0006”のOR命令,およ
びステップ番号“0007”のRETURN命令から形
成されている。The rung 1 shown in FIG. 3 is an LD instruction having a step number “0000” and a step number “000”.
1 "AND instruction, step number" 0002 "OUT
RETURN of instruction and step number "0003"
The rung 2 is formed from an LD instruction having a step number “0004”, an OR instruction having a step number “0005”, an OR instruction having a step number “0006”, and a RETURN instruction having a step number “0007”. ing.
【0018】なお、図3に記載されているアドレス番地
は、各ステップの命令についてのオブジェクトコードの
記憶場所を示すアドレス番地である。The address addresses shown in FIG. 3 are the address addresses indicating the storage locations of the object codes for the instructions in each step.
【0019】因みに、ラング1の開始を示すステップ番
号が“0000”である接点LD命令のオブジェクトコ
ードのアドレス番地は“$0000”であり、ラング2
の開始を示すステップ番号が“0004”のLD命令の
オブジェクトコードのアドレス番地は“$0004”で
あり、ラング3の開始を示すステップ番号が“000
8”である接点LD命令のオブジェクトコードのアドレ
ス番地は“$0008”であり、ラング4の開始を示す
ステップ番号が“0021”のEND命令のオブジェク
トコードのアドレス番地は“$0021”である。Incidentally, the address of the object code of the contact LD instruction whose step number indicating the start of rung 1 is “0000” is “$ 0000”, and the rung 2
The address of the object code of the LD instruction whose start number is “0004” is “$ 0004”, and the step number indicating the start of rung 3 is “000”.
The address of the object code of the contact LD instruction of “8” is “$ 0008”, and the address of the object code of the END instruction with a step number of “0021” indicating the start of rung 4 is “$ 0021”.
【0020】次に、この実施形態のプログラマブルロジ
ックコントローラ1の各構成部分を説明する。Next, each component of the programmable logic controller 1 of this embodiment will be described.
【0021】ソースプログラム記憶部11は、センサ,
アクチュエータ等の制御対象機器を制御する上述したニ
ーモニック表記プログラムまたはラダープログラム等で
記述されたソースプログラムを記憶するものである。The source program storage unit 11 includes a sensor,
A source program described in the mnemonic notation program or the ladder program for controlling a device to be controlled such as an actuator is stored.
【0022】コンパイル部12は、ソースプログラム記
憶部11に記憶されているソースプログラム読み出し
(図中の矢線1h参照)、これをコンパイルしてオブジ
ェクトコードを形成し、この形成したオブジェクトコー
ドをオブジェクトコード記憶部16に記憶させるととも
に(図中の矢線2h参照)、各ラングのオブジェクトコ
ードの先頭アドレス番地をラング管理テーブル13に格
納させるようになっている(図中の矢線8h参照)。The compiling section 12 reads the source program stored in the source program storage section 11 (see arrow 1h in the figure), compiles the source program to form an object code, and converts the formed object code into an object code. While being stored in the storage unit 16 (see arrow 2h in the figure), the start address of the object code of each rung is stored in the rung management table 13 (see arrow 8h in the figure).
【0023】ラング管理テーブル13は、ラングを指定
する番号を格納するラング番号エリア131,各ラング
の先頭アドレス番地を格納するラング先頭アドレスエリ
ア132,および命令実行部14により実行されるラン
グか否かを指定するをフラグを格納する実行・非実行フ
ラグエリア133から構成されている。The rung management table 13 includes a rung number area 131 for storing a number specifying a rung, a rung start address area 132 for storing a start address of each rung, and whether or not the rung is executed by the instruction execution unit 14. Is formed from an execution / non-execution flag area 133 for storing a flag for designating.
【0024】因みに、A印のラング1は、ラング先頭ア
ドレスとして“$0000”を有しており、実行すべき
ラングであり、B印のラング2は、ラング先頭アドレス
として“$0004”を有しており、実行しないラング
である。Incidentally, the rung 1 indicated by A has a rung start address of “$ 0000” and is a rung to be executed, and the rung 2 indicated by B has “$ 0004” as a rung start address. Is a rung that does not run.
【0025】命令実行部14は、デバッグ・テストモー
ド以外では、オブジェクトコード記憶部16に記憶され
ている制御プログラムのオブジェクトコードをすべて実
行するようになっており(図中の矢線7h参照)、この
場合には、RETURN命令が無視される。The instruction execution unit 14 executes all the object codes of the control program stored in the object code storage unit 16 except in the debug / test mode (see arrow 7h in the figure). In this case, the RETURN instruction is ignored.
【0026】また、命令実行部14は、デバッグ・テス
トモードに切り替えるように指示があると、ラング管理
テーブル13に格納されている実行・非実行フラグに基
づき(図中の矢線6h参照)、実行すべきラングについ
てのみオブジェクトコードを読み出し(図中の矢線7h
参照)、これを実行するようになっている。When the instruction execution unit 14 is instructed to switch to the debug / test mode, the instruction execution unit 14 performs an operation based on the execution / non-execution flag stored in the rung management table 13 (see arrow 6h in the figure). The object code is read only for the rung to be executed (arrow 7h in the figure).
See) and do this.
【0027】なお、命令実行部14におけるモードの切
替えは、モード切替え指示5hに基づいている。The mode switching in the instruction execution unit 14 is based on a mode switching instruction 5h.
【0028】ラング実行指定部15は、デバック・テス
ト者からの指示により(図中の矢線3h参照)、所定の
ラングを実行させ、また、非実行にさせる指示を受ける
と、ラング管理テーブル13中の該当ラングの実行・非
実行フラグを、指示どうりに設定するようになってい
る。The rung execution specifying unit 15 executes a predetermined rung according to an instruction from the debug tester (see the arrow 3h in the figure) or receives an instruction to disable the rung. The execution / non-execution flag of the corresponding rung is set according to the instruction.
【0029】オブジェクトコード記憶部16は、コンパ
イル部12によりコンパイルされた形成された制御プロ
グラムのオブジェクトコードを記憶するものである。The object code storage section 16 stores the object code of the control program formed by the compiling section 12.
【0030】続いて、この実施形態のプログラマブルロ
ジックコントローラの動作を、図5を参照して説明す
る。Next, the operation of the programmable logic controller of this embodiment will be described with reference to FIG.
【0031】この実施形態のプログラマブルロジックコ
ントローラは、図5(a)に示すように、I/O情報を
リフレッシュするOUTリフレッシュ処理(ステップ1
10)、INリフレッシュ処理(ステップ120)、制
御プログラムを実行するプログラム実行処理(ステップ
130)、制御プログラムの実行に関係しない周辺処
理、例えば処理した部品数を出力するような処理を一サ
イクルとする処理を繰り返し実行する。As shown in FIG. 5A, the programmable logic controller of this embodiment performs an OUT refresh process for refreshing I / O information (step 1).
10), an IN refresh process (step 120), a program execution process for executing a control program (step 130), and peripheral processes unrelated to the execution of the control program, for example, a process for outputting the number of processed components, are defined as one cycle. Repeat the process.
【0032】ここで、本発明の特徴をなすステップ13
0のプログラム実行処理を説明する。Here, step 13 which characterizes the present invention is described.
0 program execution processing will be described.
【0033】命令実行部14は、デバッグ・テストモー
ドに切り替える旨の指示を受けると、ラング管理テーブ
ル13に格納されているラング1の実行・非実行フラグ
が“1”であるか否かを判断する(ステップ131)。When receiving an instruction to switch to the debug / test mode, the instruction execution unit 14 determines whether the run / non-execution flag of rung 1 stored in the rung management table 13 is “1”. (Step 131).
【0034】命令実行部14は、ラング管理テーブル1
3に格納されているラング1の実行・非実行フラグが
“1”であると判断した場合には(ステップ131;
Y)、ラング管理テーブル13に格納されているラング
先頭アドレスを読み出し、次に、オブジェクトコード記
憶部16における先に読み出したラング先頭アドレスの
箇所に記憶されているオブジェクトコードから順次ラン
グ1のオブジェクトコードを実行し、ラング1のすべて
のオブジェクトコードを実行すると(ステップ13
2)、ステップ133に移行し、一方、実行・非実行フ
ラグが“1”でないと判断した場合には(ステップ13
1;N)、ラング1を実行せずにステップ133に移行
する。The instruction execution unit 14 executes the rung management table 1
If the run / run flag of rung 1 stored in No. 3 is determined to be “1” (step 131;
Y), the rung start address stored in the rung management table 13 is read, and then the object code of rung 1 is sequentially stored in the object code storage unit 16 from the object code stored at the previously read rung start address. Is executed, and all object codes of rung 1 are executed (step 13).
2) The process proceeds to step 133, and if it is determined that the execution / non-execution flag is not “1” (step 13)
1; N), the process proceeds to step 133 without executing rung 1.
【0035】命令実行部14は、ステップ133に移行
すると、ラング管理テーブル13に格納されているラン
グ2の実行・非実行フラグが“1”であるか否かを判断
する(ステップ133)。When proceeding to step 133, the instruction execution unit 14 determines whether or not the run / non-execution flag of rung 2 stored in the rung management table 13 is "1" (step 133).
【0036】命令実行部14は、ラング管理テーブル1
3に格納されているラング2の実行・非実行フラグが
“1”であると判断した場合には(ステップ133;
Y)、ラング管理テーブル13に格納されているラング
先頭アドレスを読み出し、次に、オブジェクトコード記
憶部16における先に読み出したラング先頭アドレスの
箇所に記憶されているオブジェクトコードから順次ラン
グ2のオブジェクトコードを実行し、ラング2のすべて
のオブジェクトコードを実行すると(ステップ13
4)、ステップ135に移行し、一方、実行・非実行フ
ラグが“1”でないと判断した場合には(ステップ13
3;N)、ラング2を実行せずにステップ135に移行
する。The instruction execution unit 14 executes the rung management table 1
When it is determined that the run / non-execution flag of rung 2 stored in No. 3 is “1” (step 133;
Y), the rung start address stored in the rung management table 13 is read, and then the object code of rung 2 is sequentially stored in the object code storage unit 16 from the object code stored at the previously read rung start address. Is executed, and all object codes of rung 2 are executed (step 13
4) The process proceeds to step 135, and if it is determined that the execution / non-execution flag is not “1” (step 13)
3; N), proceed to step 135 without executing rung 2.
【0037】命令実行部14は、ステップ135に移行
すると、ラング管理テーブル13に格納されているラン
グ3の実行・非実行フラグが“1”であるか否かを判断
する(ステップ135)。When proceeding to step 135, the instruction execution unit 14 determines whether the run / non-execution flag of rung 3 stored in the rung management table 13 is "1" (step 135).
【0038】命令実行部14は、ラング管理テーブル1
3に格納されているラング3の実行・非実行フラグが
“1”であると判断した場合には(ステップ135;
Y)、ラング管理テーブル13に格納されているラング
先頭アドレスを読み出し、次に、オブジェクトコード記
憶部16における先に読み出したラング先頭アドレスの
箇所に記憶されているオブジェクトコードから順次ラン
グ3のオブジェクトコードを実行し、ラング3のすべて
のオブジェクトコードを実行すると(ステップ13
6)、ステップ137に移行し、一方、実行・非実行フ
ラグが“1”でないと判断した場合には(ステップ13
3;N)、ラング3を実行せずにステップ137に移行
する。The instruction execution unit 14 executes the rung management table 1
When the run / non-execution flag of rung 3 stored in run 3 is determined to be “1” (step 135;
Y), the rung start address stored in the rung management table 13 is read, and then the object code of the rung 3 is sequentially stored in the object code storage unit 16 from the object code stored at the previously read rung start address. Is executed, and all object codes of rung 3 are executed (step 13).
6) The process proceeds to step 137. On the other hand, if it is determined that the execution / non-execution flag is not “1” (step 13)
3; N), proceed to step 137 without executing rung 3;
【0039】命令実行部14は、ステップ137に移行
すると、ラング管理テーブル13に格納されているラン
グ4の実行・非実行フラグが“1”であるか否かを判断
する(ステップ137)。At step 137, the instruction execution unit 14 determines whether the run / non-execution flag of rung 4 stored in the rung management table 13 is "1" (step 137).
【0040】命令実行部14は、ラング管理テーブル1
3に格納されているラング4の実行・非実行フラグが
“1”であると判断した場合には(ステップ137;
Y)、ラング管理テーブル13に格納されているラング
先頭アドレスを読み出し、次に、オブジェクトコード記
憶部16における先に読み出したラング先頭アドレスの
箇所に記憶されているオブジェクトコードから順次ラン
グ4のオブジェクトコードを実行し、ラング4のすべて
のオブジェクトコードを実行すると(ステップ13
8)、プログラム実行処理を終了し、一方、実行・非実
行フラグが“1”でないと判断した場合には(ステップ
133;N)、ラング4を実行せずにプログラム実行処
理を終了する。The instruction execution unit 14 executes the rung management table 1
When the execution / non-execution flag of the rung 4 stored in No. 3 is determined to be “1” (step 137;
Y), the rung start address stored in the rung management table 13 is read out, and then the object code of the rung 4 is sequentially stored in the object code storage unit 16 from the object code stored at the previously read rung start address. Is executed, and all object codes of rung 4 are executed (step 13
8) The program execution process is terminated. On the other hand, if it is determined that the execution / non-execution flag is not "1" (step 133; N), the program execution process is terminated without executing rung 4.
【0041】なお、ラング4がEND命令であるため、
この実行・非実行フラグは“1”となっており、必ず実
行するようになっている。Since rung 4 is an END instruction,
The execution / non-execution flag is "1", and is always executed.
【0042】この実施形態のプログラマブルロジックコ
ントローラ1では、ラング管理テーブル13に格納され
ている実行・非実行フラグに基づき、命令実行部14が
オブジェクトコード記憶部16に記憶されているオブジ
ェクトコードに記述された制御プログラムのラングを実
行する。In the programmable logic controller 1 of this embodiment, the instruction execution unit 14 is described in the object code stored in the object code storage unit 16 based on the execution / non-execution flag stored in the rung management table 13. Run the rung of the control program.
【0043】このため、デバック・テストを行うに際
し、実行しないラングに対するラング管理テーブル13
の実行・非実行フラグを予め実行しないフラグに設定し
ておけば、改めてラダープログラムのすべてをコンパイ
ルして再びオブジェクトコードを形成する必要もなくデ
バッグ・テストを実行することができ、プログラム編集
の時間と手間とを無くすことができる。For this reason, when performing a debug test, the rung management table 13 for rungs that are not executed
If the execution / non-execution flag is set to a non-execution flag in advance, it is possible to execute a debug test without having to compile all of the ladder program and re-create the object code, thereby reducing the time required for program editing. And trouble can be eliminated.
【0044】[0044]
【発明の効果】以上本発明によれば、ラングを実行する
か否かを示す実行・非実行フラグに基づき、制御プログ
ラムを形成するラングを実行することにより、デバック
・テストを行うに際し、予め実行しないラングを指定し
ておけば、改めてラダープログラムのすべてをコンパイ
ルして再びオブジェクトコードを形成する必要がないた
め、プログラム編集の時間と手間とを無くすことができ
る。As described above, according to the present invention, the rung for forming the control program is executed based on the execution / non-execution flag indicating whether or not the rung is to be executed. If no rung is specified, it is not necessary to compile all the ladder programs again to form the object code again, so that the time and labor for editing the program can be eliminated.
【図1】本発明に係るプログラマブルロジックコントロ
ーラの一実施形態の構成を示すブロック図。FIG. 1 is a block diagram showing a configuration of an embodiment of a programmable logic controller according to the present invention.
【図2】この実施形態のプログラマブルロジックコント
ローラが実行する制御プログラムとしてのラダープログ
ラム。FIG. 2 is a ladder program as a control program executed by the programmable logic controller of the embodiment.
【図3】図2のラダープログラムをニーモニック表記し
たニーモニック表記プログラム。FIG. 3 is a mnemonic notation program in which the ladder program of FIG. 2 is mnemonically written.
【図4】図1中のラング管理テーブルの構成を示すブロ
ック図。FIG. 4 is a block diagram showing a configuration of a rung management table in FIG. 1;
【図5】この実施形態のプログラマブルロジックコント
ローラの動作を示すフローチャート。FIG. 5 is a flowchart showing the operation of the programmable logic controller of the embodiment.
1 プログラマブルロジックコントローラ 11 ソースプログラム記憶部 12 コンパイル部 13 ラング管理テーブル 14 命令実行部 15 ラング実行指定部 16 オブジェクトコード記憶部 DESCRIPTION OF SYMBOLS 1 Programmable logic controller 11 Source program storage part 12 Compilation part 13 Rung management table 14 Instruction execution part 15 Lang execution designation part 16 Object code storage part
Claims (2)
された制御プログラムを実行するプログラマブルロジッ
クコントローラであって、 前記ラングを実行するか否かを示す実行・非実行フラグ
を有するラング実行・非実行フラグ格納手段と、 このラング実行・非実行フラグ格納手段に格納されてい
る実行・非実行フラグを必要に応じて修正するフラグ修
正手段とを具備することを特徴とするプログラマブルロ
ジックコントローラ。1. A programmable logic controller for executing a control program formed by a rung having a group of instructions as one unit, the rung having a run / non-execution flag indicating whether to execute the rung. A programmable logic controller comprising: a non-execution flag storage unit; and a flag correction unit that corrects the execution / non-execution flag stored in the rung execution / non-execution flag storage unit as necessary.
には、 各ラングごとにラング先頭アドレスを格納しており、 前記ラングの実行を開始するときは、前記ラング先頭ア
ドレスに指示された命令から実行することを特徴とする
請求項1記載のプログラマブルロジックコントローラ。2. The rung execution / non-execution flag storage means stores a rung start address for each rung. When execution of the rung is started, an instruction specified by the rung start address is executed. 2. The programmable logic controller according to claim 1, wherein said controller is executed.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP4513498A JPH11242509A (en) | 1998-02-26 | 1998-02-26 | Programmable logic controller |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP4513498A JPH11242509A (en) | 1998-02-26 | 1998-02-26 | Programmable logic controller |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH11242509A true JPH11242509A (en) | 1999-09-07 |
Family
ID=12710817
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP4513498A Withdrawn JPH11242509A (en) | 1998-02-26 | 1998-02-26 | Programmable logic controller |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH11242509A (en) |
Cited By (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| EP1662347A1 (en) * | 2004-11-30 | 2006-05-31 | Air Products and Chemicals, Inc. | Method and apparatus for utilizing a sequence interpreter approach to control logic of a programmable logic controller |
| JP2008033916A (en) * | 2006-06-27 | 2008-02-14 | Omron Corp | Programmable controller |
| WO2008136407A1 (en) * | 2007-04-26 | 2008-11-13 | Kabushiki Kaisha Toshiba | Debug system for diagram of orogrammable controller, its programming device and its program |
| JP2012043215A (en) * | 2010-08-19 | 2012-03-01 | Fuji Electric Co Ltd | Debugging method |
| WO2015170382A1 (en) * | 2014-05-08 | 2015-11-12 | 三菱電機株式会社 | Engineering tool, program editing device, and program editing system |
| WO2016135835A1 (en) * | 2015-02-23 | 2016-09-01 | 三菱電機株式会社 | Control device and control system |
-
1998
- 1998-02-26 JP JP4513498A patent/JPH11242509A/en not_active Withdrawn
Cited By (12)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| EP1662347A1 (en) * | 2004-11-30 | 2006-05-31 | Air Products and Chemicals, Inc. | Method and apparatus for utilizing a sequence interpreter approach to control logic of a programmable logic controller |
| US7272453B2 (en) | 2004-11-30 | 2007-09-18 | Air Products And Chemicals, Inc. | Method and apparatus for utilizing a sequence interpreter approach to control logic of a programmable logic controller |
| JP2008033916A (en) * | 2006-06-27 | 2008-02-14 | Omron Corp | Programmable controller |
| WO2008136407A1 (en) * | 2007-04-26 | 2008-11-13 | Kabushiki Kaisha Toshiba | Debug system for diagram of orogrammable controller, its programming device and its program |
| JP2012043215A (en) * | 2010-08-19 | 2012-03-01 | Fuji Electric Co Ltd | Debugging method |
| WO2015170382A1 (en) * | 2014-05-08 | 2015-11-12 | 三菱電機株式会社 | Engineering tool, program editing device, and program editing system |
| KR20160014098A (en) * | 2014-05-08 | 2016-02-05 | 미쓰비시덴키 가부시키가이샤 | Engineering tool, program editing device, and program editing system |
| JP5859173B1 (en) * | 2014-05-08 | 2016-02-10 | 三菱電機株式会社 | Engineering tool, program editing device, and program editing system |
| US9727442B2 (en) | 2014-05-08 | 2017-08-08 | Mitsubishi Electric Corporation | Engineering tool, program editing device, and program editing system |
| WO2016135835A1 (en) * | 2015-02-23 | 2016-09-01 | 三菱電機株式会社 | Control device and control system |
| CN107407920A (en) * | 2015-02-23 | 2017-11-28 | 三菱电机株式会社 | Control device and control system |
| CN107407920B (en) * | 2015-02-23 | 2019-05-17 | 三菱电机株式会社 | Control device and control system |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPH11242509A (en) | Programmable logic controller | |
| JPS63250702A (en) | sequence controller | |
| US7296270B2 (en) | Method and control unit for controlling technical procedures in a motor vehicle | |
| US4907190A (en) | Computer control system and method for effecting sequence controls and servo-controls | |
| JPH06259115A (en) | Programmable controller | |
| JP2704117B2 (en) | Simulator | |
| JP2581019B2 (en) | How to debug sequence programs | |
| JP2002157143A (en) | Debug support system for integrated circuit test program | |
| JPH11232091A (en) | Data processing method and device and information storage medium | |
| JP3114907B2 (en) | How to change the sequence program of the programmable controller | |
| JP2621631B2 (en) | Programmable controller | |
| JPH03233703A (en) | Sequence controller | |
| JPH0318941A (en) | Program debugging system | |
| JPH03139703A (en) | Timer instruction processing system of programmable controller | |
| JPS61208126A (en) | Control system for execution of program to be tested | |
| JP2005128773A (en) | Microprocessor and compiling method | |
| JP5564854B2 (en) | Control device | |
| JPH05241889A (en) | Step execution system of machine instruction | |
| KR100218696B1 (en) | Programmable logic controller with traceback of program execution path | |
| JPH03278103A (en) | Programming device of programmable controller | |
| JP2002132308A (en) | User register protection method | |
| JPH04135234A (en) | Program control system | |
| JPH07230306A (en) | Program Branch Control Method for Programmable Controller | |
| JPH03290739A (en) | Dynamic analysis system for program | |
| JP2000259209A (en) | Ladder program execution system |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A300 | Withdrawal of application because of no request for examination |
Free format text: JAPANESE INTERMEDIATE CODE: A300 Effective date: 20050510 |