JPH04335402A - Pc symbol editing system - Google Patents

Pc symbol editing system

Info

Publication number
JPH04335402A
JPH04335402A JP13565891A JP13565891A JPH04335402A JP H04335402 A JPH04335402 A JP H04335402A JP 13565891 A JP13565891 A JP 13565891A JP 13565891 A JP13565891 A JP 13565891A JP H04335402 A JPH04335402 A JP H04335402A
Authority
JP
Japan
Prior art keywords
symbol
symbol data
data
edited
stored
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
JP13565891A
Other languages
Japanese (ja)
Inventor
Hideaki Kawamura
英昭 川村
Kimio Maeda
前田 紀美夫
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 JP13565891A priority Critical patent/JPH04335402A/en
Publication of JPH04335402A publication Critical patent/JPH04335402A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To easily execute the generation of symbol data of a PMC (programmable machine controller). CONSTITUTION:From initial data stored in a ROM of a PMC, symbol data to which editing is executed is selected (step S1), the selected symbol data is copied in a work area (step S2), the symbol data in the work area is edited (step S3), whether the same symbol data as the edited symbol data exists in a symbol data area or not is inspected (step S4), and unless the same symbol data exists, the edited symbol data is stored in the symbol data area (step S5). Accordingly, it is unnecessary to generate the symbol from the beginning, and it will suffice that only a character-string whose correction is desired is edited, therefore, the symbol can be generated easily.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明はPMCのシンボルデータ
を編集するPCシンボル編集方式に関し、特にPMCの
ROMに格納されたシンボル初期データを編集するPC
シンボル編集方式に関する。
[Field of Industrial Application] The present invention relates to a PC symbol editing method for editing symbol data of a PMC, and more particularly, a PC symbol editing method for editing symbol data stored in a ROM of a PMC.
Concerning symbol editing methods.

【0002】0002

【従来の技術】数値制御装置に内蔵されたPMCは各機
械に対応したシーケンス・プログラムを必要とする。こ
のシーケンス・プログラムにはシンボルデータが使用さ
れる。シンボルデータとは、信号がどのような動作およ
び役割を持つのかを容易に認識するために付加される文
字列データである。したがって、シンボルデータと信号
は一対一に対応している。このため、シンボルデータに
は信号ごとに異なる名称を付す必要がある。
2. Description of the Related Art A PMC built into a numerical control device requires a sequence program corresponding to each machine. Symbol data is used in this sequence program. Symbol data is character string data added to easily recognize what kind of operation and role a signal has. Therefore, symbol data and signals have a one-to-one correspondence. Therefore, it is necessary to give symbol data a different name for each signal.

【0003】従来、オペレータは各信号に対応するシン
ボルデータを作成し、シーケンス・プログラムで使用し
ていた。一般に、シンボルデータはPMCを内蔵してい
る数値制御装置が同じ場合には大部分が同じであり、機
械側の一部の入出力を変更するだけであるものがほとん
どであった。
Conventionally, an operator has created symbol data corresponding to each signal and used it in a sequence program. Generally, symbol data is mostly the same when the numerical control device incorporating the PMC is the same, and in most cases only a part of the input/output on the machine side is changed.

【0004】0004

【発明が解決しようとする課題】このため、シンボルデ
ータがわずかに違っていても、オペレータが全て最初か
らシンボルデータを作成しなければならなかった。とこ
ろが、オペレータが全ての信号についてシンボルデータ
を最初から作成するのは煩雑であり、多大な労力を要す
る。また、作成したシンボルデータが他のシンボルデー
タと同一であれば、シーケンス・プログラムが正常に動
作しない、という問題点があった。
[Problems to be Solved by the Invention] Therefore, even if the symbol data is slightly different, the operator has to create all the symbol data from the beginning. However, it is complicated and requires a lot of effort for the operator to create symbol data for all signals from the beginning. Furthermore, there is a problem in that if the created symbol data is the same as other symbol data, the sequence program will not operate properly.

【0005】本発明はこのような点に鑑みてなされたも
のであり、PMCのシンボルデータの作成が容易に行え
るPCシンボル編集方式を、提供することを目的とする
[0005] The present invention has been made in view of the above points, and it is an object of the present invention to provide a PC symbol editing method that allows easy creation of PMC symbol data.

【0006】[0006]

【課題を解決するための手段】本発明では上記課題を解
決するために、PMCのシーケンス・プログラム中のシ
ンボルデータを編集するPCシンボル編集方式において
、前記PMCのROMに格納されたシンボル初期データ
の中から、編集を行う前記シンボルデータを選択し、選
択された前記シンボルデータをワーク領域に複写し、前
記ワーク領域の前記シンボルデータを編集し、編集され
たシンボルデータと同一のシンボルデータが、シンボル
データ領域に存在するか否かを検査し、同一のシンボル
データが存在しなければ、前記編集されたシンボルデー
タを前記シンボルデータ領域に格納することを特徴とす
るPCシンボル編集方式が、提供される。
[Means for Solving the Problems] In order to solve the above problems, the present invention provides a PC symbol editing method for editing symbol data in a sequence program of a PMC, in which initial symbol data stored in a ROM of the PMC is edited. Select the symbol data to be edited from among them, copy the selected symbol data to the work area, edit the symbol data in the work area, and create a symbol with the same symbol data as the edited symbol data. Provided is a PC symbol editing method, which checks whether or not the same symbol data exists in a data area, and stores the edited symbol data in the symbol data area if the same symbol data does not exist. .

【0007】[0007]

【作用】PMCのROMに格納されたシンボル初期デー
タの中から、編集を行うシンボルデータを選択し、選択
されたシンボルデータをワーク領域に複写し、ワーク領
域のシンボルデータを編集する。もし、編集されたシン
ボルデータと同一のシンボルデータが存在しなければ、
編集されたシンボルデータをシンボルデータ領域に格納
する。
[Operation] Symbol data to be edited is selected from among the symbol initial data stored in the ROM of the PMC, the selected symbol data is copied to the work area, and the symbol data in the work area is edited. If the same symbol data as the edited symbol data does not exist,
Store the edited symbol data in the symbol data area.

【0008】[0008]

【実施例】以下、本発明の一実施例を図面に基づいて説
明する。図2は、本発明を実施するためのPMCを内蔵
した数値制御装置(CNC)の部分ブロック図である。 PMC20は数値制御装置10に内蔵されている。プロ
セッサ11は数値制御装置10全体の制御の中心となる
プロセッサである。また、バス19を介して、ROM1
3に格納されたシステムプログラムを読み出し、このシ
ステムプログラムに従って、数値制御装置10全体の制
御を実行する。共有RAM12は数値制御装置10とP
MC20とのデータの授受を行うためのRAMであり、
同時に双方からアクセスが必要なデータを格納する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings. FIG. 2 is a partial block diagram of a numerical control device (CNC) incorporating a PMC for implementing the present invention. The PMC 20 is built into the numerical control device 10. The processor 11 is a central processor for controlling the entire numerical control device 10. Also, via bus 19, ROM1
The system program stored in 3 is read out, and the entire numerical control device 10 is controlled in accordance with this system program. The shared RAM 12 is connected to the numerical control device 10 and P
A RAM for exchanging data with the MC20,
Store data that needs to be accessed by both parties at the same time.

【0009】RAM14には一時的な計算データ、表示
データ等が格納される。CMOS15は不揮発性メモリ
として構成され、工具補正量、ピッチ誤差補正量、加工
プログラムおよびパラメータ等が格納される。CMOS
15は不揮発性メモリであり、図示されていないバッテ
リでバックアップされる。このため、数値制御装置10
の電源をOFFにしても、CMOS15に格納されたデ
ータはそのまま保持される。なお、CMOS15に格納
されるデータはPMC20側に必要なパラメータ等であ
る。
[0009] The RAM 14 stores temporary calculation data, display data, etc. The CMOS 15 is configured as a nonvolatile memory, and stores tool correction amounts, pitch error correction amounts, machining programs, parameters, and the like. CMOS
15 is a nonvolatile memory, which is backed up by a battery (not shown). For this reason, the numerical control device 10
Even if the power is turned off, the data stored in the CMOS 15 is retained as is. Note that the data stored in the CMOS 15 is parameters etc. required on the PMC 20 side.

【0010】グラフィック制御回路16は各軸の現在位
置、アラーム、パラメータ、画像データ等のディジタル
データを画像信号に変換して出力する。この画像信号は
CRT/MDIユニット30の表示装置31に送られ、
表示装置31で表示される。インターフェース17はC
RT/MDIユニット30内のキーボード32からのデ
ータを受けて、プロセッサ11に渡す。
The graphic control circuit 16 converts digital data such as the current position of each axis, alarms, parameters, image data, etc. into image signals and outputs the image signals. This image signal is sent to the display device 31 of the CRT/MDI unit 30,
It is displayed on the display device 31. Interface 17 is C
Data is received from the keyboard 32 in the RT/MDI unit 30 and passed to the processor 11.

【0011】インターフェース18は外部機器用のイン
ターフェースであり、紙テープリーダ、紙テープパンチ
ャー、紙テープリーダ・パンチャー、プリンタおよび外
部記憶装置等の外部機器40が接続される。外部記憶装
置としては、ハードディスク、光磁気ディスクおよびフ
ロッピーディスク等がある。外部記憶装置および紙テー
プリーダから加工プログラムを入力し、また、数値制御
装置10内で編集された加工プログラムを外部記憶装置
および紙テープパンチャーに出力することができる。
The interface 18 is an interface for external devices, and is connected to external devices 40 such as a paper tape reader, a paper tape puncher, a paper tape reader/puncher, a printer, and an external storage device. External storage devices include hard disks, magneto-optical disks, floppy disks, and the like. A machining program can be input from an external storage device and a paper tape reader, and a machining program edited within the numerical control device 10 can be output to an external storage device and a paper tape puncher.

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

【0013】PMC20にはPMC用のプロセッサ21
があり、プロセッサ21はバス25によって、共有RA
M12と接続され、共有RAM12は数値制御装置10
のバス19に結合されている。また、バス25にはRO
M22a、ROM22bが結合されている。ROM22
aにはシーケンス・プログラムの実行を管理するための
管理プログラムが格納されている。ROM22bにはシ
ンボル初期データが格納される。また、ROM22bに
代えて、シンボル初期データが格納された外部記憶装置
をインターフェース18に接続する場合もある。このよ
うにするのは、シンボル初期データが容易に変更できる
ようにするためである。
[0013] The PMC 20 includes a processor 21 for PMC.
There is a shared RA
The shared RAM 12 is connected to the numerical control device 10.
bus 19. Also, bus 25 has RO
M22a and ROM22b are combined. ROM22
A management program for managing the execution of sequence programs is stored in a. Symbol initial data is stored in the ROM 22b. Furthermore, instead of the ROM 22b, an external storage device storing symbol initial data may be connected to the interface 18. The reason for doing this is to allow symbol initial data to be easily changed.

【0014】さらに、バス25にはRAM23が結合さ
れており、RAM23はPMC20の動作に必要なワー
クRAMとして使用される。また、プログラム作成装置
からのシンボルデータ等を転送して、PMC20内でシ
ンボルデータ等を編集する場合もある。シンボルデータ
の編集にはCRT/MDIユニット30の表示装置31
、キーボード32が使用される。また、RAM23には
入出力信号データも格納される。I/O制御回路24は
バス25に接続され、RAM23に格納された出力信号
をI/Oユニット26にシリアル信号に変換して送る。 また、I/Oユニット26からのシリアルな入力信号を
パラレル信号に変換してバス25に送る。その信号はプ
ロセッサ21によって、RAM23に格納される。
Further, a RAM 23 is coupled to the bus 25, and the RAM 23 is used as a work RAM necessary for the operation of the PMC 20. Further, symbol data and the like from the program creation device may be transferred and edited within the PMC 20 . The display device 31 of the CRT/MDI unit 30 is used to edit symbol data.
, keyboard 32 is used. The RAM 23 also stores input/output signal data. The I/O control circuit 24 is connected to the bus 25, converts the output signal stored in the RAM 23 into a serial signal, and sends the serial signal to the I/O unit 26. It also converts the serial input signal from the I/O unit 26 into a parallel signal and sends it to the bus 25. The signal is stored in RAM 23 by processor 21.

【0015】プロセッサ21は数値制御装置10から共
有RAM12を経由して、M機能指令、T機能指令等の
指令信号を受け、一度RAM23に格納し、その指令を
ROM22aに格納された管理プログラムに従って処理
し、I/O制御回路24を経由して、I/Oユニット2
6に出力する。この出力信号によって、機械側の油圧機
器、空圧機器、電磁機器が制御される。
The processor 21 receives command signals such as M function commands and T function commands from the numerical control device 10 via the shared RAM 12, stores them once in the RAM 23, and processes the commands according to the management program stored in the ROM 22a. and the I/O unit 2 via the I/O control circuit 24.
Output to 6. This output signal controls hydraulic equipment, pneumatic equipment, and electromagnetic equipment on the machine side.

【0016】また、プロセッサ21はI/Oユニット2
6からの機械側のリミットスイッチ信号、機械操作盤の
操作スイッチの信号等の入力信号を受けて、この入力信
号を一度RAM23に格納する。PMC20で処理する
必要のない入力信号は共有RAM12を経由してプロセ
ッサ11に送られる。その他の信号はシーケンス・プロ
グラムで処理し、一部の信号は数値制御装置側へ、他の
信号は出力信号として、I/O制御回路24を経由して
、I/Oユニット26から機械側へ出力される。RAM
23あるいはROM22bに格納されたシンボルデータ
はCRT/MDIユニット30の表示装置31に表示し
、キーボード32によって、修正することができる。
The processor 21 also has an I/O unit 2.
Input signals such as a limit switch signal on the machine side and a signal from an operation switch on a machine operation panel are received from 6, and these input signals are once 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 sent to the numerical control device side, and other signals are sent as output signals from the I/O unit 26 to the machine side via the I/O control circuit 24. Output. RAM
The symbol data stored in 23 or ROM 22b can be displayed on the display device 31 of the CRT/MDI unit 30 and modified using the keyboard 32.

【0017】図1は、本発明のPCシンボル編集方式を
示すフローチャートである。 〔S1〕PMCのROMに格納されたシンボル初期デー
タの中から、オペレータは編集を行うシンボルデータを
選択する。 〔S2〕選択されたシンボル初期データがPMCのRO
Mからワーク領域に複写される。 〔S3〕オペレータはワーク領域に複写されたシンボル
データの編集を行う。 〔S4〕編集されたシンボルデータと同一のシンボルデ
ータが、シンボルデータ領域に存在するか否かの検査を
行う。もし、同一のシンボルデータがなければステップ
S5に進み、同一のシンボルデータがあればエラーメッ
セージを表示してステップS3に進む。 〔S5〕編集されたシンボルデータをワーク領域からシ
ンボルデータ領域に格納する。 したがって、PMCのROMに格納されたシンボルデー
タの一部を、オペレータが必要な個数、必要な文字列だ
けを編集し、シンボルデータ領域に格納することから、
容易にシンボルデータを作成することができる。
FIG. 1 is a flowchart showing the PC symbol editing method of the present invention. [S1] The operator selects symbol data to be edited from among the initial symbol data stored in the ROM of the PMC. [S2] Selected symbol initial data is PMC RO
Copied from M to the work area. [S3] The operator edits the symbol data copied to the work area. [S4] It is checked whether the same symbol data as the edited symbol data exists in the symbol data area. If there is no identical symbol data, the process proceeds to step S5, and if there is identical symbol data, an error message is displayed and the process proceeds to step S3. [S5] Store the edited symbol data from the work area to the symbol data area. Therefore, the operator edits only the necessary number and necessary character strings of a part of the symbol data stored in the ROM of the PMC and stores them in the symbol data area.
Symbol data can be easily created.

【0018】図3は、RAMの領域区分を示す図である
。RAM23は本発明を実施するために、4つの領域に
区分される。この4つの領域は、システムデータ領域5
1、シンボルデータ領域52、コメントデータ領域53
およびワーク領域54である。
FIG. 3 is a diagram showing the area division of the RAM. RAM 23 is divided into four areas in order to implement the present invention. These four areas are system data area 5.
1. Symbol data area 52, comment data area 53
and a work area 54.

【0019】システムデータ領域51には、管理プログ
ラムを実行するための諸データ、シンボル先頭アドレス
51aおよびシンボル格納数51b等が格納される。シ
ンボル先頭アドレス51aには、シンボルデータ領域5
2の最初のアドレスが格納される。また、シンボル格納
数51bには、シンボルデータ領域52に格納されたシ
ンボルデータの総数が格納される。シンボルデータ領域
52には、後述するシンボルデータ情報が格納される。 コメントデータ領域53には、シンボルデータに関する
コメントデータが格納される。このコメントデータとは
、どのシンボルがどのような意味を有するのかを、オペ
レータが容易に理解するための文字列情報である。ワー
ク領域54には、シンボルデータを編集するためのシン
ボル初期データ等が格納される。
The system data area 51 stores various data for executing a management program, a symbol start address 51a, a symbol storage number 51b, and the like. The symbol data area 5 is located at the symbol start address 51a.
The first address of 2 is stored. Further, the total number of symbol data stored in the symbol data area 52 is stored in the symbol storage number 51b. The symbol data area 52 stores symbol data information, which will be described later. Comment data regarding symbol data is stored in the comment data area 53. This comment data is character string information that allows the operator to easily understand which symbol has what meaning. The work area 54 stores symbol initial data and the like for editing symbol data.

【0020】図4は、シンボルデータ情報の内容を示す
図である。シンボルデータ情報60は、信号アドレス6
1、シンボルデータ62およびコメント先頭アドレス6
3を有する。信号アドレス61は制御対象となる信号の
アドレスである。シンボルデータ62がラダー図等に表
されるシンボルの文字列データである。コメント先頭ア
ドレス63は、シンボルデータ62に関するコメントデ
ータを格納したコメントデータ領域内の先頭アドレスが
格納される。なお、シンボルデータ情報60は、図3の
シンボルデータ領域52に格納される。
FIG. 4 is a diagram showing the contents of symbol data information. Symbol data information 60 is signal address 6
1. Symbol data 62 and comment start address 6
It has 3. The signal address 61 is the address of the signal to be controlled. Symbol data 62 is character string data of symbols represented in a ladder diagram or the like. The comment start address 63 stores the start address in the comment data area in which comment data related to the symbol data 62 is stored. Note that the symbol data information 60 is stored in the symbol data area 52 in FIG. 3.

【0021】図5〜図8は、シンボルデータ編集画面の
一例を示す図である。図5は、シンボル初期データの選
択開始時の画面を示した一例である。図にはCRT/M
DIユニット30の一部が示されており、表示装置31
、データ入力キー71、カーソル移動キー72、編集指
令キー73およびソフトキー74a,74b,74cが
表されている。データ入力キー71は、シンボルの文字
列等を入力するキーである。カーソル移動キー72は表
示装置31の画面上のカーソルを移動させるためのキー
である。編集指令キー73は、シンボルの文字列を編集
するにあたって挿入、削除、置換等を指令するキーであ
る。ソフトキー74a,74b,74cは表示装置31
の画面下部に表示された内容を指令するためのキーであ
る。なお、これらの構成は図5〜図8について共通であ
る。図5において、オペレータは編集を行いたい信号ア
ドレスに、カーソル移動キー72によってカーソル81
を移動させる。次に、範囲選択開始(COPY)を指令
するソフトキー74bを押す。
FIGS. 5 to 8 are diagrams showing examples of symbol data editing screens. FIG. 5 is an example of a screen when symbol initial data selection is started. The figure shows a CRT/M
A portion of the DI unit 30 is shown, and a display device 31
, a data input key 71, a cursor movement key 72, an edit command key 73, and soft keys 74a, 74b, and 74c. The data input key 71 is a key for inputting character strings of symbols and the like. The cursor movement key 72 is a key for moving a cursor on the screen of the display device 31. The edit command key 73 is a key for commanding insertion, deletion, replacement, etc. when editing a character string of a symbol. Soft keys 74a, 74b, 74c are displayed on the display device 31.
This key is used to command the contents displayed at the bottom of the screen. Note that these configurations are common to FIGS. 5 to 8. In FIG. 5, the operator moves the cursor 81 to the signal address he wishes to edit using the cursor movement key 72.
move. Next, the user presses the soft key 74b which instructs to start range selection (COPY).

【0022】図6は、シンボル初期データの選択終了時
の画面を示した一例である。上記の範囲選択開始(CO
PY)を指令するソフトキー74bが押されると、図6
の画面に変わる。このとき、信号アドレスのデータ(X
0.0)が反転する。同時に、選択範囲の終わりを決定
するためにもう一つのカーソル82が現れる。そこで、
カーソル移動キー72によってカーソル82を移動させ
、範囲選択終了(UNTIL)を指令するソフトキー7
4bを押す。範囲選択開始と同様に、信号アドレスのデ
ータ(X3.0)が反転する。これによって、図2のP
MC20のROM22bにあるシンボル初期データの編
集する範囲が確定する。もし、範囲選択を破棄したい場
合には、破棄(CANCEL)を指令するソフトキー7
4cを押す。すると、これまでの範囲選択操作は全て破
棄され、範囲選択に入る前の状態に戻る。なお、これら
の範囲選択の操作は図1のステップS1に相当する。
FIG. 6 is an example of a screen when symbol initial data selection is completed. Start selecting the above range (CO
When the soft key 74b that commands PY) is pressed, the
The screen changes to At this time, the signal address data (X
0.0) is inverted. At the same time, another cursor 82 appears to determine the end of the selection range. Therefore,
Soft key 7 for moving the cursor 82 using the cursor movement key 72 and commanding the end of range selection (UNTIL)
Press 4b. Similar to the start of range selection, the signal address data (X3.0) is inverted. As a result, P in Fig. 2
The editing range of the initial symbol data in the ROM 22b of the MC 20 is determined. If you want to cancel the range selection, soft key 7 instructs the cancellation (CANCEL).
Press 4c. Then, all previous range selection operations are discarded, and the state returns to the state before range selection was started. Note that these range selection operations correspond to step S1 in FIG.

【0023】図7は、シンボルデータの編集終了時の画
面を示した一例である。上記の範囲選択終了(UNTI
L)を指令するソフトキー74bが押されると、図7の
画面に変わる。図7の画面では、文字列編集用のカーソ
ル83が現れ、シンボル文字列を1文字単位で編集する
ことができる。編集はデータ入力キー71によって文字
を入力し、カーソル移動キー72および編集指令キー7
3によって編集の補助操作を行う。また、編集指令キー
73の代わりに、モード切換(MODE)を指令するソ
フトキー74aによって、挿入および削除等を行うこと
もできる。
FIG. 7 shows an example of the screen when symbol data editing is completed. End of range selection above (UNTI
When the soft key 74b for commanding L) is pressed, the screen changes to the one shown in FIG. On the screen shown in FIG. 7, a cursor 83 for editing character strings appears, allowing the symbol character string to be edited character by character. For editing, input characters using the data input key 71, then use the cursor movement key 72 and the edit command key 7.
3 performs auxiliary editing operations. Further, instead of the edit command key 73, insertion, deletion, etc. can also be performed using a soft key 74a for commanding mode switching (MODE).

【0024】全ての編集が終了した時点で、オペレータ
は編集終了(EXEC)を指令するソフトキー74bを
押す。もし、編集を破棄したい場合には、破棄(CAN
CEL)を指令するソフトキー74cを押す。すると、
これまでの編集操作は全て破棄され、編集に入る前の状
態に戻る。なお、これらの操作は図1のステップS3に
相当する。
When all editing is completed, the operator presses the soft key 74b to command the end of editing (EXEC). If you want to discard the edit, use the discard (CAN)
CEL) is pressed. Then,
All previous editing operations are discarded and the state returns to the state before editing. Note that these operations correspond to step S3 in FIG.

【0025】編集終了(EXEC)を指令するソフトキ
ー74bが押されると、編集された信号アドレスのシン
ボルデータが既に図3のシンボルデータ領域52に格納
されたシンボルデータと一致するものが存在するか否か
を検査する。この検査を行う動作は図1のステップS4
に相当する。もし、一致するものが存在しなければ、そ
のままシンボルデータの編集を終了する。このとき、編
集されたシンボルデータは図3のシンボルデータ領域5
2に格納される。シンボルデータの格納動作は図1のス
テップS5に相当する。
When the soft key 74b commanding the end of editing (EXEC) is pressed, it is checked whether the symbol data of the edited signal address matches the symbol data already stored in the symbol data area 52 of FIG. Inspect whether or not. The operation for performing this inspection is step S4 in FIG.
corresponds to If a match does not exist, editing of the symbol data is finished. At this time, the edited symbol data is the symbol data area 5 in FIG.
2. The symbol data storage operation corresponds to step S5 in FIG.

【0026】図8は、シンボルデータの二重定義エラー
時の画面を示した一例である。上記の編集終了時に編集
された信号アドレスのシンボルデータと同一のシンボル
データが、既に格納された図3のシンボルデータ領域5
2に存在するとき、図8の画面に変わる。このとき、表
示装置31の画面下部にエラーメッセージを表示し、オ
ペレータに注意を促す。図には、信号アドレス(X1.
0)のシンボル(RRW)が二重に定義されていたため
に、エラーになったことを示している。また、オペレー
タはエラーメッセージに従い、エラーが示されたシンボ
ルについて再編集する必要がある。
FIG. 8 is an example of a screen displayed when a symbol data double definition error occurs. Symbol data area 5 of FIG. 3 in which symbol data identical to the symbol data of the signal address edited at the end of the above editing has already been stored.
2, the screen changes to the one shown in FIG. At this time, an error message is displayed at the bottom of the screen of the display device 31 to alert the operator. The figure shows signal addresses (X1.
This indicates that an error occurred because the symbol (RRW) of 0) was defined twice. Further, the operator must follow the error message and re-edit the symbol in which the error is indicated.

【0027】本実施例では、PMCのROMに格納され
たシンボルデータの一部をオペレータが選択し、選択し
たシンボルデータの必要な文字列だけを編集する。編集
されたシンボルデータは自動的にシンボルデータ領域に
格納されるため、容易にシンボルデータを作成すること
ができる。
In this embodiment, the operator selects a part of the symbol data stored in the ROM of the PMC, and edits only the necessary character strings of the selected symbol data. Since the edited symbol data is automatically stored in the symbol data area, symbol data can be easily created.

【0028】上記の説明では、編集の対象となるシンボ
ルデータはPMCのROMに格納されたシンボル初期デ
ータとしたが、編集前にPMCのROMからシンボル初
期データをシンボルデータ領域に複写し、シンボルデー
タ領域に格納されたシンボルデータとしてもよい。また
、シンボル初期データを外部記憶装置に格納し、外部記
憶装置に格納されたシンボルデータを編集の対象として
もよい。編集前に外部記憶装置からシンボル初期データ
をシンボルデータ領域に複写し、シンボルデータ領域に
格納されたシンボルデータを編集の対象としてもよい。 さらに、編集はCRT/MDIユニットで行なったが、
インターフェース27に接続されるプログラム作成装置
で行なってもよい。
In the above explanation, the symbol data to be edited is the initial symbol data stored in the ROM of the PMC. However, before editing, the initial symbol data is copied from the ROM of the PMC to the symbol data area, and the symbol data is It may also be symbol data stored in an area. Alternatively, symbol initial data may be stored in an external storage device, and the symbol data stored in the external storage device may be edited. Before editing, symbol initial data may be copied from the external storage device to the symbol data area, and the symbol data stored in the symbol data area may be the subject of editing. Furthermore, although editing was done with a CRT/MDI unit,
The program creation device connected to the interface 27 may also be used.

【0029】[0029]

【発明の効果】以上説明したように本発明では、PMC
のROMに格納されたシンボル初期データを選択し、必
要な文字列について編集し、シンボルデータ領域に格納
するようにしたので、容易にシンボルデータを作成する
ことができる。
[Effects of the Invention] As explained above, in the present invention, PMC
Since symbol initial data stored in the ROM is selected, necessary character strings are edited, and stored in the symbol data area, symbol data can be easily created.

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

【図1】本発明のPCシンボル編集方式を示すフローチ
ャートである。
FIG. 1 is a flowchart showing a PC symbol editing method of the present invention.

【図2】本発明を実施するためのPMCを内蔵した数値
制御装置の部分ブロック図である。
FIG. 2 is a partial block diagram of a numerical control device incorporating a PMC for implementing the present invention.

【図3】RAMの領域区分を示す図である。FIG. 3 is a diagram showing area divisions of RAM.

【図4】シンボルデータ情報の内容を示す図である。FIG. 4 is a diagram showing the contents of symbol data information.

【図5】シンボル初期データの選択開始時の画面を示す
図である。
FIG. 5 is a diagram showing a screen at the time of starting selection of symbol initial data.

【図6】シンボル初期データの選択終了時の画面を示す
図である。
FIG. 6 is a diagram showing a screen when symbol initial data selection is completed.

【図7】シンボルデータの編集終了時の画面を示す図で
ある。
FIG. 7 is a diagram showing a screen when editing of symbol data is completed.

【図8】シンボルデータの二重定義エラー時の画面を示
す図である。
FIG. 8 is a diagram showing a screen when a symbol data double definition error occurs.

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

10    数値制御装置(CNC) 11    プロセッサ 12    共有RAM 20    PMC(プログラマブル・マシン・コント
ローラ) 21    プロセッサ 22a  ROM(管理プログラム) 22b  ROM(シンボル初期データ)23    
RAM 24    I/O制御回路 26    I/Oユニット
10 Numerical control device (CNC) 11 Processor 12 Shared RAM 20 PMC (Programmable Machine Controller) 21 Processor 22a ROM (Management program) 22b ROM (Symbol initial data) 23
RAM 24 I/O control circuit 26 I/O unit

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】  PMC(プログラマブル・マシン・コ
ントローラ)のシーケンス・プログラム中のシンボル(
信号名称)データを編集するPCシンボル編集方式にお
いて、前記PMCのROMに格納されたシンボル初期デ
ータの中から、編集を行う前記シンボルデータを選択し
、選択された前記シンボルデータをワーク領域に複写し
、前記ワーク領域の前記シンボルデータを編集し、編集
されたシンボルデータと同一のシンボルデータが、シン
ボルデータ領域に存在するか否かを検査し、同一のシン
ボルデータが存在しなければ、前記編集されたシンボル
データを前記シンボルデータ領域に格納することを特徴
とするPCシンボル編集方式。
[Claim 1] A symbol (
In the PC symbol editing method for editing data (signal name), the symbol data to be edited is selected from among the symbol initial data stored in the ROM of the PMC, and the selected symbol data is copied to a work area. , edits the symbol data in the work area, checks whether the same symbol data as the edited symbol data exists in the symbol data area, and if the same symbol data does not exist, the edited symbol data 1. A PC symbol editing method, characterized in that symbol data that has been created is stored in the symbol data area.
【請求項2】  PMCのシーケンス・プログラム中の
シンボルデータを編集するPCシンボル編集方式におい
て、前記PMCのROMに格納された全ての前記シンボ
ル初期データを、予め前記シンボルデータ領域に格納し
、前記シンボルデータ領域に格納された前記シンボル初
期データの中から、編集を行うシンボルデータを選択し
、選択された前記シンボルデータをワーク領域に複写し
、前記ワーク領域の前記シンボルデータを編集し、編集
されたシンボルデータと同一のシンボルデータが、前記
シンボルデータ領域に存在するか否かを検査し、同一の
シンボルデータが存在しなければ、前記編集されたシン
ボルデータを、複写を行なった元の前記シンボルデータ
領域に格納することを特徴とするPCシンボル編集方式
2. In a PC symbol editing method for editing symbol data in a sequence program of a PMC, all of the symbol initial data stored in a ROM of the PMC is stored in advance in the symbol data area, and the symbol Select symbol data to be edited from among the symbol initial data stored in the data area, copy the selected symbol data to the work area, edit the symbol data in the work area, and select the edited symbol data. It is checked whether symbol data identical to the symbol data exists in the symbol data area, and if the same symbol data does not exist, the edited symbol data is replaced with the original symbol data that was copied. A PC symbol editing method characterized by storing in an area.
【請求項3】  前記シンボル初期データは、外部記憶
装置に有することを特徴とする請求項1または請求項2
記載のPCシンボル編集方式。
3. The symbol initial data is stored in an external storage device.
PC symbol editing method described.
【請求項4】  プログラム作成装置で前記シンボルデ
ータの編集を行うことを特徴とする請求項1または請求
項2記載のPCシンボル編集方式。
4. The PC symbol editing method according to claim 1, wherein the symbol data is edited by a program creation device.
JP13565891A 1991-05-10 1991-05-10 Pc symbol editing system Pending JPH04335402A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP13565891A JPH04335402A (en) 1991-05-10 1991-05-10 Pc symbol editing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP13565891A JPH04335402A (en) 1991-05-10 1991-05-10 Pc symbol editing system

Publications (1)

Publication Number Publication Date
JPH04335402A true JPH04335402A (en) 1992-11-24

Family

ID=15156926

Family Applications (1)

Application Number Title Priority Date Filing Date
JP13565891A Pending JPH04335402A (en) 1991-05-10 1991-05-10 Pc symbol editing system

Country Status (1)

Country Link
JP (1) JPH04335402A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7877728B2 (en) 2005-05-10 2011-01-25 Fanuc Ltd Sequence program editing apparatus

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7877728B2 (en) 2005-05-10 2011-01-25 Fanuc Ltd Sequence program editing apparatus

Similar Documents

Publication Publication Date Title
JPH08123515A (en) Display system for sequence program
JP3679844B2 (en) Sequence program execution device
JP2773517B2 (en) Program display device
JPH025102A (en) Input system for pc rudder graphic
JPH04335402A (en) Pc symbol editing system
JPH06149342A (en) Numerical controller
JP2002126975A (en) Fixed cycle command preparation supporting method and nc device
JPH08339215A (en) Numerical controller
JPH03294906A (en) Editing system for working program
JP2000039909A (en) Numerical control information creating device
JP3619539B2 (en) Tool path editing method
JP3000985B2 (en) Numerical control unit
JPH0863218A (en) Program constitution display system
JPH05181510A (en) Picture display method for programming device in programmable controller
JPH06202906A (en) Nc program editing device
JPH0519817A (en) System for editing sequence program
JPH05313708A (en) Sequence program editing system
JP3000986B2 (en) Machining program creating device and machining program creating method
JPH05324038A (en) Numerical controller with display function for guide information
EP0425688A1 (en) Method of editing program for program controller
JPH0673084B2 (en) Auxiliary function recovery method in numerical control device
JPH08286712A (en) Editing system for sequence program
JPS6249404A (en) Method and device for editing nc program
JPH0460806A (en) Ladder program management system
JPH09101812A (en) Numerical controller