JPH03219303A - Numerical controller - Google Patents
Numerical controllerInfo
- Publication number
- JPH03219303A JPH03219303A JP1679590A JP1679590A JPH03219303A JP H03219303 A JPH03219303 A JP H03219303A JP 1679590 A JP1679590 A JP 1679590A JP 1679590 A JP1679590 A JP 1679590A JP H03219303 A JPH03219303 A JP H03219303A
- Authority
- JP
- Japan
- Prior art keywords
- skip
- program
- symbol
- information
- block
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 description 14
- 238000010586 diagram Methods 0.000 description 8
- 238000003754 machining Methods 0.000 description 7
- 230000004913 activation Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Landscapes
- Numerical Control (AREA)
Abstract
Description
【発明の詳細な説明】
[産業上の利用分野]
本発明は制御プログラムに基づいて工作機械の機械加工
を行う数値制御装置、特に、該プログラム中の任意の情
報をスキップ機能によりスキップさせ、スキップされた
プログラムを読み出し実行して工作機械の自動制御を行
う数値制御装置に関する。[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to a numerical control device that performs machining on a machine tool based on a control program, and particularly to a numerical control device that uses a skip function to skip arbitrary information in the program. The present invention relates to a numerical control device that automatically controls a machine tool by reading and executing a program.
[従来の技術]
数値制御による工作機械において、−船釣に、ワークを
機械加工する場合は、1種類のワークに対し、1つのパ
ートプログラムを準備してこれに基づいて所定の加工を
行っている。[Conventional technology] When machining a workpiece using a numerically controlled machine tool, one part program is prepared for one type of workpiece and predetermined machining is performed based on this part program. There is.
しかし、加工するワークは類似形状の物が多くあり、特
に、このような場合には、例えば第6図及び第7図に示
すように、一部分の形状だけが異なっていることが多い
。However, many of the workpieces to be processed have similar shapes, and particularly in such cases, only a portion of the shape is often different, as shown in FIGS. 6 and 7, for example.
そこで、従来において、この種の一部分だけ形状が異な
るワークを加工する場合には、−例として第5図に示さ
れたプログラムのように、加工ワークにより不要となる
工程部に相当するパートプログラムを1つにし、複数の
ブロック群の各ブロックの先頭に例えば、スラッシュ記
号“/2等の特定記号を設け、これにより、加工を実行
させるオプショナルブロックスキップ機能によって行っ
ていた。Conventionally, when machining a workpiece of this type whose shape differs only in part, a part program corresponding to a process section that becomes unnecessary due to the machining workpiece is created, such as the program shown in Fig. 5, for example. A specific symbol such as a slash symbol "/2" is provided at the beginning of each block of a plurality of block groups, and an optional block skip function is used to execute the processing.
このオプショナルブロックスキップ機能は、上記ブロッ
クの先頭に特定記号(キャラクタ)が付加されている場
合、操作部の操作盤上などに設けられたオプショナルブ
ロックスキップスイッチONの時には、該任意のブロッ
クの情報をスキップして無効にする機能である。This optional block skip function allows information on the arbitrary block to be saved when a specific symbol (character) is added to the beginning of the block mentioned above, and when the optional block skip switch provided on the operation panel of the operation unit is turned on. This is a feature that can be skipped and disabled.
従って、従来では、数値制御の機械加工にこの機能を利
用して、オプショナルブロックスキップスイッチがON
であれば、前記工程部を無効とし、また、該オプショナ
ルブロックスキップスイッチがOFFであれば、前記工
程部を有効として、前記パートプログラムに基づいて工
作機械を作動制御させていた。Therefore, in the past, this function was used in numerically controlled machining to turn on the optional block skip switch.
If so, the process section is disabled, and if the optional block skip switch is OFF, the process section is enabled and the operation of the machine tool is controlled based on the part program.
第4図には、この種のオプショナルブロックスキップ機
能を有する数値制御装置の回路構成図が示されており、
図に示すように、従来の数値制御装置は、前記オプショ
ナルブロックスキップスイッチを有する操作部1oとパ
ートプログラム記憶部12とブロックスキップ処理部1
4とパートプログラム解析部16とパートプログラム実
行部18とから構成されている。FIG. 4 shows a circuit configuration diagram of a numerical control device having this type of optional block skip function.
As shown in the figure, the conventional numerical control device includes an operating section 1o having the optional block skip switch, a part program storage section 12, and a block skip processing section 1.
4, a part program analysis section 16, and a part program execution section 18.
すなわち、前記ブロックスキップ処理部14は、前記パ
ートプログラム記憶部12がらの記憶されているパート
プログラムを例えば、ブロック単位(第5図に示すN0
01、N0O2161,〜N0O9)で読み込んでいる
。In other words, the block skip processing section 14 stores the part programs stored in the part program storage section 12 in block units (N0 shown in FIG. 5), for example.
01, N0O2161, to N0O9).
そして、前記操作部1oでの前記ブロックスキップスイ
ッチON、OFF切換え、すなわちスキップの有効又は
無効の情報に基づき、前述した第5図に示すようにスラ
ッシュ記号“/”等の特定記号の付加されたブロックを
有効とするが、無効とするかを判定し、判定された有効
ブロックだけを前記パートプログラム解析部16に転送
している。Based on the ON/OFF switching of the block skip switch on the operation unit 1o, that is, the information on whether skip is enabled or disabled, a specific symbol such as a slash symbol "/" is added as shown in FIG. It is determined whether a block is valid or invalid, and only the determined valid blocks are transferred to the part program analysis section 16.
そして、このパートプログラム解析部16では、この有
効ブロックだけを前記パートプログラム実行部18に送
り、これにより、この実行部18で該有効とされたブロ
ックの内容の実行を行っている。Then, the part program analysis section 16 sends only this valid block to the part program execution section 18, so that the execution section 18 executes the contents of the block determined to be valid.
[発明が解決しようとする課題]
しかしながら、このような従来の数値制御装置において
、前記オプショナルブロックスキップ機能は、ブロック
スキップスイッチがONの時、上記の通りブロック先頭
に付加された特定のキャラクタ記号を認識し、これによ
り、該ブロックのみが無効となるので、複数の連続した
ブロックをまとめて無効にすることはできなかった。[Problems to be Solved by the Invention] However, in such a conventional numerical control device, when the block skip switch is ON, the optional block skip function skips a specific character symbol added to the beginning of the block as described above. This makes only that block invalid, so multiple consecutive blocks could not be invalidated all at once.
このため、連続したブロックをまとめて無効にするには
、第5図に示すように対象となる各ブロック全てに例え
ば、スラッシュ記号“/”等の特定記号を付加すること
が必要であった。Therefore, in order to invalidate consecutive blocks all at once, it is necessary to add a specific symbol, such as a slash symbol "/", to each target block as shown in FIG.
すなわち、この機能は、前記第5図のように、ブロック
の先頭に付加される特定記号“/”を認識し、前記操作
部10上のオプショナルブロックスキップスイッチがO
Nの時のみ該ブロックを無効とするもので、必要とされ
るパートプログラムの工程郡全体を無効としたい場合に
は、第5図に示すN003〜N006のように、前記工
程部の全部のブロック群先頭に特定記号“/“を付加す
る必要が生じていた。That is, this function recognizes the specific symbol "/" added to the beginning of a block as shown in FIG.
If you want to invalidate the block only when the block is N, and you want to invalidate the entire process group of the required part program, all the blocks of the process part, like N003 to N006 shown in FIG. It became necessary to add a specific symbol "/" to the beginning of the group.
このため、前記パートプログラムの作成においては、上
述のことを考慮しなければならず、非常に手間と時間が
かかるという欠点があった。For this reason, when creating the part program, the above-mentioned matters must be taken into consideration, which has the disadvantage of being extremely time-consuming and labor-intensive.
また、第8図及び第9図に示されているように、異なる
2種類の加工ワークの輪郭加工を行う場合には、第10
図に示すようなパートプログラムを作成する必要がある
。In addition, as shown in FIGS. 8 and 9, when contouring two different types of workpieces, the 10th
It is necessary to create a part program as shown in the figure.
そして、このパートプログラムでは、図の下線部に示す
各ブロック部(N203.Y2O)及びブロック内の一
部(X90)の情報を有効にするか、無効にするかの選
択ができれば、第8図、第9図に示す2種の形状ワーク
の加工が1つのプログラムで可能となる。In this part program, if it is possible to select whether to enable or disable the information of each block section (N203.Y2O) and a part of the block (X90) shown in the underlined part of the figure, as shown in FIG. , machining of two types of workpieces shown in FIG. 9 is possible with one program.
しかし、上記パートプログラムにおいて、従来のオプシ
ョナルブロックスキップ機能では、このような各ブロッ
ク部及びブロック内の一部を一緒にスキップさせること
はできず、また特に、ブロック内の一部(X 90)を
スキップさせることは不可能であり、2種のパートプロ
グラムを作成しなければならない。これにより、プログ
ラムが長くなり、該プログラム作成の時間に無駄が生じ
、手間がかかるという欠点があった。However, in the above part program, with the conventional optional block skip function, it is not possible to skip each block part and part of the block together, and in particular, it is not possible to skip part of the block (X 90). It is impossible to skip, and two types of part programs must be created. This has the disadvantage that the program becomes long, and the time and effort required to create the program is wasted.
発明の目的
本発明は上記従来の課題に鑑み成されたものであり、そ
の目的は、プログラム中の特定のスキップ対象情報にス
キップを開始する指示記号及びスキップを解除する指示
記号を付加して、この2つの指示記号により、任意の連
続したスキップ対象情報を一度に有効か無効かを選択す
ることができる数値制御装置を提供することにある。Purpose of the Invention The present invention has been made in view of the above-mentioned conventional problems, and its purpose is to add an instruction symbol to start skipping and an instruction symbol to cancel skipping to specific skip target information in a program. The object of the present invention is to provide a numerical control device that can select whether any continuous pieces of skip target information are valid or invalid at once using these two instruction symbols.
[課題を解決するための手段]
上記目的を達成するために1本発明に係る数値制御装置
は、プログラムを読み出して該プログラム中の任意の情
報にスキップ対象情報としてスキップ指示記号を付加し
該スキップ対象情報を無効として工作機械の自動制御を
行い、前記プログラムは、前記スキップ指示記号として
スキップを開始させるスキップ開始記号とスキップを終
了させるスキップ解除記号とが付加されたスキップ付加
プログラムであって、前記スキップ対象情報に対しスキ
ップを行うか否かを選択してスキップ選択信号を出力す
るスキップ選択手段と、前記スキップ選択信号を入力し
スキップを行う場合であって、前記スキップ付加プログ
ラムを入力し前記スキップ開始記号と判定した時は、該
スキップ解除記号と判定されるまでのスキップ対象情報
を無効とし、該スキップ選択信号を入力してスキップを
行わない場合は、入力される該スキップ付加プログラム
の情報全てを有効として前記スキップ付加プログラムを
読み出す指示記号判定読み出し手段とを備えたことを特
徴とする。[Means for Solving the Problems] In order to achieve the above object, a numerical control device according to the present invention reads a program, adds a skip instruction symbol to arbitrary information in the program as information to be skipped, and executes the skip. A machine tool is automatically controlled by invalidating the target information, and the program is a skip addition program to which a skip start symbol for starting skip and a skip cancel symbol for ending skip are added as the skip instruction symbol, a skip selection means for selecting whether or not to perform skipping on information to be skipped and outputting a skip selection signal; When it is determined that it is a start symbol, the information to be skipped until it is determined that it is the skip cancellation symbol is invalidated, and when the skip selection signal is input and no skip is performed, all information of the input skip addition program is invalidated. The present invention is characterized by comprising an instruction symbol determination reading means for reading out the skip addition program with the skip addition program set as valid.
[作用]
以上のような構成としたので本発明の数値制御装置によ
れば、制御プログラム中の任意の情報であるスキップ対
象情報にスキップを開始させるスキップ開始記号とスキ
ップを終了させるスキップ解除記号とが付加されたスキ
ップ付加プログラムにより、工作機械の自動制御を行っ
ている。[Function] With the above configuration, the numerical control device of the present invention has a skip start symbol for starting skipping, a skip canceling symbol for ending skipping, and a skip target information that is arbitrary information in the control program. The machine tool is automatically controlled by the skip added program.
このため、前記スキップを行う場合には、スキップ開始
記号と判定した時は、該スキップ解除記号と判定される
までのスキップ対象情報を無効とすることができる。Therefore, when performing the above-mentioned skip, when it is determined that the symbol is a skip start symbol, it is possible to invalidate the skip target information up to the time when it is determined that the symbol is the skip cancel symbol.
また、スキップを行わない場合は、該スキップ付加プロ
グラムの情報全てを有効とすることが可能となる。Moreover, when skipping is not performed, it becomes possible to make all the information of the skip addition program valid.
この結果、スキップの開始記号と解除記号とで囲まれた
スキップ対象情報だけを無効として前記スキップ付加プ
ログラムを実行させることが可能となる。従って、該ス
キップ対象情報をまとめて有効とするか無効とするかを
選択することができる。As a result, it becomes possible to execute the skip addition program by invalidating only the skip target information surrounded by the skip start symbol and the skip cancellation symbol. Therefore, it is possible to select whether to make the skip target information valid or invalid all at once.
[実施例] 以下、図面に基いて本発明の好適な実施例を説明する。[Example] Hereinafter, preferred embodiments of the present invention will be described based on the drawings.
第1図は、本発明に係る数値制御装置の一例を示した回
路構成図である。尚、前述した第4図との同一部材には
同一符号を付し以下、構成及び動作の説明は省略する。FIG. 1 is a circuit configuration diagram showing an example of a numerical control device according to the present invention. Incidentally, the same members as those in FIG. 4 described above are given the same reference numerals, and the explanation of the structure and operation will be omitted hereinafter.
本発明において特徴的なことは、スキップ付加プログラ
ムに基づいて、スキップを行う場合は、スキップ開始記
号と判定した時、該スキップ解除記号と判定されるまで
のスキップ対象情報を無効とし、スキップを行わない場
合は、該スキップ付加プログラムの情報全てを有効とす
ることにある。A characteristic feature of the present invention is that when skipping is performed based on the skip addition program, when it is determined to be a skip start symbol, the skip target information up to the time when it is determined to be the skip cancellation symbol is invalidated, and the skip is performed. If there is no such program, all information of the skip addition program is made valid.
以下、本実施例を示す第1図の数値制御装置の構成を説
明する。The configuration of the numerical control device shown in FIG. 1 showing this embodiment will be explained below.
図において、本実施例の数値制御装置は、スキップ開始
記号とスキップ解除記号とが付加されたスキップ付加プ
ログラムを記憶するスキップ付加プログラム記憶部20
と、スキップを行うか否か選択するスキップ選択手段と
してのスキップ選択操作部22と、前記スキップ開始・
解除記号を判定しスキップ付加プログラムを読み出す指
示記号判定読み出し部24とから構成されている。In the figure, the numerical control device of this embodiment includes a skip addition program storage unit 20 that stores a skip addition program to which a skip start symbol and a skip cancellation symbol are added.
, a skip selection operation unit 22 as a skip selection means for selecting whether or not to perform a skip, and the skip start/skip
The instruction symbol determination and reading section 24 determines the cancellation symbol and reads out the skip addition program.
この指示記号判定読み出し部24は、図示のようにスキ
ップ開始記号判定部26及びスキップ解除記号判定部2
8とから成、す、両判定部26゜28は並列的に接続さ
れている。This instruction symbol determination reading section 24 includes a skip start symbol determination section 26 and a skip cancellation symbol determination section 2 as shown in the figure.
Both the determining sections 26 and 28 are connected in parallel.
すなわち、まず、前記スキップ開始記号判定部26には
、前記スキップ付加プログラム記憶部20から読み出さ
れたスキップ付加プログラム20aが入力されると共に
、一方でスキップ判定処理を行う選択情報として、前記
スキップ選択操作部22からスキップを行うか否かのス
キップ選択信号、すなわちスキップ有効・無効情報22
a。That is, first, the skip addition program 20a read from the skip addition program storage section 20 is input to the skip start symbol determination section 26, and at the same time, the skip selection is inputted as selection information for performing skip determination processing. A skip selection signal indicating whether or not to skip from the operation unit 22, that is, skip valid/invalid information 22
a.
22bが入力される。22b is input.
このスキップ開始記号判定部26は、スキップ有効情報
22aによりスキップを行う場合は、順次入力される前
記スキップ付加プログラム中にスキップを開始させる開
始記号(キャラクタ)が現れるまで該スキップ付加プロ
グラムをそのままスキップ判定プログラム24aとして
順次読み出し前記パートプログラム解析部16に転送す
る。When skipping is performed based on the skip validity information 22a, the skip start symbol determination unit 26 determines that the skip addition program is skipped as it is until a start symbol (character) for starting skip appears in the skip addition programs that are sequentially input. The program 24a is sequentially read out and transferred to the part program analysis section 16.
そして、ここで、各ブロック毎又はブロック−部による
前記スキップを開始させる開始記号が現れると、前記ス
キップ開始記号判定部26は、この時点でスキップ開始
記号を判定し、これ以降のスキップ付加プログラムを該
パートプログラム解析部16に転送せずに、無効とする
スキップ対象情報26aとして前記スキップ解除記号判
定部28に転送している。Then, when a start symbol that starts the skip for each block or block-part appears, the skip start symbol determining section 26 determines the skip start symbol at this point and executes the subsequent skip addition program. Instead of being transferred to the part program analysis section 16, it is transferred to the skip canceling symbol determining section 28 as skip target information 26a to be invalidated.
従って、このスキップ解除記号判定部28では、前記ス
キップ付加プログラム記憶部20からの転送によりスキ
ップを解除する解除記号が現れるまではスキップ付加プ
ログラムを空読みすることになり、この空読みされるプ
ログラムがスキップ対象情報に相当し、無効と扱われる
ことになる。Therefore, in this skip cancellation symbol determining section 28, the skip addition program is read blankly until a cancellation symbol for canceling the skip appears by transfer from the skip addition program storage section 20, and this program to be read blankly is This corresponds to information to be skipped and will be treated as invalid.
そして、前記スキップ解除記号判定部28は、スキップ
付加プログラム中にスキップを解除する解除記号(キャ
ラクタ)が現れると、スキップ対象情報が終了しスキッ
プ処理の終了を指示するため、前記スキップ開始記号判
定部26に終了指示信号28aを出力する。Then, when a cancel symbol (character) for canceling the skip appears in the skip addition program, the skip target information ends and the skip processing is instructed to end. A termination instruction signal 28a is output to 26.
これによって、前記スキップ開始記号判定部26は、該
終了指示信号28aを入力した時点までのスキップ付加
プログラムのスキップ対象情報をスキップさせ、これを
スキップ判定プログラム24aとして前記パートプログ
ラム解析部16へ転送を再開させている。As a result, the skip start symbol determining section 26 skips the skip target information of the skip addition program up to the point in time when the end instruction signal 28a is input, and transfers this to the part program analyzing section 16 as the skip determining program 24a. It is being restarted.
従って、前記パートプログラム解析部16では、その転
送されてきたスキップ判定プログラム24aを解析し前
記パートプログラム実行部18で実行させ、これによっ
て、スキップを開始する開始記号と、スキップを解除す
る解除記号とで囲まれたスキップ付加プログラムの有効
・無効を選択して工作機械を運転させることが可能とな
る。Therefore, the part program analysis section 16 analyzes the transferred skip determination program 24a and causes the part program execution section 18 to execute it, thereby identifying a start symbol for starting skipping and a cancellation symbol for canceling skipping. It is possible to operate the machine tool by selecting whether to enable or disable the skip addition program surrounded by .
第3図には、各ブロックが記載されたパートプログラム
の具体的な一例が表示状態で示されており、以下に第3
図を用いてその動作を説明する。FIG. 3 shows a specific example of a part program in which each block is described, and the third part program is shown below.
The operation will be explained using diagrams.
この−例では、前記スキップ指示記号(キャラクタ)と
してスラッシュ記号を用いた場合を示しており、スラッ
シュ“/”がスキップを開始する開始記号であり、バッ
クスラッシュ“\”がスキップを解除する解除記号であ
る。This example shows the case where a slash symbol is used as the skip instruction symbol (character), where the slash "/" is the start symbol to start skipping, and the backslash "\" is the cancellation symbol to cancel skipping. It is.
ここで、図の(1)で示すシーケンス番号N103のブ
ロックでは、“/”と“\“とで囲まれたX151だけ
がスキップの対象情報となり、例えばその隣接したY2
O2はスキップの対象にならないことがわかる。Here, in the block with sequence number N103 shown in (1) in the figure, only X151 surrounded by "/" and "\" is the information to be skipped, and for example, its adjacent Y2
It can be seen that O2 is not subject to skipping.
また更に、図の(2)で示すシーケンス番号N105の
ブロックでは、その先頭にある/″から次の(3)で示
すシーケンス番号N106のブロックエンドY110の
終わりにある“\”が現れるまでスキップが有効になり
、これにより、“/”と“\”とで囲まれたシーケンス
番号N105のブロックとシーケンス番号N106のブ
ロックとは、連続したスキップの対象情報となる。Furthermore, in the block with sequence number N105 shown in (2) in the figure, skipping starts from /'' at the beginning until "\" appears at the end of block end Y110 with sequence number N106 shown in (3). The block with the sequence number N105 and the block with the sequence number N106 surrounded by "/" and "\" become continuous skip target information.
従って、シーケンス番号N101〜N107において、
スキップは、N103のX151とN105のX153
、Y2O2からN106のX155、YIIOまでだけ
が行われることとなる。Therefore, in sequence numbers N101 to N107,
Skip is X151 of N103 and X153 of N105
, Y2O2 to N106, X155, and YIIO.
尚、この例では、スキップの開始・解除を示す指示記号
として“/”と“\”とを用いたが、もちろん、これに
限ることなく別の特定の指示記号(キャラクタ)でもよ
く、ブロックスキップ機能の付加キャラクタと区別でき
るキャラクタを使用すれば、これによって、ブロックス
キップ機能との併用が可能となる。In this example, "/" and "\" are used as instruction symbols to indicate the start/cancellation of skipping, but of course, other specific instruction symbols (characters) may be used without being limited to these. If a character that can be distinguished from the additional character of the function is used, this allows simultaneous use with the block skip function.
次に、前記第1図に示された本実施例の回路構成図につ
いて、第2図のフローチャートを用いてその動作を詳細
に説明する。Next, the operation of the circuit configuration diagram of this embodiment shown in FIG. 1 will be explained in detail using the flowchart in FIG. 2.
前記スキップ選択操作部22ての起動操作によりプログ
ラムを開始させると(ステップ000)、前記スキップ
付加プログラム記憶部20により、スキップ付加プログ
ラムを読み込み(ステップ100)、ここで、ステップ
100において、既にスキップ中である場合は、スキッ
プ解除状態の判断(ステップ150)に進み、また、ス
キップ中でない場合は、次のスキップ有効状態の判断に
進む(ステップ110)。When the program is started by the activation operation of the skip selection operation section 22 (step 000), the skip addition program is read by the skip addition program storage section 20 (step 100), and here, in step 100, the skip addition program is already being skipped. If so, the process advances to the determination of the skip cancellation state (step 150), and if the skip is not in progress, the process advances to the next determination of the skip valid state (step 110).
そして、前記スキップ選択操作部22のスキップ有効・
無効情報が無効の場合は前記パートプログラム解析を行
うステップ170に進み、有効の場合は次のステップ1
30に進む(ステップ120)。Then, the skip selection operation section 22 is activated.
If the invalidity information is invalid, the process proceeds to step 170 where the part program analysis is performed; if the invalidity information is valid, the process proceeds to the next step 1.
30 (step 120).
また、前記スキップ開始記号判定部26では、スキップ
を開始する開始記号(キャラクタ)か否かを判定しくス
テップ130)、スキップを開始する記号でない場合は
、前記パートプログラム解析を行うステップ170に進
み、スキップを開始する記号の場合は、スキップ実行中
のフラグをONして次のステップ150に進む(ステッ
プ140)。Further, the skip start symbol determination unit 26 determines whether or not it is a start symbol (character) for starting skip (step 130), and if it is not a symbol for starting skip, the process proceeds to step 170 for performing the part program analysis, In the case of a symbol that starts skipping, the skip execution flag is turned on and the process proceeds to the next step 150 (step 140).
尚、このスキップ実行中のフラグは、前記ステップ11
0の判定において使用される。Note that this skip execution flag is set in step 11 above.
Used in determining 0.
前記スキップ解除記号判定部28は、スキップを解除す
る解除記号(キャラクタ)か否かを判定しくステップ1
50)、ここで、スキップを解除する記号でない判定N
oの場合は、図示のようにステップ100へ戻り、スキ
ップを解除する記号である判定YESの場合は、前記ス
キップ実行中のフラグをOFFして(ステップ160)
、上記と同様にステップ100へ戻る。In step 1, the skip canceling symbol determining unit 28 determines whether or not it is a canceling symbol (character) that cancels skipping.
50), here, judgment N that is not a symbol to cancel skipping
In the case of o, the process returns to step 100 as shown in the figure, and in the case of YES, which is a symbol for canceling the skip, the skip execution flag is turned off (step 160).
, return to step 100 in the same manner as above.
次に、前記パートプログラム解析部16は、上記のスキ
ップ対象以外のプログラムを解析しくステップ170)
、解析されたプログラムを前記パートプログラム実行部
18で運転が行われる(ステップ180)。Next, the part program analysis unit 16 analyzes the programs other than the ones to be skipped (step 170).
, the analyzed program is run in the part program execution unit 18 (step 180).
そして、このステップ180において、該プログラムを
全て運転したかどうかを判定しくステ・ノブ190)、
運転か全て終了しない判定NOの場合は、前記ステップ
100へ戻り、運転を継続すると共に、一方、運転が全
て終了した判定YESの場合は、一連の運転を終了する
。Then, in this step 180, it is determined whether the program has been run completely.
If the determination is NO that the operation has not been completely completed, the process returns to step 100 and the operation is continued. On the other hand, if the determination is YES that the operation has been completely completed, the series of operations is ended.
以上説明したように、本実施例によれば、前記スキップ
付加プログラム中の任意の連続した情報の有効・無効を
選択できるため、連続した複数のブロック全てを無効に
する場合でも、全てのブロックにスラッシュ記号を付加
する必要がなくなる。As explained above, according to this embodiment, since it is possible to select whether to enable or disable any continuous information in the skip addition program, even if all consecutive blocks are to be invalidated, all blocks are There is no need to add slash marks.
これにより、無効にしたい情報の先頭と最後とにそれぞ
れスキップ開始記号と、スキ・ノブ解除記号とを任意に
付加するだけでプログラム作成時の手間を低減可能とな
る。This makes it possible to reduce the effort required to create a program by simply adding a skip start symbol and a ski/knob release symbol to the beginning and end of information to be invalidated, respectively.
また、ブロック内の一部のみをもスキップ可能としたの
で、前述の如〈従来において不可能であった形状の一部
が異なる加工ワークに対しても一種類のプログラムを作
成するだけで行え、かつプログラムの無駄をなくすこと
ができる。In addition, since it is now possible to skip only part of a block, as mentioned above, it is possible to process workpieces with partially different shapes, which was impossible in the past, by simply creating one type of program. In addition, it is possible to eliminate waste in the program.
[発明の効果]
以上のようにして、本発明に係る数値制御装置によれば
、プログラム中のブロックを意識せず、任意のエリアの
スキップ対象情報を無効にするため連続した複数のブロ
ック又はブロック内の一部のみのスキップをプログラム
内において自由に行うことかできる。[Effects of the Invention] As described above, according to the numerical control device according to the present invention, a plurality of consecutive blocks or blocks can be used to invalidate skip target information in an arbitrary area without being aware of blocks in the program. You can freely skip only part of the content within the program.
第1図は、本発明に係る数値制御装置の回路構成図、
第2図は、本発明に係る数値制御装置の動作を示したフ
ローチャート、
第3図は、本発明におけるスキップ付加プログラムの表
示状態の一例を示した説明図、第4図は、従来の数値制
御装置の回路構成図、第5図は、従来におけるスキップ
機能を用いたパートプログラムの表示状態の一例を示し
た説明図、
第6図、第7図、第8図及び第9図は、従来のパートプ
ログラムに基づいて機械加工を行うワーク形状を示した
説明図、
第10図は、従来におけるパートプログラムの表示状態
の他の例を示した説明図である。
スキップ付加プログラム記憶部
スキップ選択操作部
22b ・・・ スキップ有効・無効情報指示記号判
定読み出し部
スキップ判定プログラム
スキップ開始記号判定部
スキップ対象情報
スキップ解除記号判定部
終了指示信号
20 ・・・
22 ・・・
22a。
24 ・・・
24a ・・・
26 ・・・
26a ・・・
28 ・・・
28a ・・・
第
図
0
Yloo
×140
100
×140
0
×0
×140
第
図
第
図
×100
0
xto。
0
第
図FIG. 1 is a circuit configuration diagram of a numerical control device according to the present invention, FIG. 2 is a flowchart showing the operation of the numerical control device according to the present invention, and FIG. 3 is a display state of a skip addition program in the present invention. FIG. 4 is an explanatory diagram showing an example of the circuit configuration of a conventional numerical control device; FIG. 5 is an explanatory diagram showing an example of a display state of a part program using a conventional skip function; 7, 8, and 9 are explanatory diagrams showing the shape of a workpiece to be machined based on a conventional part program. FIG. 10 is another example of the display state of a conventional part program. FIG. Skip addition program storage section Skip selection operation section 22b ... Skip valid/invalid information instruction symbol judgment reading section Skip judgment program Skip start symbol judgment section Skip target information Skip cancellation symbol judgment section End instruction signal 20 ... 22 ... 22a. 24 ... 24a ... 26 ... 26a ... 28 ... 28a ... Fig. 0 Yloo ×140 100 ×140 0 ×0 ×140 Fig. Fig. ×100 0 xto. 0 Figure
Claims (1)
記号を付加し、該スキップ対象情報を無効として該プロ
グラムを実行し工作機械の自動制御を行う数値制御装置
において、前記プログラムは、前記スキップ指示記号に
スキップを開始させるスキップ開始記号とスキップを終
了させるスキップ解除記号とが付加されたスキップ付加
プログラムであって、前記スキップ対象情報に対し、ス
キップを行うか否かを選択するスキップ選択手段と、 前記スキップ選択手段により、スキップを行う場合であ
って、前記スキップ付加プログラムを入力し前記スキッ
プ開始記号と判定した時は、該スキップ解除記号と判定
されるまでのスキップ対象情報を無効とし、前記スキッ
プを行なわない場合は、該スキップ付加プログラムの情
報全てを有効として前記スキップ付加プログラムを読み
出す指示記号判定読み出し手段と、 を備えたことを特徴とする数値制御装置。(1) In a numerical control device that adds a skip instruction symbol to skip target information in a program and executes the program with the skip target information invalidated to automatically control a machine tool, the program adds a skip instruction symbol to the skip target information. A skip addition program to which a skip start symbol for starting skipping and a skip canceling symbol for ending skipping are added, comprising: a skip selection means for selecting whether or not to perform skipping with respect to the skip target information; When the selection means performs a skip, and when the skip addition program is input and the skip start symbol is determined, the skip target information up to the time when the skip cancellation symbol is determined is invalidated, and the skip is performed. A numerical control device comprising: instruction symbol determination reading means for reading out the skip addition program by validating all of the information on the skip addition program if there is no such program.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2016795A JP2677889B2 (en) | 1990-01-25 | 1990-01-25 | Numerical control unit |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2016795A JP2677889B2 (en) | 1990-01-25 | 1990-01-25 | Numerical control unit |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH03219303A true JPH03219303A (en) | 1991-09-26 |
| JP2677889B2 JP2677889B2 (en) | 1997-11-17 |
Family
ID=11926102
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2016795A Expired - Fee Related JP2677889B2 (en) | 1990-01-25 | 1990-01-25 | Numerical control unit |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2677889B2 (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2010044489A (en) * | 2008-08-11 | 2010-02-25 | Fanuc Ltd | Numerical controller with machining resumption function |
| JP2021157426A (en) * | 2020-03-26 | 2021-10-07 | 株式会社アマダ | Processing machine, automatic programming device, and processing machine control method |
Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS6376002A (en) * | 1986-09-19 | 1988-04-06 | Nachi Fujikoshi Corp | Numerical controller |
-
1990
- 1990-01-25 JP JP2016795A patent/JP2677889B2/en not_active Expired - Fee Related
Patent Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS6376002A (en) * | 1986-09-19 | 1988-04-06 | Nachi Fujikoshi Corp | Numerical controller |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2010044489A (en) * | 2008-08-11 | 2010-02-25 | Fanuc Ltd | Numerical controller with machining resumption function |
| JP2021157426A (en) * | 2020-03-26 | 2021-10-07 | 株式会社アマダ | Processing machine, automatic programming device, and processing machine control method |
Also Published As
| Publication number | Publication date |
|---|---|
| JP2677889B2 (en) | 1997-11-17 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP0222773A4 (en) | Method for preparing a computer program for evaluating boolean and like expressions and computer for evaluating the rungs in a ladder structure. | |
| KR920005227B1 (en) | Programmable controller | |
| JPH03219303A (en) | Numerical controller | |
| KR930016844A (en) | Sequence controller and sequence control method | |
| JPH02151908A (en) | Numerical control device with simulation function | |
| JP2007128378A (en) | Programmable controller programming device | |
| JPS6091404A (en) | Industrial robbot | |
| JPS6116334A (en) | data processing equipment | |
| JPS6118007A (en) | Numerical controller containing optional block skip function | |
| JP2727023B2 (en) | Information processing device | |
| JPH09160611A (en) | Programmable controller | |
| JPH05274341A (en) | Vector instruction processor | |
| JPS6338732B2 (en) | ||
| JPH036527B2 (en) | ||
| KR940005814B1 (en) | User program checking method of plc | |
| JP3018732B2 (en) | Programmable controller | |
| KR950005523B1 (en) | Step Run Processing Method of Programmable Logic Controller | |
| JPH0417031A (en) | System for optimizing propagation of constant value | |
| JPH04112208A (en) | Programmable controller | |
| JPH02105279A (en) | Input system for assembler source program | |
| JPH03233703A (en) | Sequence controller | |
| JPS6218054B2 (en) | ||
| JPH0553615A (en) | Programmable controller | |
| JPH05224919A (en) | Program execution system for microprocessor | |
| KR950020145A (en) | I / O address automatic change device of PLC system and its method |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| LAPS | Cancellation because of no payment of annual fees |