JPH08166805A - Editing system for sequence program - Google Patents
Editing system for sequence programInfo
- Publication number
- JPH08166805A JPH08166805A JP30852094A JP30852094A JPH08166805A JP H08166805 A JPH08166805 A JP H08166805A JP 30852094 A JP30852094 A JP 30852094A JP 30852094 A JP30852094 A JP 30852094A JP H08166805 A JPH08166805 A JP H08166805A
- Authority
- JP
- Japan
- Prior art keywords
- sequence program
- command
- program
- editing
- edited
- 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
Links
- 238000000034 method Methods 0.000 claims description 17
- 238000012546 transfer Methods 0.000 claims description 15
- 238000004891 communication Methods 0.000 abstract description 3
- 238000010586 diagram Methods 0.000 description 11
- 230000006870 function Effects 0.000 description 6
- 238000012937 correction Methods 0.000 description 5
- 238000012545 processing Methods 0.000 description 4
- 238000006243 chemical reaction Methods 0.000 description 2
- 238000007796 conventional method Methods 0.000 description 2
- 230000005055 memory storage Effects 0.000 description 2
- 101100328887 Caenorhabditis elegans col-34 gene Proteins 0.000 description 1
- 101100087530 Caenorhabditis elegans rom-1 gene Proteins 0.000 description 1
- 101100305983 Mus musculus Rom1 gene Proteins 0.000 description 1
- 238000003780 insertion Methods 0.000 description 1
- 230000037431 insertion Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000000717 retained effect Effects 0.000 description 1
Landscapes
- Programmable Controllers (AREA)
Abstract
Description
【0001】[0001]
【産業上の利用分野】本発明はPC(プログラマブル・
コントローラ)で実行するためのシーケンス・プログラ
ムの編集方式に関し、特にプログラミング装置上で編集
を行うシーケンス・プログラムの編集方式に関する。The present invention relates to a PC (programmable
The present invention relates to a sequence program editing method to be executed by a controller, and more particularly to a sequence program editing method for editing on a programming device.
【0002】[0002]
【従来の技術】従来、PC側のメモリに格納されたシー
ケンス・プログラムをプログラミング装置側でオンライ
ン編集する場合には、編集操作の結果のオブジェクトを
サブプログラム単位でPC側に転送し、PC側のメモリ
上の該当する部分を書き換えるようにしていた。2. Description of the Related Art Conventionally, when a sequence program stored in a memory on the PC side is online edited on the programming device side, the object resulting from the editing operation is transferred to the PC side in subprogram units, and the object on the PC side is transferred. I was trying to rewrite the corresponding part of the memory.
【0003】[0003]
【発明が解決しようとする課題】しかし、このような従
来の編集方式では、特定のサブプログラムのサイズが予
め設けられたメモリサイズよりも大きくなるような修正
が行われると、そのサブプログラムの格納アドレスを変
更する必要が生じる。However, in such a conventional editing method, when the size of a particular subprogram is modified so as to be larger than the memory size provided in advance, the subprogram is stored. It is necessary to change the address.
【0004】図6はこの従来技術におけるアドレス変更
の一例を示す図である。例えば先頭アドレスAAAAA
AhのサブプログラムP001に追加修正が発生し、メ
モリサイズ(AAAAAAh−BBBBBBh)が大き
くなってしまうと、その格納アドレスを例えばCCCC
CCh以降に移動させる必要がある。すると、メインプ
ログラム側でのサブプログラムP001を呼び出すCA
LLU P001等も修正する必要が生じる。このた
め、転送対象となるサブプログラムが増えてしまい、編
集の作業効率が悪くなるという問題があった。FIG. 6 is a diagram showing an example of address change in this conventional technique. For example, start address AAAAA
When an additional correction occurs in the subprogram P001 of Ah and the memory size (AAAAAAh-BBBBBBh) becomes large, the storage address is changed to CCCC.
It is necessary to move after CCh. Then, the CA that calls the subprogram P001 on the main program side
LLU P001 and the like also need to be modified. As a result, the number of subprograms to be transferred increases, and the work efficiency of editing deteriorates.
【0005】また、修正部分が僅かであっても、サブプ
ログラム単位の転送では、修正部分と直接関係のない部
分の転送も行う必要があり、無駄が多い。本発明はこの
ような点に鑑みてなされたものであり、オンライン編集
の作業効率を向上することのできるシーケンス・プログ
ラムの編集方式を提供することを目的とする。Further, even if the correction portion is small, in the subprogram unit transfer, it is necessary to transfer the portion not directly related to the correction portion, which is wasteful. 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 improving the work efficiency of online editing.
【0006】[0006]
【課題を解決するための手段】本発明では上記課題を解
決するために、PC(プログラマブル・コントローラ)
で実行するためのシーケンス・プログラムの編集方式に
おいて、PC側に設けられ、編集対象となるシーケンス
・プログラムを格納するプログラム格納手段と、プログ
ラミング装置側で、前記シーケンス・プログラムをキー
操作等により編集する編集手段と、前記編集された内容
をコマンドに変換するコマンド変換手段と、前記変換さ
れたコマンドを前記PC側に転送する転送手段と、前記
転送されたコマンドを前記PC側で受信する受信手段
と、前記受信したコマンドに従って前記プログラム格納
手段内のシーケンス・プログラムの対応する部分を書き
換える書き換え手段と、を有することを特徴とするシー
ケンス・プログラムの編集方式が提供される。According to the present invention, in order to solve the above problems, a PC (programmable controller) is used.
In the editing method of a sequence program to be executed by a program storage means, which is provided on the PC side and stores the sequence program to be edited, and the programming device side, the sequence program is edited by key operation or the like. Editing means, command converting means for converting the edited contents into commands, transfer means for transferring the converted commands to the PC side, and receiving means for receiving the transferred commands on the PC side. And a rewriting unit that rewrites a corresponding portion of the sequence program in the program storage unit according to the received command, and an editing method of the sequence program.
【0007】[0007]
【作用】PC側のプログラム格納手段には、編集対象と
なるシーケンス・プログラムが格納されている。プログ
ラミング装置側では、編集手段によりシーケンス・プロ
グラムをキー操作等により編集し、この編集された内容
をコマンド変換手段がコマンドに変換し、変換されたコ
マンドを転送手段がPC側に転送する。PC側では、転
送されたコマンドを受信手段が受信し、この受信したコ
マンドに従って、書き換え手段がプログラム格納手段内
のシーケンス・プログラムの対応する部分を書き換え
る。The sequence program to be edited is stored in the program storage means on the PC side. On the programming device side, the editing means edits the sequence program by a key operation, etc., the edited contents are converted into commands by the command conversion means, and the converted commands are transferred to the PC side by the transfer means. On the PC side, the receiving means receives the transferred command, and the rewriting means rewrites the corresponding portion of the sequence program in the program storing means in accordance with the received command.
【0008】[0008]
【実施例】以下、本発明の一実施例を図面に基づいて説
明する。図1は本実施例の機能の概念を示す図である。
PC2側のメモリ2cには、編集対象となるシーケンス
・プログラム2dが格納されている。プログラミング装
置1側では、PC2側のメモリ2cからオンラインで読
み込んだり、あるいはフロッピィディスク等を介して読
み込んだシーケンス・プログラム1aを、表示装置1e
およびキーボード1fの操作に応じて編集手段により編
集し、この編集された内容をコマンド変換手段1cがコ
マンドに変換する。そして、変換されたコマンドを転送
手段1dが、RS232C等の通信回線を介してPC2
側に転送する。PC2側では、転送されたコマンドを受
信手段2aが受信し、この受信したコマンドに従って、
書き換え手段2bがメモリ2c内のシーケンス・プログ
ラム2dの対応する部分を書き換える。An embodiment of the present invention will be described below with reference to the drawings. FIG. 1 is a diagram showing the concept of the function of this embodiment.
The memory 2c on the PC 2 side stores a sequence program 2d to be edited. On the programming device 1 side, the sequence program 1a read online from the memory 2c on the PC 2 side or read via a floppy disk or the like is displayed on the display device 1e.
The editing means edits the contents in accordance with the operation of the keyboard 1f, and the edited contents are converted into commands by the command converting means 1c. Then, the transfer means 1d transmits the converted command to the PC 2 via the communication line such as RS232C.
Transfer to the side. On the PC2 side, the receiving means 2a receives the transferred command, and according to the received command,
The rewriting means 2b rewrites the corresponding portion of the sequence program 2d in the memory 2c.
【0009】図2は本発明を実施するための数値制御装
置(CNC)全体のハードウェアのブロック図である。
プロセッサ11は、数値制御装置10全体の制御の中心
となるプロセッサであり、バス19を介して、ROM1
3に格納されたシステム・プログラムを読み出し、この
システム・プログラムに従って、数値制御装置10全体
の制御を実行する。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 processor that is the center of control of the entire numerical control device 10, and via the bus 19, the ROM 1
The system program stored in No. 3 is read out, and the control of the numerical controller 10 as a whole is executed according to this system program.
【0010】共有RAM12は、CNC10とPMC2
0とのデータの授受を行うためのRAMであり、この共
有RAM12を経由して、互いにデータの授受を行う。
また、同時に双方からのアクセスに必要なデータを格納
する。The shared RAM 12 is composed of the CNC 10 and the PMC 2.
This is a RAM for exchanging data with 0, and exchanges data with each other via this shared RAM 12.
At the same time, it stores the data required for access from both sides.
【0011】RAM14には、一時的な計算データ、表
示データ等が格納される。不揮発性メモリ15には、バ
ッテリによりバックアップされたCMOSや、フラッシ
ュROM等が使用され、工具補正量、ピッチ誤差補正
量、加工プログラムおよびパラメータ等が格納される。
また、不揮発性メモリ15には、PMC20側に必要な
パラメータ等も格納されている。The RAM 14 stores temporary calculation data, display data and the like. For the non-volatile memory 15, a CMOS backed up by a battery, a flash ROM, or the like is used, and a tool correction amount, a pitch error correction amount, a machining program, parameters, and the like are stored.
In addition, the non-volatile memory 15 also stores parameters necessary for the PMC 20 side.
【0012】グラフィック制御回路16は、各軸の現在
位置、アラーム、パラメータ、画像データ等のディジタ
ルデータを画像信号に変換して出力する。この画像信号
は、CRT/MDIユニット30の表示装置31に送ら
れ、表示装置31に表示される。表示装置31には、P
MC20側のパラメータ、ラダーダイヤグラム、および
後述するトレースデータ等も表示することができる。こ
のときのデータはPMC20から共有RAM12を経由
して送られてくる。The graphic control circuit 16 converts the current position of each axis, alarms, parameters, digital data such as 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 and displayed on the display device 31. The display device 31 has a P
Parameters on the MC 20 side, ladder diagrams, trace data described later, and the like can also be displayed. The data at this time is sent from the PMC 20 via the shared RAM 12.
【0013】インタフェース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,
It is passed 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.
【0014】インタフェース18には、自動プログラミ
ング装置40が接続されている。この自動プログラミン
グ装置40によって作成されたシーケンス・プログラム
は、インタフェース18を介して読み込まれPMC20
に送られ、不揮発性メモリ24に格納される。また、こ
の不揮発性メモリ24のシーケンス・プログラムは、後
述する手順により、自動プログラミング装置40で編集
され、その編集データに応じて不揮発性メモリ24内の
シーケンス・プログラムが書き換えられる。An automatic programming device 40 is connected to the interface 18. The sequence program created by the automatic programming device 40 is read through the interface 18 and read by the PMC 20.
And stored in the non-volatile memory 24. The sequence program in the non-volatile memory 24 is edited by the automatic programming device 40 according to the procedure described later, and the sequence program in the non-volatile memory 24 is rewritten according to the edited data.
【0015】インタフェース18には、自動プログラミ
ング装置40の他に、図示されていない紙テープリー
ダ、紙テープパンチャー、紙テープリーダ・パンチャ
ー、プリンタ等の外部機器も接続される。紙テープリー
ダからは、加工プログラムが読み込まれる。また、数値
制御装置10内で編集された加工プログラムを紙テープ
パンチャーに出力することもできる。In addition to the automatic programming device 40, the interface 18 is also connected to an external device such as a paper tape reader, a paper tape puncher, a paper tape reader / puncher, and a printer, 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.
【0016】なお、プロセッサ11と共有RAM12、
ROM13等の各要素は、バス19によって結合されて
いる。図ではサーボモータ等を制御する軸制御回路、サ
ーボアンプ、スピンドル制御回路、スピンドルアンプ、
手動パルス発生器インタフェース等は省略してある。The processor 11 and the shared RAM 12,
Each element such as the ROM 13 is connected by a bus 19. In the figure, the axis control circuit that controls the servo motor, servo amplifier, spindle control circuit, spindle amplifier,
The manual pulse generator interface etc. are omitted.
【0017】PMC(プログラマブル・マシン・コント
ローラ)20は、PC(プログラマブル・コントロー
ラ)の一種であり、数値制御装置10に内蔵されてい
る。PMC20にはPMC用のプロセッサ21があり、
プロセッサ21はバス26によって、共有RAM12と
接続され、共有RAM12はCNC10のバス19に結
合されている。また、バス26にはROM22が結合さ
れている。このROM22には、PMC20を制御する
ための管理プログラムが格納されている。A PMC (Programmable Machine Controller) 20 is a kind of PC (Programmable Controller) and is built in the numerical controller 10. The PMC 20 has a processor 21 for PMC,
The processor 21 is connected to the shared RAM 12 by the 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.
【0018】RAM23には、入出力信号が格納され、
シーケンス・プログラムの実行に従って、その内容は書
き換えられていく。不揮発性メモリ24には、バッテリ
によりバックアップされたCMOSや、フラッシュRO
M等が使用され、自動プログラミング装置40で作成さ
れたシーケンス・プログラムが格納される。シーケンス
・プログラムは一般にラダー言語で作成されるが、パス
カル等の高級言語で作成される場合もある。この不揮発
性メモリ24に格納されたシーケンス・プログラムは、
動作時にはRAM23に転送され、プロセッサ21はR
AM23のプログラムを読んで実行する。また、シーケ
ンス・プログラムは、表示装置31に表示することがで
きる。不揮発性メモリ24には、シーケンス・プログラ
ム以外にも、電源切断後に保持しておきたいデータ等が
記憶される。Input / output signals are stored in the RAM 23,
The contents are rewritten as the sequence program is executed. The nonvolatile memory 24 includes a CMOS backed up by a battery and a flash RO.
M or the like is used to store the sequence program created by the automatic programming device 40. 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 this non-volatile memory 24 is
In operation, the data is transferred to the RAM 23, and the processor 21
Read and execute the program of AM23. 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.
【0019】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, 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.
【0020】プロセッサ21は、CNC10から共有R
AM12を経由して、M機能指令、T機能指令等の指令
信号を受け、一旦RAM23に格納し、その指令をRO
M22に格納されたシーケンス・プログラムに従って処
理し、I/O制御回路25を経由して、I/Oユニット
27に出力する。この出力信号によって、機械側の油圧
機器、空圧機器、電磁機器が制御される。The processor 21 receives a shared R from the CNC 10.
A command signal such as an M function command or a T function command is received via the AM 12, and once stored in the RAM 23, the command is RO
Processing is performed according to the sequence program stored in M22 and output to the I / O unit 27 via the I / O control circuit 25. The hydraulic signal, pneumatic device, and electromagnetic device on the machine side are controlled by this output signal.
【0021】また、プロセッサ21は、I/Oユニット
27からの機械側のリミットスイッチ信号、機械操作盤
の操作スイッチの信号等の入力信号を受けて、この入力
信号を一旦RAM23に格納する。PMC20で処理す
る必要のない入力信号は、共有RAM12を経由してプ
ロセッサ11に送られる。その他の信号はシーケンス・
プログラムで処理し、一部の信号はCNC側へ、他の信
号は出力信号としてI/O制御回路25を経由し、I/
Oユニット27から機械側へ出力される。Further, the processor 21 receives an input signal such as a machine side limit switch signal from the I / O unit 27 and a signal of an operation switch of the machine operation panel, and temporarily stores the input signal 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 sequence
I / O control circuit 25 processes some signals to the CNC side and other signals as output signals.
Output from the O unit 27 to the machine side.
【0022】一方、シーケンス・プログラムには、各軸
の移動等を制御する命令を含めることができる。これら
の指令は、プロセッサ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.
【0023】図3は自動プログラミング装置40のハー
ドウェアのブロック図である。プロセッサ41は、RO
M42に格納されているシステム・プログラムに従って
自動プログラミング装置40全体を制御する。RAM4
3には、内部データや、作成、編集されたシーケンス・
プログラム等が格納される。FIG. 3 is a block diagram of the hardware of the automatic programming device 40. The processor 41 is the RO
The entire automatic programming device 40 is controlled according to the system program stored in M42. RAM4
3 includes internal data, created and edited sequences,
Stores programs, etc.
【0024】グラフィック制御回路44は、プロセッサ
41からの表示データを表示信号に変換し、表示装置4
5に送る。表示装置45は、この表示信号を受けて画面
表示を行う。この表示装置45にはCRT、液晶表示装
置等が使用される。The graphic control circuit 44 converts the display data from the processor 41 into a display signal, and the display device 4
Send to 5. The display device 45 receives this display signal and displays a screen. As the display device 45, a CRT, a liquid crystal display device or the like is used.
【0025】キーボード46は、データ入力に使用され
る操作キーや、ファンクションキー等を備えている。ま
た、データ入力は、タブレット47や、図示されていな
いマウス等によっても行われる。The keyboard 46 is provided with operation keys used for data input, function keys and the like. Data input is also performed by the tablet 47, a mouse (not shown), or the like.
【0026】HDD(ハード・ディスク・ドライブ)4
8は、作成されたシーケンス・プログラム等、電源遮断
後も保存すべきデータが格納される。また、HDD48
には、フロッピィ・ディスク49aから読み込んだ、後
述する編集機能のプログラムが格納される。FDD(フ
ロッピィ・ディスク・ドライブ)49は、フロッピィ・
ディスク49aを駆動させてシーケンス・プログラム等
を読み出したり、作成または編集されたシーケンス・プ
ログラムをフロッピィ・ディスク49aに書き込むこと
ができる。HDD (hard disk drive) 4
Data 8 to be stored such as a created sequence program is stored even after the power is cut off. In addition, the HDD 48
Stores a program for an editing function, which will be described later, read from the floppy disk 49a. FDD (Floppy Disk Drive) 49 is a floppy disk drive.
It is possible to drive the disk 49a to read out a sequence program or the like, or write the created or edited sequence program to the floppy disk 49a.
【0027】作成、編集されたシーケンス・プログラム
は、プリンタ/PTP(紙テープパンチャー)51に出
力することもできる。インタフェース(INT)50か
らは、数値制御装置10内のPMC20の不揮発性メモ
リ24内に格納されたシーケンス・プログラムが読み込
まれ、RAM43等に格納される。また、インタフェー
ス50からは、自動プログラミング装置40での編集状
態がコマンドに変換されてPMC20に送られる。The created / edited sequence program can be output to the printer / PTP (paper tape puncher) 51. From the interface (INT) 50, the sequence program stored in the nonvolatile memory 24 of the PMC 20 in the numerical controller 10 is read and stored in the RAM 43 or the like. In addition, from the interface 50, the edit state in the automatic programming device 40 is converted into a command and sent to the PMC 20.
【0028】なお、これらの各構成要素は、バス52に
互いに結合されている。次に、自動プログラミング装置
40上でのシーケンス・プログラムの編集手順と、その
コマンド変換処理の具体例を説明する。Note that each of these components is coupled to the bus 52. Next, a sequence program editing procedure on the automatic programming device 40 and a specific example of its command conversion processing will be described.
【0029】図4は自動プログラミング装置40の表示
装置45の画面上での編集の流れの一例を示す図であ
る。まず、ステップST1において、予め作成表示され
たラダー・プログラム60の特定の信号の位置にカーソ
ル61を置いたとすると、自動プログラミング装置40
内部では、このカーソルの位置情報がコマンド変換され
る。ここでは、カーソル61は、ネット番号N100
で、画面のカーソル座標(1,1)の位置にあるので、
例えば、”100N:(1,1)”というようにコマン
ド変換される。この変換されたコマンドは、RAM43
に一時的に格納される。FIG. 4 is a diagram showing an example of the flow of editing on the screen of the display device 45 of the automatic programming device 40. First, in step ST1, if the cursor 61 is placed at the position of a specific signal of the ladder program 60 created and displayed in advance, the automatic programming device 40
The position information of this cursor is internally converted into a command. Here, the cursor 61 is the net number N100.
Since it is at the position of the cursor coordinates (1, 1) on the screen,
For example, the command is converted into "100N: (1,1)". This converted command is stored in the RAM 43
Temporarily stored in.
【0030】次いで、現在シンボル入力用の表示になっ
ているソフトウェアキーのメニュー表示を指令メニュー
の表示に切り換えるため、メニュー〔COMAND〕を
指定したとすると、内部では、その操作がコマンド”C
OMAND”に変換される。さらに、カーソル61をこ
の位置のままで、切り換わったメニューの中から挿入指
令のメニュー〔INSNET〕を指定すると、内部で
は、その操作がコマンド”INSNET”に変換され
る。また、これと同時に画面上では、ステップST2に
示すように、ネットN100とN101との間が空く。Next, in order to switch the menu display of the software key currently being displayed for symbol input to the display of the command menu, if the menu [COMAND] is specified, the operation is internally performed by the command "C".
Further, when the insertion command menu [INSNET] is designated from the switched menus with the cursor 61 kept at this position, the operation is internally converted into the command “INSNET”. At the same time, on the screen, as shown in step ST2, there is a space between the nets N100 and N101.
【0031】この空いた部分にラダーを入力するため、
メニュー〔ESC〕を指定すると、内部ではその操作が
コマンド”ESC”に変換され、一方、画面上のメニュ
ー表示がラダーのシンボル選択メニューに切り換わる。
このメニューの中から、例えば接点のシンボルを選択
し、キーボード46によりそのアドレス「X7.7」を
入力すると、画面上ではそのシンボルおよびアドレスが
表示され(ステップST3)、内部では、その操作がコ
マンド”RD X7.7”に変換される。In order to input a ladder in this empty area,
When the menu [ESC] is specified, the operation is internally converted into the command "ESC", while the menu display on the screen is switched to the symbol selection menu of the ladder.
If, for example, a contact symbol is selected from this menu and the address "X7.7" is entered with the keyboard 46, the symbol and address are displayed on the screen (step ST3), and the operation is internally commanded. Converted to "RD X7.7".
【0032】さらに、メニュー選択により同じネット上
で、横線や、信号とそのアドレスを入力すると、内部で
は、それぞれ操作がコマンド”−,−,−”、”WRT
Y0.0”に変換される。Furthermore, when a horizontal line, a signal and its address are input on the same net by menu selection, the operations are internally executed by the commands "-,-,-", "WRT".
Converted to Y0.0 ".
【0033】このように、1ネット単位の入力編集が終
了すると、オペレータは、例えばメニューとして設けら
れた〔転送〕を指定する。これにより、操作中に内部で
変換されRAM43に格納されているコマンド”COM
AND”、”INSNET”等が、インタフェース50
および通信回線を介してPMC20に送られる。In this way, when the input editing for each net is completed, the operator designates, for example, [transfer] provided as a menu. As a result, the command "COM that is internally converted and stored in the RAM 43 during operation is stored.
Interfaces such as "AND" and "INSNET"
And to the PMC 20 via the communication line.
【0034】PMC20では、通常CNC10のCRT
/MDIユニット30で行う編集操作と同じように、こ
の送られたコマンドデータを解釈し、不揮発性メモリ2
4内のラダー・プログラムの対応する部分を書き換え
る。In the PMC20, the CRT of the normal CNC 10 is used.
In the same manner as the editing operation performed by the / MDI unit 30, the transmitted command data is interpreted and the nonvolatile memory 2
Rewrite the corresponding part of the ladder program in 4.
【0035】図5は自動プログラミング装置40での編
集操作におけるプロセッサ41の処理手順を示すフロー
チャートである。 〔S1〕キー入力による編集操作の制御を行う。 〔S2〕編集操作されたデータをコマンドに変換する。 〔S3〕変換したコマンドをRAM43に一時的に格納
する。 〔S4〕転送指令が行われたか否かを判断し、行われれ
ばステップS5に進み、そうでなればステップS1に戻
る。 〔S5〕RAM43に格納されているコマンドをPMC
20側に転送する。FIG. 5 is a flow chart showing the processing procedure of the processor 41 in the editing operation in the automatic programming device 40. [S1] The editing operation is controlled by key input. [S2] The edited data is converted into a command. [S3] The converted command is temporarily stored in the RAM 43. [S4] It is determined whether or not a transfer command has been issued, and if so, the process proceeds to step S5, and if not, the process returns to step S1. [S5] Command stored in RAM 43 is changed to PMC
Transfer to 20 side.
【0036】このように、本実施例では、自動プログラ
ミング装置40での編集操作をコマンドに変換してPM
C20側に送り、PMC20側でこのコマンドを解析し
て、不揮発性メモリ24内のラダー・プログラムの対応
する部分を書き換えるようにしたので、メモリ格納領域
の不足によるアドレスの移動等も、CRT/MDIユニ
ット30での編集操作時と同様にPMC20側で行うこ
とになり、オペレータ側では関連する部分の変更作業を
行う必要がない。したがって、作業効率が向上する。As described above, in this embodiment, the editing operation in the automatic programming device 40 is converted into a command and the PM is converted.
The command is sent to the C20 side, and the PMC20 side analyzes this command to rewrite the corresponding part of the ladder program in the non-volatile memory 24. Therefore, even if the address is moved due to lack of the memory storage area, the CRT / MDI Similar to the editing operation in the unit 30, it is performed on the PMC 20 side, and it is not necessary for the operator to change the related part. Therefore, working efficiency is improved.
【0037】なお、本実施例では、1ネット単位でコマ
ンド転送するようにしたが、これに限らず、サブプログ
ラム単位等の他のタイミングで転送するようにしてもよ
い。また、本実施例では、オペレータのソフトウェアキ
ーの指定により転送指令を行うようにしたが、プロセッ
サ41側でタイミングを判断して自動的に転送するよう
にしてもよい。In the present embodiment, the command is transferred in 1-net units, but the present invention is not limited to this, and the commands may be transferred in other timing such as in sub-program units. Further, in the present embodiment, the transfer command is issued by the designation of the software key by the operator, but the processor 41 may judge the timing and transfer automatically.
【0038】[0038]
【発明の効果】以上説明したように本発明では、プログ
ラミング装置での編集操作をコマンドに変換してPC側
に送り、PC側でこのコマンドを解析して、プログラム
格納手段内のシーケンス・プログラムの対応する部分を
書き換えるようにしたので、メモリ格納領域の不足によ
るアドレスの移動等もPC側で行うことになり、オペレ
ータ側では関連する部分の変更作業を行う必要がない。
したがって、作業効率が向上する。As described above, according to the present invention, the editing operation in the programming device is converted into a command and sent to the PC side, the PC side analyzes the command, and the sequence program in the program storage means is stored. Since the corresponding portion is rewritten, the address movement due to the lack of the memory storage area is also performed on the PC side, and the operator side does not need to change the related portion.
Therefore, working efficiency is improved.
【図1】本実施例の機能の概念を示す図である。FIG. 1 is a diagram showing a concept of functions of the present 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 block diagram of hardware of an automatic programming device.
【図4】自動プログラミング装置の表示装置の画面上で
の編集の流れの一例を示す図である。FIG. 4 is a diagram showing an example of a flow of editing on a screen of a display device of an automatic programming device.
【図5】自動プログラミング装置での編集操作における
プロセッサの処理手順を示すフローチャートである。FIG. 5 is a flowchart showing a processing procedure of a processor in an editing operation in the automatic programming device.
【図6】従来技術におけるアドレス変更の一例を示す図
である。FIG. 6 is a diagram showing an example of address change in the conventional technique.
1 プログラミング装置 1a シーケンス・プログラム 1b 編集手段 1c コマンド変換手段 1d 転送手段 1e 表示装置 1f キーボード 2 PC(プログラマブル・コントローラ) 2a 受信手段 2b 書き換え手段 2c メモリ 2d シーケンス・プログラム 10 CNC 20 PMC 24 不揮発性メモリ 40 自動プログラミング装置 41 プロセッサ 43 RAM 45 表示装置 46 キーボード 50 インタフェース 1 programming device 1a sequence program 1b editing means 1c command converting means 1d transfer means 1e display device 1f keyboard 2 PC (programmable controller) 2a receiving means 2b rewriting means 2c memory 2d sequence program 10 CNC 20 PMC 24 non-volatile memory 40 Automatic programming device 41 Processor 43 RAM 45 Display device 46 Keyboard 50 Interface
Claims (3)
で実行するためのシーケンス・プログラムの編集方式に
おいて、 PC側に設けられ、編集対象となるシーケンス・プログ
ラムを格納するプログラム格納手段と、 プログラミング装置側で、前記シーケンス・プログラム
をキー操作等により編集する編集手段と、 前記編集された内容をコマンドに変換するコマンド変換
手段と、 前記変換されたコマンドを前記PC側に転送する転送手
段と、 前記転送されたコマンドを前記PC側で受信する受信手
段と、 前記受信したコマンドに従って前記プログラム格納手段
内のシーケンス・プログラムの対応する部分を書き換え
る書き換え手段と、 を有することを特徴とするシーケンス・プログラムの編
集方式。1. A PC (programmable controller)
In the method of editing a sequence program to be executed by, the program storage means is provided on the PC side for storing the sequence program to be edited, and the programming device side edits the sequence program by key operation or the like. Editing means, command converting means for converting the edited contents into commands, transfer means for transferring the converted commands to the PC side, and receiving means for receiving the transferred commands on the PC side A rewriting means for rewriting a corresponding portion of the sequence program in the program storing means according to the received command, and a sequence program editing method.
グラムの1ネット単位で前記コマンドを転送するように
構成されていることを特徴とする請求項1記載のシーケ
ンス・プログラムの編集方式。2. The editing method of a sequence program according to claim 1, wherein the transfer means is configured to transfer the command in units of one net of the sequence program.
モリであることを特徴とする請求項1記載のシーケンス
・プログラムの編集方式。3. The sequence program editing method according to claim 1, wherein the program storage means is a non-volatile memory.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP30852094A JPH08166805A (en) | 1994-12-13 | 1994-12-13 | Editing system for sequence program |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP30852094A JPH08166805A (en) | 1994-12-13 | 1994-12-13 | Editing system for sequence program |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH08166805A true JPH08166805A (en) | 1996-06-25 |
Family
ID=17982021
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP30852094A Pending JPH08166805A (en) | 1994-12-13 | 1994-12-13 | Editing system for sequence program |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH08166805A (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| GB2350442A (en) * | 1999-05-18 | 2000-11-29 | Falcon Machine Tools Co Ltd | Computerised numerical controller with profile path editor |
| ES2156079A1 (en) * | 1999-06-08 | 2001-06-01 | Falcon Machine Tools Co Ltd | Computerized numerical controller for machine tool has man-machine interface with control panel, screen and profile path editor for editing profile coordinates of workpiece and stored result as path program |
-
1994
- 1994-12-13 JP JP30852094A patent/JPH08166805A/en active Pending
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| GB2350442A (en) * | 1999-05-18 | 2000-11-29 | Falcon Machine Tools Co Ltd | Computerised numerical controller with profile path editor |
| ES2156079A1 (en) * | 1999-06-08 | 2001-06-01 | Falcon Machine Tools Co Ltd | Computerized numerical controller for machine tool has man-machine interface with control panel, screen and profile path editor for editing profile coordinates of workpiece and stored result as path program |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5327350A (en) | Interactive type numerical control apparatus and method thereof | |
| US5784621A (en) | Sequence program display apparatus | |
| JP3679844B2 (en) | Sequence program execution device | |
| JPH103307A (en) | Numerical controller | |
| JP3308386B2 (en) | Control system | |
| US6397123B1 (en) | Numerical control apparatus | |
| JPH08166805A (en) | Editing system for sequence program | |
| JPH02310604A (en) | Picture data display system | |
| JP2852986B2 (en) | Processing system | |
| US5331540A (en) | Symbol definition system and method a programmable machine controller | |
| JP2000172317A (en) | Programmable machine controller with built-in numerical controller and network system for numerical controller | |
| JPH08286712A (en) | Editing system for sequence program | |
| JP3327641B2 (en) | Numerical control unit | |
| JPH06324717A (en) | Edit system for sequence program | |
| JPH07234714A (en) | Numerical controller | |
| JP3460747B2 (en) | Numerical control unit | |
| JPH05346811A (en) | Cell controller | |
| JP3026885B2 (en) | Programmable controller and programming device | |
| JPH07210232A (en) | Numerical controller | |
| JPH0460805A (en) | Sequence program generating method | |
| JP2992163B2 (en) | Numerical control method and device | |
| JP2690501B2 (en) | Sequence program editing method | |
| EP0425688A1 (en) | Method of editing program for program controller | |
| JP2787113B2 (en) | Control unit for hydroelectric power plant | |
| JPH05341825A (en) | Cnc machining control system |