JPH10149212A - Numerical controller - Google Patents

Numerical controller

Info

Publication number
JPH10149212A
JPH10149212A JP30826996A JP30826996A JPH10149212A JP H10149212 A JPH10149212 A JP H10149212A JP 30826996 A JP30826996 A JP 30826996A JP 30826996 A JP30826996 A JP 30826996A JP H10149212 A JPH10149212 A JP H10149212A
Authority
JP
Japan
Prior art keywords
jump
program
command
counter
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
Application number
JP30826996A
Other languages
Japanese (ja)
Other versions
JP3528478B2 (en
Inventor
Shiyouichi Sagazaki
正一 嵯峨崎
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP30826996A priority Critical patent/JP3528478B2/en
Publication of JPH10149212A publication Critical patent/JPH10149212A/en
Application granted granted Critical
Publication of JP3528478B2 publication Critical patent/JP3528478B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To shorten the cycle time of machining including a conditional jump and to easily generate a machining program including the conditional jump by changing an execution point of a searched block and instructing a program analysis of this block. SOLUTION: A program analyzing means 11 requests a program jump command analyzing means 15 to analyzes a program jump command. The program jump command analyzing means 15 analyzes the program jump command and sets the analysis result in a memory 20. A jump destination search means 12 searches for a jump destination label number according to the analysis result of the program jump command analyzing means 15. A jump executing means 14 changes the program execution pointer to a block wherein the jump destination label number searched for by the jump destination search means 12 is described and instructs the program analyzing means 11 to analyze the program commands in this block.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】この発明は数値制御装置に係
り、特に加工プログラム作成の容易化、並びに加工サイ
クルのサイクルタイムの短縮化に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a numerical controller, and more particularly to a method for easily creating a machining program and a shortening of a cycle time of a machining cycle.

【0002】[0002]

【従来の技術】数値制御装置は、紙テープ等から指令さ
れた加工プログラムに基づいて数値制御処理を実行し、
該処理結果により工作機械を駆動してワークに指令通り
の加工を施すものである。
2. Description of the Related Art A numerical controller executes a numerical control process based on a processing program instructed from a paper tape or the like.
The machine tool is driven based on the processing result to perform the processing on the work as instructed.

【0003】図11は数値制御装置の概要を示す要部ブ
ロック図である。1は数値制御装置を表わしており、数
値制御装置1は、加工プログラム解析処理部10と、補
間処理部30と、機械制御信号処理部50と、ラダー回
路55と、軸制御部60と、軸移動量入出力回路70
と、メモリ20と、パラメータ設定部21と、画面表示
部22とから構成されている。また、数値制御装置1と
サーボモータ90の間には、数値制御装置1からの指令
を解析しサーボモータ90を制御するためのサーボアン
プ80がある。なお、図には示されていないが、サーボ
モータ90は位置検出用のパルスゼネレータ付きのもの
であり、サーボアンプ80はパルスゼネレータよりの位
置フィードバック信号による位置ループを有する。
FIG. 11 is a main block diagram showing an outline of a numerical control device. Numeral 1 denotes a numerical control device. The numerical control device 1 includes a machining program analysis processing unit 10, an interpolation processing unit 30, a machine control signal processing unit 50, a ladder circuit 55, an axis control unit 60, Moving amount input / output circuit 70
, A memory 20, a parameter setting unit 21, and a screen display unit 22. Further, between the numerical controller 1 and the servomotor 90, there is a servo amplifier 80 for analyzing a command from the numerical controller 1 and controlling the servomotor 90. Although not shown in the figure, the servomotor 90 has a pulse generator for position detection, and the servo amplifier 80 has a position loop based on a position feedback signal from the pulse generator.

【0004】この数値制御装置では、加工プログラムは
テープリーダ等の通信機器を使ってメモリ20に格納さ
れる。加工プログラムを実行する際には、加工プログラ
ム解析処理部10がメモリ20から1ブロックずつ加工
プログラムを読み出し、読み出された加工プログラムは
加工プログラム解析処理部10で処理され、各ブロック
の終点位置を算出する。この終点位置を補間処理部30
によって処理し、終点位置までを各可動軸の単位時間当
たりの移動指令に分配する。
In this numerical controller, a processing program is stored in a memory 20 using a communication device such as a tape reader. When executing the machining program, the machining program analysis processing unit 10 reads the machining program from the memory 20 one block at a time, and the read machining program is processed by the machining program analysis processing unit 10 to determine the end point position of each block. calculate. This end point position is determined by the interpolation processing unit 30.
And distributes the movement commands up to the end point position to the movement commands per unit time of each movable axis.

【0005】この移動指令は、軸制御部60によって予
め指定された加減速パターンに従って加減速を考慮した
単位時間当たりの移動指令に変換され、軸移動量入出力
回路70よりサーボアンプ80へサーボ移動指令として
出力される。
This movement command is converted into a movement command per unit time in consideration of acceleration / deceleration in accordance with an acceleration / deceleration pattern specified in advance by the axis control unit 60, and servo movement from the axis movement input / output circuit 70 to the servo amplifier 80. Output as a command.

【0006】このサーボ移動指令により、サーボアンプ
80は図示されていない工作機械に取り付けられている
サーボモータ90に対して回転指令を与える。
In response to the servo movement command, the servo amplifier 80 gives a rotation command to a servomotor 90 mounted on a machine tool (not shown).

【0007】また、切削油のオン・オフ等の機械信号
は、機械制御を記述するラダー回路55を介して機械制
御信号処理部50で処理され、処理結果などは補間処理
部30に伝えられる。
[0007] Further, machine signals such as on / off of the cutting oil are processed by a machine control signal processing unit 50 via a ladder circuit 55 for describing machine control, and the processing results are transmitted to an interpolation processing unit 30.

【0008】図示していないキー入力手段によって設定
された基本構成軸に関する軸定義や各可動軸の加減速時
定数等は、パラメータ設定部21が処理してメモリ20
に格納される。このようにして格納されたパラメータ等
は、画面表示処理部22によって図示していない表示器
に表示されるので、パラメータ等の内容を確認すること
ができる。
The axis setting relating to the basic constituent axes and the acceleration / deceleration time constant of each movable axis set by key input means (not shown) are processed by the parameter setting section 21 and stored in the memory 20.
Is stored in The parameters and the like stored in this way are displayed on a display (not shown) by the screen display processing unit 22, so that the contents of the parameters and the like can be confirmed.

【0009】次に従来の数値制御装置におけるプログラ
ムの動作について図11のブロック図と、図12と図1
3の加工プログラム例を参照して説明する。従来の数値
制御装置において、特定区間ブロックをN回に1回実行
した場合に図12に示したようなプログラムを作る必要
があった。ここで図12におけるプログラムは、区間P
3以降を実行すると、再びp1を実行するプログラムで
ある。このプログラムで、特定区間ブロックは区間(p
2)を表わしている。また、プログラムIF[#801
LT4]GOTO100は条件文とジャンプ先のラベル
番号を表わしている。#801は変数を表わしており、
#801の中には1、2などの数値が入っている。ここ
で、加工プログラム解析手段10は#801の数値を読
み出して、数値4と比較し、数値4より小さければ、指
定されたラベル、すなわち、ここではN100にジャン
プすると判断して、区間(p3)以降を実行する。区間
(p3)では変数#801に1を加えるプログラムが実
行されている。これは加工プログラム解析処理部10に
よって実行される。数値4以上の場合には、区間(P
2)を実行する。したがって、このプログラムを繰り返
し実行すると5回に1回だけ、区間(p2)を実行する
ことが可能となる。ただし、区間(p2)の最後には、
変数#801をクリアする命令が必要となる。
Next, the operation of the program in the conventional numerical controller will be described with reference to the block diagram of FIG.
This will be described with reference to a machining program example 3. In a conventional numerical control device, when a specific section block is executed once every N times, it is necessary to create a program as shown in FIG. Here, the program in FIG.
When the third and subsequent steps are executed, p1 is executed again. In this program, the specific section block is a section (p
2). Also, the program IF [# 801
[LT4] GOTO100 represents a conditional statement and a label number of a jump destination. # 801 represents a variable,
In # 801, numerical values such as 1 and 2 are included. Here, the processing program analysis means 10 reads the numerical value of # 801 and compares it with the numerical value 4. If the numerical value is smaller than the numerical value 4, it is determined that the program jumps to the designated label, that is, N100 in this case, and the section (p3) Execute the following. In the section (p3), a program for adding 1 to the variable # 801 is being executed. This is executed by the machining program analysis processing unit 10. If the value is 4 or more, the section (P
Perform 2). Therefore, when this program is repeatedly executed, the section (p2) can be executed only once in five times. However, at the end of the section (p2),
An instruction to clear the variable # 801 is required.

【0010】また、図13の加工プログラム例では、ま
ず、M88を加工プログラム解析処理部10が解析す
る。M88はラダー回路部55に対する指令であるた
め、加工プログラム解析処理部10はM88の解析結果
を機械制御信号処理部50を介してラダー回路部55に
渡す。ラダー回路部55では、受け取った解析結果と他
の機械条件等の条件判定を行ない、肯定判定ならばオプ
ショナルブロックスキップ有効信号を機械制御信号処理
部50に出力する。機械制御信号処理部50はラダー回
路部55からのオプショナルブロックスキップ有効信号
を受けて、加工プログラム解析処理部10とのインタフ
ェースにあるオプショナルブロックスキップ有効フラグ
をオンする。オプショナルブロックスキップ有効フラグ
がオンした場合、加工プログラム解析処理部10は図1
3の区間(p12)に示したように、/の記述されたブ
ロックを読み飛ばす。したがって、区間(p12)に各
ブロックの先頭に/を記述すれば、ラダー回路部55か
らのオプショナルブロックスキップ有効信号入力によっ
て、区間(p12)をすべてジャンプさせることは可能
となる。
In the example of the machining program shown in FIG. 13, first, the machining program analysis processing section 10 analyzes M88. Since M88 is a command to the ladder circuit unit 55, the machining program analysis processing unit 10 passes the analysis result of M88 to the ladder circuit unit 55 via the machine control signal processing unit 50. The ladder circuit unit 55 performs a condition determination such as the received analysis result and other mechanical conditions, and outputs an optional block skip valid signal to the machine control signal processing unit 50 if the determination is affirmative. The machine control signal processing unit 50 receives the optional block skip valid signal from the ladder circuit unit 55, and turns on the optional block skip valid flag in the interface with the machining program analysis processing unit 10. When the optional block skip valid flag is turned on, the machining program analysis processing unit 10
As shown in section 3 (p12), the block in which / is described is skipped. Therefore, if "/" is described at the beginning of each block in the section (p12), it is possible to cause the entire section (p12) to jump by the input of the optional block skip enable signal from the ladder circuit section 55.

【0011】[0011]

【発明が解決しようとする課題】従来は、特定区間ブロ
ックをN回に1回実行するような制御をする場合、図1
2に示したような加工プログラムをユーザが作成しなけ
ればばらず、ユーザプログラム作成が面倒なものにな
る。
Conventionally, when performing control such that a specific section block is executed once every N times, FIG.
The user has to create a machining program as shown in FIG. 2, and the creation of the user program becomes troublesome.

【0012】また従来は、特定区間ブロックをN回に1
回実行するような制御をする場合、図12に示したよう
な加工プログラムを作成しなければばらず、複数のブロ
ックを解析しないと目的の動作を行なわせることができ
ないため、条件ジャンプを含む加工サイクルのサイクル
タイムが長くなる。
Conventionally, a specific section block is added once every N times.
In the case of performing the control such that the processing is executed multiple times, a processing program as shown in FIG. 12 must be created, and a target operation cannot be performed unless a plurality of blocks are analyzed. The cycle time of the cycle becomes longer.

【0013】また従来は、ラダーからのオプショナルブ
ロックスキップ有効信号入力によって特定区間ブロック
を読み飛ばす場合、図13に示したように読み飛ばした
い特定区間の全てのブロックの先頭に/を記述する必要
があり、ユーザプログラム作成が面倒なものになる。
Conventionally, when skipping a specific section block by inputting an optional block skip valid signal from a ladder, it is necessary to write / at the beginning of all blocks in a specific section to be skipped as shown in FIG. Yes, creating a user program becomes cumbersome.

【0014】本発明は、上述の如き問題点に着目してな
されたものであり、条件ジャンプを含む加工サイクルの
サイクルタイムを従来に比して短縮でき、また、条件ジ
ャンプを含む加工プログラムの作成が容易な数値制御装
置を得ることを目的としている。
SUMMARY OF THE INVENTION The present invention has been made in view of the above-mentioned problems, and can reduce the cycle time of a machining cycle including a conditional jump as compared with the conventional art. It is an object of the present invention to obtain a numerical controller that is easy to use.

【0015】[0015]

【課題を解決するための手段】この発明における数値制
御装置は、プログラムジャンプ指令を解析するプログラ
ムジャンプ指令解析手段と、ジャンプカウンタをインク
リメントまたはデクリメントしてジャンプカウンタが指
令値になるまでの間、ジャンプ先をサーチするジャンプ
先サーチ手段と、該ジャンプ先サーチ手段でサーチされ
たブロックにプログラム実行ポインタを変え、該ブロッ
クのプログラム解析をプログラム解析手段に指示するジ
ャンプ実行手段とを有しているものである。
A numerical controller according to the present invention comprises: a program jump command analyzing means for analyzing a program jump command; and a jump controller for incrementing or decrementing a jump counter until the jump counter reaches a command value. And a jump execution means for changing a program execution pointer to a block searched by the jump destination search means and instructing the program analysis means to perform a program analysis of the block. is there.

【0016】また、この発明における数値制御装置は、
プログラムジャンプ指令を解析するプログラムジャンプ
指令解析手段と、ジャンプカウンタをインクリメントま
たはデクリメントしてジャンプカウンタが指令値になる
までの間、ジャンプ先をサーチするジャンプ先サーチ手
段と、ラダー回路からのジャンプ無効要求信号を検出す
るジャンプ無効要求信号検出手段と、該ジャンプ無効要
求信号検出手段からのジャンプ無効要求を受けて、ジャ
ンプ先ブロックからプログラムジャンプ指令の次ブロッ
クにプログラム実行ポインタを移し、該ブロックのプロ
グラム解析をプログラム解析手段に指示するジャンプ実
行手段とを有しているものである。
Further, the numerical controller according to the present invention comprises:
Program jump command analysis means for analyzing a program jump command, jump destination search means for searching for a jump destination until the jump counter reaches a command value by incrementing or decrementing the jump counter, and a jump invalid request from the ladder circuit A jump invalidation request signal detecting means for detecting a signal; and a jump invalidation request from the jump invalidation request signal detecting means, wherein a program execution pointer is moved from a jump destination block to a block next to a program jump instruction, and program analysis of the block is performed. And a jump executing means for instructing the program analyzing means to execute the program.

【0017】また、この発明における数値制御装置は、
上記の数値制御装置において、ラダー回路からのジャン
プカウンタ指令値設定要求信号を検出するジャンプカウ
ンタ指令値設定要求信号検出手段と、該ジャンプカウン
タ指令値設定要求信号検出手段からのジャンプカウンタ
設定要求を受けて、ジャンプカウンタ指令値を設定する
ジャンプカウンタ指令値設定手段とを有しているもので
ある。
Further, the numerical controller according to the present invention comprises:
In the above numerical control device, a jump counter command value setting request signal detecting means for detecting a jump counter command value setting request signal from the ladder circuit, and a jump counter setting request from the jump counter command value setting request signal detecting means. And a jump counter command value setting means for setting a jump counter command value.

【0018】また、この発明における数値制御装置は、
プログラムジャンプ指令を解析するプログラムジャンプ
指令解析手段と、指定されたプログラム番号を検出する
ジャンプ先プログラム番号検出手段と、該ジャンプ先プ
ログラム番号検出手段で検出されたプログラムの先頭ブ
ロックにプログラム実行ポインタを変え、該ブロックの
プログラム解析をプログラム解析手段に指示するジャン
プ実行手段を有しているものである。
Further, the numerical controller according to the present invention comprises:
A program jump command analyzing means for analyzing a program jump command, a jump destination program number detecting means for detecting a designated program number, and a program execution pointer is changed to a first block of a program detected by the jump destination program number detecting means. And a jump executing means for instructing the program analyzing means to analyze the program of the block.

【0019】この発明における数値制御装置は、上記数
値制御装置において、指定されたプログラム番号を検出
するときにプログラムネストレベルを指定してプログラ
ム番号を検出するプログラムネストレベル指定手段を有
しているものである。
The numerical control device according to the present invention is the numerical control device described above, further comprising program nest level designating means for designating a program nest level and detecting a program number when detecting a designated program number. It is.

【0020】[0020]

【発明の実施の形態】以下に添付の図を参照してこの発
明の実施の形態を詳細に説明する。なお、以下に説明す
るこの発明の実施の形態において上述の従来例と同一構
成の部分は上述の従来例に付した符号と同一の符号を付
してその説明を省略する。
Embodiments of the present invention will be described below in detail with reference to the accompanying drawings. In the embodiments of the present invention described below, the same components as those of the above-described conventional example are denoted by the same reference numerals as those of the above-described conventional example, and description thereof will be omitted.

【0021】(実施の形態1)図1はこの発明に係る数
値制御装置の実施の形態1を示している。
(Embodiment 1) FIG. 1 shows Embodiment 1 of a numerical controller according to the present invention.

【0022】この数値制御装置は加工プログラム解析処
理部10に、加工プログラム解析手段11に加えて、ジ
ャンプ先サーチ手段12と、ジャンプカウンタ指令値設
定手段13と、ジャンプ実行手段14と、プログラムジ
ャンプ指令解析手段15とを有している。
This numerical control apparatus includes a machining program analysis processing unit 10 which includes a machining destination analyzing means 11, a jump counter command value setting means 13, a jump execution means 14, a jump execution means 14, Analysis means 15.

【0023】プログラムジャンプ指令解析手段15は、
加工プログラムに記述されたプログラムジャンプ指令を
解析する。
The program jump command analyzing means 15
The program jump command described in the machining program is analyzed.

【0024】プログラムジャンプ指令のフォーマット
は、例えば”G148 Ln Qq”と定義される。こ
こで、nはジャンプ回数を、qはジャンプ先のラベル番
号を表わしており、動作としては、qで指定されたブロ
ックまでの加工プログラムをnで指定した回数に1回実
行する。また、ジャンプ先のブロックにはラベル番号B
Nqを使用する。ここでn、qは各々正の整数で記述さ
れる。プログラムジャンプ解析手段15は該指令を解析
し、解析結果をメモリ20にセットする。
The format of the program jump command is defined as, for example, "G148 Ln Qq". Here, n represents the number of jumps, and q represents the label number of the jump destination. As an operation, the machining program up to the block designated by q is executed once every number of times designated by n. Label number B is assigned to the jump destination block.
Use Nq. Here, n and q are each described by a positive integer. The program jump analysis means 15 analyzes the command and sets an analysis result in the memory 20.

【0025】例えば、図2に示したような加工プログラ
ムでは、プログラムジャンプ指令”G148 L5 Q
10”とジャンプ先ラベル番号”BN10”で挟まれた
区間(p2)を5回に1回実行することを表わしてい
る。
For example, in a machining program as shown in FIG. 2, a program jump command "G148 L5 Q
This indicates that the section (p2) sandwiched between “10” and the jump destination label number “BN10” is executed once every five times.

【0026】ジャンプ先サーチ手段12は、プログラム
ジャンプ指令解析手段15の解析結果からジャンプ先ラ
ベル番号BNqをサーチする。
The jump destination search means 12 searches for a jump destination label number BNq from the analysis result of the program jump command analysis means 15.

【0027】ジャンプカウンタ指令値設定手段13は、
機械制御信号処理部50の中のジャンプカウンタ指令値
設定要求信号検出手段52が設定するメモリ20上の図
示していないジャンプカウンタ指令値設定要求フラグが
オンしている間、ジャンプカウンタ指令値設定テーブル
56に設定された設定値をメモリ20を介して受け取
り、プログラムジャンプ指令”G148 Ln Qq”
で指令されたジャンプカウンタ指令値nをジャンプカウ
ンタ指令値設定テーブル56に設定された設定値に置き
換える。
The jump counter command value setting means 13 comprises:
While the jump counter command value setting request flag (not shown) on the memory 20 set by the jump counter command value setting request signal detecting means 52 in the machine control signal processing unit 50 is on, the jump counter command value setting table 56 is received via the memory 20, and the program jump command “G148 Ln Qq” is received.
Is replaced with the set value set in the jump counter command value setting table 56.

【0028】例えば、図3に示したようにラダー回路部
55からジャンプカウンタ指令値設定要求信号が入力さ
れると、ジャンプカウンタ指令値を3から2に置き換え
る。ここでは、プログラムカウンタ指令のnは3、ラダ
ー回路部55がリクエストしたジャンプカウンタ指令値
設定テーブル56の値は2の場合を示している。
For example, as shown in FIG. 3, when a jump counter command value setting request signal is input from the ladder circuit section 55, the jump counter command value is replaced with 3 to 2. Here, a case where n of the program counter command is 3 and the value of the jump counter command value setting table 56 requested by the ladder circuit unit 55 is 2 is shown.

【0029】ジャンプ実行手段14は、加工プログラム
を繰り返し実行する度に、図示していないジャンプカウ
ンタをインクリメントする。また、ジャンプカウンタが
ジャンプカウンタ指令値より小さい場合、ジャンプ先サ
ーチ手段12でサーチされたジャンプ先ラベル番号の記
述があるブロックに実行ポインタを変更し、該ブロック
のプログラム指令を解析するように加工プログラム解析
手段11に通知する。また、機械制御信号処理部50の
中のジャンプ無効要求信号検出手段52が設定したメモ
リ20上のジャンプ無効要求フラグがオンしている間
は、ジャンプ先サーチ手段12でサーチされたジャンプ
先ラベル番号の記述があるブロックに実行ポインタを変
更していた場合はこれを中断し、プログラムジャンプ指
令の次のプログラム指令を解析するように加工プログラ
ム解析手段11に通知する。
The jump executing means 14 increments a jump counter (not shown) every time the machining program is repeatedly executed. If the jump counter is smaller than the jump counter command value, the execution pointer is changed to a block in which the jump destination label number searched by the jump destination search means 12 is described, and the machining program is analyzed so as to analyze the program command of the block. Notify the analyzing means 11. While the jump invalid request flag on the memory 20 set by the jump invalid request signal detecting means 52 in the machine control signal processing unit 50 is ON, the jump destination label number searched by the jump destination searching means 12 If the execution pointer has been changed to a block having the description, the execution pointer is interrupted, and the machining program analysis means 11 is notified to analyze the program command following the program jump command.

【0030】例えば、図2に示したように5回に1回、
プログラムジャンプ指令ブロック(G148)からジャ
ンプラベル番号(BN10)までの区間(p2)を実行
する場合、図4に示したようにジャンプカウンタがジャ
ンプカウンタ指令値よりも小さい場合でも、ラダー回路
部55からのジャンプ無効要求信号が入力されてジャン
プ無効要求信号がオン状態の間は、プログラムジャンプ
指令ブロック(G148)からジャンプラベル番号(B
N10)までの区間(p2)を実行する。また、ジャン
プ無効要求信号がオン状態の間はジャンプカウンタは更
新されない。
For example, once every five times as shown in FIG.
When the section (p2) from the program jump command block (G148) to the jump label number (BN10) is executed, even when the jump counter is smaller than the jump counter command value as shown in FIG. While the jump invalidation request signal is input and the jump invalidation request signal is on, the jump label number (B) is output from the program jump command block (G148).
The section (p2) up to N10) is executed. The jump counter is not updated while the jump invalidation request signal is on.

【0031】機械制御信号処理部50は、機械制御信号
処理手段51に加えて、ジャンプ無効要求信号検出手段
52とジャンプカウンタ指令値設定要求信号検出手段5
3を有している。また、ジャンプカウンタ指令値設定テ
ーブル56を機械制御信号処理部50とラダー回路部5
5の間に新たに設ける。
The machine control signal processing unit 50 includes, in addition to the machine control signal processing unit 51, a jump invalidation request signal detection unit 52 and a jump counter command value setting request signal detection unit 5
Three. The jump counter command value setting table 56 is stored in the machine control signal processing unit 50 and the ladder circuit unit 5.
5 is newly provided.

【0032】ジャンプカウンタ指令値設定要求信号検出
手段53は、ラダー回路部55が機械制御信号処理部5
0に出力したジャンプカウンタ指令値設定要求信号を検
出すると、ラダー回路部55が設定したジャンプカウン
タ指令値設定テーブル56の設定値を読み出し、メモリ
20に登録し、メモリ20上のジャンプカウンタ指令値
設定要求フラグをオンする。
The jump counter command value setting request signal detecting means 53 includes a ladder circuit 55
When the jump counter command value setting request signal output to 0 is detected, the setting value of the jump counter command value setting table 56 set by the ladder circuit unit 55 is read, registered in the memory 20, and the jump counter command value setting on the memory 20 is set. Turn on the request flag.

【0033】ジャンプ無効要求信号検出手段52はラダ
ー回路部55からの機械制御信号処理部50に出力され
たジャンプ無効要求信号を検出するとメモリ20上のジ
ャンプ無効要求フラグをオンする。
When the jump invalidation request signal detecting means 52 detects the jump invalidation request signal output from the ladder circuit unit 55 to the machine control signal processing unit 50, the jump invalidation request flag on the memory 20 is turned on.

【0034】次に図5、図6に示されているフローチャ
ートを参照して上述の構成による数値制御装置における
プログラムジャンプ動作について説明する。
Next, a program jump operation in the numerical control device having the above-described configuration will be described with reference to the flowcharts shown in FIGS.

【0035】図5はプログラムジャンプの動作ルーチン
を示している。まず、プログラム解析手段11がプログ
ラムに記述された指令を解析し、プログラムジャンプ指
令でない場合は(ステップS1否定)、引き続き、プロ
グラム解析手段11がプログラムに記述された次の指令
を解析する(ステップS10)。プログラムジャンプ指
令の場合は(ステップS1肯定)、プログラム解析手段
11が本指令を解析するようにプログラムジャンプ指令
解析手段15に依頼する。
FIG. 5 shows an operation routine of the program jump. First, the program analysis means 11 analyzes a command described in the program. If the command is not a program jump command (No at step S1), the program analysis means 11 subsequently analyzes the next command described in the program (step S10). ). In the case of a program jump command (Yes at step S1), the program analyzing unit 11 requests the program jump command analyzing unit 15 to analyze this command.

【0036】プログラムジャンプ指令解析手段15はプ
ログラムジャンプ指令を解析し、メモリ20にジャンプ
回数とジャンプ先ラベル番号をセットし、ジャンプ実行
手段14にプログラムジャンプ指令が解析されたことを
通知する。次に、ジャンプ実行手段14は該ジャンプ無
効要求フラグをチェックし、オフ状態であれば(ステッ
プS2否定)、図示していないメモリ20上のジャンプ
カウンタをインクリメントする(ステップS3)。
The program jump command analyzing means 15 analyzes the program jump command, sets the number of jumps and the jump destination label number in the memory 20, and notifies the jump executing means 14 that the program jump command has been analyzed. Next, the jump executing means 14 checks the jump invalid request flag, and if it is off (No at Step S2), increments a jump counter on the memory 20 (not shown) (Step S3).

【0037】メモリ20上のジャンプ無効要求フラグ
は、ラダー回路部55からの機械制御信号処理部50に
出力されたジャンプ無効要求信号を機械制御信号処理部
50の中のジャンプ無効要求信号検出手段52が検出
し、設定する。また、ジャンプ無効要求フラグがオン状
態であれば(ステップS2肯定)、ジャンプ実行手段1
4がプログラム解析手段11に引き続き、プログラムに
記述された次の指令を解析するように通知する。
The jump invalidation request flag on the memory 20 is used to convert the jump invalidation request signal output from the ladder circuit unit 55 to the machine control signal processing unit 50 into the jump invalidation request signal detecting means 52 in the machine control signal processing unit 50. Detects and sets. If the jump invalidation request flag is in the ON state (Yes at step S2), the jump executing means 1
4 informs the program analyzing means 11 to analyze the next command described in the program.

【0038】ステップS3の次のステップでは、ジャン
プ実行手段14が、インクリメントされたジャンプカウ
ンタをジャンプカウンタ指令値と比較してジャンプカウ
ンタがジャンプカウンタ指令値より小さい場合は(ステ
ップS4肯定)、ジャンプ先サーチ手段12にジャンプ
先ラベル番号をサーチするように通知する。ジャンプ先
サーチ手段12はジャンプ実行手段14からの通知を受
けて、プログラムの先読みを開始し、ジャンプ実行手段
14から指定されたジャンプ先ラベル番号の文字列が検
出されまで、先読みを繰り返す(ステップS5)。
In the step subsequent to step S3, the jump executing means 14 compares the incremented jump counter with the jump counter command value, and if the jump counter is smaller than the jump counter command value (step S4 affirmative), the jump destination. The search means 12 is notified to search for the jump destination label number. Upon receiving the notification from the jump execution means 14, the jump destination search means 12 starts prefetching the program, and repeats the prefetch until the character string of the designated jump destination label number is detected from the jump execution means 14 (step S5). ).

【0039】プログラムエンドまで先読みして、ジャン
プ先ラベル番号が検出されなければ(ステップS6否
定)、アラーム番号の表示要求を画面表示処理部22を
出して処理を終了する(ステップS9)。ジャンプ先ラ
ベル番号が検出された場合(ステップS6肯定)、検出
されたジャンプ先ラベル番号のプログラム実行ポインタ
をジャンプ実行手段14に通知する。ジャンプ実行手段
14は、ジャンプ先サーチ手段12から通知されたプロ
グラム実行ポインタに現在のプログラム実行ポインタを
置き換えて、プログラム解析手段11に通知する。プロ
グラム解析手段11は変更されたプログラム実行ポイン
タに従って指令を解析する(ステップS7)。また、ジ
ャンプカウンタをジャンプカウンタ指令値と比較してジ
ャンプカウンタがジャンプカウンタ指令値以上の場合は
(ステップS4否定)、ジャンプ実行手段14はジャン
プカウンタをクリアして(ステップS8)、プログラム
解析手段11に引き続き、プログラムに記述された次の
指令を解析するように通知する。
If the jump destination label number is not detected (step S6: No), the screen display processing unit 22 issues a request to display an alarm number and ends the processing (step S9). When the jump destination label number is detected (Yes at step S6), the program execution pointer of the detected jump destination label number is notified to the jump execution means 14. The jump execution means 14 replaces the current program execution pointer with the program execution pointer notified from the jump destination search means 12 and notifies the program analysis means 11. The program analysis means 11 analyzes the command according to the changed program execution pointer (step S7). If the jump counter is compared with the jump counter command value and the jump counter is equal to or larger than the jump counter command value (No at Step S4), the jump executing means 14 clears the jump counter (Step S8), and the program analysis means 11 Then, it is notified to analyze the next command described in the program.

【0040】図6はジャンプカウンタ指令値変更ルーチ
ンを示している。まず、ラダー回路部55が外部から入
力される機械入力信号等を判定して、プログラムジャン
プ回数を変更する必要性が出てきた場合、ジャンプカウ
ンタ指令値設定テーブル56に変更値を入力し、機械制
御信号処理部50に対してジャンプカウンタ指令値設定
要求信号を出力する。
FIG. 6 shows a jump counter command value changing routine. First, the ladder circuit section 55 determines a machine input signal or the like input from the outside, and when it becomes necessary to change the number of program jumps, inputs the changed value to the jump counter command value setting table 56, A jump counter command value setting request signal is output to the control signal processing unit 50.

【0041】機械制御信号処理部50のジャンプカウン
タ指令値設定要求信号検出手段53がラダー回路部55
からのジャンプカウンタ指令値設定要求信号を検出する
と(ステップS21肯定)、ジャンプカウンタ指令値設
定要求信号検出手段53がジャンプカウンタ指令値設定
テーブル56の設定された値を読み出し、変更値をメモ
リ20に書き込み、メモリ20上のジャンプカウンタ指
令値設定要求フラグをオン状態する(ステップS2
2)。ジャンプカウンタ指令値設定手段13は、メモリ
20のジャンプカウンタ指令値設定要求フラグのオン状
態を検出して、メモリ20から変更値を読み出して、代
入する(ステップS23)。ジャンプカウンタ指令値設
定要求信号を検出しなかった場合(ステップS21否
定)、何もせず、処理を終了する。
The jump counter command value setting request signal detecting means 53 of the machine control signal processing section 50
When the jump counter command value setting request signal is detected (Yes at step S21), the jump counter command value setting request signal detecting means 53 reads the value set in the jump counter command value setting table 56 and stores the changed value in the memory 20. Write, the jump counter command value setting request flag on the memory 20 is turned on (step S2).
2). The jump counter command value setting means 13 detects the ON state of the jump counter command value setting request flag in the memory 20, reads the changed value from the memory 20, and substitutes it (step S23). When the jump counter command value setting request signal is not detected (No at Step S21), nothing is performed and the process ends.

【0042】(実施の形態2)図7はこの発明に係る数
値制御装置の実施の形態2を示している。
(Embodiment 2) FIG. 7 shows a numerical control apparatus according to Embodiment 2 of the present invention.

【0043】この数値制御装置は加工プログラム解析処
理部10に、加工プログラム解析手段11に加えて、プ
ログラムネストレベル指定手段16と、ジャンプ先プロ
グラム番号検出手段17と、ジャンプ実行手段14、プ
ログラムジャンプ指令解析手段15を有している。
This numerical control device includes a machining program analysis processing section 10, a program nest level designating section 16, a jump destination program number detecting section 17, a jump executing section 14, a jump executing section 14, a program jump command in addition to the machining program analyzing section 11. It has analysis means 15.

【0044】プログラムジャンプ指令解析手段15は加
工プログラムに記述されたプログラムジャンプ指令を解
析する。
The program jump command analyzing means 15 analyzes a program jump command described in the machining program.

【0045】プログラムジャンプ指令のフォーマットは
例えば ”G148 Ln Aa Bb”と定義される。
ここで、nはジャンプ回数を、aはジャンプ先のプログ
ラム番号を、bはプログラムネストレベルを表わしてお
り、動作としては、bで指定されたプログラムネストレ
ベルのaで指定されたプログラム番号までの間の加工プ
ログラムをnで指定した回数に1回実行する。プログラ
ムジャンプ解析手段15は該指令を解析し、解析結果を
メモリ20にセットする。
The format of the program jump command is defined, for example, as "G148 Ln Aa Bb".
Here, n represents the number of jumps, a represents the program number of the jump destination, and b represents the program nest level. The operation is performed up to the program number designated by a of the program nest level designated by b. The machining program in between is executed once for the number of times specified by n. The program jump analysis means 15 analyzes the command and sets an analysis result in the memory 20.

【0046】例えば、図8に示したような加工プログラ
ムではプログラムジャンプ指令”G148 L5 A9
089 B−1 ”は現在、実行中のプログラムネストレ
ベルより、1つ上のネストレベルで呼び出されているプ
ログラム番号”O9089”で挟まれた区間(p12)
を5回に1回実行することを表わしている。
For example, in a machining program as shown in FIG. 8, a program jump command "G148 L5 A9
089 B-1 "is a section (p12) sandwiched between program numbers" O9089 "called at the nest level one level higher than the currently executed program nest level.
Is executed once every five times.

【0047】プログラムネストレベル指定手段16は指
定されたプログラムネストレベルを検出し、その結果を
ジャンプ先プログラム番号検出手段17に通知する。
The program nesting level designating means 16 detects the designated program nesting level and notifies the result to the jump destination program number detecting means 17.

【0048】ジャンプ先プログラム番号検出手段17は
プログラムジャンプ指令解析手段15が解析したジャン
プ先プログラム番号をメモリ20から読み取り、プログ
ラムネストレベル指定手段16が検出したプログラムネ
ストレベルの加工プログラム中から指定のプログラム番
号を検出する。
The jump destination program number detecting means 17 reads the jump destination program number analyzed by the program jump command analyzing means 15 from the memory 20, and the program nest level designating means 16 detects the program designated by the program nest level from the machining programs. Find the number.

【0049】次に図9に示されているフローチャートを
参照して上述の構成による数値制御装置におけるプログ
ラムジャンプ動作について説明する。図9は指定された
プログラムネストレベルの指定されたプログラム番号へ
ジャンプするプログラムジャンプの動作ルーチンを示し
ている。まず、プログラム解析手段11がプログラムに
記述された指令を解析し、プログラムジャンプ指令でな
い場合は(ステップS31否定)、引き続き、プログラ
ム解析手段11がプログラムに記述された次の指令を解
析する(ステップS42)。
Next, a program jump operation in the numerical control device having the above configuration will be described with reference to a flowchart shown in FIG. FIG. 9 shows a program jump operation routine for jumping to a specified program number of a specified program nest level. First, the program analysis means 11 analyzes a command described in the program. If the command is not a program jump command (No at step S31), the program analysis means 11 subsequently analyzes the next command described in the program (step S42). ).

【0050】プログラムジャンプ指令の場合は(ステッ
プS31肯定)、プログラム解析手段11が本指令を解
析するようにプログラムジャンプ指令解析手段15に依
頼する。プログラムジャンプ指令解析手段15は、プロ
グラムジャンプ指令を解析し、メモリ20にジャンプ回
数とジャンプ先プログラム番号とプログラムネストレベ
ルをセットし、ジャンプ実行手段14にプログラムジャ
ンプ指令が解析されたことを通知する。ジャンプ実行手
段14は、プログラムジャンプ指令解析手段15からの
通知を受けて、図示していないメモリ20上のジャンプ
カウンタをインクリメントする(ステップS33)。
In the case of a program jump command (Yes at step S31), the program analyzing means 11 requests the program jump command analyzing means 15 to analyze this command. The program jump command analyzing means 15 analyzes the program jump command, sets the number of jumps, the jump destination program number, and the program nest level in the memory 20, and notifies the jump executing means 14 that the program jump command has been analyzed. The jump executing means 14 receives the notification from the program jump command analyzing means 15 and increments a jump counter on the memory 20 (not shown) (step S33).

【0051】次に、ジャンプ実行手段14が、ステップ
S33でインクリメントしたジャンプカウンタをジャン
プカウンタ指令値と比較して、ジャンプカウンタがジャ
ンプカウンタ指令値より小さい場合は(ステップS34
肯定)、プログラムネストレベル指定手段16にプログ
ラム番号を検出すべきプログラムネストレベルを決定す
るように通知する。プログラムネストレベル指定手段1
6は、ジャンプ実行手段14からの通知を受けて、メモ
リ20に記憶されたプログラムジャンプ解析手段15の
解析結果を読み出し、ネストレベルの指定があれば(ス
テップS36肯定)、指定されたプログラムネストレベ
ルのプログラム番号を検出する。
Next, the jump executing means 14 compares the jump counter incremented in step S33 with the jump counter command value, and when the jump counter is smaller than the jump counter command value (step S34).
Affirmative), the program nesting level designation means 16 is notified to determine the program nesting level at which the program number should be detected. Program nesting level specification means 1
6 receives the notification from the jump executing means 14 and reads out the analysis result of the program jump analyzing means 15 stored in the memory 20, and if the nest level is specified (Yes at Step S36), the designated program nest level Detect program number.

【0052】例えば、”B−1”と指定されている場合
は、現在実行中のプログラムが呼び出されたプログラム
番号を検出する。このとき、”B1”と指定されている
場合は、現在実行中のプログラムが呼び出しているプロ
グラム番号を検出する。プログラムが複数呼び出されて
いる場合は、呼び出されているプログラム番号すべて検
出する。プログラムネストレベル指定手段16は、検出
した結果をジャンプ先プログラム番号検出手段17に通
知する。
For example, if "B-1" is designated, the program number of the currently executed program is detected. At this time, if "B1" is designated, the program number called by the currently executing program is detected. If multiple programs are called, all the called program numbers are detected. The program nest level designating unit 16 notifies the jump destination program number detecting unit 17 of the detected result.

【0053】ジャンプ先プログラム番号検出手段17
は、メモリ20に記憶されたプログラムジャンプ解析手
段15が解析したプログラム番号を読み出し、先読みを
開始し、プログラムネストレベル指定手段16から通知
されたプログラム番号内の文字列解析を行い、例え
ば、”G65 P8002 ”のようなサブプログラム呼
び出し等のプログラム番号 の文字列を検出するまで先
読みを繰り返す。また、例えば、チャック開閉等を指令
する補助指令がプログラムを呼び出す形になっている場
合は、予め、図10に示したようなメモリ20に登録さ
れたテーブルを参照して、指定されたプログラム番号の
文字列を検出するまで先読みを繰り返す(ステップS3
7)。
Jump destination program number detecting means 17
Reads out the program number stored in the memory 20 and analyzed by the program jump analysis unit 15, starts prefetching, analyzes the character string in the program number notified from the program nesting level designation unit 16, and executes, for example, "G65". The prefetching is repeated until a character string of a program number such as a subprogram call such as P8002 ″ is detected. Further, for example, when the auxiliary command for instructing the opening and closing of the chuck is configured to call a program, a program number designated by referring to a table registered in the memory 20 as shown in FIG. Is repeated until a character string is detected (step S3).
7).

【0054】ネストレベルの指定がなければ(ステップ
S36否定)、現在、実行中のプログラムネストレベル
のプログラム番号をジャンプ先プログラム番号検出手段
17に通知する。ジャンプ先プログラム番号検出手段1
7は、メモリ20に記憶されたプログラムジャンプ解析
手段15が解析したプログラム番号を読み出し、先読み
を開始し、プログラムネストレベル指定手段16から通
知されたプログラム番号内の文字列解析をステップS3
7と同様に行う(ステップS38)。指定されたプログ
ラム番号が検出された場合は(ステップS39肯定)、
検出されたジャンプ先プログラム番号の先頭のプログラ
ム指令のポインタをジャンプ実行手段14に通知する。
If no nesting level is specified (No at step S36), the program number of the currently executing program nesting level is notified to the jump destination program number detecting means 17. Jump destination program number detecting means 1
7 reads out the program number stored in the memory 20 and analyzed by the program jump analysis means 15, starts prefetching, and analyzes the character string in the program number notified from the program nesting level designation means 16 in step S3.
7 is performed (step S38). If the designated program number is detected (Yes at Step S39),
The pointer of the program command at the head of the detected jump destination program number is notified to the jump execution means 14.

【0055】ジャンプ実行手段14は、ジャンプ先プロ
グラム番号検出手段17から通知されたポインタに現在
のプログラム実行ポインタを置き換えて、プログラム解
析手段11に通知する。プログラム解析手段11は、変
更されたプログラム実行ポインタに従って指令を解析す
る(ステップS40)。指定されたプログラム番号がサ
ーチされない場合は(ステップS39否定)、アラーム
番号の表示要求を画面表示処理部22を出して処理を終
了する(ステップS41)。
The jump execution means 14 replaces the pointer notified from the jump destination program number detection means 17 with the current program execution pointer and notifies the program analysis means 11. The program analysis means 11 analyzes the command according to the changed program execution pointer (step S40). If the specified program number is not searched (No at Step S39), a request to display an alarm number is issued through the screen display processing unit 22, and the process is terminated (Step S41).

【0056】また、ジャンプカウンタをジャンプカウン
タ指令値と比較してジャンプカウンタがジャンプカウン
タ指令値以上の場合は(ステップS34否定)、ジャン
プ実行手段14はジャンプカウンタをクリアして(ステ
ップS35)、プログラム解析手段11に引き続き、プ
ログラムに記述された次の指令を解析するように通知す
る。プログラム解析手段11は、ジャンプ実行手段14
からの通知でプログラムジャンプ指令の次指令を解析す
る(ステップS42)。
If the jump counter is compared with the jump counter command value and the jump counter is equal to or greater than the jump counter command value (No at Step S34), the jump executing means 14 clears the jump counter (Step S35) and executes the program. Following the analysis means 11, a notification is sent to analyze the next command described in the program. The program analysis means 11 includes a jump execution means 14
The command next to the program jump command is analyzed based on the notification from (step S42).

【0057】なお、上記実施例において、ジャンプカウ
ンタをインクリメントするものについて説明したが、デ
クリメントするものであっても同様の効果を奏すること
は言うまでもない。
Although the jump counter has been described as being incremented in the above embodiment, it goes without saying that the same effect can be obtained even if the jump counter is decremented.

【0058】[0058]

【発明の効果】以上説明したように、第一の発明によれ
ば、従来は、特定区間ブロックをN回に1回実行するよ
うな制御をする場合、ユーザが複数のブロックにわたっ
てプログラムを記述するところを1ブロックで記述で
き、ユーザプログラム作成が容易なものとなり、かつ、
プログラム解析が1ブロックの解析で済むため、条件ジ
ャンプを含む加工サイクルのサイクルタイムを短縮させ
ることもできる。
As described above, according to the first invention, conventionally, when performing control such that a specific section block is executed once every N times, a user describes a program over a plurality of blocks. However, it can be described in one block, user programs can be easily created, and
Since the program analysis requires only one block, the cycle time of the machining cycle including the conditional jump can be reduced.

【0059】また、第二の発明によれば、機械側からの
入力信号によってプログラムジャンプを止めることがで
きる。すなわち、機械の動作状態によって、プログラム
ジャンプを止めることができる。
According to the second aspect, the program jump can be stopped by an input signal from the machine. That is, the program jump can be stopped depending on the operation state of the machine.

【0060】また、第三の発明によれば、機械側からの
入力信号によってプログラムジャンプ回数を変更するこ
とができる。すなわち、機械の動作状態によって、プロ
グラムジャンプ回数を変更することができる。
Further, according to the third aspect, the number of program jumps can be changed by an input signal from the machine. That is, the number of program jumps can be changed depending on the operation state of the machine.

【0061】また、第4の発明によれば、従来は、ラダ
ーからのオプショナルブロックスキップ有効信号入力に
よって特定区間ブロックを読み飛ばす場合、読み飛ばし
たい特定区間の全てのブロックの先頭に/を記述する必
要があるところを、/を記述する必要がなくなり、ユー
ザプログラム作成が容易なものとなる。
According to the fourth invention, conventionally, when a specific section block is skipped by inputting an optional block skip valid signal from a ladder, / is described at the beginning of all blocks in the specific section to be skipped. Where necessary, there is no need to describe /, and user programs can be easily created.

【0062】また、第5の発明によれば、呼び出しレベ
ル(プログラムネストレベル)の異なるプログラムにジ
ャンプさせることができ、プログラムジャンプの使用上
の自由度を上げることができる。
According to the fifth aspect, it is possible to jump to a program having a different call level (program nest level), thereby increasing the degree of freedom in using the program jump.

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

【図1】 本発明の一実施例に係わる要部ブロック図で
ある。
FIG. 1 is a main block diagram according to an embodiment of the present invention.

【図2】 本発明の一実施例に係わる加工プログラム記
述例を示す図である。
FIG. 2 is a diagram showing a description example of a machining program according to an embodiment of the present invention.

【図3】 本発明の一実施例に係わる動作のタイミング
をタイミングチャート図である。
FIG. 3 is a timing chart illustrating operation timings according to an embodiment of the present invention.

【図4】 本発明の一実施例に係わる動作のタイミング
をタイミングチャート図である。
FIG. 4 is a timing chart illustrating operation timings according to an embodiment of the present invention.

【図5】 本発明の一実施例に係わるプログラムジャン
プの動作を示したフローチャートである。
FIG. 5 is a flowchart showing a program jump operation according to an embodiment of the present invention.

【図6】 本発明の一実施例に係わるジャンプカウンタ
指令値を変更する動作を示したフローチャートである。
FIG. 6 is a flowchart illustrating an operation of changing a jump counter command value according to an embodiment of the present invention.

【図7】 本発明の一実施例に係わる要部ブロック図で
ある。
FIG. 7 is a block diagram of a main part according to an embodiment of the present invention.

【図8】 本発明の一実施例に係わる加工プログラム記
述例を示す図である。
FIG. 8 is a diagram showing a description example of a machining program according to an embodiment of the present invention.

【図9】 本発明の一実施例に係わる指定されたプログ
ラム番号までプログラムジャンプする動作を示したフロ
ーチャートである。
FIG. 9 is a flowchart showing an operation of jumping a program to a designated program number according to an embodiment of the present invention.

【図10】 補助指令とプログラム番号の対応表であ
る。
FIG. 10 is a correspondence table between auxiliary commands and program numbers.

【図11】 従来の数値制御装置の要部ブロック図であ
る。
FIG. 11 is a block diagram of a main part of a conventional numerical control device.

【図12】 従来の加工プログラム記述例を示す図であ
る。
FIG. 12 is a diagram showing a description example of a conventional machining program.

【図13】従来の加工プログラム記述例を示す図であ
る。
FIG. 13 is a diagram showing an example of a conventional machining program description.

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

1 数値制御装置、10 加工プログラム解析処理
部、11 加工プログラム解析手段、12 ジャンプ
先サーチ手段、13 ジャンプカウンタS指令値設定手
段、14 ジャンプ実行手段、15 プログラムジャ
ンプ解析手段、16 プログラムネストレベル指定手
段、17 ジャンプ先プログラム番号検出手段、20
メモリ、21 パラメータ設定部、22 画面表
示部、30補間処理部、50 機械信号処理部、51
機械信号処理手段、52 ジャンプ無効要求信号検
出手段、52 ジャンプ無効要求信号検出手段、53
ジャンプカウンタ指令値設定要求信号検出手段、55
ラダー回路、56 ジャンプカウンタ指令値設定テ
ーブル、60 軸制御部、70 データ入出力回路、
80 サーボアンプ、90 サーボモータ
DESCRIPTION OF SYMBOLS 1 Numerical control apparatus, 10 processing program analysis processing part, 11 processing program analysis means, 12 jump destination search means, 13 jump counter S command value setting means, 14 jump execution means, 15 program jump analysis means, 16 program nest level designation means , 17 jump destination program number detecting means, 20
Memory, 21 parameter setting unit, 22 screen display unit, 30 interpolation processing unit, 50 machine signal processing unit, 51
Machine signal processing means, 52 jump invalidation request signal detecting means, 52 jump invalidation request signal detecting means, 53
Jump counter command value setting request signal detecting means 55
Ladder circuit, 56 jump counter command value setting table, 60 axis controller, 70 data input / output circuit,
80 servo amplifier, 90 servo motor

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 プログラムジャンプ指令を解析するプロ
グラムジャンプ指令解析手段と、ジャンプカウンタをイ
ンクリメントまたはデクリメントしてジャンプカウンタ
が指令値になるまでの間、ジャンプ先をサーチするジャ
ンプ先サーチ手段と、該ジャンプ先サーチ手段でサーチ
されたブロックにプログラム実行ポインタを変え、該ブ
ロックのプログラム解析をプログラム解析手段に指示す
るジャンプ実行手段とを備えたことを特徴とする数値制
御装置。
1. A program jump command analyzing means for analyzing a program jump command, a jump destination search means for searching for a jump destination until the jump counter reaches a command value by incrementing or decrementing a jump counter, and the jump jump searching means. A numerical control device comprising: a jump execution unit that changes a program execution pointer to a block searched by the previous search unit and instructs the program analysis unit to analyze a program of the block.
【請求項2】 プログラムジャンプ指令を解析するプロ
グラムジャンプ指令解析手段と、ジャンプカウンタをイ
ンクリメントまたはデクリメントしてジャンプカウンタ
が指令値になるまでの間、ジャンプ先をサーチするジャ
ンプ先サーチ手段と、ラダー回路からのジャンプ無効要
求信号を検出するジャンプ無効要求信号検出手段と、該
ジャンプ無効要求信号検出手段からのジャンプ無効要求
を受けて、ジャンプ先ブロックからプログラムジャンプ
指令の次ブロックにプログラム実行ポインタを移し、該
ブロックのプログラム解析をプログラム解析手段に指示
するジャンプ実行手段とを備えたことを特徴とする数値
制御装置。
2. A program jump command analyzing means for analyzing a program jump command, a jump destination search means for searching for a jump destination until the jump counter reaches a command value by incrementing or decrementing a jump counter, and a ladder circuit. Receiving a jump invalidation request signal from the jump invalidation request signal detecting means, and moving a program execution pointer from the jump destination block to the next block of the program jump instruction, And a jump execution means for instructing the program analysis means to analyze the program of the block.
【請求項3】 ラダー回路からのジャンプカウンタ指令
値設定要求信号を検出するジャンプカウンタ指令値設定
要求信号検出手段と、該ジャンプカウンタ指令値設定要
求信号検出手段からのジャンプカウンタ設定要求を受け
て、ジャンプカウンタ指令値を設定するジャンプカウン
タ指令値設定手段とを備えたことを特徴とする請求項1
または請求項2に記載の数値制御装置。
3. A jump counter command value setting request signal detecting means for detecting a jump counter command value setting request signal from a ladder circuit, and a jump counter setting request from the jump counter command value setting request signal detecting means. 2. A jump counter command value setting means for setting a jump counter command value.
Alternatively, the numerical control device according to claim 2.
【請求項4】 プログラムジャンプ指令を解析するプロ
グラムジャンプ指令解析手段と、指定されたプログラム
番号を検出するジャンプ先プログラム番号検出手段と、
該ジャンプ先プログラム番号検出手段で検出されたプロ
グラムの先頭ブロックにプログラム実行ポインタを変
え、該ブロックのプログラム解析をプログラム解析手段
に指示するジャンプ実行手段を備えたことを特徴とす数
値制御装置。
4. Program jump command analyzing means for analyzing a program jump command, jump destination program number detecting means for detecting a designated program number,
A numerical control device comprising: a jump execution unit that changes a program execution pointer to a first block of a program detected by the jump destination program number detection unit and instructs the program analysis unit to analyze a program of the block.
【請求項5】 指定されたプログラム番号を検出すると
きにプログラムネストレベルを指定してプログラム番号
を検出するプログラムネストレベル指定手段を備えたこ
とを特徴とする請求項4に記載の数値制御装置。
5. The numerical control device according to claim 4, further comprising program nest level designating means for designating a program nest level and detecting a program number when detecting a designated program number.
JP30826996A 1996-11-19 1996-11-19 Numerical control unit Expired - Lifetime JP3528478B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP30826996A JP3528478B2 (en) 1996-11-19 1996-11-19 Numerical control unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP30826996A JP3528478B2 (en) 1996-11-19 1996-11-19 Numerical control unit

Publications (2)

Publication Number Publication Date
JPH10149212A true JPH10149212A (en) 1998-06-02
JP3528478B2 JP3528478B2 (en) 2004-05-17

Family

ID=17978994

Family Applications (1)

Application Number Title Priority Date Filing Date
JP30826996A Expired - Lifetime JP3528478B2 (en) 1996-11-19 1996-11-19 Numerical control unit

Country Status (1)

Country Link
JP (1) JP3528478B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002037197A3 (en) * 2000-11-03 2003-05-08 Siemens Ag Testing method and testing device for starting up systems which are controlled by means of a program logic

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101733455B1 (en) 2015-12-09 2017-05-08 한국항공우주연구원 Method and Apparatus for Controlling Execution of Software

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002037197A3 (en) * 2000-11-03 2003-05-08 Siemens Ag Testing method and testing device for starting up systems which are controlled by means of a program logic
US7117395B2 (en) 2000-11-03 2006-10-03 Siemens Aktiengesellschaft Testing method and testing device for starting up systems which are controlled by means of a program logic

Also Published As

Publication number Publication date
JP3528478B2 (en) 2004-05-17

Similar Documents

Publication Publication Date Title
US20080103625A1 (en) Numerical controller with machining resume function
KR920002346B1 (en) Robot controller
US5229950A (en) Numerical control unit
JPH10149212A (en) Numerical controller
JPH0778007A (en) Analog signal processor for programmable controller
US6917850B2 (en) Motion data command system and control signal definition system for motion program
JPS63167912A (en) Servo controller
JPH09258808A (en) Motion controller programming system
JP2007179229A (en) Programming device
KR100244680B1 (en) Acceleration/deceleration controller of robot and method of the same
JPH045703A (en) Sequence program generating device
JPH05329745A (en) Machining condition control method for corner part
JPH07105376A (en) Method and device for picture processing
JP2000137509A (en) Ladder circuit diagram preparing device
JPH11194808A (en) Numerical controller
JPH09160620A (en) Numerical controller
JPH07325612A (en) Numerical controller
JPH1083216A (en) Numerical control unit
JPS6132106A (en) Programming device of programmable controller
JPH06114764A (en) Controller for robot
JPH03263104A (en) Numerical controller
EP0483666A2 (en) Method of program execution and apparatus thereof
JPH01159703A (en) Numerical controller
JPH09120311A (en) Numerical controller and machining method
JPH05216518A (en) Output signal control system for operation program

Legal Events

Date Code Title Description
TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Effective date: 20040203

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Effective date: 20040216

Free format text: JAPANESE INTERMEDIATE CODE: A61

FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 4

Free format text: PAYMENT UNTIL: 20080305

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090305

Year of fee payment: 5

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100305

Year of fee payment: 6

FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 6

Free format text: PAYMENT UNTIL: 20100305

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110305

Year of fee payment: 7

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110305

Year of fee payment: 7

FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 8

Free format text: PAYMENT UNTIL: 20120305

FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 9

Free format text: PAYMENT UNTIL: 20130305