JPH06250708A - Method for checking sequence program of programming device - Google Patents

Method for checking sequence program of programming device

Info

Publication number
JPH06250708A
JPH06250708A JP5038241A JP3824193A JPH06250708A JP H06250708 A JPH06250708 A JP H06250708A JP 5038241 A JP5038241 A JP 5038241A JP 3824193 A JP3824193 A JP 3824193A JP H06250708 A JPH06250708 A JP H06250708A
Authority
JP
Japan
Prior art keywords
check
sequence program
program
programming device
sequence
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
JP5038241A
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 JP5038241A priority Critical patent/JPH06250708A/en
Publication of JPH06250708A publication Critical patent/JPH06250708A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)
  • Stored Programmes (AREA)
  • Programmable Controllers (AREA)

Abstract

(57)【要約】 【目的】 シーケンスプログラムのチェック処理を簡素
化し、処理時間を短縮する。 【構成】 ユーザはチェック項目の種類をキーボード1
3から指示し、この指示に応じてCPU10は指示チェ
ック項目のみのチェック処理をシーケンスプログラムに
対して施す。
(57) [Summary] [Purpose] To simplify the check processing of the sequence program and shorten the processing time. [Structure] The user can select the type of check items from the keyboard 1
3, and in response to this instruction, the CPU 10 performs a check process for only the instruction check item on the sequence program.

Description

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

【0001】[0001]

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

【0002】[0002]

【従来の技術】従来、プログラマブルコントローラはシ
ーケンスプログラムを演算実行して電子機器の自動制御
を行うことが知られている。シーケンスプログラムはプ
ログラマブルコントローラに接続されたプログラミング
装置により作成される。また、プログラマブルコントロ
ーラの運転中でもシーケンスプログラムの修正が可能と
なっている。シーケンスプログラムを作成する場合、ユ
ーザはキーボードからシーケンス命令を入力すると、こ
のシーケンス命令は表示器の表示画面に回路図の形態で
表示される。ユーザは表示画面を見ながら順次にシーケ
ンス命令を入力し、シーケンスプログラムを作成してゆ
く。このようにして入力されたシーケンス命令はプログ
ラミング装置内のユーザプログラムメモリに格納され
る。
2. Description of the Related Art Conventionally, it is known that a programmable controller arithmetically executes a sequence program to automatically control electronic equipment. The sequence program is created by a programming device connected to the programmable controller. The sequence program can be modified even while the programmable controller is operating. When creating a sequence program, when the user inputs a sequence command from the keyboard, the sequence command is displayed in the form of a circuit diagram on the display screen of the display. The user sequentially inputs sequence commands while looking at the display screen to create a sequence program. The sequence command thus input is stored in the user program memory in the programming device.

【0003】一方、プログラマブルコントローラが実行
しているシーケンスプログラムを修正する場合は、プロ
グラマブルコントローラからプログラミング装置に対し
てシーケンスプログラムを転送する。プログラミング装
置ではシーケンスプログラムをユ−ザプログラムメモリ
に一時格納すると共に、表示画面にシーケンスプログラ
ムを図形形態で表示する。以下、シーケンスプログラム
の作成時と同様に、シーケンスプログラムの命令の追
加、削除等の編集処理を行う。以上述べたシーケンスプ
ログラムの作成処理や修正処理の後、ユーザからの文法
チェックの指示に応じて、シーケンスプログラム内の全
てのプログラム命令についての文法チェックがプログラ
ミング装置上で行われる。この文法チェックはシーケン
ス命令が正しいフォーマットで記載されているか、プロ
グラム命令によっては隣接のプログラム命令と正しい接
続関係にあるか、二重出力の命令があるか等のいくつか
ののチェックを行うものである。文法チェック後のシー
ケンスプログラムはプログラマブルコントローラへ送ら
れる。
On the other hand, when modifying the sequence program executed by the programmable controller, the sequence program is transferred from the programmable controller to the programming device. In the programming device, the sequence program is temporarily stored in the user program memory, and the sequence program is displayed in a graphic form on the display screen. Thereafter, as in the case of creating the sequence program, editing processing such as addition and deletion of the commands of the sequence program is performed. After the above-described sequence program creating process and correction process, the grammar check for all program instructions in the sequence program is performed on the programming device in response to a grammar check instruction from the user. This grammar check performs some checks such as whether the sequence command is written in the correct format, some program commands have the correct connection relationship with the adjacent program command, and whether there is a dual output command. is there. The sequence program after the syntax check is sent to the programmable controller.

【0004】また、作成/修正したシーケンスプログラ
ムをフロッピーディスクに保存記憶しておきフロッピー
ディスクのシーケンスプログラムをプログラミング装置
上に読み出して、修正を施し、新規のシーケンスプログ
ラムを作成することも可能である。
It is also possible to store the created / corrected sequence program in a floppy disk, read the sequence program of the floppy disk on the programming device, and modify it to create a new sequence program.

【0005】[0005]

【発明が解決しようとする課題】従来ではシーケンスプ
ログラムに対するチェックの指示をユーザが行った場
合、プログラミング装置はシーケンスプログラム上の全
てのシーケンス命令をチェック対象にしている。たった
1つのシーケンス命令を変更した場合にも、プログラム
チェックに時間がかかるとういう不具合が生じる。この
ため、シーケンスプログラム上のチェックの範囲をユー
ザが指示するようにしたプログラムチェック方法も提案
されているが、この提案には、チェック箇所が不連続で
多数存在する場合は、その範囲指定の操作が煩雑である
という点においてなお改善の余地があった。
Conventionally, when a user gives a check instruction to a sequence program, the programming device targets all sequence instructions on the sequence program. Even if only one sequence instruction is changed, there is a problem that the program check takes time. For this reason, a program check method has been proposed in which the user specifies the range of checks on the sequence program. However, in this proposal, if a large number of check points are discontinuous, an operation for specifying the range is performed. There is still room for improvement in that it is complicated.

【0006】そこで、本発明の目的は、上述の点に鑑み
て、特に修正シーケンスプログラムのチェックに好適
で、ユーザの指示操作を簡素化することの可能なプログ
ラミング装置のシーケンスプログラムの新規なチェック
方法を提供することにある。
Therefore, in view of the above points, an object of the present invention is particularly suitable for checking a modified sequence program, and a novel method for checking a sequence program of a programming device capable of simplifying a user's instruction operation. To provide.

【0007】[0007]

【課題を解決するための手段】このような目的を達成す
るために、本発明は、作成のシーケンスプログラムに対
して複数種のチェック処理を実行するプログラミング装
置のシーケンスプログラムのチェック方法において、前
記プログラミング装置に対してチェック処理の種類内容
を指示し、当該プログラミング装置は指示された種類内
容のチェック処理を前記複数種のチェック処理の中から
選択的に実行することを特徴とする。
In order to achieve such an object, the present invention provides a sequence program check method of a programming device for executing a plurality of types of check processing for a created sequence program, in which the programming is performed. It is characterized in that the type of check processing is instructed to the apparatus, and the programming apparatus selectively executes the check processing of the instructed type of content from the plurality of types of check processing.

【0008】[0008]

【作用】本発明では、チェック処理をその種類に対応さ
せて指示し、実行することで、不必要なチェック処理を
なくし、チェック処理全体の処理時間を短縮する。
According to the present invention, unnecessary check processing is eliminated by instructing and executing the check processing corresponding to the type, and the processing time of the entire check processing is shortened.

【0009】[0009]

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

【0010】本発明の説明に先だって、プログラミング
装置について説明しておく。図2はプログラミング装置
の回路構成を示す。
Prior to describing the present invention, a programming device will be described. FIG. 2 shows the circuit configuration of the programming device.

【0011】図2において、中央演算処理装置(CP
U)10はシステムメモリ11内のシステムプログラム
に従ってシーケンスプログラムの作成、編集処理を行
う。システムメモリ11内には、シーケンスプログラム
の作成のためのシステムプログラムの他、本発明に係る
チェック用のプログラムを格納するプログラム領域と、
CPU10に対する入出力情報を格納するワーク領域が
設けられている。ワーク領域にはキーボード13から入
力された変更すべきプログラム命令や本発明に係るフラ
グ情報等が一時的に格納される。このフラグ情報はチェ
ック項目毎にチェックを実行するか否かを1/0のオン
/オフ形態で示す(図3参照)。
In FIG. 2, a central processing unit (CP
U) 10 creates and edits a sequence program according to the system program in the system memory 11. In the system memory 11, in addition to a system program for creating a sequence program, a program area for storing a check program according to the present invention,
A work area for storing input / output information for the CPU 10 is provided. In the work area, program instructions to be changed input from the keyboard 13 and flag information according to the present invention are temporarily stored. This flag information indicates whether or not to execute the check for each check item in the 1/0 ON / OFF mode (see FIG. 3).

【0012】ユーザプログラムメモリ12上でシーケン
スプログラムの作成、編集が行われる。キーボード13
からはCPU10に対する動作指示およびプログラム編
集内容が入力される。作成、編集途中のシーケンスプロ
グラムは表示器15に表示される。作成、修正後のシー
ケンスプログラムはI/O14を介してプログラマブル
コントローラに転送される。表示器15はCPU10の
指示する情報を表示する。
A sequence program is created and edited on the user program memory 12. Keyboard 13
The operation instruction and the program editing content for the CPU 10 are input from. The sequence program being created or edited is displayed on the display unit 15. The created and modified sequence program is transferred to the programmable controller via the I / O 14. The display 15 displays the information instructed by the CPU 10.

【0013】このような構成において実行されるプログ
ラムチェック処理を説明する。
The program check processing executed in such a configuration will be described.

【0014】シーケンスプログラムの作成後、ユーザは
キーボード13から作成プログラムのチェックを指示す
る。この指示に応じてCPU10は図4の制御手順を実
行する。CPU10はまず、上記ワーク領域のフラグ情
報をすべて0に初期化する。続いて、CPU10は図1
に示すようなメニューを表示器15に表示させる。この
表示を見てユーザはキーボード13から各チェック項目
毎のチェックの要否を指示する(S10)。ユーザのチ
ェック項目の選択後(S20)、CPU10はこの指示
に対応させて、ワーク領域のフラグ情報を1/0に設定
する(S30)。
After creating the sequence program, the user instructs the keyboard 13 to check the created program. In response to this instruction, the CPU 10 executes the control procedure of FIG. First, the CPU 10 initializes all the flag information of the work area to 0. Then, the CPU 10 is shown in FIG.
The display 15 displays a menu as shown in FIG. Seeing this display, the user instructs the necessity of checking for each check item from the keyboard 13 (S10). After the user selects a check item (S20), the CPU 10 sets the flag information of the work area to 1/0 in response to this instruction (S30).

【0015】CPU10は、実行、要のチェック項目に
必要な初期情報やテーブルの格納領域をシステムメモリ
11内のワーク領域上に確保する(S40)。このよう
な初期処理の後、CPU10はユーザプログラムメモリ
12のシーケンスプログラムのチェックを開始する。よ
り具体的には、CPU10はシーケンスプログラムの先
頭から順次にシーケンス命令を読み出し、実行を指示さ
れたチェックを行う(S50〜S60)。このとき、C
PU10はワーク領域のフラグ情報を確認し、フラグオ
ンのチェックを実行する(図5のS100〜S12
5)。チェック処理においてエラーが検出されると、C
PU10はエラー内容を表示器15の表示画面に表示す
る(S70〜S75)。このようにしてシーケンスプロ
グラム上の全てのシーケンス命令に対して選択チェック
処理を実行するとCPU10は図4の制御手順を終了
し、チェック処理を終了させる。
The CPU 10 secures a storage area for initial information and tables required for execution and check items required in the work area in the system memory 11 (S40). After such initial processing, the CPU 10 starts checking the sequence program in the user program memory 12. More specifically, the CPU 10 sequentially reads the sequence commands from the beginning of the sequence program and performs the check instructed to be executed (S50 to S60). At this time, C
The PU 10 confirms the flag information of the work area and executes the flag-on check (S100 to S12 in FIG. 5).
5). If an error is detected in the check processing, C
The PU 10 displays the error content on the display screen of the display device 15 (S70 to S75). When the selection check process is executed for all the sequence instructions on the sequence program in this way, the CPU 10 ends the control procedure of FIG. 4 and ends the check process.

【0016】以上説明したように、本実施例では、チェ
ック項目を選択できるので、次のようなチェック指示を
行うことができる。例えば、まったく新しいシーケンス
プログラムを作成したときにはあらゆるエラーを含むの
で、全てのチェック項目を選択する。また、作成済みの
シーケンスプログラムを一部修正した場合は、修正命令
に関連するチェック項目のみを選択する。したっがっ
て、プログラミング装置は従来のように不必要なチェッ
ク処理を実行しなくて良くチェック処理に要する時間が
短縮される。
As described above, in this embodiment, since the check items can be selected, the following check instruction can be given. For example, when creating a completely new sequence program, all errors are included, so select all check items. Further, when the created sequence program is partially modified, only the check items related to the modification instruction are selected. Therefore, the programming device does not need to execute unnecessary check processing as in the conventional case, and the time required for the check processing is shortened.

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

【0018】1)本実施例では、ユーザのチェック処理
の起動の指示に応じてチェック項目を選択していたが、
チェック項目の選択を予め実行しておくこともできる。
この場合は、電源投入時に図4のS10〜S30の処理
手順をCPU10に実行させ、フラグ情報を作成してお
く。ユーザからチェック処理の起動が指示があったとき
には、フラグ情報を表示し、ユーザの確認を取った後、
図4のS40〜S80の手順で選択チェック処理を行
う。
1) In this embodiment, the check item is selected according to the user's instruction to start the check process.
It is also possible to select the check items in advance.
In this case, when the power is turned on, the CPU 10 is caused to execute the processing procedure of S10 to S30 of FIG. 4 to create the flag information. When the user gives an instruction to start the check process, the flag information is displayed and after confirming the user,
The selection check process is performed in the procedure of S40 to S80 in FIG.

【0019】2)図1のメニュー画面に従来から知られ
ているチェック範囲指定モード、全チェック項目指定モ
ードを追加しておくと、チェック内容に応じてユーザ
は、好適なチェック処理を選択できる。
2) By adding the conventionally known check range designation mode and all-check item designation mode to the menu screen of FIG. 1, the user can select a suitable check process according to the check content.

【0020】3)選択のチェック項目を示すフラグ情報
をシーケンスプログラムに帯同させておくともできる。
この場合はシーケンスプログラム中のコメント領域に上
記フラグ情報を記載する。そして、チェックの指示を受
けたときに、シーケンスプログラム上のフラグ情報をC
PU10により読み出し、表示して、新たなチェック選
択項目の指示をユーザから受ける。この表示によりユー
ザは修正対象のシーケンスプログラムのチェックの履歴
を知ることができる。
3) The flag information indicating the check items for selection may be added to the sequence program.
In this case, the flag information is described in the comment area in the sequence program. When the check instruction is received, the flag information on the sequence program is changed to C
The PU 10 reads out and displays, and receives an instruction of a new check selection item from the user. This display allows the user to know the history of checking the sequence program to be modified.

【0021】[0021]

【発明の効果】以上、説明したように、本発明によれ
ば、ユーザは必要なチェック項目のみを指定すれば良い
ので、指示操作が簡単であり、また処理時間も短縮化さ
れる。
As described above, according to the present invention, since the user only needs to specify the necessary check items, the pointing operation is simple and the processing time is shortened.

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

【図1】本発明実施例の表示例を示す説明図である。FIG. 1 is an explanatory diagram showing a display example of an embodiment of the present invention.

【図2】本発明実施例のプログラミング装置の回路構成
を示すブロック図である。
FIG. 2 is a block diagram showing a circuit configuration of a programming device according to an embodiment of the present invention.

【図3】フラグ情報の内容を示す説明図である。FIG. 3 is an explanatory diagram showing contents of flag information.

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

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

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

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

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 作成のシーケンスプログラムに対して複
数種のチェック処理を実行するプログラミング装置のシ
ーケンスプログラムのチェック方法において、 前記プログラミング装置に対してチェック処理の種類内
容を指示し、 当該プログラミング装置は指示された種類内容のチェッ
ク処理を前記複数種のチェック処理の中から選択的に実
行することを特徴とするプログラミング装置のシーケン
スプログラムのチェック方法。
1. A method for checking a sequence program of a programming device that executes a plurality of types of check processes for a created sequence program, wherein a type of check process is instructed to the programming device, and the programming device is instructed. A method for checking a sequence program of a programming device, characterized in that the checking process of the specified kind contents is selectively executed from the plural kinds of checking processes.
JP5038241A 1993-02-26 1993-02-26 Method for checking sequence program of programming device Pending JPH06250708A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5038241A JPH06250708A (en) 1993-02-26 1993-02-26 Method for checking sequence program of programming device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5038241A JPH06250708A (en) 1993-02-26 1993-02-26 Method for checking sequence program of programming device

Publications (1)

Publication Number Publication Date
JPH06250708A true JPH06250708A (en) 1994-09-09

Family

ID=12519815

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5038241A Pending JPH06250708A (en) 1993-02-26 1993-02-26 Method for checking sequence program of programming device

Country Status (1)

Country Link
JP (1) JPH06250708A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013235372A (en) * 2012-05-08 2013-11-21 Jtekt Corp Confirmation device for sequence circuit

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013235372A (en) * 2012-05-08 2013-11-21 Jtekt Corp Confirmation device for sequence circuit

Similar Documents

Publication Publication Date Title
JP2526692B2 (en) Programmable controller programming method
JP2006119884A (en) Editing apparatus of sequence program
JPH06250708A (en) Method for checking sequence program of programming device
JP2002268711A (en) Programmable display unit and plotting program for the same and recording medium with its plotting program recorded
JP3143330B2 (en) Programmable controller
JPH08212361A (en) Graphic editing apparatus and graphic editing method
JPH11250037A (en) Content editing device and recording medium
JPH09160611A (en) Programmable controller
JPH0883172A (en) Software development support device
JPH05181510A (en) Picture display method for programming device in programmable controller
JP3114907B2 (en) How to change the sequence program of the programmable controller
JPH03265004A (en) Processing executing system based on set parameter
JP2668052B2 (en) Output control method for multiple types of plotter devices
JPH04367029A (en) Programming device for programmable controller
JPH0667864A (en) Method for automatically preparing/updating manual or the like
JP2669143B2 (en) Programmable controller programming device
JPS60175151A (en) Information processor
JPH036527B2 (en)
JPH03150603A (en) Set data preserving system
JPS61184637A (en) Data processing device
JPH0664541B2 (en) Command processor
JPH05165901A (en) Method and device for correcting progressive dimension
JP2005115693A (en) Sequence program conversion device
JPH04330503A (en) Programming device for programmable controller
JPS5927303A (en) Program correcting device