JPH06324717A - Edit system for sequence program - Google Patents

Edit system for sequence program

Info

Publication number
JPH06324717A
JPH06324717A JP11156393A JP11156393A JPH06324717A JP H06324717 A JPH06324717 A JP H06324717A JP 11156393 A JP11156393 A JP 11156393A JP 11156393 A JP11156393 A JP 11156393A JP H06324717 A JPH06324717 A JP H06324717A
Authority
JP
Japan
Prior art keywords
program
sequence program
sequence
editing
edit
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
JP11156393A
Other languages
Japanese (ja)
Inventor
Kimio Maeda
紀美夫 前田
Norihiro Takigawa
規洋 滝川
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 JP11156393A priority Critical patent/JPH06324717A/en
Publication of JPH06324717A publication Critical patent/JPH06324717A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To edit a sequence program without interruption of execution of the sequence program in the edit system of the sequence program at debugging. CONSTITUTION:A program execution means 51 executes sequentially a sequence program in a program storage area 23a from a head address, while a screen edit means 52 displays the sequence program on a screen of a display device 31 and when the operator operates a keyboard 32 or the like to edit the sequence program, the edited content is written in an edit data storage area 23b. A rewrite means 53 interrupt, e.g. each one scanning of the sequence program to confirm a content of the edit data storage area 23b and rewrites the content of the program storage area 23a when the sequence program is newly edited. When the interrupt processing is finished, the program execution means 51 executes again the sequence program.

Description

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

【0001】[0001]

【産業上の利用分野】本発明はPC(プログラマブル・
コントローラ)で実行するシーケンス・プログラムの編
集を行うシーケンス・プログラムの編集方式に関し、特
にデバッグ時におけるシーケンス・プログラムの編集方
式に関する。
The present invention relates to a PC (programmable
The present invention relates to a sequence program editing method for editing a sequence program executed by a controller, and particularly to a sequence program editing method during debugging.

【0002】[0002]

【従来の技術】従来、シーケンス・プログラムを作成し
た場合には、正常に動作するかどうかを確認するため、
実際にそのシーケンス・プログラムを実行させてデバッ
グを行っていた。そして、修正すべき箇所がある場合に
はシーケンス・プログラムの実行を中断し、編集操作を
行ってから再びデバッグを行うという手順を繰り返して
いた。
2. Description of the Related Art Conventionally, when a sequence program is created, in order to confirm whether it operates normally,
The sequence program was actually executed for debugging. If there is a portion to be corrected, the sequence program execution is interrupted, the editing operation is performed, and then the debugging is repeated.

【0003】[0003]

【発明が解決しようとする課題】しかし、編集を行う度
にシーケンス・プログラムの実行を中断していては、作
業効率が悪いという問題点があった。
However, if the execution of the sequence program is interrupted each time editing is performed, there is a problem that the work efficiency is low.

【0004】本発明はこのような点に鑑みてなされたも
のであり、シーケンス・プログラムの実行を中断するこ
となく編集を行うことのできるシーケンス・プログラム
の編集方式を提供することを目的とする。
The present invention has been made in view of the above circumstances, and an object of the present invention is to provide a sequence program editing method capable of performing editing without interrupting the execution of the sequence program.

【0005】[0005]

【課題を解決するための手段】本発明では上記課題を解
決するために、PC(プログラマブル・コントローラ)
で実行するシーケンス・プログラムの編集を行うシーケ
ンス・プログラムの編集方式において、前記シーケンス
・プログラムを格納するプログラム格納手段と、前記プ
ログラム格納手段内のシーケンス・プログラムを実行す
るプログラム実行手段と、前記シーケンス・プログラム
を画面上に表示し、オペレータの操作により編集を行う
画面編集手段と、前記編集されたデータを格納する編集
データ格納手段と、前記シーケンス・プログラムの実行
中に割り込んで前記編集データ格納手段の内容を確認
し、前記シーケンス・プログラムが新たに編集されてい
る場合には前記プログラム格納手段の内容を書き換える
プログラム書き換え手段と、を有することを特徴とする
シーケンス・プログラムの編集方式が提供される。
According to the present invention, in order to solve the above problems, a PC (programmable controller) is used.
In a sequence program editing method for editing a sequence program to be executed by, a program storing means for storing the sequence program, a program executing means for executing the sequence program in the program storing means, and the sequence A screen editing means for displaying a program on a screen and performing editing by an operator, an edit data storing means for storing the edited data, and an edit data storing means for interrupting during execution of the sequence program. An editing method of a sequence program is provided, which comprises: a program rewriting unit that confirms the contents and rewrites the contents of the program storage unit when the sequence program is newly edited.

【0006】[0006]

【作用】プログラム実行手段によりプログラム格納手段
内のシーケンス・プログラムを実行する一方、画面編集
手段によりシーケンス・プログラムを画面上に表示し、
オペレータの操作によりシーケンス・プログラムを編集
し、その編集したデータを編集データ格納手段に格納す
る。そして、プログラム書き換え手段が、シーケンス・
プログラムの実行中に割り込んで編集データ格納手段の
内容を確認し、シーケンス・プログラムが新たに編集さ
れている場合にはプログラム格納手段の内容を書き換え
る。
[Function] While the program executing means executes the sequence program in the program storing means, the screen editing means displays the sequence program on the screen,
The operator edits the sequence program and stores the edited data in the edited data storage means. And the program rewriting means
The contents of the edited data storage means are checked by interrupting the execution of the program, and if the sequence program is newly edited, the contents of the program storage means are rewritten.

【0007】[0007]

【実施例】以下、本発明の一実施例を図面に基づいて説
明する。図2は本発明を実施するための数値制御装置
(CNC)全体のハードウェアのブロック図である。プ
ロセッサ11は数値制御装置10全体の制御の中心とな
るプロセッサであり、バス19を介して、ROM13に
格納されたシステムプログラムを読み出し、このシステ
ムプログラムに従って、数値制御装置10全体の制御を
実行する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings. FIG. 2 is a block diagram of the hardware of the whole numerical controller (CNC) for implementing the present invention. The processor 11 is a central processor for controlling the entire numerical control device 10, reads the system program stored in the ROM 13 via the bus 19, and executes the control of the entire numerical control device 10 according to this system program.

【0008】共有RAM12はCNC10とPMC20
とのデータの授受を行うためのRAMであり、この共有
RAM12を経由して、互いにデータの授受を行う。ま
た、同時に双方からのアクセスに必要なデータを格納す
る。
The shared RAM 12 is composed of the CNC 10 and the PMC 20.
RAM for exchanging data with each other, and exchanging data with each other via this shared RAM 12. At the same time, it stores the data required for access from both sides.

【0009】RAM14には一時的な計算データ、表示
データ等が格納される。不揮発性メモリ15にはバッテ
リによりバックアップされたCMOSや、フラッシュR
OM等が使用され、工具補正量、ピッチ誤差補正量、加
工プログラム及びパラメータ等が格納される。また、不
揮発性メモリ15にはPMC20側に必要なパラメータ
等も格納されている。
The RAM 14 stores temporary calculation data, display data and the like. The nonvolatile memory 15 includes a CMOS backed up by a battery and a flash R.
OM or the like is used to store the tool correction amount, pitch error correction amount, machining program, parameters, and the like. In addition, the non-volatile memory 15 also stores parameters necessary for the PMC 20 side.

【0010】グラフィック制御回路16は各軸の現在位
置、アラーム、パラメータ、画像データ等のディジタル
データを画像信号に変換して出力する。この画像信号は
CRT/MDIユニット30の表示装置31に送られ、
表示装置31に表示される。表示装置31には、PMC
20側のパラメータ、ラダーダイヤグラム、および後述
するデバッグデータ等も表示することができる。このと
きのデータはPMC20から共有RAM12を経由して
送られてくる。さらに、表示装置31には、後述するシ
ーケンス・プログラムの編集画面が表示される。
The graphic control circuit 16 converts digital data such as the current position of each axis, alarms, parameters and image data into an image signal and outputs it. This image signal is sent to the display device 31 of the CRT / MDI unit 30,
It is displayed on the display device 31. The display device 31 has a PMC.
The parameters on the 20 side, the ladder diagram, and debug data to be described later can also be displayed. The data at this time is sent from the PMC 20 via the shared RAM 12. Further, the display device 31 displays an editing screen of a sequence program described later.

【0011】インタフェース17はCRT/MDIユニ
ット30内のキーボード32からのデータを受けて、プ
ロセッサ11に渡す。また、PMC20側へのデータも
キーボード32から入力することができ、そのデータは
共有RAM12を経由して、PMC20側へ送られる。
The interface 17 receives data from the keyboard 32 in the CRT / MDI unit 30 and transfers it to the processor 11. Also, data to the PMC 20 side can be input from the keyboard 32, and the data is sent to the PMC 20 side via the shared RAM 12.

【0012】インタフェース18には自動プログラミン
グ装置40が接続され、この自動プログラミング装置4
0によって作成されたシーケンス・プログラムがインタ
フェース18を介して読み込まれ、PMC20に送られ
る。また、インタフェース18には、図示されていない
紙テープリーダ、紙テープパンチャー、紙テープリーダ
・パンチャー、プリンタ等の外部機器が接続される。紙
テープリーダからは加工プログラムが読み込まれる。ま
た、数値制御装置10内で編集された加工プログラムを
紙テープパンチャーに出力することもできる。
An automatic programming device 40 is connected to the interface 18, and the automatic programming device 4 is connected to the interface 18.
The sequence program created by 0 is read via the interface 18 and sent to the PMC 20. Further, the interface 18 is connected to an external device such as a paper tape reader, a paper tape puncher, a paper tape reader / puncher, a printer and the like, which are not shown. The processing program is read from the paper tape reader. Further, the processing program edited in the numerical controller 10 can be output to the paper tape puncher.

【0013】なお、プロセッサ11と共有RAM12、
ROM13等の要素はバス19によって結合されてい
る。図ではサーボモータ等を制御する軸制御回路、サー
ボアンプ、スピンドル制御回路、スピンドルアンプ、手
動パルス発生器インタフェース等は省略してある。
The processor 11 and the shared RAM 12,
Elements such as the ROM 13 are connected by a bus 19. In the figure, an axis control circuit for controlling a servo motor, a servo amplifier, a spindle control circuit, a spindle amplifier, a manual pulse generator interface, etc. are omitted.

【0014】PMC(プログラマブル・マシン・コント
ローラ)20はPC(プログラマブル・コントローラ)
の一種であり、数値制御装置10に内蔵されている。P
MC20にはPMC用のプロセッサ21があり、プロセ
ッサ21はバス26によって、共有RAM12と接続さ
れ、共有RAM12はCNC10のバス19に結合され
ている。また、バス26にはROM22が結合されてい
る。ROM22にはPMC20を制御するための管理プ
ログラムが格納されている。
A PMC (programmable machine controller) 20 is a PC (programmable controller)
And is built in the numerical control device 10. P
The MC 20 has a processor 21 for PMC, the processor 21 is connected to the shared RAM 12 by a bus 26, and the shared RAM 12 is coupled to the bus 19 of the CNC 10. Further, the ROM 22 is coupled to the bus 26. A management program for controlling the PMC 20 is stored in the ROM 22.

【0015】RAM23には入出力信号が格納され、シ
ーケンス・プログラムの実行に従って、その内容は書き
換えられていく。不揮発性メモリ24にはバッテリによ
りバックアップされたCMOSや、フラッシュROM等
が使用され、自動プログラミング装置40で作成された
シーケンス・プログラムが格納される。シーケンス・プ
ログラムは一般にラダー言語で作成されるが、パスカル
等の高級言語で作成される場合もある。この不揮発性メ
モリ24に格納されたシーケンス・プログラムは、動作
時にはRAM23に転送され、プロセッサ21はRAM
23のプログラムを読んで実行する。また、シーケンス
・プログラムは、表示装置31に表示することができ
る。不揮発性メモリ24には、シーケンス・プログラム
以外にも、電源切断後に保持しておきたいデータ等が記
憶される。
Input / output signals are stored in the RAM 23, and the contents are rewritten as the sequence program is executed. A CMOS backed up by a battery, a flash ROM, or the like is used for the non-volatile memory 24, and a sequence program created by the automatic programming device 40 is stored therein. The sequence program is generally written in a ladder language, but may be written in a high-level language such as Pascal. The sequence program stored in the non-volatile memory 24 is transferred to the RAM 23 during operation, and the processor 21 stores the RAM in the RAM.
Read and execute 23 programs. Further, the sequence program can be displayed on the display device 31. In addition to the sequence program, the non-volatile memory 24 stores data to be retained after power-off.

【0016】I/O制御回路25はバス26に接続さ
れ、RAM23に格納された出力信号をI/Oユニット
27にシリアル信号に変換して送る。また、I/Oユニ
ット27からのシリアルな入力信号をパラレル信号に変
換してバス26に送る。その信号はプロセッサ21によ
って、RAM23に格納される。RAM23に格納され
た入出力信号や不揮発性メモリ24に格納されたデータ
は、CRT/MDIユニット30の表示装置31に表示
することができる。
The I / O control circuit 25 is connected to the bus 26 and converts the output signal stored in the RAM 23 into a serial signal and sends it to the I / O unit 27. Also, a serial input signal from the I / O unit 27 is converted into a parallel signal and sent to the bus 26. The signal is stored in the RAM 23 by the processor 21. The input / output signals stored in the RAM 23 and the data stored in the non-volatile memory 24 can be displayed on the display device 31 of the CRT / MDI unit 30.

【0017】プロセッサ21はCNC10から共有RA
M12を経由して、M機能指令、T機能指令等の指令信
号を受け、一旦RAM23に格納し、その指令をROM
22に格納されたシーケンス・プログラムに従って処理
し、I/O制御回路25を経由して、I/Oユニット2
7に出力する。この出力信号によって、機械側の油圧機
器、空圧機器、電磁機器が制御される。
The processor 21 receives the shared RA from the CNC 10.
A command signal such as an M function command or a T function command is received via M12, temporarily stored in the RAM 23, and the command is stored in the ROM.
22 according to the sequence program stored in the I / O unit 2 via the I / O control circuit 25.
Output to 7. The output signal controls hydraulic equipment, pneumatic equipment, and electromagnetic equipment on the machine side.

【0018】また、プロセッサ21はI/Oユニット2
7からの機械側のリミットスイッチ信号、機械操作盤の
操作スイッチの信号等の入力信号を受けて、この入力信
号を一旦RAM23に格納する。PMC20で処理する
必要のない入力信号は共有RAM12を経由してプロセ
ッサ11に送られる。その他の信号はシーケンス・プロ
グラムで処理し、一部の信号はCNC側へ、他の信号は
出力信号として、I/O制御回路25を経由して、I/
Oユニット27から機械側へ出力される。
Further, the processor 21 is the I / O unit 2
Upon receiving an input signal such as a limit switch signal on the machine side and a signal of an operation switch on the machine operation panel from 7, the input signal is temporarily stored in the RAM 23. Input signals that do not need to be processed by the PMC 20 are sent to the processor 11 via the shared RAM 12. Other signals are processed by the sequence program, some signals are output to the CNC side, and other signals are output signals via the I / O control circuit 25.
Output from the O unit 27 to the machine side.

【0019】一方、シーケンス・プログラムには、各軸
の移動等を制御する命令を含めることができる。これら
の指令はプロセッサ21によって読み出されると、共有
RAM12を経由して、プロセッサ11に送られ、サー
ボモータを制御する。同様にして、スピンドルモータ等
もPMC側からの指令で制御することもできる。
On the other hand, the sequence program can include instructions for controlling the movement of each axis. When these instructions are read by the processor 21, they are sent to the processor 11 via the shared RAM 12 to control the servo motor. Similarly, the spindle motor and the like can also be controlled by a command from the PMC side.

【0020】次に、本実施例のシーケンス・プログラム
の編集方式の具体的な手順について説明する。図1は本
実施例のシーケンス・プログラムの編集方式の概念図で
ある。RAM23には、不揮発性メモリ24から読み込
んだシーケンス・プログラムを格納するプログラム格納
領域23aと、編集されたデータを格納する編集データ
格納領域23bとが設けられている。プログラム実行手
段51は、プログラム格納領域23a内のシーケンス・
プログラムを先頭アドレスから順次実行する。一方、画
面編集手段52は、シーケンス・プログラムを表示装置
31の画面上に表示し、後述する手法によりオペレータ
がキーボード32等を操作してシーケンス・プログラム
の編集を行うと、その編集された内容を編集データ格納
領域23bに書き込む。
Next, a specific procedure of the sequence program editing method of this embodiment will be described. FIG. 1 is a conceptual diagram of the editing method of the sequence program of this embodiment. The RAM 23 is provided with a program storage area 23a for storing a sequence program read from the non-volatile memory 24 and an edit data storage area 23b for storing edited data. The program execution means 51 uses the sequence storage in the program storage area 23a.
The program is executed sequentially from the start address. On the other hand, the screen editing means 52 displays the sequence program on the screen of the display device 31, and when the operator edits the sequence program by operating the keyboard 32 or the like by a method described later, the edited content is displayed. Write to the edit data storage area 23b.

【0021】書き換え手段53は、所定時間毎、例えば
シーケンス・プログラムを1スキャンする毎に割り込ん
で編集データ格納領域23bの内容を確認する。このと
き、シーケンス・プログラムが新たに編集されている場
合には、プログラム格納領域23aの内容を書き換え
る。この割り込みの処理が終わると、再びプログラム実
行手段51によりシーケンス・プログラムが実行され
る。これにより、シーケンス・プログラムの実行を中断
することなくその内容を編集し、かつ更新することがで
きる。
The rewriting means 53 checks the contents of the edit data storage area 23b by interrupting every predetermined time, for example, every scan of the sequence program. At this time, if the sequence program is newly edited, the contents of the program storage area 23a are rewritten. When the interrupt process is completed, the program executing means 51 executes the sequence program again. As a result, the contents of the sequence program can be edited and updated without interrupting the execution of the sequence program.

【0022】デバッグおよび編集作業終了後のシーケン
ス・プログラムは、最終格納手段54によって不揮発性
メモリ24に再び格納される。なお、プログラム実行手
段51、画面編集手段52、書き換え手段53、および
最終格納手段54は、すべてソフトウェアによって実行
される。
The sequence program after the completion of the debugging and editing work is stored again in the non-volatile memory 24 by the final storage means 54. The program executing means 51, the screen editing means 52, the rewriting means 53, and the final storing means 54 are all executed by software.

【0023】図3は表示装置31に表示される編集画面
の一例を示す図である。編集画面31aでは、現在実行
中のシーケンス・プログラムが例えばラダー図311と
して表示される。また、ラダー図311の下には、ソフ
トウェアキーメニュー321〜325が表示されてい
る。
FIG. 3 is a diagram showing an example of the editing screen displayed on the display device 31. On the edit screen 31a, the sequence program currently being executed is displayed, for example, as a ladder diagram 311. Further, software key menus 321 to 325 are displayed below the ladder diagram 311.

【0024】この編集画面31aでは、修正したい部分
にカーソル312を置き、新たに入力したいキャラクタ
をソフトウェアキーメニュー321〜325から選択
し、その選択したメニューに対応するキーボード32上
のキーを押すことにより、カーソル312の部分が新た
なキャラクタに書き換えられる。一方、アドレス等の書
き換えは、キーボード32のテンキーや文字キーを操作
することにより行うことができる。
In the edit screen 31a, by placing the cursor 312 on the portion to be corrected, selecting the character to be newly input from the software key menus 321 to 325, and pressing the key on the keyboard 32 corresponding to the selected menu. , The portion of the cursor 312 is rewritten with a new character. On the other hand, the address or the like can be rewritten by operating the ten keys or the character keys of the keyboard 32.

【0025】図4はプロセッサ21で行う時間的な処理
分担を示す図である。図に示すように、PMC20で
は、全体の処理を例えば8msサイクルで処理を行って
いる。この8msの処理時間は、Aタスク61、Bタス
ク62、およびCタスク63の3つのタスクに大きく分
けられる。Aタスク61では、非常停止、アラーム処理
等の緊急に処理されるプログラムが実行される。Bタス
ク62では、プログラム実行手段51によるシーケンス
・プログラムの実行が行われる。ただし、実際にはこの
時間内では全てのシーケンス・プログラムを実行するこ
とができないので、複数に分割されたものの一部が実行
される。また、Bタスク62では、書き換え手段53に
よる処理も実行される。Cタスク63では、時間的に制
約の少ない表示制御等のプログラムが実行される。上述
の画面編集手段52および最終格納手段54による処理
は、このCタスク63で実行される。
FIG. 4 is a diagram showing a temporal processing division performed by the processor 21. As shown in the figure, the PMC 20 performs the entire process in a cycle of 8 ms, for example. The processing time of 8 ms is roughly divided into three tasks, an A task 61, a B task 62, and a C task 63. In the A task 61, an emergency processing program such as emergency stop and alarm processing is executed. In the B task 62, the sequence program is executed by the program executing means 51. However, in reality, not all sequence programs can be executed within this time, so a part of the plurality of divided programs is executed. Further, in the B task 62, the processing by the rewriting unit 53 is also executed. In the C task 63, a program such as display control with less time constraint is executed. The processing by the screen editing means 52 and the final storage means 54 is executed by the C task 63.

【0026】次に、図5および図6に基づいてプロセッ
サ21側での処理の流れを示す。図5はシーケンス・プ
ログラムの実行時(Bタスク)の処理手順を示すフロー
チャートである。 〔S11〕先頭アドレスから順にシーケンス・プログラ
ムを実行する。 〔S12〕シーケンス・プログラムの1スキャンが終了
したか否かを判断し、終了すればステップS13に進
み、していなければステップS11に戻る。 〔S13〕ラダー23の編集データ格納領域23bに新
たな編集データが格納されているか否かを判断し、格納
されていればステップS14に進み、そうでなければ本
フローチャートを終了する。 〔S14〕シーケンス・プログラムを編集データ通りに
書き換える。
Next, the processing flow on the processor 21 side will be described with reference to FIGS. 5 and 6. FIG. 5 is a flowchart showing a processing procedure when the sequence program is executed (B task). [S11] The sequence program is executed in order from the start address. [S12] It is determined whether or not one scan of the sequence program is completed. If completed, the process proceeds to step S13, and if not completed, the process returns to step S11. [S13] It is determined whether or not new edit data is stored in the edit data storage area 23b of the ladder 23. If new edit data is stored, the process proceeds to step S14, and if not, this flowchart is ended. [S14] The sequence program is rewritten according to the edited data.

【0027】図6は編集機能の実行時(Cタスク)の処
理手順を示すフローチャートである。 〔S21〕編集画面31aおよびキーボード32により
シーケンス・プログラムの編集操作がなされたか否かを
判断し、なされていればステップS22に進み、そうで
なければ本フローチャートを終了する。 〔S22〕入力された編集データを編集データ格納領域
23bに書き込む。
FIG. 6 is a flowchart showing the processing procedure when the editing function is executed (C task). [S21] It is determined whether or not the edit operation of the sequence program is performed by the edit screen 31a and the keyboard 32. If yes, the process proceeds to step S22, and if not, the present flowchart is ended. [S22] The input edit data is written in the edit data storage area 23b.

【0028】このように、本実施例では、編集操作が行
われると、シーケンス・プログラム実行の合間にプログ
ラム格納領域23a内を書き換えるようにしたので、デ
バッグ作業を中断することなくシーケンス・プログラム
の編集を容易に行うことができる。
As described above, in the present embodiment, when the editing operation is performed, the inside of the program storage area 23a is rewritten between executions of the sequence program, so that the sequence program is edited without interrupting the debugging work. Can be done easily.

【0029】[0029]

【発明の効果】以上説明したように本発明では、シーケ
ンス・プログラムの実行中に割り込んで、シーケンス・
プログラムの内容を書き換えるようにしたので、シーケ
ンス・プログラムの実行を中断することなく編集を行う
ことができる。
As described above, in the present invention, the sequence program is interrupted during execution of the sequence program.
Since the contents of the program are rewritten, it is possible to edit without interrupting the execution of the sequence program.

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

【図1】本実施例のシーケンス・プログラムの編集方式
の概念図である。
FIG. 1 is a conceptual diagram of an editing method of a sequence program of this embodiment.

【図2】本発明を実施するための数値制御装置(CN
C)全体のハードウェアのブロック図である。
FIG. 2 is a numerical controller for implementing the present invention (CN
C) A block diagram of the entire hardware.

【図3】表示装置に表示される編集画面の一例を示す図
である。
FIG. 3 is a diagram showing an example of an edit screen displayed on a display device.

【図4】プロセッサで行う時間的な処理分担を示す図で
ある。
FIG. 4 is a diagram showing temporal processing sharing performed by a processor.

【図5】シーケンス・プログラムの実行時(Bタスク)
の処理手順を示すフローチャートである。
FIG. 5: Execution of sequence program (B task)
5 is a flowchart showing the processing procedure of step S1.

【図6】編集機能の実行時(Cタスク)の処理手順を示
すフローチャートである。
FIG. 6 is a flowchart showing a processing procedure when an editing function is executed (C task).

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

10 数値制御装置(CNC) 20 PMC(プログラマブル・マシン・コントロー
ラ) 21 プロセッサ 22 ROM 23 RAM 23a プログラム格納領域 23b 編集データ格納領域 24 不揮発性メモリ 30 CRT/MDIユニット 31 表示装置 32 キーボード 51 プログラム実行手段 52 画面編集手段 53 書き換え手段
10 Numerical Control Unit (CNC) 20 PMC (Programmable Machine Controller) 21 Processor 22 ROM 23 RAM 23a Program Storage Area 23b Edited Data Storage Area 24 Nonvolatile Memory 30 CRT / MDI Unit 31 Display Device 32 Keyboard 51 Program Execution Means 52 Screen editing means 53 Rewriting means

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 PC(プログラマブル・コントローラ)
で実行するシーケンス・プログラムの編集を行うシーケ
ンス・プログラムの編集方式において、 前記シーケンス・プログラムを格納するプログラム格納
手段と、 前記プログラム格納手段内のシーケンス・プログラムを
実行するプログラム実行手段と、 前記シーケンス・プログラムを画面上に表示し、オペレ
ータの操作により編集を行う画面編集手段と、 前記編集されたデータを格納する編集データ格納手段
と、 前記シーケンス・プログラムの実行中に割り込んで前記
編集データ格納手段の内容を確認し、前記シーケンス・
プログラムが新たに編集されている場合には前記プログ
ラム格納手段の内容を書き換えるプログラム書き換え手
段と、 を有することを特徴とするシーケンス・プログラムの編
集方式。
1. A PC (programmable controller)
In a sequence program editing method for editing a sequence program executed by, a program storage means for storing the sequence program, a program execution means for executing the sequence program in the program storage means, A screen editing means for displaying a program on a screen and performing editing by an operator, an edit data storing means for storing the edited data, and an edit data storing means for interrupting during execution of the sequence program. Check the contents and confirm that the sequence
And a program rewriting unit for rewriting the contents of the program storing unit when the program is newly edited.
【請求項2】 前記プログラム書き換え手段は、所定時
間毎に前記割り込みを行うように構成されていることを
特徴とする請求項1記載のシーケンス・プログラムの編
集方式。
2. The sequence program editing method according to claim 1, wherein the program rewriting means is configured to perform the interrupt at predetermined time intervals.
【請求項3】 前記画面編集手段は、カーソルの置かれ
た編集部分をソフトウェアキーメニュー選択されたキャ
ラクタに変換するように構成されていることを特徴とす
る請求項1記載のシーケンス・プログラムの編集方式。
3. The editing of a sequence program according to claim 1, wherein the screen editing means is configured to convert an editing portion on which a cursor is placed into a character selected by a software key menu. method.
【請求項4】 前記編集後のシーケンス・プログラム
は、不揮発性メモリに格納されることを特徴とする請求
項1記載のシーケンス・プログラムの編集方式。
4. The sequence program editing method according to claim 1, wherein the edited sequence program is stored in a non-volatile memory.
JP11156393A 1993-05-13 1993-05-13 Edit system for sequence program Pending JPH06324717A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11156393A JPH06324717A (en) 1993-05-13 1993-05-13 Edit system for sequence program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11156393A JPH06324717A (en) 1993-05-13 1993-05-13 Edit system for sequence program

Publications (1)

Publication Number Publication Date
JPH06324717A true JPH06324717A (en) 1994-11-25

Family

ID=14564559

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11156393A Pending JPH06324717A (en) 1993-05-13 1993-05-13 Edit system for sequence program

Country Status (1)

Country Link
JP (1) JPH06324717A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2020119294A (en) * 2019-01-24 2020-08-06 ファナック株式会社 Ladder program editing system, server, terminal device, ladder program editing method and program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2020119294A (en) * 2019-01-24 2020-08-06 ファナック株式会社 Ladder program editing system, server, terminal device, ladder program editing method and program

Similar Documents

Publication Publication Date Title
US5784621A (en) Sequence program display apparatus
JP3679844B2 (en) Sequence program execution device
JPH103307A (en) Numerical controller
EP0428735A1 (en) System for displaying data on a screen
JPH06324717A (en) Edit system for sequence program
US5331540A (en) Symbol definition system and method a programmable machine controller
JPH08286712A (en) Editing system for sequence program
JPH08166805A (en) Editing system for sequence program
JPH0863211A (en) Updated data management system
EP0425688A1 (en) Method of editing program for program controller
JPH06119021A (en) Operation system for controller
JPH07210218A (en) Abnormality detecting system for sequence program
JPH07114404A (en) Debug system for ladder program
JPH0460805A (en) Sequence program generating method
JP3327641B2 (en) Numerical control unit
EP0440806A1 (en) System for controlling program of pc
EP0538482A1 (en) Method for debugging sequential program
JPH06175708A (en) Sequence program execution system
JPH07261811A (en) Tracing system for sequence program
JPH07234714A (en) Numerical controller
JPH07334225A (en) Program executing system for cnc
JPS6165314A (en) Graphic display method and apparatus for computer numerical controller
JP2690501B2 (en) Sequence program editing method
JPH064113A (en) Programmable controller
JPH08278806A (en) Cnc macro variable debugging system