JPH04260105A - Motion controller - Google Patents

Motion controller

Info

Publication number
JPH04260105A
JPH04260105A JP2182291A JP2182291A JPH04260105A JP H04260105 A JPH04260105 A JP H04260105A JP 2182291 A JP2182291 A JP 2182291A JP 2182291 A JP2182291 A JP 2182291A JP H04260105 A JPH04260105 A JP H04260105A
Authority
JP
Japan
Prior art keywords
data
command
interpolation
axes
control
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
JP2182291A
Other languages
Japanese (ja)
Other versions
JP2741430B2 (en
Inventor
Kimio Saitou
公美雄 斎藤
Kazuo Imanishi
今西 一夫
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 JP3021822A priority Critical patent/JP2741430B2/en
Publication of JPH04260105A publication Critical patent/JPH04260105A/en
Application granted granted Critical
Publication of JP2741430B2 publication Critical patent/JP2741430B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Abstract

PURPOSE:To smoothly execute the control operation by executing immediately the next block instruction by setting a command position as a start point position after interpolation of each axis without generating deceleration stop command data, when a skip signal is inputted from a sensor. CONSTITUTION:A machine control part 3A outputs a selecting signal to selection control parts 11A and 11B, based on selection data of an interpolator contained in axis control data. An interpolator 5A executes interpolation control by setting a composite speed of a complement axis as a feeding speed. An interpolator 5B executes interpolation control by setting a speed of one designated axis as a feeding speed, in the case of executing simultaneously the control of plural axes. A selection control part 11A selects one of the interpolator 5A or 5B, based on a selection control signal and supplies an output signal from the machine control part 3A to an input of the selected interpolator. A selection control part 11B supplies an interpolation output signal of each axis outputted from the selected interpolator to serve-controllers 6a and 6b, respectively.

Description

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

【0001】0001

【産業上の利用分野】この発明は複数軸の同時補間制御
を行なうモーションコントローラに関し、またスキップ
命令により現在実行中のブロック命令を中止し、次のブ
ロック命令による複数軸の位置制御を行なうモーション
コントローラに関するものである。
[Field of Industrial Application] This invention relates to a motion controller that performs simultaneous interpolation control of multiple axes, and also relates to a motion controller that uses a skip command to stop a currently executing block command and uses the next block command to perform position control of multiple axes. It is related to.

【0002】0002

【従来の技術】図7は従来のモーションコントローラの
複数軸補間制御機能を示すブロック図である。同図にお
いて、1はモーションプログラム、2はプログラム処理
部であり、モーションプログラム1を読込み内容を解読
し、制御指令データを作成する。3は機械制御部であり
、機械インタフェース4からの制御信号によりシステム
の始動及び停止制御を行い、且つプログラム処理部2で
作成した制御指令データに基づき軸制御データ及び機械
シーケンス制御データを作成する。4は機械インタフェ
ースであり、機械シーケンス制御データを外部に出力し
、且つ外部の制御信号を機械制御部3に入力する。5は
補間器であり、機械制御部3から入力される軸制御デー
タに基づき複数軸の各軸に補間指令を分配する。6a,
6bはサーボコントローラであり、補間器5から入力さ
れる各軸の制御データによりサーボモータ7a,7bを
それぞれ回転制御する。8a,8bはサーボモータ7a
,7bにそれぞれ結合される検出器であり、例えばロー
タリエンコーダである。9はサーボモータ7a,7bに
より制御される制御対象機械、10は機械インタフェー
ス4と接続し、制御対象機械9の運転操作を行う操作パ
ネルである。
2. Description of the Related Art FIG. 7 is a block diagram showing a multi-axis interpolation control function of a conventional motion controller. In the figure, 1 is a motion program, and 2 is a program processing section, which reads the motion program 1, decodes the contents, and creates control command data. Reference numeral 3 denotes a machine control unit, which controls the start and stop of the system based on control signals from the machine interface 4, and creates axis control data and machine sequence control data based on control command data created by the program processing unit 2. 4 is a machine interface, which outputs machine sequence control data to the outside and inputs an external control signal to the machine control section 3; Reference numeral 5 denotes an interpolator, which distributes interpolation commands to each of a plurality of axes based on axis control data input from the machine control section 3. 6a,
A servo controller 6b controls the rotation of the servo motors 7a and 7b based on control data for each axis inputted from the interpolator 5. 8a and 8b are servo motors 7a
, 7b, for example rotary encoders. 9 is a controlled machine controlled by the servo motors 7a and 7b, and 10 is an operation panel connected to the machine interface 4 to operate the controlled machine 9.

【0003】図2はモーションコントローラのプログラ
ム例を示す図であり、同図のP1で示す部分は従来方式
の補間制御プログラム例である。(なお同図のP2で示
す部分はこの第1の発明に係る補間制御プログラム例で
あり、この部分は実施例で説明する。)また図8は従来
装置の補間器の機能説明図である。以下図2のP1部及
び図8を参照し、図7の動作を説明する。
FIG. 2 is a diagram showing an example of a program for a motion controller, and the portion indicated by P1 in the diagram is an example of a conventional interpolation control program. (The part indicated by P2 in the figure is an example of the interpolation control program according to the first invention, and this part will be explained in the embodiment.) Also, FIG. 8 is a functional explanatory diagram of the interpolator of the conventional device. The operation of FIG. 7 will be described below with reference to the P1 section of FIG. 2 and FIG. 8.

【0004】図7のプログラム処理部2はモーションプ
ログラム1を読込み、その内容を解読し、制御指令デー
タを作成し、機械制御部3へ供給する。機械制御部3は
機械インタフェース4からシステムの始動が指示される
と、プログラム処理部3から入力される制御指令データ
に基づき、軸制御データ及び機械シーケンス制御データ
を作成し、軸制御データは補間器5へ供給し、機械シー
ケンス制御データは機械インタフェース4へ供給する。 従来のモーションコントローラは単一の補間器5を内蔵
し、この補間器5により同時に複数軸の補間制御を行っ
ている。
The program processing section 2 in FIG. 7 reads the motion program 1, decodes its contents, creates control command data, and supplies it to the machine control section 3. When the machine control unit 3 is instructed to start the system from the machine interface 4, it creates axis control data and machine sequence control data based on the control command data input from the program processing unit 3, and the axis control data is sent to the interpolator. 5 and machine sequence control data to machine interface 4. A conventional motion controller has a single interpolator 5 built-in, and this interpolator 5 performs interpolation control of a plurality of axes at the same time.

【0005】図8において軸制御データとしては、X軸
移動量x、Y軸移動量y、X軸とY軸の合成移動量L及
び送り速度Fが補間器5に供給される。ここで軸制御デ
ータの具体的な数値例を示すと、図2のP1におけるプ
ログラム例に示されるG01X100.Y150.F1
000;では、X軸移動量は100mm,Y軸移動量は
150mm,送り速度は1000mm/分を表わしてい
る。またこの場合の送り速度はX軸とY軸の合成ベクト
ルの速度(合成速度)を指示している。
In FIG. 8, as axis control data, an X-axis movement amount x, a Y-axis movement amount y, a combined movement amount L of the X-axis and Y-axis, and a feed rate F are supplied to the interpolator 5. Here, a specific numerical example of the axis control data is G01X100. Y150. F1
000; represents an X-axis movement amount of 100 mm, a Y-axis movement amount of 150 mm, and a feed rate of 1000 mm/min. Further, the feed rate in this case indicates the velocity of the composite vector of the X-axis and the Y-axis (composite velocity).

【0006】補間器5は入力される軸制御データに基づ
き、単位時間Δt(単位は秒)当りの、送り速度ΔF,
X軸の補間出力ΔXt及びY軸の補間出力ΔYtを次の
(1)〜(3)式により演算する。ここで*は乗算記号
である。 ΔF=F*1/60*Δt             
     …(1)ΔXt=ΔF*x/L      
                …(2)ΔYt=Δ
F*y/L                    
  …(3)
The interpolator 5 calculates the feed rate ΔF, per unit time Δt (unit: second) based on the input axis control data.
The X-axis interpolation output ΔXt and the Y-axis interpolation output ΔYt are calculated using the following equations (1) to (3). Here * is a multiplication symbol. ΔF=F*1/60*Δt
...(1) ΔXt=ΔF*x/L
...(2) ΔYt=Δ
F*y/L
...(3)

【0007】上記(2)及び(3)式によ
り算出されたX軸及びY軸の補間出力ΔXt及びΔYt
は、単位時間Δt毎に補間器5からサーボコントローラ
6a及び6bにそれぞれ供給される。従って各軸の制御
データは、送り速度Fが各軸の合成速度となるように分
配される。図2のP1に示されるプログラム例のブロッ
ク命令を順次実行した場合には、X軸及びY軸の合成速
度は常にプログラムに指示される送り速度の1000m
m/分となるように動作する。そして送り速度指令が同
一の場合には、各軸の送り方向や距離が変っても合成速
度は一定となるように制御される。
[0007] Interpolated outputs ΔXt and ΔYt of the X-axis and Y-axis calculated by the above equations (2) and (3)
are supplied from the interpolator 5 to the servo controllers 6a and 6b, respectively, every unit time Δt. Therefore, the control data for each axis is distributed so that the feed rate F becomes the composite speed of each axis. When the block instructions of the program example shown in P1 of FIG.
m/min. If the feed speed commands are the same, the combined speed is controlled to be constant even if the feed direction or distance of each axis changes.

【0008】図9は従来のモーションコントローラのス
キップ制御機能を示すブロック図である。同図において
、31はモーションコントローラであり、下記の32,
34,36a,36b,38a,38bを含んでいる。 32はモーションコントローラ31にあらかじめ格納さ
れたプログラム、33はプログラム31の1ブロックの
指令データ(以下ブロック命令という)、34はブロッ
ク命令33を処理し各軸の単位時間当りの移動量を計算
する補間処理部、35a,35bはそれぞれ補間処理部
34により出力された各軸の単位時間当りの移動量(以
下補間後指令速度データという)、36a,36bはそ
れぞれ補間後指令速度データ35a,35bの加減速時
の急峻な変化を滑らかな速度変化としてサーボ系へ出力
するための加減速処理部、37a,37bはそれぞれ加
減速処理部36a,36bによって処理された加減速後
の単位時間当りの移動量(以下加減速後指令速度データ
という)、38a,38bはそれぞれ加減速後指令速度
データ37a,37bをそれぞれ積算して各軸の指令位
置データを生成する加減速後指令位置データ生成部であ
る。39a,39bは各軸サーボ処理部であり、各軸の
加減速後指令位置データ生成部38a,38bから供給
される加減速後指令位置データ40a,40bに従って
サーボモータを制御し、制御対象機械を制御する。 加減速後指令位置データ40a,40bはまた補間処理
部34へ帰還されている。41はスキップ制御を行うた
め外部に設けられたセンサ、42はセンサ41から出力
されるセンサ信号(スキップ指令信号)である。
FIG. 9 is a block diagram showing the skip control function of a conventional motion controller. In the figure, 31 is a motion controller, and the following 32,
34, 36a, 36b, 38a, and 38b. 32 is a program stored in advance in the motion controller 31, 33 is command data for one block of the program 31 (hereinafter referred to as a block command), and 34 is an interpolator that processes the block command 33 and calculates the amount of movement of each axis per unit time. Processing units 35a and 35b respectively represent the amount of movement per unit time of each axis outputted by the interpolation processing unit 34 (hereinafter referred to as post-interpolation command speed data), and processing units 36a and 36b represent processing of the post-interpolation command speed data 35a and 35b, respectively. Acceleration/deceleration processing units 37a and 37b are for outputting steep changes during deceleration to the servo system as smooth speed changes, and 37a and 37b represent the amount of movement per unit time after acceleration/deceleration processed by acceleration/deceleration processing units 36a and 36b, respectively. (hereinafter referred to as post-acceleration/deceleration command speed data), 38a, 38b are post-acceleration/deceleration command position data generation units that integrate post-acceleration/deceleration command speed data 37a, 37b, respectively, to generate command position data for each axis. Reference numerals 39a and 39b are servo processing units for each axis, which control the servo motors according to the post-acceleration/deceleration command position data 40a, 40b supplied from the post-acceleration/deceleration command position data generation units 38a, 38b for each axis, thereby controlling the machine to be controlled. Control. The post-acceleration/deceleration command position data 40a, 40b is also fed back to the interpolation processing unit 34. Reference numeral 41 indicates a sensor provided externally for performing skip control, and reference numeral 42 indicates a sensor signal (skip command signal) output from the sensor 41.

【0009】図10は図9のスキッブ制御動作を説明す
る波形図である。同図の縦軸はセンサ信号42のオンま
たはオフ状態、補間後指令速度データ35aまたは35
b、加減速後指令速度データ37aまたは37bを表わ
し、横軸はすべて時間を表わしている。各波形の実線は
センサ信号42がある時刻Tx(横軸のほぼ中央)にお
いてオフからオンに変化した場合の波形を、また波形の
破線は上記時刻Tx以降もセンサ信号42がオフ状態を
継続した場合の波形をそれぞれ示している。また同図に
おいてtsは加減速処理部36a,36bにおける加減
速時間を表わしている。
FIG. 10 is a waveform diagram illustrating the skip control operation of FIG. 9. The vertical axis of the figure represents the on or off state of the sensor signal 42, and the command speed data 35a or 35 after interpolation.
b represents the command speed data 37a or 37b after acceleration/deceleration, and all horizontal axes represent time. The solid line of each waveform shows the waveform when the sensor signal 42 changes from off to on at a certain time Tx (approximately the center of the horizontal axis), and the broken line of each waveform shows the waveform when the sensor signal 42 continues to be off after the above time Tx. The waveforms for each case are shown. Further, in the figure, ts represents acceleration/deceleration time in the acceleration/deceleration processing sections 36a, 36b.

【0010】図10を参照し、図9の動作を説明する。 図9の補間処理部34はプログラム32からスキップ制
御のブロック命令を読出し、図8で説明した演算処理後
、各軸の補間後指令速度データ35a,35bを出力す
る。ここで、スキップ制御のブロック命令とは、センサ
信号42がオフ状態からオン状態に変化すると、現在実
行中のスキップ制御のブロック命令を中止し、次のブロ
ック命令をブログラム32から呼び出し、これを実行す
るものである。補間処理部34から出力される補間後指
令速度データ35a,35bは、加減速処理部36a,
36bの加減速処理により図10に示されるように滑ら
かな加減速後指令速度データ37a,37bに変換され
、加減速後指令位置データ生成部38a,38bに供給
される。加減速後指令位置データ生成部38a,38b
は、加減速後指令速度データ37a,37bをそれぞれ
積算して加減速後指令位置データを生成し、サーボ処理
部39a,39bに供給する。サーボ処理部39a,3
9bは図示されないサーボモータを駆動して機械系を制
御する。ここで加減速処理部36a,36bの処理によ
る加減速時間tsはあらかじめパラメータにより決定さ
れている。
The operation of FIG. 9 will be explained with reference to FIG. The interpolation processing unit 34 in FIG. 9 reads the skip control block command from the program 32, performs the arithmetic processing described in FIG. 8, and outputs post-interpolated command speed data 35a, 35b for each axis. Here, the skip control block command means that when the sensor signal 42 changes from an off state to an on state, the skip control block command currently being executed is stopped, the next block command is called from the program 32, and this is executed. It is something to be carried out. The interpolated command speed data 35a, 35b output from the interpolation processing section 34 are processed by the acceleration/deceleration processing section 36a,
As shown in FIG. 10, the acceleration/deceleration process of 36b converts the data into smooth command velocity data 37a, 37b after acceleration/deceleration, and supplies the data to command position data generators 38a, 38b. Post-acceleration/deceleration command position data generation units 38a, 38b
generates post-acceleration/deceleration command position data by integrating the post-acceleration/deceleration command speed data 37a, 37b, respectively, and supplies the data to the servo processing units 39a, 39b. Servo processing section 39a, 3
Reference numeral 9b drives a servo motor (not shown) to control the mechanical system. Here, the acceleration/deceleration time ts processed by the acceleration/deceleration processing units 36a, 36b is determined in advance by parameters.

【0011】図10に示されるスキップ制御のブロック
命令を実行中のある時刻Txに外部からのセンサ信号4
2がオンになると、補間後指令速度データ35a,35
bは直ちにゼロになるが、加減速後指令速度データ37
a,37bは加減速処理部36a,36bの減速処理に
より所定の速度変化により減速されるので、加減速時間
ts経過後ゼロになり、スキップ制御のブロック命令を
終了する。そして、このときの各軸の加減速後指令位置
データ40a,40bを次のブロック命令の始点位置デ
ータとし、次のブロック命令をプログラム32より読出
し、この次のプログラムによる運転を継続する。
At a certain time Tx during the execution of the skip control block command shown in FIG.
2 is turned on, the interpolated command speed data 35a, 35
b immediately becomes zero, but the command speed data 37 after acceleration/deceleration
Since a and 37b are decelerated by a predetermined speed change by the deceleration processing of the acceleration/deceleration processing units 36a and 36b, they become zero after the acceleration/deceleration time ts has elapsed, and the block command of the skip control ends. Then, the post-acceleration/deceleration command position data 40a, 40b of each axis at this time is used as the starting point position data of the next block command, the next block command is read from the program 32, and the operation according to the next program is continued.

【0012】0012

【発明が解決しようとする課題】しかしながら上記のよ
うな従来の複数軸の補間制御を同時に行なうモーション
コントローラでは、軸制御データとして指令される送り
速度は常に複数軸の合成した移動方向の速度として制御
されるため、複数軸の同時制御において、複数軸の内の
1軸を常に一定速度で動かす必要があるような機械にお
いては適用が難しかった。従って補間演算を行なうプロ
グラムを作成するときに、特定の軸の速度が一定になる
ような合成速度を逆算して送り速度を求め、プログラム
を作成しなければならないという問題点があった。
[Problem to be Solved by the Invention] However, in the conventional motion controller described above that performs interpolation control of multiple axes at the same time, the feed rate commanded as axis control data is always controlled as the speed in the movement direction that is the composite of multiple axes. Therefore, it is difficult to apply this method to machines where one of the multiple axes must always be moved at a constant speed in simultaneous control of multiple axes. Therefore, when creating a program for performing interpolation calculations, there is a problem in that the feed speed must be determined by back calculating a composite speed that makes the speed of a specific axis constant, and then the program must be created.

【0013】この第1の発明はかかる問題点を解決する
ためになされたもので、複数軸の同時補間制御を行なう
場合に、特定の1軸の送り速度がプログラム指令の速度
となるような補間制御が行なえるモーションコントロー
ラを得ることを目的とする。
The first invention was made to solve this problem, and when performing simultaneous interpolation control of multiple axes, it is possible to perform interpolation such that the feed speed of a specific axis becomes the speed specified by the program. The purpose is to obtain a motion controller that can perform control.

【0014】また上記のような従来のスキップ制御を行
なうモーションコントローラでは、スキップ制御のブロ
ック命令がセンサからスキップ信号の入力により減速し
て一旦停止後、次のブロック命令を実行するようにして
いたので、現在実行中のブロック命令から次にブロック
命令に移行するのに時間がかかると同時に、スキップ制
御による連続した滑らかな制御ができないなどの問題点
があった。
Furthermore, in the conventional motion controller that performs skip control as described above, the skip control block command is decelerated and temporarily stopped by inputting a skip signal from the sensor, and then the next block command is executed. , there are problems in that it takes time to move from the currently executed block instruction to the next block instruction, and at the same time, continuous and smooth control cannot be achieved by skip control.

【0015】この第2の発明はかかる問題点を解決する
ためになされたもので、センサからスキップ信号が入力
されると、現在実行中のスキップ制御のブロック命令は
中止され、直ちに次のブロック命令が実行され、且つそ
の移行期間中も連続した滑らかな制御動作となるスキッ
プ制御を行うモーションコントローラを得ることを目的
とする。
This second invention was made to solve this problem, and when a skip signal is input from the sensor, the skip control block command currently being executed is stopped, and the next block command is immediately executed. It is an object of the present invention to provide a motion controller that performs skip control that allows continuous and smooth control operations even during the transition period.

【0016】[0016]

【課題を解決するための手段】この第1の発明に係るモ
ーションコントローラは、モーションコントロール命令
を順次読込み、これを解読して複数軸の座標位置制御に
要するモーションコントロールデータを生成するモーシ
ョンコントロールデータ生成手段と、該モーシコントロ
ールデータ生成手段から生成される送り速度データ値が
前記複数軸の移動速度を合成した合成速度データ値と等
しくなるように前記複数各軸の補間出力データを算出し
て出力する第1の補間器と、前記モーションコントロー
ルデータ生成手段から生成される送り速度データ値を前
記複数軸のうちから指定される1軸の移動速度データ値
として、その他の軸は前記指定される1軸との間の移動
量の比に比例した移動速度データ値となるように前記複
数各軸の補間出力データを算出して出力する第2の補間
器と、前記モーションコントロールデータ生成手段から
生成される補間器の選択データに基づき、前記第1の補
間器または第2の補間器のいずれか一方を選択し、該選
択された補間器の入力に前記モーションコントロールデ
ータ生成手段から出力されるモーションコントロールデ
ータを供給すると共に、前記選択された補間器から出力
される前記複数各軸の補間出力データをそれぞれ対応す
る各軸のサーボコントローラに供給する補間器選択制御
手段とを備えたものである。
[Means for Solving the Problems] A motion controller according to the first invention sequentially reads motion control commands, decodes the commands, and generates motion control data necessary for coordinate position control of a plurality of axes. and calculating and outputting interpolated output data for each of the plurality of axes so that the feed speed data value generated from the mosi control data generation means is equal to a composite speed data value obtained by combining the moving speeds of the plurality of axes. A first interpolator and a feed rate data value generated from the motion control data generating means are set as the movement rate data value of one axis specified from the plurality of axes, and the other axes are set to the one specified axis. a second interpolator that calculates and outputs the interpolation output data of each of the plurality of axes so that the movement speed data value is proportional to the ratio of the movement amount between the motion control data generation means; Motion control data that selects either the first interpolator or the second interpolator based on interpolator selection data, and outputs from the motion control data generation means to the input of the selected interpolator. and interpolator selection control means for supplying interpolation output data for each of the plurality of axes output from the selected interpolator to a servo controller for each corresponding axis.

【0017】この第2の発明に係るモーションコントロ
ーラは、モーションコントロールのブロック命令を順次
読込み、これを解読して複数軸の座標位置制御に要する
モーションコントロールデータを発生し、該データに基
づき複数各軸の補間演算を行ない、前記複数各軸の補間
後指令速度データを出力するモーションコントロール補
間処理手段と、該モーションコントロール補間処理手段
から出力される複数各軸の補間後指令速度データをそれ
ぞれ加減速処理し、該加減速処理後の各軸速度データを
それぞれ積算した加減速後指令位置データを生成し、該
データをそれぞれ対応する複数各軸のサーボコントロー
ラに供給する加減速後指令位置データ生成手段と、前記
モーションコントロール補間処理手段から出力される複
数各軸の補間後指令速度データをそれぞれ積算した補間
後指令位置データを生成し、該データをモーションコン
トロール補間処理手段に供給する補間後指令位置データ
生成手段と、現在実行中の前記ブロック命令を中止し、
次のブロック命令の実行を指令するスキップ信号を前記
モーションコントロール補間処理手段に供給するセンサ
とを備え、且つ前記モーションコントロール補間処理手
段は、前記センサからスキップ信号が入力されると、減
速停止指令データは生成せずに、その時点において補間
後指令位置データ生成手段から供給される複数各軸の補
間後指令位置データを次のブロック命令の始点位置デー
タとして、次のブロック命令に基づく複数各軸の補間演
算を行ない、連続して複数各軸の補間後指令速度データ
を出力するスキップ制御手段を含むものである。
The motion controller according to the second invention sequentially reads motion control block commands, decodes them, generates motion control data required for coordinate position control of a plurality of axes, and controls each of the plurality of axes based on the data. motion control interpolation processing means for performing interpolation calculations and outputting post-interpolated command speed data for each of the plurality of axes; and acceleration/deceleration processing for the interpolated command speed data for each of the plurality of axes output from the motion control interpolation processing means. and a post-acceleration/deceleration command position data generating means for generating post-acceleration/deceleration command position data by integrating the speed data of each axis after the acceleration/deceleration processing, and supplying the data to the corresponding servo controllers of each of the plurality of axes. , generating post-interpolated command position data by integrating the post-interpolated command speed data of each of the plural axes output from the motion control interpolation processing means, and supplying the data to the motion control interpolation processing means; means, and aborting the currently executing block instruction;
a sensor that supplies the motion control interpolation processing means with a skip signal that instructs execution of the next block command; and when the motion control interpolation processing means receives the skip signal from the sensor, is not generated, and the post-interpolation command position data of each of the multiple axes supplied from the post-interpolation command position data generation means at that point is used as the start point position data of the next block command, and the command position data of each of the multiple axes based on the next block command is It includes a skip control means that performs interpolation calculations and continuously outputs interpolated command speed data for each of a plurality of axes.

【0018】[0018]

【作用】この第1の発明においては、モーションコント
ロールデータ生成手段は、モーションコントロール命令
を順次読込み、これを解読して複数軸の座標位置制御に
要するモーションコントロールデータを生成する。第1
の補間器は前記モーションコントロールデータ生成手段
から生成される送り速度データ値が前記複数軸の移動速
度を合成した合成速度データ値と等しくなるように前記
複数各軸の補間出力データを算出して出力する。第2の
補間器は前記モーションコントロールデータ生成手段か
ら生成される送り速度データ値を前記複数軸のうち指定
される1軸の移動速度データ値として、その他の軸は前
記指定される1軸との間の移動量の比に比例した移動速
度データ値となるように前記複数各軸の補間出力データ
を算出して出力する。補間器選択制御手段は前記モーシ
ョンコントロールデータ生成手段から生成される補間器
の選択データに基づき、前記第1の補間器または第2の
補間器のいずれか一方を選択し、該選択された補間器の
入力に前記モーションコントロールデータ生成手段から
出力されるモーションコントロールデータを供給すると
共に、前記選択された補間器から出力される前記複数各
軸の補間出力データをそれぞれ対応する各軸のサーボコ
ントローラに供給する。
[Operation] In the first invention, the motion control data generation means sequentially reads motion control commands, decodes them, and generates motion control data required for coordinate position control of a plurality of axes. 1st
The interpolator calculates and outputs the interpolated output data of each of the plurality of axes so that the feed speed data value generated from the motion control data generation means is equal to the composite speed data value obtained by combining the moving speeds of the plurality of axes. do. A second interpolator uses the feed rate data value generated by the motion control data generating means as the movement rate data value of one specified axis among the plurality of axes, and sets the other axes as the moving speed data value of the specified one axis. The interpolated output data of each of the plurality of axes is calculated and output so that the moving speed data value is proportional to the ratio of the moving amount between them. The interpolator selection control means selects either the first interpolator or the second interpolator based on the interpolator selection data generated from the motion control data generation means, and selects the selected interpolator. supplying the motion control data output from the motion control data generation means to the input of the input unit, and supplying the interpolated output data of each of the plurality of axes output from the selected interpolator to the servo controller of each corresponding axis. do.

【0019】この第2の発明においては、モーションコ
ントロール補間処理手段はモーションコントロールのブ
ロック命令を順次読込み、これを解読して複数軸の座標
位置制御に要するモーションコントロールデータを発生
し、該データに基づき複数各軸の補間演算を行ない、前
記複数各軸の補間後指令速度データを出力する。加減速
後指令位置データ生成手段は前記モーションコントロー
ル補間処理手段から出力される複数各軸の補間後指令速
度データをそれぞれ加減速処理し、該加減速処理後の各
軸速度データをそれぞれ積算した加減速後指令位置デー
タを生成し、該データをそれぞれ対応する複数各軸のサ
ーボコントローラに供給する。補間後指令位置データ生
成手段は前記モーションコントロール補間処理手段から
出力される複数各軸の補間後指令速度データをそれぞれ
積算した補間後指令位置データを生成し、該データをモ
ーションコントロール補間処理手段に供給する。センサ
は現在実行中の前記ブロック命令を中止し、次のブロッ
ク命令の実行を指令するスキップ信号を前記モーション
コントロール補間処理手段に供給する。また前記モーシ
ョンコントロール補間処理手段に含まれるスキップ制御
手段は、前記センサからスキップ信号が入力されると、
減速停止指令データは生成せずに、その時点において補
間後指令位置データ生成手段から供給される複数各軸の
補間後指令位置データを次のブロック命令の始点位置デ
ータとして、次のブロック命令に基づく複数各軸の補間
演算を行ない、連続して複数各軸の補間後指令速度デー
タを出力する。
In this second invention, the motion control interpolation processing means sequentially reads motion control block commands, decodes them, generates motion control data required for coordinate position control of a plurality of axes, and performs motion control data based on the data. Interpolation calculations are performed for each of the plurality of axes, and interpolated command speed data for each of the plurality of axes is output. The post-acceleration/deceleration command position data generation means accelerates/decelerates the post-interpolation command speed data of each of the plural axes output from the motion control interpolation processing means, and generates an acceleration obtained by integrating each axis speed data after the acceleration/deceleration processing. Post-deceleration command position data is generated, and the data is supplied to the servo controllers of the corresponding multiple axes. The post-interpolation command position data generation means generates post-interpolation command position data by integrating the post-interpolation command speed data of each of the plural axes output from the motion control interpolation processing means, and supplies the data to the motion control interpolation processing means. do. The sensor supplies a skip signal to the motion control interpolation processing means to abort the currently executing block command and instruct execution of the next block command. Further, when the skip control means included in the motion control interpolation processing means receives a skip signal from the sensor,
Without generating deceleration and stop command data, the command position data after interpolation for each of the multiple axes supplied from the post-interpolation command position data generation means at that point is used as the start point position data of the next block command, and the command is based on the next block command. Performs interpolation calculations for each of the multiple axes and continuously outputs the interpolated command speed data for each of the multiple axes.

【0020】[0020]

【実施例】図1はこの第1の発明に係るモーションコン
トローラの一実施例を示すブロック図であり、1,2,
4,6a,6b,7a,7b,8a,8b,9及び10
は図7の従来装置と同一のものである。3Aは本発明の
機械制御部であり、従来の動作のほかに、軸制御データ
に含まれる補間器の選択データに基づき選択制御部11
A及び11Bに選択信号を出力する。5Aは#1補間器
であり、従来方式である複数軸の合成速度を送り速度と
して補間制御を行なう補間器である。5Bは本発明に係
る#2補間器であり、同時に複数軸の制御の場合に、指
定された1軸の速度を送り速度とする補間制御を行なう
補間器である。11Aは前記選択制御信号に基づき、#
1補間器5Aまたは#2補間器5Bのいずれか一方を選
択して、該選択された補間器の入力に機械制御部3Aか
らの出力信号を供給する選択制御部、11Bも前記選択
制御信号に基づき、#1補間器5Aまたは#2補間器5
Bのいずれか一方を選択して、該選択された補間器から
出力される各軸の補間出力信号をそれぞれサーボコント
ローラ6a及び6bに供給する選択制御部である。
[Embodiment] FIG. 1 is a block diagram showing an embodiment of a motion controller according to the first invention.
4, 6a, 6b, 7a, 7b, 8a, 8b, 9 and 10
is the same as the conventional device shown in FIG. 3A is a machine control unit of the present invention, which, in addition to the conventional operation, performs a selection control unit 11 based on the interpolator selection data included in the axis control data.
A selection signal is output to A and 11B. 5A is a #1 interpolator, which is a conventional interpolator that performs interpolation control using the composite speed of a plurality of axes as the feed speed. 5B is a #2 interpolator according to the present invention, and is an interpolator that performs interpolation control in which the speed of one specified axis is used as the feed speed when controlling a plurality of axes at the same time. 11A is based on the selection control signal, #
A selection control section 11B that selects either the #1 interpolator 5A or the #2 interpolator 5B and supplies the output signal from the machine control section 3A to the input of the selected interpolator also receives the selection control signal. Based on #1 interpolator 5A or #2 interpolator 5
This is a selection control unit that selects either one of B and supplies interpolation output signals of each axis output from the selected interpolator to the servo controllers 6a and 6b, respectively.

【0021】図2のP2で示す部分はこの第1の発明に
係る特定軸の送り速度を指定する補間制御プログラム例
である。このP2で示す部分において、Gコードを2桁
の数字で表わし、上位桁の数は補間方式(例えば1は直
線補間、2,3は円弧補間など)、下位桁の数は送り速
度を指示する特定軸の指定(例えば1は第1軸,2は第
2軸など)を示している。
The part indicated by P2 in FIG. 2 is an example of an interpolation control program for specifying the feed rate of a specific axis according to the first invention. In the part indicated by P2, the G code is expressed as a two-digit number, the upper digit number indicates the interpolation method (for example, 1 is linear interpolation, 2 and 3 are circular interpolation, etc.), and the lower digit number indicates the feed rate. This indicates the designation of a specific axis (for example, 1 is the first axis, 2 is the second axis, etc.).

【0022】図3はこの第1の発明に係る特定軸の送り
速度を指定する補間器の機能説明図である。図3におい
て、機械制御部3Aで作成される軸制御データには、従
来のX軸移動量x、Y軸移動量y、X軸とY軸の合成移
動量L及び送り速度Fのほかに、特定軸フラグAnが含
まれる。ここで特定軸フラグAnは前記2桁のGコード
の下位桁の数をデコードして、各軸毎に対応する1ビッ
トのフラグ情報としたものである。図3では第1軸から
第4軸まで4ビットの特定軸フラグが設定可能であり、
フラグデータが0001では第1軸(例えばX軸)が指
定され、0010では第2軸(例えばY軸)が指定され
る。またフラグデータが0000ではどの軸も指定され
ないので、従来方式の補間制御となる。この実施例にお
いては、X軸の送り速度が指定されたものとして、#2
補間器5Bの動作を説明する。
FIG. 3 is a functional explanatory diagram of an interpolator for specifying the feed rate of a specific axis according to the first invention. In FIG. 3, the axis control data created by the machine control unit 3A includes, in addition to the conventional X-axis movement amount x, Y-axis movement amount y, combined movement amount L of the X-axis and Y-axis, and feed rate F. A specific axis flag An is included. Here, the specific axis flag An is obtained by decoding the number of lower digits of the two-digit G code to obtain 1-bit flag information corresponding to each axis. In Figure 3, a 4-bit specific axis flag can be set from the first axis to the fourth axis.
When the flag data is 0001, the first axis (for example, the X axis) is specified, and when the flag data is 0010, the second axis (for example, the Y axis) is specified. Further, if the flag data is 0000, no axis is specified, so the conventional interpolation control is performed. In this example, assuming that the X-axis feed rate is specified, #2
The operation of interpolator 5B will be explained.

【0023】#2補間器5Bは上記軸制御データに基づ
き、単位時間Δt当りの、送り速度ΔF,X軸の補間出
力ΔXt及びY軸の補間出力ΔYtを次の(1),(4
)及び(5)式により演算する。ここで*は乗算記号で
ある。 ΔF=F*1/60*Δt             
     …(1)いま送り速度の指定軸がX軸である
のて、ΔXt=ΔF                
            …(4)ΔYt=ΔF*y/
x                      …(
5)また特定軸フラグがY軸を指定した場合は次の(6
),(7)式となる。 ΔYt=ΔF                   
           …(6)ΔXt=ΔF*x/y
                      …(7
)上記(4)及び(5)式または(6)及び(7)式に
より演算されたX軸及びY軸の補間出力ΔXt及びΔY
tは、#2補間器5Bから単位時間Δt毎に出力され、
選択制御部11Bを介してサーボコントローラ6a及び
6bに供給される。その結果特定軸のサーボモータ7a
または7bはプログラムで指定された送り速度により、
その他の軸は特定軸との間の移動量の比に比例した送り
速度により補間制御がなされる。
#2 interpolator 5B calculates the feed rate ΔF, X-axis interpolation output ΔXt, and Y-axis interpolation output ΔYt per unit time Δt according to the following (1) and (4) based on the axis control data.
) and (5). Here * is a multiplication symbol. ΔF=F*1/60*Δt
...(1) Since the designated axis for the feed rate is the X-axis, ΔXt=ΔF
...(4) ΔYt=ΔF*y/
x...(
5) Also, if the specific axis flag specifies the Y axis, the following (6)
), (7) is obtained. ΔYt=ΔF
...(6) ΔXt=ΔF*x/y
…(7
) X-axis and Y-axis interpolation outputs ΔXt and ΔY calculated using equations (4) and (5) or equations (6) and (7) above
t is output from #2 interpolator 5B every unit time Δt,
The signal is supplied to the servo controllers 6a and 6b via the selection control section 11B. As a result, the servo motor 7a of the specific axis
Or 7b is determined by the feed rate specified in the program.
For the other axes, interpolation control is performed using a feed rate proportional to the ratio of the amount of movement to the specific axis.

【0024】図4はこの第1の発明に係る補間制御手順
を示す流れ図である。図4を参照し図1の動作を説明す
る。なお図1の構成においては、機械制御部3A、#1
補間器5A、#2補間器5B、選択制御部11A及び1
1Bのみが図7の構成機器と相違しており、その他の機
器は図7と同一であるので、同一機器の動作説明は重複
するため省略する。
FIG. 4 is a flowchart showing the interpolation control procedure according to the first invention. The operation of FIG. 1 will be explained with reference to FIG. Note that in the configuration of FIG. 1, the machine control section 3A, #1
Interpolator 5A, #2 interpolator 5B, selection control units 11A and 1
Only component 1B is different from the component equipment in FIG. 7, and the other equipment is the same as in FIG. 7, so a description of the operation of the same equipment will be omitted since it would be redundant.

【0025】図4のステップS1において、機械制御部
3Aはプログラム処理部2からの制御指令データに基づ
き軸制御データを作成し、この軸制御データ内の特定軸
フラグAnにより特定軸の速度指定かどうかを判別する
。この判別結果がNOの場合には従来方式の補間制御で
あるので、機械制御部3AはステップS2において、選
択制御部11A及び11Bが#1補間器5Aを選択する
ように制御する。また判別結果がYESの場合にはステ
ップS3において、選択制御部11A及び11Bが#2
補間器5Bを選択するように制御する。
In step S1 of FIG. 4, the machine control unit 3A creates axis control data based on the control command data from the program processing unit 2, and specifies whether the speed of a specific axis is specified by the specific axis flag An in this axis control data. determine whether If the result of this determination is NO, the conventional interpolation control is performed, so the machine control section 3A controls the selection control sections 11A and 11B to select the #1 interpolator 5A in step S2. Further, if the determination result is YES, in step S3, the selection control units 11A and 11B select #2.
The interpolator 5B is controlled to be selected.

【0026】#1補間器5Aは選択されると、ステップ
S4において軸制御データを読込み、ステップS5にお
いて前記(1),(2),(3)の演算式により、単位
時間当りの送り速度ΔF、X軸の補間出力ΔXt及びY
軸の補間出力ΔYtを算出し、ステップS6において前
記ΔXt及びΔYtを出力する。
When the #1 interpolator 5A is selected, the axis control data is read in step S4, and the feed rate ΔF per unit time is calculated in step S5 using the equations (1), (2), and (3). , X-axis interpolation output ΔXt and Y
The interpolation output ΔYt of the axis is calculated, and the ΔXt and ΔYt are output in step S6.

【0027】#2補間器5Bは選択されると、ステップ
S7において軸制御データを読込み、ステップS8にお
いて特定軸の番号を判別する。判別結果がX軸の場合は
、#2補間器5BはステップS9において前記(1),
(4),(5)の演算式により、単位時間当りの送り速
度ΔF、X軸の補間出力ΔXt及びY軸の補間出力ΔY
tを算出し、ステップS11において前記ΔXt及びΔ
Ytを出力する。またステップS8における判別結果が
Y軸の場合は、#2補間器5BはステップS10におい
て前記(1),(6),(7)の演算式により、単位時
間当りの送り速度ΔF、X軸の補間出力ΔXt及びY軸
の補間出力ΔYtを算出し、ステップS11において前
記ΔXt及びΔYtを出力する。
When #2 interpolator 5B is selected, it reads the axis control data in step S7, and determines the number of the specific axis in step S8. If the determination result is the X-axis, the #2 interpolator 5B performs the above (1),
(4) and (5), feed rate ΔF per unit time, X-axis interpolation output ΔXt, and Y-axis interpolation output ΔY
t is calculated, and in step S11, the ΔXt and Δ
Output Yt. Further, if the determination result in step S8 is the Y-axis, the #2 interpolator 5B calculates the feed rate ΔF per unit time, the X-axis An interpolation output ΔXt and a Y-axis interpolation output ΔYt are calculated, and the ΔXt and ΔYt are output in step S11.

【0028】前記X軸及びY軸の補間出力ΔXt及びΔ
Ytは、選択制御部11Bを介して単位時間Δt毎にX
軸用及びY軸用サーボコントローラ6a及び6bに供給
され、対応する各軸のサーボモータが制御される。
[0028] The interpolation outputs ΔXt and Δ of the X-axis and Y-axis
Yt is set to X every unit time Δt via the selection control unit 11B.
It is supplied to the axis and Y-axis servo controllers 6a and 6b, and the corresponding servo motors of each axis are controlled.

【0029】例えば複数の回転軸を備え、そのうち特定
の回転軸のみを一定速度で連続回転させる必要がある機
械のモーションコントローラにこの第1の発明を適用す
れば、プログラムの指令のみで複数の回転軸を所望の回
転速度により同時制御することができる。またコンベア
の駆動を含む制御装置において、1軸はコンベアの駆動
制御を行ない、同時に他の軸はコンベア上の物品の加工
制御を行なう場合に、コンベアの速度は一定(従って被
加工物の速度も一定)とする必要がある。従ってこのよ
うな場合のモーションコントローラにこの第1の発明を
適用すると制御装置が簡単な構成となる。
For example, if the first invention is applied to a motion controller for a machine that is equipped with a plurality of rotating axes and requires only a specific rotating axis to rotate continuously at a constant speed, it is possible to perform multiple rotations simply by commands from a program. The axes can be simultaneously controlled according to the desired rotational speed. In addition, in a control device that includes a conveyor drive, when one axis controls the drive of the conveyor and the other axis simultaneously controls the processing of articles on the conveyor, the speed of the conveyor is constant (therefore, the speed of the workpiece is also controlled). constant). Therefore, if the first invention is applied to a motion controller in such a case, the control device will have a simple configuration.

【0030】図5はこの第2の発明に係るモーションコ
ントローラの一実施例を示すブロック図であり、32〜
42は図9の従来装置と同一のものである。31Aはこ
の第2の発明のモーションコントローラであり、従来の
モーションコントローラ31のほかに、補間後指令位置
データ生成部43a及び43bを追加して設けたもので
ある。補間後指令位置データ生成部43a及び43bは
、補間後指令速度データ35a及び35bをそれぞれ積
算して補間後指令位置データ44a及び44bを生成し
、該データを補間処理部34に供給するものである。
FIG. 5 is a block diagram showing an embodiment of the motion controller according to the second invention.
42 is the same as the conventional device shown in FIG. 31A is a motion controller according to the second invention, in which, in addition to the conventional motion controller 31, post-interpolation command position data generation sections 43a and 43b are additionally provided. The post-interpolation command position data generation units 43a and 43b integrate the post-interpolation command speed data 35a and 35b, respectively, to generate post-interpolation command position data 44a and 44b, and supply the data to the interpolation processing unit 34. .

【0031】図6は図5のスキップ制御動作を説明する
波形図である。同図は横軸の時間経過に対して、それぞ
れセンサ信号42のオンまたはオフ状態、補間後指令速
度データ35aまたは35b、加減速後指令速度データ
37aまたは37bを縦軸に示している。図6のtsは
加減速時間であり、この図6の波形は従来装置における
図10の場合と対応する。
FIG. 6 is a waveform diagram illustrating the skip control operation of FIG. 5. In the figure, the vertical axis shows the ON or OFF state of the sensor signal 42, the command speed data after interpolation 35a or 35b, and the command speed data after acceleration/deceleration 37a or 37b, with respect to the passage of time on the horizontal axis. ts in FIG. 6 is acceleration/deceleration time, and the waveform in FIG. 6 corresponds to the case in FIG. 10 in the conventional device.

【0032】図6を参照し、図5の動作を説明する。図
5の補間処理部34はプログラム32からスキップ制御
のブロック命令を読出し、図8で説明した演算処理後、
各軸の補間後指令速度データ35a,35bを出力する
。この出力された補間後指令速度データ35a,35b
は、加減速処理部36a,36bに供給されると共に、
補間後指令位置データ生成部43a,43bにも供給さ
れる。加減速処理部36a,36bは補間後指令速度デ
ータ35a,35bを加減速処理し、加減速後指令位置
データ生成部38a,38bを介して加減速後指示位置
データ40a,40bをそれぞれサーボ処理部39a,
39bに供給する。
The operation of FIG. 5 will be explained with reference to FIG. The interpolation processing unit 34 in FIG. 5 reads the skip control block command from the program 32, and after the arithmetic processing described in FIG.
The interpolated command speed data 35a, 35b for each axis is output. The outputted interpolated command speed data 35a, 35b
are supplied to the acceleration/deceleration processing units 36a and 36b, and
It is also supplied to post-interpolation command position data generation units 43a and 43b. The acceleration/deceleration processing units 36a, 36b perform acceleration/deceleration processing on the interpolated command speed data 35a, 35b, and output the post-acceleration/deceleration command position data 40a, 40b to the servo processing unit via the post-acceleration/deceleration command position data generation units 38a, 38b, respectively. 39a,
39b.

【0033】一方、補間後指令位置データ生成部43a
,43bは補間後指令速度データ35a,35bを積算
して補間後指令位置データを生成し、補間処理部34に
供給する。
On the other hand, the post-interpolation command position data generation section 43a
, 43b integrates the post-interpolation command speed data 35a, 35b to generate post-interpolation command position data, and supplies the data to the interpolation processing section 34.

【0034】図6に示されるスキップ制御のブロック命
令を実行中のある時刻Txにセンサ41からセンサ信号
(スキップ指令信号)42がオンになると、補間処理部
34は直ちに現在実行中のスキップ制御のブロック命令
を中止し、このとき補間後指令位置データ生成部43a
,43bから供給される各軸の補間後指令位置データ4
4a,44bを次のブロック命令の始点位置データとし
、次のブロック命令をプログラム32から読出し、この
ブロック命令に基づく各軸の補間演算を行ない、連続し
て次のブロック命令の補間制御を実行する。いま図6に
おいて、センサ信号42がオフからオンになると、補間
後指令速度データ35a,35bは直ちに次のブロック
命令の指令速度データ値になり、加減速後指令速度デー
タ37a,37bは加減速時間ts経過後に次のブロッ
ク命令の加減速後指令速度データ値に達する状態が示さ
れる。従ってそれまで実行していたブロック命令から次
のブロック命令にスキップする過程で、従来のように一
旦減速停止する過程は除去され、滑らかな制御動作とな
る。
When the sensor signal (skip command signal) 42 from the sensor 41 is turned on at a certain time Tx during the execution of the skip control block command shown in FIG. The block command is canceled, and at this time, the post-interpolation command position data generation unit 43a
, 43b for each axis after interpolation command position data 4
4a and 44b as the starting point position data of the next block instruction, read the next block instruction from the program 32, perform interpolation calculations for each axis based on this block instruction, and continuously execute interpolation control of the next block instruction. . In FIG. 6, when the sensor signal 42 is turned on from off, the interpolated command speed data 35a, 35b immediately becomes the command speed data value of the next block command, and the post-acceleration/deceleration command speed data 37a, 37b corresponds to the acceleration/deceleration time. A state in which the command speed data value after acceleration/deceleration of the next block command is reached after ts has elapsed is shown. Therefore, in the process of skipping from the previously executed block command to the next block command, the conventional process of once decelerating and stopping is eliminated, resulting in smooth control operation.

【0035】[0035]

【発明の効果】以上のように本発明によれば、複数軸の
同時補間制御を行なうモーションコントローラにおいて
、従来の送り速度を複数軸の合成速度として補間制御を
行なう第1の補間器と、送り速度を特定1軸の速度とし
て補間制御を行なう第2の補間器とを備え、プログラム
の指令のみで、所望の補間器を選択して使用でるように
したので、モーションコントローラの適用範囲が拡大さ
れるという効果が得られる。また、本発明に係る上記第
2の補間器を使用すれば、複数の回転軸のうちの特定軸
の回転速度を一定に制御したり、あるいはコンベアの移
動速度を常に一定に制御しながら同時にコンベア上の被
加工物を加工制御するのが容易にできるという効果があ
る。
As described above, according to the present invention, in a motion controller that performs simultaneous interpolation control of multiple axes, a first interpolator that performs interpolation control using a conventional feed rate as a composite speed of multiple axes; The motion controller is equipped with a second interpolator that performs interpolation control based on the speed of one specific axis, and the desired interpolator can be selected and used simply by commands from the program, expanding the scope of application of the motion controller. This has the effect of Furthermore, if the second interpolator according to the present invention is used, it is possible to control the rotational speed of a specific axis among a plurality of rotational axes to be constant, or to control the moving speed of the conveyor to be constant while simultaneously conveying the conveyor. This has the effect of making it easier to control the processing of the workpiece above.

【0036】また本発明によれば、モーションコントロ
ールのブロック命令を順次読込み複数軸の同時補間制御
を行なうモーションコントローラにおいて、常時各軸の
補間後指令位置データの供給を受けているモーションコ
ントロール補間処理手段は、センサからスキップ信号が
入力されると、減速停止指令データは生成せずに、その
時点における各軸の補間後指令位置を次のブロック命令
の始点位置として、直ちに次のブロック命令を実行する
ようにしたので、スキップの過程においても滑らかな制
御動作が可能となり、且つ従来の減速停止に要した時間
を短縮できるという効果が得られる。
Further, according to the present invention, in a motion controller that sequentially reads motion control block commands and performs simultaneous interpolation control of a plurality of axes, the motion control interpolation processing means is constantly supplied with post-interpolation command position data of each axis. When a skip signal is input from the sensor, the command immediately executes the next block command using the interpolated command position of each axis at that time as the starting point position of the next block command without generating deceleration and stop command data. As a result, smooth control operation is possible even in the skip process, and the time required for conventional deceleration and stop can be shortened.

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

【図1】この第1の発明に係るモーションコントローラ
の一実施例を示すブロック図である。
FIG. 1 is a block diagram showing an embodiment of a motion controller according to the first invention.

【図2】モーションコントローラのプログラム例を示す
図である。
FIG. 2 is a diagram showing an example of a program of a motion controller.

【図3】この第1の発明に係る特定軸の送り速度を指定
する補間器の機能説明図である。
FIG. 3 is a functional explanatory diagram of an interpolator that specifies the feed rate of a specific axis according to the first invention.

【図4】この第1の発明に係る補間制御手順を示す流れ
図である。
FIG. 4 is a flowchart showing an interpolation control procedure according to the first invention.

【図5】この第2の発明に係るモーションコントローラ
の一実施例を示すブロック図である。
FIG. 5 is a block diagram showing an embodiment of a motion controller according to the second invention.

【図6】図5のスキップ制御動作を説明する波形図であ
る。
FIG. 6 is a waveform diagram illustrating the skip control operation of FIG. 5;

【図7】従来のモーションコントローラの複数軸補間制
御機能を示すブロック図である。
FIG. 7 is a block diagram showing a multi-axis interpolation control function of a conventional motion controller.

【図8】従来装置の補間器の機能説明図である。FIG. 8 is a functional explanatory diagram of an interpolator of a conventional device.

【図9】従来のモーションコントローラのスキップ制御
機能を示すブロック図である。
FIG. 9 is a block diagram showing a skip control function of a conventional motion controller.

【図10】図9のスキップ制御動作を説明する波形図で
ある。
FIG. 10 is a waveform diagram illustrating the skip control operation of FIG. 9;

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

1  モーションプログラム 2  プログラム処理部 3,3A  機械制御部 4  機械インタフェース 5  補間器 5A  #1補間器 5B  #2補間器 6a,6b  サーボコントローラ 7a,7b  サーボモータ 8a,8b  検出器 9  制御対象機械 10  操作パネル 31,31A  モーションコントローラ32  プロ
グラム 33  ブロック命令 34  補間処理部 35a,35b  補間後指令速度データ36a,36
b  加減速処理部 37a,37b  加減速後指令速度データ38a,3
8b  加減速後指令位置データ生成部39a,39b
  サーボ処理部 40a,40b  加減速後指令位置データ41  セ
ンサ 42  センサ信号
1 Motion program 2 Program processing section 3, 3A Machine control section 4 Machine interface 5 Interpolator 5A #1 interpolator 5B #2 interpolator 6a, 6b Servo controller 7a, 7b Servo motor 8a, 8b Detector 9 Machine to be controlled 10 Operation Panels 31, 31A Motion controller 32 Program 33 Block command 34 Interpolation processing unit 35a, 35b Post-interpolation command speed data 36a, 36
b Acceleration/deceleration processing unit 37a, 37b Post-acceleration/deceleration command speed data 38a, 3
8b Post-acceleration/deceleration command position data generation unit 39a, 39b
Servo processing units 40a, 40b Command position data after acceleration/deceleration 41 Sensor 42 Sensor signal

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】  モーションコントロール命令を順次読
込み、これを解読して複数軸の座標位置制御に要するモ
ーションコントロールデータを生成するモーションコン
トロールデータ生成手段と、該モーシコントロールデー
タ生成手段から生成される送り速度データ値が前記複数
軸の移動速度を合成した合成速度データ値と等しくなる
ように前記複数各軸の補間出力データを算出して出力す
る第1の補間器と、前記モーションコントロールデータ
生成手段から生成される送り速度データ値を前記複数軸
のうちから指定される1軸の移動速度データ値として、
その他の軸は前記指定される1軸との間の移動量の比に
比例した移動速度データ値となるように前記複数各軸の
補間出力データを算出して出力する第2の補間器と、前
記モーションコントロールデータ生成手段から生成され
る補間器の選択データに基づき、前記第1の補間器また
は第2の補間器のいずれか一方を選択し、該選択された
補間器の入力に前記モーションコントロールデータ生成
手段から出力されるモーションコントロールデータを供
給すると共に、前記選択された補間器から出力される前
記複数各軸の補間出力データをそれぞれ対応する各軸の
サーボコントローラに供給する補間器選択制御手段とを
備えたことを特徴とするモーションコントローラ。
1. Motion control data generation means for sequentially reading motion control commands and decoding them to generate motion control data required for coordinate position control of a plurality of axes, and a feed rate generated from the motion control data generation means. a first interpolator that calculates and outputs interpolated output data of each of the plurality of axes so that the data value is equal to a composite speed data value obtained by combining the moving speeds of the plurality of axes, and a motion control data generation means the feed speed data value that is specified as the movement speed data value of one axis specified from the plurality of axes,
a second interpolator that calculates and outputs interpolated output data of each of the plurality of axes so that the other axes have a movement speed data value proportional to the ratio of the movement amount with the specified one axis; Based on the interpolator selection data generated from the motion control data generation means, either the first interpolator or the second interpolator is selected, and the motion control is applied to the input of the selected interpolator. Interpolator selection control means for supplying motion control data output from the data generation means and interpolation output data for each of the plurality of axes output from the selected interpolator to the servo controller for each corresponding axis. A motion controller characterized by comprising:
【請求項2】  モーションコントロールのブロック命
令を順次読込み、これを解読して複数軸の座標位置制御
に要するモーションコントロールデータを発生し、該デ
ータに基づき複数各軸の補間演算を行ない、前記複数各
軸の補間後指令速度データを出力するモーションコント
ロール補間処理手段と、該モーションコントロール補間
処理手段から出力される複数各軸の補間後指令速度デー
タをそれぞれ加減速処理し、該加減速処理後の各軸速度
データをそれぞれ積算した加減速後指令位置データを生
成し、該データをそれぞれ対応する複数各軸のサーボコ
ントローラに供給する加減速後指令位置データ生成手段
と、前記モーションコントロール補間処理手段から出力
される複数各軸の補間後指令速度データをそれぞれ積算
した補間後指令位置データを生成し、該データをモーシ
ョンコントロール補間処理手段に供給する補間後指令位
置データ生成手段と、現在実行中の前記ブロック命令を
中止し、次のブロック命令の実行を指令するスキップ信
号を前記モーションコントロール補間処理手段に供給す
るセンサとを備え、前記モーションコントロール補間処
理手段は、前記センサからスキップ信号が入力されると
、減速停止指令データは生成せずに、その時点において
補間後指令位置データ生成手段から供給される複数各軸
の補間後指令位置データを次のブロック命令の始点位置
データとして、次のブロック命令に基づく複数各軸の補
間演算を行ない、連続して複数各軸の補間後指令速度デ
ータを出力するスキップ制御手段を含むことを特徴とす
るモーションコントローラ。
2. Sequentially reading motion control block commands, decoding them to generate motion control data required for coordinate position control of a plurality of axes, and performing interpolation calculations for each of the plurality of axes based on the data. A motion control interpolation processing means that outputs the interpolated command speed data of the axes, and a motion control interpolation processing means that performs acceleration/deceleration processing on the interpolated command speed data of each of the multiple axes output from the motion control interpolation processing means, and A post-acceleration/deceleration command position data generation means for generating post-acceleration/deceleration command position data by integrating each axis speed data and supplying the data to the corresponding servo controllers of each of the plurality of axes, and output from the motion control interpolation processing means. post-interpolation command position data generation means for generating post-interpolation command position data by integrating the post-interpolation command speed data of each of the plural axes, and supplying the data to the motion control interpolation processing means; and the block currently being executed. and a sensor that supplies the motion control interpolation processing means with a skip signal that instructs the motion control interpolation processing means to stop the command and execute the next block command, and when the motion control interpolation processing means receives the skip signal from the sensor, the motion control interpolation processing means: Without generating deceleration and stop command data, the command position data after interpolation for each of the multiple axes supplied from the post-interpolation command position data generation means at that point is used as the start point position data of the next block command, and the command is based on the next block command. A motion controller comprising a skip control means that performs interpolation calculations for each of a plurality of axes and continuously outputs post-interpolated command speed data for each of a plurality of axes.
JP3021822A 1991-02-15 1991-02-15 Control device Expired - Lifetime JP2741430B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3021822A JP2741430B2 (en) 1991-02-15 1991-02-15 Control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3021822A JP2741430B2 (en) 1991-02-15 1991-02-15 Control device

Publications (2)

Publication Number Publication Date
JPH04260105A true JPH04260105A (en) 1992-09-16
JP2741430B2 JP2741430B2 (en) 1998-04-15

Family

ID=12065755

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3021822A Expired - Lifetime JP2741430B2 (en) 1991-02-15 1991-02-15 Control device

Country Status (1)

Country Link
JP (1) JP2741430B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1994019731A1 (en) * 1993-02-25 1994-09-01 Fanuc Ltd Numeric controller
JP2007034758A (en) * 2005-07-28 2007-02-08 Nidec-Shimpo Corp Linear interpolation method for driving control device
CN102310406A (en) * 2010-06-30 2012-01-11 华宝通讯股份有限公司 Automatic mechanical device and control method thereof

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62121508A (en) * 1985-11-22 1987-06-02 Mitsubishi Electric Corp Numerical controller
JPS62174807A (en) * 1986-01-28 1987-07-31 Mitsubishi Electric Corp Numeric controller
JPH01145704A (en) * 1987-12-01 1989-06-07 Mitsubishi Electric Corp Positioning unit for programmable controller

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62121508A (en) * 1985-11-22 1987-06-02 Mitsubishi Electric Corp Numerical controller
JPS62174807A (en) * 1986-01-28 1987-07-31 Mitsubishi Electric Corp Numeric controller
JPH01145704A (en) * 1987-12-01 1989-06-07 Mitsubishi Electric Corp Positioning unit for programmable controller

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1994019731A1 (en) * 1993-02-25 1994-09-01 Fanuc Ltd Numeric controller
US5485069A (en) * 1993-02-25 1996-01-16 Fanuc Ltd. Numerical control apparatus
JP2007034758A (en) * 2005-07-28 2007-02-08 Nidec-Shimpo Corp Linear interpolation method for driving control device
JP4508969B2 (en) * 2005-07-28 2010-07-21 日本電産シンポ株式会社 Linear interpolation method in drive controller
CN102310406A (en) * 2010-06-30 2012-01-11 华宝通讯股份有限公司 Automatic mechanical device and control method thereof

Also Published As

Publication number Publication date
JP2741430B2 (en) 1998-04-15

Similar Documents

Publication Publication Date Title
EP0801339B1 (en) Method of axis movement numeric control machine tool and apparatus therefor
JP3665008B2 (en) Synchronization control method and synchronization control apparatus
US5493193A (en) Numerical control apparatus and numerical control method
US4862379A (en) Numerical control machine
WO2008053601A1 (en) Working control device, and its program
WO1997013184A1 (en) Numerical controller
JPH03196310A (en) Display system for numerical controller
US6842651B1 (en) Programmable controller having plural speed pattern generators
JPH04260105A (en) Motion controller
WO1990012348A1 (en) Method of plotting nc program
US6999844B2 (en) Numerical controller
JPH06202724A (en) Numerical controller
US5475602A (en) Acceleration constant switching apparatus
JPS6249503A (en) Numerical controller
JPH03204703A (en) Numerical controller
JP2779797B2 (en) Numerical control unit
JP3491913B2 (en) Numerical control unit
JP2996445B2 (en) Multi-axis drive
Roschlia et al. The g-code file
JP2687120B2 (en) Numerical control unit
JP2694639B2 (en) Numerical control unit
JPH039406A (en) Numerical control device
JP2779796B2 (en) Numerical control unit
JPH0474205A (en) Correction system for tool diameter
JP2694638B2 (en) Numerical control unit