JPH0212503A - Sequence program editing system - Google Patents

Sequence program editing system

Info

Publication number
JPH0212503A
JPH0212503A JP16383988A JP16383988A JPH0212503A JP H0212503 A JPH0212503 A JP H0212503A JP 16383988 A JP16383988 A JP 16383988A JP 16383988 A JP16383988 A JP 16383988A JP H0212503 A JPH0212503 A JP H0212503A
Authority
JP
Japan
Prior art keywords
address data
cursor
sequence program
change
new
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
JP16383988A
Other languages
Japanese (ja)
Inventor
Kunio Tanaka
久仁夫 田中
Yasuyuki Ino
泰行 伊野
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.)
Fanuc Corp
Original Assignee
Fanuc Corp
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 Fanuc Corp filed Critical Fanuc Corp
Priority to JP16383988A priority Critical patent/JPH0212503A/en
Publication of JPH0212503A publication Critical patent/JPH0212503A/en
Pending legal-status Critical Current

Links

Landscapes

  • Programmable Controllers (AREA)

Abstract

PURPOSE:To easily perform the change of plural pieces of address data by updating the address data in an edit buffer by allocating new address data stored in a memory on an element starting from the one equivalent to the position of a cursor sequentially. CONSTITUTION:It is assumed that four pieces of address data X0.0, X0.1, X0.2, and X0.3 are desired to change to new pieces of address data X6.0, X7.1, X8.0, and X10.2, respectively. To attain the above change, the new address data are stored in the memory of a program generator by performing key-in in sequence of X6.0, X7.1, X8.0, and X10.2 by using operating keys as leaving the cursor on a contact X0.0. Next, when an input key is depressed, the new data are allocated on the element starting from the one in the edit buffer equivalent to the position of the cursor, then, the address data in the edit buffer can be updated. In such a way, it is possible to easily change the plural data without necessitating the movement of the cursor at every operation.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はシーケンスプログラム編集方式に関し、特にP
C(プログラマブル・コントローラ)を用いたシーケン
ス制御のシーケンスプログラム編集方式に関する。
[Detailed Description of the Invention] [Field of Industrial Application] The present invention relates to a sequence program editing method, and in particular to a sequence program editing method.
This invention relates to a sequence program editing method for sequence control using C (programmable controller).

〔従来の技術〕[Conventional technology]

−aに、シーケンスプログラムを作成した後にデバッグ
が必要となることが多い、デバッグに際しては、表示装
置の表示画面上にラダー図形式のシーケンスプログラム
を表示させて、ネットの形を変更したり、論理的接点や
論理的コイルのアドレスデータを変更したりする。
-a, it is often necessary to debug after creating a sequence program. When debugging, display the sequence program in ladder diagram format on the display screen of the display device, change the shape of the net, and check the logic. Change address data of physical contacts and logical coils.

アドレスデータを変更する場合には、変更しようとする
接点もしくはコイルの表示位置へカーソルを移動させた
後に、新しいアドレスをプログラム作成装置からキーイ
ンしている。
When changing address data, the cursor is moved to the display position of the contact or coil to be changed, and then a new address is keyed in from the programming device.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

従来の技術においては、カーソルが現に指示している接
点やコイルのアドレスデータしか変更できなかった。従
って、横一列に並んでいる複数の接点のアドレスを変更
する場合にも、カーソル合わせとアドレスデータのキー
インとを所定の数だけ交互に繰り返さねばならなかった
。
In the conventional technology, only the address data of the contact or coil that the cursor is currently pointing to can be changed. Therefore, even when changing the addresses of a plurality of contacts arranged in a row, it is necessary to alternately repeat cursor alignment and key-in of address data a predetermined number of times.

オペレータは、これから入力しようとして記憶している
新しいアドレスデータを一刻も早くキーイン出来ること
が望ましい、複数のアドレスデータを記憶している場合
に、キーインが遅くなったり途中に余計な動作を要した
りすれば、誤ったデータを入力する可能性が大きくなる
。
It is desirable for the operator to be able to key in the new address data that he or she is about to enter as soon as possible.If multiple address data are stored, key-in may be delayed or require extra operations during the process. This increases the possibility of entering incorrect data.

本発明はこのような点に鑑みてなされたものであり、複
数のアドレスデータを容易に変更することのできるシー
ケンスプログラム編集方式を提供することを目的とする
。
The present invention has been made in view of these points, and it is an object of the present invention to provide a sequence program editing method that can easily change a plurality of address data.

〔課題を解決するための手段] 本発明では上記課題を解決するために、ラダー形式のシ
ーケンスプログラムの編集方式において、 表示画面上に表示させたラダー図のアドレスデータを変
更したい任意箇数の接点及びコイルのうちの最初の傍点
にカーソルを合わせることにより、カーソル位置に相当
するエディツトバッファ内のエレメントを選択するステ
ップと、 前記箇数の新しいアドレスデータをプログラム作成装置
からキーインしてメモリに記憶させるステップと、 前記メモリに記憶された前記新しいアドレスデータを前
記カーソル位置に相当する前記エレメントから順に割り
当てて、前記エディツトバッファ内のアドレスデータを
更新するステップと、を含むことを特徴とするシーケン
スプログラム編集方式、 が提供される。
[Means for Solving the Problems] In order to solve the above-mentioned problems, the present invention provides an editing method for a sequence program in a ladder format, in which an arbitrary number of contact points at which address data of a ladder diagram displayed on a display screen is desired to be changed are provided. and the step of selecting an element in the edit buffer corresponding to the cursor position by placing the cursor on the first neighboring point of the coil, and keying in the new address data of the above number from the programming device and storing it in the memory. and updating the address data in the edit buffer by allocating the new address data stored in the memory in order from the element corresponding to the cursor position. A program editing method is provided.

〔作用〕[Effect]

複数のアドレスデータを変更する場合であっても複数回
のカーソル移動を行う必要がな(、アドレスデータを変
更したい複数の接点及びコイルのうちの最初の接点にカ
ーソルを置いたままで複数箇所のアドレス変更ができる
。
Even when changing multiple address data, there is no need to move the cursor multiple times. Can be changed.

C実施例〕 以下、本発明の一実施例を図面に基づいて説明する。C Example] Hereinafter, one embodiment of the present invention will be described based on the drawings.

第1図に本発明を実施するためのプログラム作成装置と
PCとのハードウェアのブロック図を示す。図において
、1はプログラム作成装置であり1、表示処理のための
マイクロプロセッサ(図示せず)を内蔵している。2は
CRT表示装置の表示画面であり、シーケンスプログラ
ムが表示される。
FIG. 1 shows a hardware block diagram of a program creation device and a PC for implementing the present invention. In the figure, 1 is a program creation device 1, which has a built-in microprocessor (not shown) for display processing. 2 is a display screen of a CRT display device, on which a sequence program is displayed.

3はファンクションキーであり、複写、削除、変更等の
ファンクシランを指令する。4は操作キーである。
3 is a function key, which commands functions such as copying, deleting, and changing. 4 is an operation key.

10はPCであり、11はPC全体を制御するためのマ
イクロプロセッサである。12は入力回路であり、外部
からの信号を受け、信号レベルを変換してバスに転送す
る。13は出力回路であり、出力信号を外部へ出力する
。14はプログラム作成装置用のインタフェースである
。PCIOには、メモリとしてROM15とRAM16
とが内蔵されている。
10 is a PC, and 11 is a microprocessor for controlling the entire PC. An input circuit 12 receives a signal from the outside, converts the signal level, and transfers it to the bus. 13 is an output circuit, which outputs an output signal to the outside. 14 is an interface for the program creation device. PCIO has ROM15 and RAM16 as memory.
is built-in.

プログラム作成装置1は、通信回線18とインタフェー
ス14とを介してバス17に接続されている。RAM1
6はシーケンスプログラム19等を格納しており、RO
M15はシーケンスプログラムの実行処理を管理するた
めの管理プログラム20を格納している。
Program creation device 1 is connected to bus 17 via communication line 18 and interface 14 . RAM1
6 stores the sequence program 19 etc., and RO
M15 stores a management program 20 for managing sequence program execution processing.

シーケンスプログラムを編集するには、プログラム作成
装置1の表示画面2にラダー図を表示させ、ファンクシ
ョンキー3と操作キー4とを用いて追加、削除、変更等
を行い、編集の済んだシーケンスプログラムをRAM1
6に転送する。
To edit a sequence program, display a ladder diagram on the display screen 2 of the program creation device 1, use the function keys 3 and operation keys 4 to make additions, deletions, changes, etc., and then edit the edited sequence program. RAM1
Transfer to 6.

次に、ラダー図の例を示して本実施例を説明する。Next, this embodiment will be explained by showing an example of a ladder diagram.

第2図ないし第4図に、ラダー図を表示した表示画面2
の例を示す。第2図において、X000、Xo、1、X
O12、X093及びD300.0は論理的なリレー接
点であり、cioo、oは、論理的なリレーのコイルで
ある。接点X0.0の上にカーソルを置いた状態を示し
ている。いま、四つのアドレスデータX0.0、X01
1、XO12及びX013をそれぞれ、新しいアドレス
データX6.O,X7.1、X8.0及びX10.2に
変更したいものとする。それには、カーソルを接点X0
.0の上に置いたままで操作キー4からX6.O,X7
.1.X8.0; XIo、2とキーインする。
Display screen 2 showing the ladder diagram in Figures 2 to 4
Here is an example. In Figure 2, X000, Xo, 1, X
O12, X093 and D300.0 are logical relay contacts, and cioo,o is the logical relay coil. The figure shows a state in which the cursor is placed on contact point X0.0. Now, four address data X0.0, X01
1, XO12 and X013 respectively to new address data X6. Assume that you want to change to X7.1, X8.0, and X10.2. To do so, move the cursor to contact X0
.. 0, press operation keys 4 to X6. O,X7
.. 1. X8.0; Key in XIo, 2.

それにより、上記の新しいアドレスデータがプログラム
作成装置1のメモリに記憶される0次いで、入カキ−(
リターンキーに相当するキー)を押す、これにより、メ
モリに記憶されていた新しいアドレスデータが、カーソ
ル位置に相当するエディツトバッファ内のエレメントか
ら順に割り当てられて、エディツトバッファ内のアドレ
スデータを更新する。第3図に、このようにして変更し
たラダー図を表示する表示画面を示す。
As a result, the above new address data is stored in the memory of the program creation device 1.
key (corresponding to the return key), the new address data stored in memory is assigned in order from the element in the edit buffer that corresponds to the cursor position, and the address data in the edit buffer is updated. do. FIG. 3 shows a display screen that displays the ladder diagram modified in this way.

もしも、第2図に示されたラダー図のアドレスデータの
うちX090とXo、2とのみをそれぞれ新しいアドレ
スデータX6.O,X8.0に変更したいのであれば、
カーソルを接点x0.0の上に置いたままで、X6.O
,、X8.Oとキーインし、次いで入カキ−(リターン
キー)を押せばよい。コンマを打つごとに書き換える対
象が一つづつ右へ移動するのであるが、新しいアドレス
データをキーインすることなく次のコンマを打った場合
には、その対象に関しては元のアドレスデータがそのま
ま残る。従って、第4図に示すようなアドレスデータを
持つラダー図を得ることができる。
If only X090 and Xo,2 of the address data in the ladder diagram shown in FIG. 2 are replaced with new address data X6. If you want to change to O,X8.0,
While keeping the cursor on contact x0.0, select X6. O
,,X8. All you have to do is key in O, then press the enter key (return key). Each time you hit a comma, the target to be rewritten moves one by one to the right, but if you hit the next comma without keying in new address data, the original address data for that target will remain as is. Therefore, a ladder diagram having address data as shown in FIG. 4 can be obtained.

このように、変更したいアドレスデータが連続している
場合も、また、変更したいアドレスデータとそのまま残
したいアドレスデータが混在している場合にも、本発明
によればその都度カーソルを移動する必要がなく容易に
複数のアドレスデータを変更することができる。コンマ
を打つことが、カーソルを移動することと実質的に同等
の役目を果たしている。すなわち、コンマを打つごとに
エディツトバッファ内のエレメントを一つづつシフトさ
せる。コンマを打つことのほうが、カーソルを移動する
ことよりもずっと素早く出来る。
In this way, the present invention eliminates the need to move the cursor each time, even when the address data that you want to change is consecutive, or when there is a mixture of address data that you want to change and address data that you want to leave as is. It is possible to easily change multiple address data without having to do so. Typing a comma is essentially equivalent to moving the cursor. That is, each comma shifts the elements in the edit buffer one by one. Typing a comma is much faster than moving the cursor.

本実施例では、コンマのキーを打つことによりカーソル
移動と同等の役目をさせたが、コンマのキーを打つ代わ
りに他の特定のキャラクタのキーを打つことにして実施
してもよい。
In this embodiment, pressing the comma key has the same role as moving the cursor, but instead of pressing the comma key, pressing the key of another specific character may be used.

また、本実施例では独立型PCに対して本発明のシーケ
ンスプログラム編集方式を適用したが、数値制御装置に
内蔵されたPCにおいて実施することもできる。
Further, in this embodiment, the sequence program editing method of the present invention is applied to a stand-alone PC, but it can also be implemented in a PC built into a numerical control device.

〔発明の効果] 複数のアドレスデータを変更するに際してカーソルをそ
の都度左右方向に移動させる必要がなくなるのでシーケ
ンスプログラムの編集に要する時間が短縮される上にオ
ペレータの心理的負担が軽減され、その結果、全体とし
てプログラム編集の正確さの向上が期待できる。
[Effects of the invention] Since it is no longer necessary to move the cursor left and right each time when changing a plurality of address data, the time required to edit a sequence program is shortened, and the psychological burden on the operator is also reduced. , it is expected that the overall accuracy of program editing will be improved.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明を実施するためのプログラム作成装置と
PCとのハードウェアのブロック図、第2図はアドレス
データ変更前のラダー図を表示した表示画面を示す図、 第3図及び第4図はアドレスデータ変更後のラダー図を
表示した表示画面を示す図である。 1−・・・・・・−・・−・・プログラム作成装置2・
−・・・・・・・・・・−・表示装置の表示画面3・・
  ・−・ファンクションキー 4    ・操作キー 10・   ・PC (プログラマブル・コントローラ) 11−・・−・・・・−・−マイクロプロセッサ12−
−−−−一・〜−−−−〜・−入力回路13・−・〜・
−=−・・・−出力回路4−・−・・・−・・−・−・
−プログラム作成装置用インタフェース 5・−・・・・・・−・・・・・・ROM6−・−・・
・・・・−・−・RAM 7・・・・・・・・・・・−・−ハス 8−・−・・−・・・・・・−通信回線9・・−・・・
・・・・・・・・シーケンスプログラム0・−・−・−
・・・・・管理プログラム特許出願人 ファナック株式
会社 代理人   弁理士  服部毅巖 第2図
Fig. 1 is a hardware block diagram of a program creation device and a PC for implementing the present invention, Fig. 2 is a diagram showing a display screen displaying a ladder diagram before changing address data, Figs. 3 and 4. The figure shows a display screen displaying a ladder diagram after address data has been changed. 1-・・・・・・--・Program creation device 2・
−・・・・・・・・・・−・Display screen 3 of display device・・
-Function key 4 -Operation key 10 -PC (programmable controller) 11--Microprocessor 12-
−−−−1・〜−−−−−・−Input circuit 13・−・〜・
−=−・・・−Output circuit 4−・−・・・−・・−・−・
-Programming device interface 5--...--ROM6--...
········RAM 7·········−Lotus 8−········································································RAM 7·······················−
・・・・・・・・・Sequence program 0・−・−・−
...Management program patent applicant Fanuc Co., Ltd. agent Patent attorney Takeshi Hattori Figure 2

Claims (1)

【特許請求の範囲】[Claims] (1)ラダー図形式のシーケンスプログラムの編集方式
において、 表示画面上に表示させたラダー図のアドレスデータを変
更したい任意箇数の接点及びコイルのうちの最初の接点
にカーソルを合わせることにより、カーソル位置に相当
するエディットバッファ内のエレメントを選択するステ
ップと、 前記箇数の新しいアドレスデータをプログラム作成装置
からキーインしてメモリに記憶させるステップと、 前記メモリに記憶された前記新しいアドレスデータを前
記カーソル位置に相当する前記エレメントから順に割り
当てて、前記エディットバッファ内のアドレスデータを
更新するステップと、を含むことを特徴とするシーケン
スプログラム編集方式。
(1) In the editing method of a sequence program in ladder diagram format, by placing the cursor on the first contact of any number of contacts and coils for which you want to change the address data of the ladder diagram displayed on the display screen, selecting an element in the edit buffer corresponding to the position; keying in the new address data from the programming device and storing it in memory; and moving the new address data stored in the memory to the cursor. A sequence program editing method comprising the step of updating address data in the edit buffer by allocating the elements in order starting from the element corresponding to the position.
JP16383988A 1988-06-30 1988-06-30 Sequence program editing system Pending JPH0212503A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP16383988A JPH0212503A (en) 1988-06-30 1988-06-30 Sequence program editing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP16383988A JPH0212503A (en) 1988-06-30 1988-06-30 Sequence program editing system

Publications (1)

Publication Number Publication Date
JPH0212503A true JPH0212503A (en) 1990-01-17

Family

ID=15781730

Family Applications (1)

Application Number Title Priority Date Filing Date
JP16383988A Pending JPH0212503A (en) 1988-06-30 1988-06-30 Sequence program editing system

Country Status (1)

Country Link
JP (1) JPH0212503A (en)

Similar Documents

Publication Publication Date Title
US5793947A (en) Programmable controller for synchronously tracing the execution of operation blocks and SFC program execution method using the programmable controller
JPH02130628A (en) Inputting of data
EP0477760B1 (en) Programming method and apparatus for programmable controller
TWI522759B (en) System construction support device, method, and recording medium
JP2002278666A (en) Control panel for controlling facility
JP7195854B2 (en) Data processing device and display device
JPH10301615A (en) Cnc image display system
JPH021025A (en) System for generating exclusive selector of user interface
JP3585158B2 (en) Operation screen creation method for programmable display device
JP2898398B2 (en) Programming device for programmable controller
JPH04175979A (en) Graphic processor
JPH0366700B2 (en)
JPH03251921A (en) Back-up device for software development
JPH0377522B2 (en)
JPS581207A (en) Programmable programming device
JPH01166103A (en) Numerical controller
JPS6132107A (en) Programming device of programmable controller
JPH0830679A (en) Creating and updating process control line table
JP2700887B2 (en) Numerical control unit
JPH01244502A (en) Pc program display system
JP3123720B2 (en) Programming method and programming device for programmable controller
JPH08328793A (en) Machine control device
JPS58105302A (en) Illustrating programming device of programmable controller
JPS63285602A (en) Program producting device having recall mode
JPH04127319A (en) Screen calling device