[go: up one dir, main page]

JPH06161516A - Checking method for sequence program - Google Patents

Checking method for sequence program

Info

Publication number
JPH06161516A
JPH06161516A JP30703392A JP30703392A JPH06161516A JP H06161516 A JPH06161516 A JP H06161516A JP 30703392 A JP30703392 A JP 30703392A JP 30703392 A JP30703392 A JP 30703392A JP H06161516 A JPH06161516 A JP H06161516A
Authority
JP
Japan
Prior art keywords
program
check
sequence program
model
programming device
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.)
Pending
Application number
JP30703392A
Other languages
Japanese (ja)
Inventor
Koji Fukushima
幸治 福島
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fuji Electric Co Ltd
Original Assignee
Fuji Electric Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Fuji Electric Co Ltd filed Critical Fuji Electric Co Ltd
Priority to JP30703392A priority Critical patent/JPH06161516A/en
Publication of JPH06161516A publication Critical patent/JPH06161516A/en
Pending legal-status Critical Current

Links

Landscapes

  • Programmable Controllers (AREA)

Abstract

(57)【要約】 【目的】 他機種で実行するシーケンスプログラムをプ
ログラミング装置でチェック可能とする。 【構成】 プログラムチェックに用いる基準データをプ
ログラマブルコントローラの機種に関連させてプログラ
ミング装置に格納しておき、プログラムチェック時に機
種を指定することにより上記基準データを選択する。
(57) [Summary] [Purpose] Allows the programming device to check the sequence programs executed by other models. [Structure] The reference data used for the program check is stored in a programming device in association with the model of the programmable controller, and the reference data is selected by designating the model during the program check.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、プログラマブルコント
ローラの実行するシーケンスプログラムを、プログラミ
ング装置においてチェックするシーケンスプログラムの
チェック方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a sequence program check method for checking a sequence program executed by a programmable controller in a programming device.

【0002】[0002]

【従来の技術】従来、プログラミング装置は、プログラ
マブルコントローラに実行させるシーケンスプログラム
を作成した時に、作成のプログラムをチェックする機能
を有している。このチェックとしては、プログラム命令
が正しいフォーマットで記載されているか否かを調べる
文法チェックや、シーケンス命令の中の同一の入出力命
令が2重使用されていないかのチェックならびに、入出
力命令で読み/書きされる入出力データの範囲チェック
などが知られている。
2. Description of the Related Art Conventionally, a programming device has a function of checking a created program when creating a sequence program to be executed by a programmable controller. This check includes a grammar check to check if the program command is written in the correct format, a check to see if the same I / O command in the sequence command is used twice, and a read with the I / O command. It is known to check the range of input / output data to be written.

【0003】[0003]

【発明が解決しようとする課題】プログラマブルコント
ローラは、取扱い可能な入出力データの点数や実行可能
なシーケンス命令が機種毎に異なる。このため、プログ
ラマブルコントローラの機種毎に、プログラミング装置
の実行するチェック内容も決定されてしまっていた。
In programmable controllers, the number of input / output data that can be handled and the sequence instructions that can be executed differ depending on the model. Therefore, the check contents to be executed by the programming device have been determined for each model of the programmable controller.

【0004】このため、従来のプログラミング装置で
は、他機種のプログラミング装置で作成されたシーケン
スプログラムをチェックした場合、データの範囲チェッ
ク等実行不可のチェック項目が生じる。
Therefore, in the conventional programming device, when a sequence program created by a programming device of another model is checked, a check item such as a data range check that cannot be executed occurs.

【0005】このような状態から、ユーザからは他機種
で作成したシーケンスプログラムのチェックもプログラ
ミング装置でできるようにという要望が強まっている。
From such a state, there is an increasing demand from the user that the programming device can check the sequence program created by another model.

【0006】そこで、本発明は、上述の点に鑑みて、各
種のプログラムチェックを汎用的に実行できるシーケン
スプログラムのチェック方法を提供することを目的とす
る。
Therefore, in view of the above points, an object of the present invention is to provide a method for checking a sequence program, which can execute various program checks in a general-purpose manner.

【0007】[0007]

【課題を解決するための手段】このような目的を達成す
るために、請求項1の発明は、シーケンスプログラムの
中で記載するデータ識別名について使用可能な範囲を示
す範囲情報をプログラマブルコントローラの機種に関連
させて予めプログラミング装置内に記憶しておき、該プ
ログラミング装置によるシーケンスプログラムのプログ
ラムチェックに際し、チェック対象のシーケンスプログ
ラムを用いるプログラマブルコントローラの機種を前記
プログラミング装置に対して指示し、前記プログラミン
グ装置は、当該指示された機種に対応の前記範囲情報を
用いてデータ識別名の範囲チェックを行なうことを特徴
とする。
In order to achieve such an object, the invention of claim 1 provides the range information indicating the usable range of the data identification name described in the sequence program to the model of the programmable controller. Stored in the programming device in advance in association with the above, when instructing the program check of the sequence program by the programming device, instructing the programming device the model of the programmable controller that uses the sequence program to be checked, the programming device The range of the data identification name is checked using the range information corresponding to the instructed model.

【0008】請求項2の発明は、シーケンスプログラム
の中で記載するプログラム命令の種類と当該プログラム
命令を実行可能なプログラマブルコントローラの機種を
示す情報とを互いに関連させて、プログラミング装置内
に予め記憶しておき、該プログラミング装置によるシー
ケンスプログラムのチェックに際し、チェック対象のシ
ーケンスプログラムを用いるプログラマブルコントロー
ラの機種を前記プログラミング装置に対して指示し、前
記プログラミング装置は、当該指示された機種に対応の
前記情報を用いて前記チェック対象のシーケンスプログ
ラムの中の実行不可のプログラム命令を検出することを
特徴とする。
According to a second aspect of the present invention, the type of the program command described in the sequence program and the information indicating the model of the programmable controller capable of executing the program command are stored in advance in the programming device in association with each other. When the sequence program is checked by the programming device, the model of the programmable controller that uses the sequence program to be checked is instructed to the programming device, and the programming device outputs the information corresponding to the instructed model. It is characterized in that an unexecutable program instruction in the check target sequence program is detected by using.

【0009】[0009]

【作用】本発明では、プログラマブルコントローラの機
種が異っても、プログラムチェック項目は変わらないこ
とに着目し、データ名範囲長や使用可のプログラム名な
どのチェックに用いる基準データを機種に関連させてプ
ログラミング装置に記憶させておく。プログラムチェッ
ク時にはチェック対象のシーケンスプログラムに対応の
機種を指定することでプログラムチェックに用いる基準
データを選択する。
In the present invention, paying attention to the fact that the program check items do not change even if the model of the programmable controller is different, the reference data used for checking the data name range length and usable program names are related to the model. It is stored in the programming device. At the time of program check, the reference data used for the program check is selected by specifying the model corresponding to the sequence program to be checked.

【0010】[0010]

【実施例】以下、図面を参照して本発明の実施例を詳細
に説明する。
Embodiments of the present invention will now be described in detail with reference to the drawings.

【0011】本発明の説明に先立って、本発明を適用し
たプログラミング装置を図3に基き説明する。図3はプ
ログラミング装置の主要回路構成を示す。図3におい
て、中央演算処理装置(CPU)10はシステムプログ
ラムメモリ11に格納されたプログラムを選択的に実行
することにより、システム全体の制御、シーケンスプロ
グラム作成・編集処理および本発明に関わるシーケンス
プログラムチェック処理を行なう。
Prior to the description of the present invention, a programming device to which the present invention is applied will be described with reference to FIG. FIG. 3 shows the main circuit configuration of the programming device. In FIG. 3, a central processing unit (CPU) 10 selectively executes a program stored in a system program memory 11 to control the entire system, create / edit a sequence program, and check a sequence program related to the present invention. Perform processing.

【0012】システムプログラムメモリ11内には上述
の処理を実行するためのシステムプログラムの他、シー
ケンスプログラムチェック処理に用いるデータ範囲チェ
ックテーブル11A,命令チェックテーブル11Bが格
納されている。
In the system program memory 11, a data range check table 11A and an instruction check table 11B used for the sequence program check process are stored in addition to the system program for executing the above process.

【0013】ユーザプログラムメモリ12には作成され
たユーザプログラム(シーケンスプログラム)が格納さ
れる。
The user program memory 12 stores the created user program (sequence program).

【0014】ワークメモリ13はCPU10に対する演
算用入出力データを一時記憶する。表示器14は、シー
ケンスプログラムの異常内容の表示に用いられる。キー
ボード15はCPU10に対する指示等の各種情報入力
に用いられる。
The work memory 13 temporarily stores calculation input / output data for the CPU 10. The display 14 is used to display the abnormality content of the sequence program. The keyboard 15 is used to input various information such as instructions to the CPU 10.

【0015】シーケンスプログラムのチェックに用いる
データ領域範囲チェックテーブル11Aの内容の一例を
図1に示す。
FIG. 1 shows an example of the contents of the data area range check table 11A used for checking the sequence program.

【0016】プログラマブルコントローラの取扱うデー
タはその種類毎に識別名が与えられ、この識別名の使用
範囲が限定されている。また、この識別名がデータの記
憶アドレスと対応している。
An identification name is given to each type of data handled by the programmable controller, and the use range of this identification name is limited. Further, this identification name corresponds to the storage address of the data.

【0017】データ領域範囲チェックテーブル11Aは
この識別名について使用可能な範囲を示す範囲情報すな
わち、上限値および下限値をプログラマブルコントロー
ラの機種毎にまとめ、記載したものである。
The data area range check table 11A is a table in which range information indicating the usable range of the identification name, that is, the upper limit value and the lower limit value are summarized and described for each model of the programmable controller.

【0018】命令チェックテーブル11Bは、プログラ
ム命令を実行可能なプログラマブルコントローラの機種
を、プログラム命令毎に示すテーブルである。このテー
ブルは図2に示すように機種とプログラム命令の種類と
で2次元空間を形成しており、使用の可否を0/1のビ
ット値で表している。
The instruction check table 11B is a table showing, for each program instruction, the model of the programmable controller capable of executing the program instruction. As shown in FIG. 2, this table forms a two-dimensional space by the model and the type of program instruction, and the availability of use is represented by a bit value of 0/1.

【0019】このようなテーブルを用いて図3のCPU
10が実行するデータ範囲チェックおよびプログラム命
令の使用可否チェックを図4を参照して説明する。図4
は、上述のチェック処理手順を示すフローチャートであ
り、このチェック処理手順はCPU10の実行可能なプ
ログラム言語で記載され、システムプログラム11内に
予め格納されている。
The CPU of FIG. 3 is constructed using such a table.
The data range check and the program instruction availability check executed by 10 will be described with reference to FIG. Figure 4
3 is a flowchart showing the above-mentioned check processing procedure, which is described in a program language executable by the CPU 10 and stored in advance in the system program 11.

【0020】プログラムチェックの実行がキーボード1
5から指示入力されると、CPU10は図4の制御手順
を読出し、実行する。まず、CPU10はキーボード1
4からの機種情報の入力を待つ(図4のS10→S20
のループ処理)。
The keyboard 1 is used to execute the program check.
When an instruction is input from 5, the CPU 10 reads out and executes the control procedure of FIG. First, the CPU 10 is the keyboard 1
Wait for model information input from S4 (S10 → S20 in FIG. 4)
Loop processing).

【0021】シーケンスプログラムを使用するプログラ
マブルコントローラのたとえば機種Aを示す機種情報が
キーボード15から指示入力されると、CPU10は、
データ領域範囲チェックテーブル11Aおよび命令チェ
ックテーブル11Bの中の機種Aに関する情報群(図1
参照)をシステムプログラムメモリ11から読出し、ワ
ークメモリ13上に記憶する(図4のS30)。以下、
ワークメモリ13上の情報群をデータ領域ファイル,命
令チェックファイルと呼ぶことにする。
When model information indicating, for example, model A of a programmable controller using a sequence program is input from the keyboard 15, the CPU 10
Information group regarding model A in the data area range check table 11A and the instruction check table 11B (see FIG. 1).
Reference) is read from the system program memory 11 and stored in the work memory 13 (S30 in FIG. 4). Less than,
The information group on the work memory 13 is called a data area file and an instruction check file.

【0022】CPU10は、ユーザプログラムメモリ1
2に格納されたシーケンスプログラムの先頭からプログ
ラム命令を順次に読出し(図4のS40)、S50〜S
80の間でプログラムチェック処理を行なう。
The CPU 10 is a user program memory 1
Program instructions are sequentially read from the beginning of the sequence program stored in No. 2 (S40 in FIG. 4), and S50 to S50.
Program check processing is performed between 80.

【0023】CPU10は、まず、読出したシーケンス
プログラム命令が機種Aにおいて使用可であるか否かを
命令チェックファイルを参照して判定する(図4のS5
0→S60)。より具体的には、命令チェックファイル
の中の、上記読出したシーケンスプログラム命令と一致
する命令を探し、次に、一致する命令についてのビット
値を調べる。ここで、命令チェックファイルの中に一致
の命令が無い場合および、一致の命令があってもビット
値が0となっている場合は、読出した命令は使用不可と
判定され、表示器14にその旨のエラー表示がなされる
(図4のS60→S65)。
First, the CPU 10 determines whether or not the read sequence program command can be used in the model A by referring to the command check file (S5 in FIG. 4).
0 → S60). More specifically, the instruction check file is searched for an instruction that matches the read sequence program instruction, and then the bit value of the matching instruction is checked. Here, if there is no matching instruction in the instruction check file, or if there is a matching instruction but the bit value is 0, it is determined that the read instruction is unusable and An error display to that effect is displayed (S60 → S65 in FIG. 4).

【0024】読出したシーケンスプログラム命令が使用
可と判定された場合は、シーケンスプログラム命令の中
で用いられているデータ識別名の範囲が許容範囲にある
か否かのチェックが、次に行なわれる(図4のS70→
S80)。
When it is determined that the read sequence program command is usable, it is next checked whether or not the range of the data identification name used in the sequence program command is within the allowable range ( S70 of FIG. 4 →
S80).

【0025】より具体的には、CPU10は、シーケン
スプログラム命令の中で用いられているデータ識別名と
同様の種類の上限値および下限値をデータ領域ファイル
の中から読出し、上記データ識別名が上限値と下限値と
の間にあることで、データ範囲の正常を確認する。
More specifically, the CPU 10 reads the upper limit value and the lower limit value of the same kind as the data identification name used in the sequence program instruction from the data area file, and the data identification name has the upper limit. Check that the data range is normal by being between the value and the lower limit.

【0026】データ範囲の異常が検出された場合は、そ
の旨のエラー表示が表示器14においてなされる(図4
のS85)。以下、シーケンスプログラムの終了まで、
順次に、シーケンスプログラム命令について上述のチェ
ック処理が繰り返し実行される(図4のS50→S90
のループ処理)。
When an abnormality in the data range is detected, an error display to that effect is displayed on the display 14 (FIG. 4).
S85). Below, until the end of the sequence program,
The above-described check process is sequentially and repeatedly executed for sequence program instructions (S50 → S90 in FIG. 4).
Loop processing).

【0027】以上、説明したように、本実施例では、他
機種について実行可能なプログラム命令や、そのプログ
ラム命令で用いられるデータ名の許容範囲を示す情報を
各機種対応のプログラミング装置に共通記憶しておくこ
とで、機種に関係なくプログラミング装置を汎用的に用
いることができる。また、本実施例では、指定機種のプ
ログラマブルコントローラにおいて使用(実行)可と判
定されたプログラム命令のみが、データ名範囲チェック
の対象となるので、不要なプログラムチェック処理が行
なわれることはない。さらに、システムプログラムメモ
リ11の中に格納されたテーブル情報の中から指定機種
関連の情報をワークメモリ13上に抽出して、プログラ
ムチェックに用いるので、指定機種以外の情報はCPU
10の検索の対象とはならず、チェック処理が短くて済
む。
As described above, in the present embodiment, the program instructions executable for other models and the information indicating the allowable range of the data name used in the program instructions are commonly stored in the programming device corresponding to each model. Therefore, the programming device can be used universally regardless of the model. Further, in the present embodiment, only the program instruction which is determined to be usable (executable) in the programmable controller of the designated model is subject to the data name range check, so that unnecessary program check processing is not performed. Further, since the information related to the designated model is extracted from the table information stored in the system program memory 11 into the work memory 13 and used for the program check, the information other than the designated model is stored in the CPU.
It is not a target of the search of 10 and the check process is short.

【0028】本実施例の他に次の例を実現できる。In addition to this embodiment, the following example can be realized.

【0029】1)本実施例ではチェック項目毎に、チェ
ックに用いる情報をテーブル形態にまとめているが、機
種をキーにして一つのデータベースにまとめてもよい。
1) In this embodiment, the information used for checking is collected in a table form for each check item, but it may be collected in one database using the model as a key.

【0030】[0030]

【発明の効果】以上、説明したように、本実施例では複
数種のプログラマブルコントローラで実行するシーケン
スプログラムについてのプログラムチェックが可能とな
るので、一台のプログラミング装置を複数種のプログラ
マブルコントローラに共通使用できるという効果が得ら
れる。
As described above, in the present embodiment, since it is possible to check the program for the sequence program executed by a plurality of types of programmable controllers, one programming device is commonly used for a plurality of types of programmable controllers. The effect of being able to be obtained is obtained.

【図面の簡単な説明】[Brief description of drawings]

【図1】データ領域範囲チェックテーブルの内容を示す
説明図である。
FIG. 1 is an explanatory diagram showing the contents of a data area range check table.

【図2】命令チェックテーブルの内容を示す説明図であ
る。
FIG. 2 is an explanatory diagram showing the contents of an instruction check table.

【図3】プログラミング装置の主要回路構成を示すブロ
ック図である。
FIG. 3 is a block diagram showing a main circuit configuration of a programming device.

【図4】図3のCPU10が実行する処理手順を示すフ
ローチャートである。
FIG. 4 is a flowchart showing a processing procedure executed by the CPU 10 of FIG.

【符号の説明】[Explanation of symbols]

10 CPU 11 システムプログラムメモリ 12 ユーザプログラムメモリ 12 ワークメモリ 14 表示器 15 キーボード 10 CPU 11 System Program Memory 12 User Program Memory 12 Work Memory 14 Display 15 Keyboard

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 シーケンスプログラムの中で記載するデ
ータ識別名について使用可能な範囲を示す範囲情報をプ
ログラマブルコントローラの機種に関連させて予めプロ
グラミング装置内に記憶しておき、 該プログラミング装置によるシーケンスプログラムのプ
ログラムチェックに際し、チェック対象のシーケンスプ
ログラムを用いるプログラマブルコントローラの機種を
前記プログラミング装置に対して指示し、 前記プログラミング装置は、当該指示された機種に対応
の前記範囲情報を用いてデータ識別名の範囲チェックを
行なうことを特徴とするシーケンスプログラムのチェッ
ク方法。
1. A range information indicating a usable range of a data identification name described in a sequence program is stored in advance in a programming device in association with a model of a programmable controller, and the sequence program of the programming device is stored. At the time of the program check, the programming device is instructed to the model of the programmable controller that uses the sequence program to be checked, and the programming device uses the range information corresponding to the instructed model to check the range of the data identifier. A method of checking a sequence program, characterized by performing
【請求項2】 シーケンスプログラムの中で記載するプ
ログラム命令の種類と当該プログラム命令を実行可能な
プログラマブルコントローラの機種を示す情報とを互い
に関連させて、プログラミング装置内に予め記憶してお
き、 該プログラミング装置によるシーケンスプログラムのチ
ェックに際し、チェック対象のシーケンスプログラムを
用いるプログラマブルコントローラの機種を前記プログ
ラミング装置に対して指示し、 前記プログラミング装置は、当該指示された機種に対応
の前記情報を用いて前記チェック対象のシーケンスプロ
グラムの中の実行不可のプログラム命令を検出すること
を特徴とするシーケンスプログラムのチェック方法。
2. A programming device, which stores the type of a program command described in a sequence program and information indicating a model of a programmable controller capable of executing the program command in association with each other in advance in the programming device, At the time of checking the sequence program by the device, the model of the programmable controller that uses the sequence program to be checked is instructed to the programming device, and the programming device uses the information corresponding to the instructed model to perform the check target. A method for checking a sequence program, characterized by detecting an unexecutable program instruction in the sequence program.
JP30703392A 1992-11-17 1992-11-17 Checking method for sequence program Pending JPH06161516A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP30703392A JPH06161516A (en) 1992-11-17 1992-11-17 Checking method for sequence program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP30703392A JPH06161516A (en) 1992-11-17 1992-11-17 Checking method for sequence program

Publications (1)

Publication Number Publication Date
JPH06161516A true JPH06161516A (en) 1994-06-07

Family

ID=17964232

Family Applications (1)

Application Number Title Priority Date Filing Date
JP30703392A Pending JPH06161516A (en) 1992-11-17 1992-11-17 Checking method for sequence program

Country Status (1)

Country Link
JP (1) JPH06161516A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014052673A (en) * 2012-09-04 2014-03-20 Keyence Corp Programmable controller, programming support device, and program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014052673A (en) * 2012-09-04 2014-03-20 Keyence Corp Programmable controller, programming support device, and program

Similar Documents

Publication Publication Date Title
JP2003241807A (en) Robot controller
JPH06161516A (en) Checking method for sequence program
JP3053265B2 (en) Screen display method when searching for sequence programs
JP2762665B2 (en) Blog programming device for programmable controller
JPH0887406A (en) Program display device
JPH04114207A (en) Work data preparing system for nc work machine
JP2977951B2 (en) Arithmetic unit
JPS61279906A (en) Programmable controller
JPH01236309A (en) Display device for numerical controller
JP2526710B2 (en) Programmable controller programming method
JPH01130234A (en) Fault search method
JPH07253876A (en) Program creation device
JPH0357020A (en) System processing program generating device
JPH0566934A (en) Programming device for programmable controller
JPH08161010A (en) Ladder sequence program computing device
JPH0784620A (en) Tool path information conversion processing method
JPH07168609A (en) Sequence program debugging method
JPH04238564A (en) File input/output system for command procedure
JPH05173832A (en) Trace control mechanism
JPH02171802A (en) programmable controller
JPS61202239A (en) Information processor
JPS62274303A (en) Sequence control method
JPH07281718A (en) How to create cross reference for sequence data
JPH06195249A (en) Name designation method
JPH04332003A (en) Programmable controller