JPH05324026A - Motor driving controller - Google Patents

Motor driving controller

Info

Publication number
JPH05324026A
JPH05324026A JP4133608A JP13360892A JPH05324026A JP H05324026 A JPH05324026 A JP H05324026A JP 4133608 A JP4133608 A JP 4133608A JP 13360892 A JP13360892 A JP 13360892A JP H05324026 A JPH05324026 A JP H05324026A
Authority
JP
Japan
Prior art keywords
control
indexing
axis
unit
mode
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
JP4133608A
Other languages
Japanese (ja)
Other versions
JP3195646B2 (en
Inventor
Akihito Shibata
明仁 柴田
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.)
Okuma Corp
Original Assignee
Okuma Machinery Works Ltd
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 Okuma Machinery Works Ltd filed Critical Okuma Machinery Works Ltd
Priority to JP13360892A priority Critical patent/JP3195646B2/en
Publication of JPH05324026A publication Critical patent/JPH05324026A/en
Application granted granted Critical
Publication of JP3195646B2 publication Critical patent/JP3195646B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PURPOSE:To obtain an NC device which is more improved in servo control performance by switching a control loop and a control parameter in real time according to an external control mode switching signal and performing dividing control or outline control. CONSTITUTION:A servocontrol part 20 switches the control loop and control parameter in real time with the control mode switching signal MODE. When the control mode MODE indicates a position control mode, switches 29a and 29b are switched to the sides of a position control part 21 and a parameter storage part 27 for outline axis control respectively. When the switching signal MODE indicates a dividing control mode, on the other hand, the switches 29a and 29b are switched to the sides of a dividing position function generation part 28 and a parameter storage part 27b for dividing control respectively. Consequently, an NC main processing part need not perform a function generating process which is large in load at the time of the dividing control.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、モータの駆動を制御す
るモータ駆動制御装置に関し、特に制御モード切り替え
信号に応じて割出制御あるいは輪郭制御を行なうモータ
駆動制御装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a motor drive control device for controlling the drive of a motor, and more particularly to a motor drive control device for performing indexing control or contour control according to a control mode switching signal.

【0002】[0002]

【従来の技術】図5には従来のモータ駆動制御装置の構
成が、図6にはこの装置を用いて構成したNC装置の構
成が、図7にはこのNC装置の各部の動作が、それぞれ
示されている。
2. Description of the Related Art FIG. 5 shows the configuration of a conventional motor drive control device, FIG. 6 shows the configuration of an NC device constructed using this device, and FIG. 7 shows the operation of each part of this NC device. It is shown.

【0003】図6には、工作機械の各軸サーボ制御に直
接関与する部分のみが示されている。NCプログラムは
図示しないプログラムバッファに格納されており、NC
メイン処理部10中のNCプログラム解釈部11は、こ
のプログラムバッファから実行すべきNCプログラムを
1行ずつ読み出す。NCプログラム解釈部11は、これ
をN、G、X、Z等のアドレスキャラクタ毎に分解し、
それに付随する数値データと共に中間バッファBDB
(Block Data Buffer )の所定の位置に格納する(図7
中Sm1)。NCプログラムの全行についてこの読出し
・構文解析処理を終えると、NCプログラム解釈部11
は、中間バッファBDBのデータをNCプログラムの単
位系(例えばmm)からNC装置内での処理単位系(例
えばμm)に変換し、中間バッファCDB(Command Da
ta Buffer )に格納する。中間バッファCDBの内容
は、原点オフセット・工具オフセット等のデータと合成
された後に機械座標系に変換され、中間バッファEDB
(Execution Data Buffer )に格納される(Sm2)。
FIG. 6 shows only the portion directly involved in servo control of each axis of the machine tool. The NC program is stored in a program buffer (not shown)
The NC program interpreting unit 11 in the main processing unit 10 reads the NC program to be executed line by line from the program buffer. The NC program interpretation unit 11 decomposes this for each address character such as N, G, X, and Z,
Intermediate buffer BDB with accompanying numerical data
Stored in a specified location in (Block Data Buffer) (Fig. 7
Medium Sm1). When this read / syntactic analysis process is completed for all lines of the NC program, the NC program interpretation unit 11
Converts the data in the intermediate buffer BDB from the unit system (for example, mm) of the NC program into the processing unit system (for example, μm) in the NC device,
ta Buffer). The contents of the intermediate buffer CDB are converted into the machine coordinate system after being combined with the data such as the origin offset and the tool offset, and the intermediate buffer EDB is used.
It is stored in (Execution Data Buffer) (Sm2).

【0004】NCプログラム実行部12は、実行すべき
データが中間バッファEDBにあるかないかを調べ(S
m3)、“有り”ならば当該データを取り込み、なけれ
ば実行を終了する。実行すべきデータについては、S,
T,M指令がある場合、まずNCプログラム実行部12
によりいわゆるS,T,M処理が優先的に施される(S
m50)。S,T,M指令がない場合、NCプログラム
実行部12は、輪郭軸(工作機械のX、Y、Z軸等の送
り軸)移動指令を関数発生部13に送る。さらにこの輪
郭軸移動指令もない場合、ステップSm3に戻る(Sm
6)。一方、NCプログラム実行部12は、S,T,M
処理中に旋盤における刃物台旋回指令等の割出軸移動指
令が有るかどうかをチェックし(Sm51)、割出軸移
動指令が有る場合にはこの処理を関数発生部13にて行
なう。
The NC program execution unit 12 checks whether or not there is data to be executed in the intermediate buffer EDB (S
m3), if “present”, take in the relevant data, and if not, end the execution. For the data to be executed, see S,
When there are T and M commands, first the NC program execution unit 12
The so-called S, T, M processing is preferentially performed by
m50). When there is no S, T, or M command, the NC program execution unit 12 sends a contour axis (feed axis such as X, Y, Z axis of machine tool) movement command to the function generation unit 13. Furthermore, if there is no contour axis movement command, the process returns to step Sm3 (Sm
6). On the other hand, the NC program execution unit 12 uses the S, T, M
During the processing, it is checked whether or not there is an indexing axis movement command such as a tool post turning command in the lathe (Sm51), and if there is an indexing axis movement command, the function generating unit 13 performs this processing.

【0005】関数発生部13は、割出/輪郭軸に対する
移動指令に基づいて最終位置(指令位置)に至るまでの
移動経路座標関数を生成する。例えばNCプログラムの
GコードおよびT指令により旋盤刃物台旋回が指令され
た場合を考える。2サドル仕様旋盤の場合、G13/G
14により第1/第2刃物台指定を、T指令により各刃
物台の工具(刃物台ステーション位置)指定を行なう。
刃物台ステーション位置は刃物台旋回指令時の割出指令
位置となるものであり、機械仕様設計時に決まるもので
ある。例えばV8とかV12と称する刃物台は1つの刃
物台に8本あるいは12本の工具を実装可能としたもの
であり、刃物台1回転すなわち360度中に8あるいは
12の割出位置決めポイント等が間隔もしくは不等間隔
に刃物台設計時に仕様設定される。関数発生部13は、
まずGコード及びT指令から割出指令位置をNC装置内
での処理単位系で求め、この割出指令位置に至るまでの
移動経路座標をサーボ系制御単位時間(関数発生周期)
毎に演算、つまり関数発生周期毎に補間することにより
補間後移動指令を生成する(Sm52)。この補間は直
線補間である。この補間処理終了後、関数発生部13
は、関数発生周期に同期して補間後移動指令を1つずつ
当該割出軸のサーボ制御部20に出力する(Sm5
3)。その後、関数発生部13は割出軸のサーボ制御部
20から転送される割出軸現在位置データを読み込み
(Sm54)、この現在位置が割出指令値に一致してい
るかどうかを判定する(Sm55)。一致していなけれ
ばステップSm53に戻り、出力すべき補間後移動指令
出力があればサーボ制御部20に出力し、なければステ
ップSm54に進む。一致していればステップSm51
に戻り、他の割出軸移動指令が残っているかどうかを判
定し、残っていれば上述ステップSm53〜Sm55の
割出軸制御を繰り返す。残っていなければ、送り軸移動
処理を行なうべくステップSm6に進む。
The function generating unit 13 generates a movement path coordinate function to reach the final position (command position) based on the movement command for the indexing / contour axis. Consider, for example, a case where the turning of the lathe tool post is instructed by the G code and the T command of the NC program. G13 / G for 2-saddle lathe
14 designates the first / second turret, and the T command designates the tool (turret station position) of each turret.
The turret station position is the index command position when the turret rotation command is issued, and is determined when the machine specifications are designed. For example, a tool post called V8 or V12 is one in which eight or twelve tools can be mounted on one tool post, and there are eight or twelve indexing positioning points or the like within one turn of the tool post, that is, 360 degrees. Alternatively, specifications are set at unequal intervals when designing the turret. The function generator 13
First, the index command position is obtained from the G code and T command in the processing unit system in the NC unit, and the movement path coordinates to reach this index command position are the servo system control unit time (function generation cycle).
A post-interpolation movement command is generated by performing calculation for each time, that is, performing interpolation for each function generation cycle (Sm52). This interpolation is linear interpolation. After the completion of this interpolation processing, the function generator 13
Outputs one post-interpolation movement command to the servo control unit 20 of the indexing axis in synchronization with the function generation cycle (Sm5
3). After that, the function generating unit 13 reads the indexing axis current position data transferred from the indexing axis servo control unit 20 (Sm54), and determines whether this current position matches the indexing command value (Sm55). ). If they do not match, the process returns to step Sm53, and if there is a post-interpolation movement command output to be output, it is output to the servo control unit 20, and if not, the process proceeds to step Sm54. If they match, step Sm51
Then, it is judged whether or not another indexing axis movement command remains, and if there is any indexing axis movement command, the indexing axis control of steps Sm53 to Sm55 is repeated. If not, the process proceeds to step Sm6 to perform the feed axis moving process.

【0006】輪郭軸制御に対する関数発生部13の動作
は、基本的には割出位置決め制御の場合と同じである。
ただ、輪郭軸制御の場合はNCプログラムにて最終位置
決め位置に至るまでの途中経路(例えば3次元円弧軌
跡、スプライン軌跡等)と送り速度が指定されるので、
この条件を満足すべく当該関数発生を行ない、当該輪郭
制御に関与する全輪郭制御軸についての補間後移動指令
を生成する(Sm7)。この補間処理終了後、関数発生
周期に同期して前記補間後移動指令を1つずつ各輪郭軸
のサーボ制御部20に出力する(Sm8)。その後各輪
郭軸のサーボ制御部20から転送される各輪郭軸現在位
置データを読み込み(Sm9)、この現在位置が指令値
(最終位置決め位置)に一致しているかどうかを判定す
る(Sm10)。一致していなければステップSm8に
戻り、出力すべき補間後移動指令出力があればサーボ制
御部20に出力し、なければステップSm9に進む。一
致していればステップSm3に戻り、中間バッファED
Bに実行すべきデータがあるかないかを調べる。
The operation of the function generator 13 for contour axis control is basically the same as that for indexing positioning control.
However, in the case of contour axis control, the NC program specifies the midway path (eg, three-dimensional arc locus, spline locus, etc.) to the final positioning position, and the feed rate.
The function is generated to satisfy this condition, and post-interpolation movement commands for all contour control axes involved in the contour control are generated (Sm7). After the completion of the interpolation processing, the post-interpolation movement commands are output one by one to the servo control unit 20 of each contour axis in synchronization with the function generation cycle (Sm8). After that, each contour axis current position data transferred from the servo control unit 20 of each contour axis is read (Sm9), and it is determined whether or not this current position matches a command value (final positioning position) (Sm10). If they do not match, the process returns to step Sm8, and if there is a post-interpolation movement command output to be output, it is output to the servo control unit 20, and if not, the process proceeds to step Sm9. If they match, the process returns to step Sm3, and the intermediate buffer ED
Check to see if B has data to execute.

【0007】次に図5に示されるモータ駆動制御装置の
動作を説明する。NCメイン処理部10中の関数発生部
13にて作成されたモータ5に対する補間後移動位置指
令Prにより、図示しない加減速処理部が加減速処理を
行なう(Sc1)。さらに、モータ5に機械的に結合さ
れた位置検出器4からの信号が、位置検出部25により
処理され、これによりモータ5の現在位置データPaが
得られる。さらに、加減速処理後の移動指令値からこの
現在位置データPaを減じることにより、位置誤差量P
eが得られ、この位置誤差量Peに基づいて位置制御部
21内でモータ5に対する速度指令Vrが生成される。
速度検出部23は、位置検出部25により得られる現在
位置データを逐次入力し、時間的に連続した二つの現在
位置データからモータ5の現在速度データVaを求め
る。速度誤差量Veは、位置制御部21により得られる
速度指令Vrと速度検出部23により得られる現在速度
データVaとの差として求められる。速度制御部22に
おいては、この速度誤差量Veに基づき公知の比例・積
分制御演算を行なうことにより、モータ5に対するトル
ク指令Trを生成する。一方、電流センサーにより検出
されるモータ5のU,V相巻線電流は、データとして電
流検出部26に転送され、電流検出部26にて帰還電流
データが生成される。電流検出部26は、電流の指令値
と帰還電流データの差を求めることにより各相電流誤差
量を求める。電流制御部24においては、この各相電流
誤差量に基づき公知の比例・積分制御演算を行なうこと
により、モータ5の各相巻線に印加すべき電圧指令を生
成し、これらの印加電圧指令に基づいて、公知のPWM
制御動作を実行することにより電力増幅器3の出力電圧
を制御する。以上述べてきたように、電流、速度及び位
置の制御はそれぞれ電流フィードバックループ、速度フ
ィードバックループ及び位置フィードバックループによ
り、各相電流誤差量、速度誤差量及び位置誤差量を零に
するようにフィードバック制御として実行される(ステ
ップSc2)。なお、サーボ制御部20内各部にて用い
る位置ループゲインあるいはP、Iゲインといった制御
パラメータは一括して制御パラメータ格納部27に格納
されており、必要に応じて各部から制御パラメータ格納
部27上のパラメータが参照される。
Next, the operation of the motor drive control device shown in FIG. 5 will be described. An acceleration / deceleration processing unit (not shown) performs acceleration / deceleration processing according to the post-interpolation movement position command Pr for the motor 5 created by the function generation unit 13 in the NC main processing unit 10 (Sc1). Further, the signal from the position detector 4 mechanically coupled to the motor 5 is processed by the position detector 25, and the current position data Pa of the motor 5 is obtained thereby. Further, by subtracting the current position data Pa from the movement command value after the acceleration / deceleration processing, the position error amount P
e is obtained, and the speed command Vr for the motor 5 is generated in the position control unit 21 based on the position error amount Pe.
The speed detection unit 23 sequentially inputs the current position data obtained by the position detection unit 25, and obtains the current speed data Va of the motor 5 from two temporally continuous current position data. The speed error amount Ve is obtained as a difference between the speed command Vr obtained by the position control unit 21 and the current speed data Va obtained by the speed detection unit 23. The speed control unit 22 generates a torque command Tr for the motor 5 by performing a known proportional / integral control calculation based on the speed error amount Ve. On the other hand, the U and V phase winding currents of the motor 5 detected by the current sensor are transferred as data to the current detection unit 26, and the current detection unit 26 generates feedback current data. The current detection unit 26 obtains the amount of current error in each phase by obtaining the difference between the current command value and the feedback current data. In the current control unit 24, a voltage command to be applied to each phase winding of the motor 5 is generated by performing a known proportional / integral control calculation based on each phase current error amount, and these voltage commands are applied. Based on known PWM
The output voltage of the power amplifier 3 is controlled by executing the control operation. As described above, the current, speed, and position are controlled by the current feedback loop, the speed feedback loop, and the position feedback loop, respectively, so that the current error amount, the speed error amount, and the position error amount of each phase are controlled to zero. Is executed (step Sc2). It should be noted that control parameters such as position loop gains or P and I gains used in each part of the servo control unit 20 are collectively stored in the control parameter storage unit 27, and as necessary, each unit stores them on the control parameter storage unit 27. Parameter is referenced.

【0008】[0008]

【発明が解決しようとする課題】このようなモータ駆動
制御装置を用いて構成したNC装置においては、旋盤刃
物台旋回指令等の割出軸関数発生をNCメイン処理部中
の関数発生部にて実行している。すなわち、関数発生部
にて指令された工具番号に応じて目標割出位置を決定
し、その位置までの関数発生を行ない、割出軸サーボ制
御部に都度指令を出力している。しかし、割出位置決め
制御においては、目標割出位置に至る途中の経路は通常
問題にされず移動速度もある程度早ければよいという程
度であるにもかかわらず、輪郭軸位置決め制御時の関数
発生と同様にCPU負担の大きい関数発生処理を行なっ
ている。この割出位置決め制御時の割出軸関数発生処理
は、何軸有ろうともNCメイン処理部中の関数発生部に
て実行する構成になっているため、NC装置全体から見
てNCメイン処理部の処理負担が相対的に大きく、ここ
がボトルネックとなってNC装置全体のサーボ制御性能
が制限され性能向上が図れないという問題点がある。
In the NC device constructed by using such a motor drive control device, the function generating unit in the NC main processing unit generates the indexing axis function such as the turning command of the lathe tool post. Running. That is, the target indexing position is determined according to the tool number commanded by the function generating unit, the function is generated up to that position, and the command is output to the indexing axis servo control unit each time. However, in indexing positioning control, although the route on the way to the target indexing position is not usually a problem and the moving speed only needs to be high to some extent, it is similar to the function generation in contour axis positioning control. In addition, the function generation processing that requires a large CPU load is performed. The index axis function generating process at the time of indexing positioning control is configured to be executed by the function generating unit in the NC main processing unit regardless of the number of axes. However, there is a problem in that the servo control performance of the entire NC device is limited and the performance cannot be improved.

【0009】本発明は上述の問題点を解決するためにな
されたものであり、よりサーボ制御性能が向上するよう
NC装置を構成できるモータ駆動制御装置を提供するこ
とを目的とする。
The present invention has been made to solve the above problems, and an object of the present invention is to provide a motor drive control device capable of configuring an NC device so that the servo control performance is further improved.

【0010】[0010]

【課題を解決するための手段】このような目的を達成す
るために、本発明は、NCプログラム中の割出移動指令
を解釈しこの結果得られる最終割出位置データに基づい
て一定周期毎に関数を発生させる割出位置関数発生部を
含む割出制御ループと、軸の制御モードに応じた制御パ
ラメータファイルを複数格納する制御パラメータ格納部
と、軸の制御モードが位置制御モードである場合には制
御ループとして位置制御ループ、速度制御ループ及び電
流制御ループを選択すると共に制御パラメータとして制
御パラメータ格納部上の位置制御用制御パラメータファ
イルに係る制御パラメータを選択し、軸の制御モードが
割出制御モードである場合には制御ループとして割出制
御ループ、速度制御ループ及び電流制御ループを選択す
ると共に制御パラメータとして制御パラメータ格納部上
の割出制御用制御パラメータファイルに係る制御パラメ
ータを選択するモード切り替え部と、を有し、外部から
与えられる制御モード切り替え信号に応じて割出制御あ
るいは輪郭制御を行なうことを特徴とする。
In order to achieve such an object, the present invention interprets an indexing movement command in an NC program and, based on the final indexing position data obtained as a result, at regular intervals. An indexing control loop that includes an index position function generator that generates a function, a control parameter storage that stores multiple control parameter files according to the axis control mode, and when the axis control mode is the position control mode. Selects the position control loop, speed control loop, and current control loop as the control loop, and also selects the control parameter related to the position control control parameter file on the control parameter storage unit as the control parameter, and the axis control mode is index control. Mode, select index control loop, speed control loop and current control loop as control loop And a mode switching unit for selecting a control parameter related to an indexing control parameter file on the control parameter storage unit as a data controller, and performing indexing control or contour control according to a control mode switching signal given from the outside. It is characterized by carrying out.

【0011】[0011]

【作用】本発明においては、外部から与えられる制御モ
ード切り替え信号に応じて割出制御あるいは輪郭制御が
行なわれる。従って、NC装置全体から見てNCメイン
処理部の処理負担が相対的に小さくなるようにすること
が可能となり、サーボ制御性能/機能向上が容易に図れ
るNC装置が実現される。
In the present invention, indexing control or contour control is performed according to a control mode switching signal given from the outside. Therefore, the processing load of the NC main processing unit can be relatively reduced from the viewpoint of the entire NC device, and the NC device that can easily improve the servo control performance / function is realized.

【0012】[0012]

【実施例】以下、本発明の好適な実施例について図面に
基づき説明する。ただし、図5乃至図7に示される従来
例と同様の構成には同一の符号を付し、説明を省略す
る。図1には、本発明の一実施例に係るモータ駆動制御
装置の構成が示されている。この実施例の構成が従来例
のそれと異なる点は、割出位置関数発生部28を含む割
出制御ループを設け、さらに制御パラメータ格納部27
中に輪郭軸制御パラメータ格納部27a及び割出軸制御
パラメータ格納部27bを設けると共に、さらに位置制
御ループ及び割出制御ループのいずれかを選択する切り
替えスイッチ29aと、軸制御パラメータファイルとし
て輪郭軸制御パラメータ格納部27a上のファイル及び
割出軸制御パラメータ格納部27b上のファイルのいず
れかを選択的に取り出すためのスイッチ29bを設けた
点である。スイッチ29a及び29bは、図2中のNC
メイン処理部10から出力される制御モード切り替え信
号MODEにより切り替えられる。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT A preferred embodiment of the present invention will be described below with reference to the drawings. However, the same components as those of the conventional example shown in FIGS. 5 to 7 are designated by the same reference numerals, and the description thereof will be omitted. FIG. 1 shows the configuration of a motor drive control device according to an embodiment of the present invention. The configuration of this embodiment is different from that of the conventional example in that an indexing control loop including an indexing position function generating section 28 is provided, and a control parameter storing section 27 is further provided.
A contour axis control parameter storage unit 27a and an index axis control parameter storage unit 27b are provided therein, and a changeover switch 29a for selecting either a position control loop or an index control loop, and a contour axis control as an axis control parameter file. The point is that a switch 29b is provided for selectively extracting either the file on the parameter storage unit 27a or the file on the index axis control parameter storage unit 27b. The switches 29a and 29b are NCs in FIG.
It is switched by the control mode switching signal MODE output from the main processing unit 10.

【0013】図2にはこの実施例に係るモータ駆動制御
装置を用いて構成したNC装置の構成が、図3には割出
位置関数発生部28の構成が、図4には図2のNC装置
の各部の動作が、それぞれ示されている。
FIG. 2 shows the configuration of the NC device constructed by using the motor drive control device according to this embodiment, FIG. 3 shows the configuration of the index position function generator 28, and FIG. 4 shows the NC of FIG. The operation of each part of the device is shown respectively.

【0014】図2中のNCメイン処理部10に含まれる
NCプログラム実行部12は、従来例と同様に、中間バ
ッファEDBに実行すべきデータがあるかないかを調
べ、“有り”ならばデータを取り込みS,T,M処理を
優先的に実行する。この際、S,T,M処理中に旋盤に
おける刃物台旋回指令などの割出軸移動指令が有るかど
うかをチェックし、割出軸移動指令が有る場合にはNC
プログラムレベルの移動指令を割出制御軸用サーボ制御
部20に出力する。旋盤刃物台旋回指令を例にとると、
G13T007といったNCプログラム指令のうちG1
3から軸を特定し(例えばCT軸)、このCT軸サーボ
制御部20に対する移動指令(=PTCT)としてT0
07を出力する。この際、CT軸サーボ制御部20には
制御モード切り替え信号MODE=刃物台割出(割出制
御モード)が出力される(Sm5)。その後、NCプロ
グラム実行部12はCT軸割出完了アンサーが戻ってく
るのを待つ。このアンサーを待つ間に他の割出軸移動指
令があれば上述の処理を割出軸について行なう。S,
T,M処理中に含まれる全ての割出軸移動指令対象軸サ
ーボ制御部20からの割出完了アンサーが戻ってきたこ
とが確認されたら、NCプログラム実行部12は、送り
軸移動処理を行なうべくステップSm6に進む。
The NC program execution unit 12 included in the NC main processing unit 10 shown in FIG. 2 checks whether or not there is data to be executed in the intermediate buffer EDB, as in the conventional example, and if "present", the data is acquired. The capture S, T, and M processes are preferentially executed. At this time, it is checked whether there is an indexing axis movement command such as a tool post turning command on the lathe during S, T, M processing, and if there is an indexing axis movement command, NC is performed.
A program level movement command is output to the index control axis servo control unit 20. Taking the lathe / turret turn command as an example,
G1 among NC program commands such as G13T007
The axis is specified from 3 (for example, CT axis), and T0 is set as a movement command (= PTCT) to the CT axis servo control unit 20.
07 is output. At this time, a control mode switching signal MODE = turret index (index control mode) is output to the CT axis servo control unit 20 (Sm5). After that, the NC program execution unit 12 waits for the CT axis indexing completion answer to return. If there is another index axis movement command while waiting for this answer, the above-mentioned processing is performed for the index axis. S,
When it is confirmed that the indexing completion answer from all the indexing axis movement command target axis servo control sections 20 included in the T and M processings has returned, the NC program execution section 12 performs the feed axis movement processing. Therefore, the process proceeds to step Sm6.

【0015】関数発生部13は、輪郭制御に関与する全
輪郭制御軸についての補間後移動指令を生成後、関数発
生周期に同期して前記補間後移動指令を1つずつ各輪郭
軸のサーボ制御部20に出力する(Sm8)が、この
際、軸サーボ制御部20には制御モード切り替え信号M
ODE=位置制御(位置制御モード)が出力される。
The function generator 13 generates post-interpolation movement commands for all contour control axes involved in contour control, and then servo-controls the contour interpolation axes one by one in synchronization with the function generation cycle. It is output to the unit 20 (Sm8), but at this time, the control mode switching signal M is sent to the axis servo control unit 20.
ODE = position control (position control mode) is output.

【0016】図1に示されるモータ駆動制御装置におい
て、割出制御モードである場合の動作を説明すると、次
のようになる。ここでは、刃物台割出を例にとって説明
する。この場合、上述の如く割出軸移動指令対象軸(=
CT軸)のサーボ制御部20には、NCメイン処理部1
0中のNCプログラム実行部12から移動指令PTCT
=T007、制御モード切り替え信号MODE=刃物台
割出が出力される。この制御モード切り替え信号によ
り、サーボ制御部20内の切り替えスイッチ29aは、
割出・速度及び電流の各制御ループを選択すべく、切り
替えスイッチ29bは割出軸制御用パラメータ格納部2
7bを選択すべく、それぞれ設定される。この切り替え
スイッチ設定により、図3に示す割出位置関数発生部2
8に移動指令PTCT=T007が入力される。
The operation of the motor drive control device shown in FIG. 1 when in the indexing control mode will be described below. Here, turret indexing will be described as an example. In this case, the index axis movement command target axis (=
The NC main processing unit 1 is provided in the servo control unit 20 for the CT axis.
Movement command PTCT from NC program execution unit 12
= T007, control mode switching signal MODE = turret index is output. With this control mode switching signal, the changeover switch 29a in the servo control unit 20 is
In order to select each control loop of indexing / speed and current, the changeover switch 29b is provided in the parameter storage unit 2 for indexing axis control.
7b are selected respectively. By setting this changeover switch, the indexing position function generator 2 shown in FIG.
The movement command PTCT = T007 is input to 8.

【0017】割出指令解釈部28aでは、T指令を構文
解釈し、指令の正当性をチェックする。不当な指令であ
れば、割出指令解釈部28aはアラームをNCメイン処
理部10に返す。正当ならば、処理を割出目標位置算出
部28bに移す。割出目標位置算出部28bは、T指令
と現在の刃物台位置から位置決めすべき割出目標位置を
サーボ制御部20内での処理単位系で求める。この際、
各刃物台ステーション位置はあらかじめ割出位置テーブ
ル28c中にサーボ制御部20内での処理単位系にて格
納してあるのでこれを参照して割出目標位置を求める
(Sp1)。
The indexing command interpretation unit 28a syntactically interprets the T command and checks the validity of the command. If it is an illegal command, the index command interpreting unit 28a returns an alarm to the NC main processing unit 10. If it is legitimate, the process is moved to the index target position calculation unit 28b. The index target position calculation unit 28b obtains an index target position to be positioned from the T command and the current tool post position in a processing unit system within the servo control unit 20. On this occasion,
Since each tool post station position is stored in advance in the index position table 28c in the processing unit system in the servo control unit 20, the index target position is obtained by referring to this (Sp1).

【0018】割出関数発生部28は、この割出目標位置
に至るまでの移動経路座標をサーボ系制御単位時間(関
数発生周期)毎に演算、すなわち関数発生周期毎に補間
することにより、補間後移動指令を生成する。この補間
は直線補間である。この補間処理の終了後、関数発生周
期に同期して補間後移動指令を1つずつ割出軸のサーボ
制御部20中の図示しない加減速処理部に出力し(Sp
1、Sp2)、従来例と同様、加減速処理が実行される
(Sp3)。その後、従来例と同様にモータ5の位置、
速度及び電流制御が実行される(Sp4)。
The indexing function generating section 28 interpolates by calculating the moving path coordinates to reach the indexing target position for each servo system control unit time (function generating cycle), that is, for every function generating cycle. A backward movement command is generated. This interpolation is linear interpolation. After the completion of this interpolation processing, the post-interpolation movement commands are output one by one to the acceleration / deceleration processing unit (not shown) in the index axis servo control unit 20 in synchronization with the function generation cycle (Sp.
1, Sp2), the acceleration / deceleration processing is executed as in the conventional example (Sp3). After that, as in the conventional example, the position of the motor 5,
Speed and current control is executed (Sp4).

【0019】割出関数発生部28は、割出軸現在位置デ
ータを読み込み、この現在位置が割出指令値に一致して
いるかどうかを判定する(Sp5)。一致していなけれ
ばステップSp3に戻り、一致していればCT軸割出完
了信号をNCメイン処理部10に返して処理を終了す
る。
The index function generator 28 reads the index axis current position data and determines whether or not this current position matches the index command value (Sp5). If they do not match, the process returns to step Sp3, and if they match, the CT axis indexing completion signal is returned to the NC main processing unit 10 and the process ends.

【0020】次に、位置制御モードが指定された場合に
ついて説明する。この場合、制御モード切り替え信号M
ODE=位置制御(位置制御モード)であり、これによ
りサーボ制御部20内の切り替えスイッチ29aは位
置、速度及び電流の各制御ループを選択するよう、切り
替えスイッチ29bは輪郭軸制御用パラメータ格納部2
7aを選択するよう、それぞれ設定される。以降の動作
は従来例の場合と同様である。
Next, the case where the position control mode is designated will be described. In this case, the control mode switching signal M
ODE = position control (position control mode), so that the changeover switch 29a in the servo control unit 20 selects each control loop of position, speed and current, and the changeover switch 29b is changed to the contour axis control parameter storage unit 2.
It is set so that 7a is selected. Subsequent operations are similar to those in the conventional example.

【0021】なお、本発明は図1乃至図4に示した実施
例に限定されるものではなく、例えば、制御モードとし
て、前述の例の他に速度制御モード、トルク(電流)制
御モードを設けるなど、その主旨を逸脱しない範囲での
変形を施しても構わない。
The present invention is not limited to the embodiment shown in FIGS. 1 to 4. For example, as the control mode, a speed control mode and a torque (current) control mode are provided in addition to the above-mentioned examples. For example, modifications may be made without departing from the spirit of the invention.

【0022】[0022]

【発明の効果】以上説明したように、本発明によれば、
外部から与えられる制御モード切り替え信号に応じて制
御ループ及び制御パラメータをリアルタイムで切り替え
て割出制御あるいは輪郭制御を行なうようにしたので、
NC装置全体から見てNCメイン処理部の処理負担が相
対的に小さくなり、NC装置全体のサーボ制御性能/機
能向上が容易に実現できる。
As described above, according to the present invention,
Since the control loop and control parameters are switched in real time according to a control mode switching signal given from the outside to perform indexing control or contour control,
The processing load on the NC main processing unit becomes relatively small when viewed from the entire NC device, and the servo control performance / function improvement of the entire NC device can be easily realized.

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

【図1】本発明の一実施例に係るモータ駆動制御装置の
構成を示すブロック図である。
FIG. 1 is a block diagram showing a configuration of a motor drive control device according to an embodiment of the present invention.

【図2】本実施例に係るモータ駆動制御装置を用いて構
成したNC装置の構成を示すブロック図である。
FIG. 2 is a block diagram showing a configuration of an NC device configured by using the motor drive control device according to the present embodiment.

【図3】本実施例における割出位置関数発生部の構成を
示すブロック図である。
FIG. 3 is a block diagram showing the configuration of an indexing position function generator in this embodiment.

【図4】本実施例に係るモータ駆動制御装置を用いて構
成したNC装置の各部の動作を説明するためのフローチ
ャートである。
FIG. 4 is a flowchart for explaining an operation of each unit of the NC device configured by using the motor drive control device according to the present embodiment.

【図5】一従来例に係るモータ駆動制御装置の構成を示
すブロック図である。
FIG. 5 is a block diagram showing a configuration of a motor drive control device according to a conventional example.

【図6】一従来例に係るモータ駆動制御装置を用いて構
成したNC装置の構成を示すブロック図である。
FIG. 6 is a block diagram showing a configuration of an NC device configured by using a motor drive control device according to a conventional example.

【図7】一従来例に係るモータ駆動制御装置を用いて構
成したNC装置の各部の動作を説明するためのフローチ
ャートである。
FIG. 7 is a flowchart for explaining the operation of each unit of the NC device configured by using the motor drive control device according to the conventional example.

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

4,4X,4Y,…4CT 位置検出器 5,5X,5Y,…5CT モータ 10 NCメイン処理部 11 NCプログラム解釈部 12 NCプログラム実行部 13 関数発生部 20,20X,20Y,…20CT サーボ制御部 21 位置制御部 22 速度制御部 23 速度検出部 24 電流制御部 25 位置検出部 26 電流検出部 27 軸制御パラメータ格納部 28 割出位置関数発生部 28a 割出指令解釈部 28b 割出目標位置算出部 28c 割出位置テーブル 28d 関数発生部 MODE 制御モード切り替え信号 4, 4X, 4Y, ... 4CT Position detector 5, 5X, 5Y, ... 5CT Motor 10 NC main processing unit 11 NC program interpreting unit 12 NC program executing unit 13 Function generating unit 20, 20X, 20Y, ... 20CT Servo control unit 21 position control unit 22 speed control unit 23 speed detection unit 24 current control unit 25 position detection unit 26 current detection unit 27 axis control parameter storage unit 28 index position function generation unit 28a index command interpretation unit 28b index target position calculation unit 28c Index position table 28d Function generator MODE Control mode switching signal

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 軸の駆動に係るモータの駆動電流を制御
する電流制御ループ、モータの駆動速度を制御する速度
制御ループ及びモータの位置を制御する位置制御ループ
を有するモータ駆動制御装置において、 NCプログラム中の割出移動指令を解釈しこの結果得ら
れる最終割出位置データに基づいて一定周期毎に関数を
発生させる割出位置関数発生部を含む割出制御ループ
と、 前記軸の制御モードに応じた制御パラメータファイルを
複数格納する制御パラメータ格納部と、 前記軸の制御モードが位置制御モードである場合には制
御ループとして位置制御ループ、速度制御ループ及び電
流制御ループを選択すると共に制御パラメータとして制
御パラメータ格納部上の位置制御用制御パラメータファ
イルに係る制御パラメータを選択し、前記軸の制御モー
ドが割出制御モードである場合には制御ループとして割
出制御ループ、速度制御ループ及び電流制御ループを選
択すると共に制御パラメータとして制御パラメータ格納
部上の割出制御用制御パラメータファイルに係る制御パ
ラメータを選択するモード切り替え部と、 を有し、外部から与えられる制御モード切り替え信号に
応じて割出制御あるいは輪郭制御を行なうことを特徴と
したモータ駆動制御装置。
1. A motor drive controller having a current control loop for controlling a drive current of a motor for driving an axis, a speed control loop for controlling a drive speed of the motor, and a position control loop for controlling a position of the motor, the NC comprising: An indexing control loop including an indexing position function generator that interprets the indexing movement command in the program and generates a function at fixed intervals based on the final indexing position data obtained as a result, and the axis control mode A control parameter storage unit for storing a plurality of control parameter files according to the control parameter, and when the axis control mode is the position control mode, a position control loop, a speed control loop, and a current control loop are selected as a control loop and the Select the control parameter related to the control parameter file for position control on the control parameter storage and When the control mode is the index control mode, the index control loop, the speed control loop, and the current control loop are selected as the control loop, and the control relating to the index control control parameter file on the control parameter storage unit is used as the control parameter. A motor drive control device comprising: a mode switching unit for selecting a parameter, and performing indexing control or contour control according to a control mode switching signal given from the outside.
JP13360892A 1992-05-26 1992-05-26 Motor drive control device Expired - Fee Related JP3195646B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP13360892A JP3195646B2 (en) 1992-05-26 1992-05-26 Motor drive control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP13360892A JP3195646B2 (en) 1992-05-26 1992-05-26 Motor drive control device

Publications (2)

Publication Number Publication Date
JPH05324026A true JPH05324026A (en) 1993-12-07
JP3195646B2 JP3195646B2 (en) 2001-08-06

Family

ID=15108784

Family Applications (1)

Application Number Title Priority Date Filing Date
JP13360892A Expired - Fee Related JP3195646B2 (en) 1992-05-26 1992-05-26 Motor drive control device

Country Status (1)

Country Link
JP (1) JP3195646B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102157321B1 (en) * 2018-12-03 2020-09-17 유승현 Whellchair foot hold for rehabilitation exercise

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS51116484A (en) * 1975-04-03 1976-10-13 Okuma Mach Works Ltd Position control device for circular table
JPS522504B2 (en) * 1971-12-25 1977-01-21
JPS6316938A (en) * 1986-07-03 1988-01-23 Okuma Mach Works Ltd Atc control system in numerical controller
JPH03150090A (en) * 1989-11-02 1991-06-26 Fanuc Ltd Control system for spindle motor

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS522504B2 (en) * 1971-12-25 1977-01-21
JPS51116484A (en) * 1975-04-03 1976-10-13 Okuma Mach Works Ltd Position control device for circular table
JPS6316938A (en) * 1986-07-03 1988-01-23 Okuma Mach Works Ltd Atc control system in numerical controller
JPH03150090A (en) * 1989-11-02 1991-06-26 Fanuc Ltd Control system for spindle motor

Also Published As

Publication number Publication date
JP3195646B2 (en) 2001-08-06

Similar Documents

Publication Publication Date Title
WO2013179366A1 (en) Numerical control device
JP2011227627A (en) Automatic programming method for multi-system program, and device therefor
JP3563077B2 (en) Numerical control command creation device and method
JP3195646B2 (en) Motor drive control device
US11320800B2 (en) Optimization device
US11194313B2 (en) Numerical controller
JP2004202594A (en) Numerical control device
US11036206B2 (en) Numerical controller
JPH05274021A (en) Machining system
JP2004348448A (en) Device and method of numerical control for machine tool
JP4560191B2 (en) Numerical controller
JP2001154719A (en) Method for interpolating free curve
JPS6232508A (en) Positioning control method for servo-system of numerical controller
JP2000003212A (en) Method for interpolating curve
JP2985988B2 (en) Numerical control information creation device
JP2001166807A (en) Method for commanding working by numerical controller
JPS60222904A (en) Control method of coordinate system conversion of numerically controlled lathe
JP3636711B2 (en) Electrical equipment control system
JPH0561524A (en) Numerical controller
JPH05274020A (en) Method and device for tool offset shape data input type numerical control
JP2022047702A (en) Machining program optimization device and method thereof
JPH0561517A (en) Numerical controller
JPH09120311A (en) Numerical controller and machining method
JPH1039913A (en) Nc data preparing method and nc device
JPH0561516A (en) Numerical controller

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees