JPH07222479A - Driving apparatus - Google Patents
Driving apparatusInfo
- Publication number
- JPH07222479A JPH07222479A JP710194A JP710194A JPH07222479A JP H07222479 A JPH07222479 A JP H07222479A JP 710194 A JP710194 A JP 710194A JP 710194 A JP710194 A JP 710194A JP H07222479 A JPH07222479 A JP H07222479A
- Authority
- JP
- Japan
- Prior art keywords
- servo
- control
- unit
- command
- output
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Landscapes
- Control Of Position Or Direction (AREA)
- Control Of Multiple Motors (AREA)
Abstract
(57)【要約】
【目的】 1つのサーボアンプによって複数のサーボモ
ータを制御する。
【構成】 コントロール部12は、PCからの割出し制
御指令によって各軸ごとの割出し位置、速度等の指令を
作成しこれをサーボアンプ部14に供給する。ここで、
駆動軸が複数であるかを判定し、複数であった場合に
は、そのためのプログラムパラメータ変更部28から出
力する。そして、これらの入力信号はサーボ部30に入
力される。このサーボ部30は軸分割処理部30aを有
しており、ここにおいて、複数軸の処理であった場合に
は、制御周期ごとに2つのサーボモータについての制御
指令を1つずつ作成し、モータ動力出力部34からの出
力は、2つの制御周期に連続して行う。そこで、2つの
サーボモータ部16についての指令値を1つずつ作成し
た後、次の2つの制御周期には既に作成されている制御
指令に応じた電流の出力を制御する。
(57) [Summary] [Purpose] One servo amplifier controls multiple servomotors. [Structure] The control unit 12 creates an index position, speed, etc. command for each axis according to an index control command from a PC, and supplies this to the servo amplifier unit 14. here,
It is determined whether or not there are a plurality of drive axes, and if there is a plurality of drive axes, the program parameter changing unit 28 for that purpose outputs them. Then, these input signals are input to the servo unit 30. The servo unit 30 has a shaft division processing unit 30a. In this case, in the case of processing of a plurality of axes, a control command for two servo motors is created one by one for each control cycle, and the servo command is generated. The output from the power output unit 34 is continuously performed in two control cycles. Therefore, after the command values for the two servo motor units 16 are created one by one, the output of the current according to the control commands already created is controlled in the next two control cycles.
Description
【0001】[0001]
【産業上の利用分野】本発明は、複数のモータを備えた
駆動装置、特にモードに応じて制御するサーボモータの
数を変更できるものに関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a drive device having a plurality of motors, and more particularly to a drive device capable of changing the number of servo motors to be controlled according to modes.
【0002】[0002]
【従来の技術】従来より、工場の製品製造工程等におい
て、被加工物の搬送、把持、移動、加工等のために、複
数のモータが使用されている。このようなモータとし
て、モータの駆動量が、動作指令どおりに制御できるサ
ーボモータが利用されている。2. Description of the Related Art Conventionally, a plurality of motors have been used for transporting, gripping, moving, and processing objects to be processed in a product manufacturing process of a factory. As such a motor, a servo motor that can control the drive amount of the motor according to an operation command is used.
【0003】図4に、従来のサーボモータを利用した位
置決め制御装置の構成例を示す。この位置決め制御装置
は、外部のプログラマブルコントローラ(PC)100
からの信号を受け、動作するものであり、コントロール
部200、サーボアンプ部300,400及びサーボモ
ータ部500,600を有している。コントロール部2
00は、PC100との通信部202及び指令処理部2
04からなっており、サーボアンプ部300,400
は、それぞれサーボ部302,402、出力電圧パター
ンホールド部304,404及びモータ動力出力部30
6,406からなっている。そして、サーボモータ部5
00、600は、サーボモータ502,602及びこの
サーボモータ502、602の回転を検出するエンコー
ダ504,604からなっている。FIG. 4 shows an example of the configuration of a conventional positioning control device using a servo motor. This positioning control device is an external programmable controller (PC) 100.
The control unit 200, the servo amplifier units 300 and 400, and the servo motor units 500 and 600 are provided. Control part 2
00 is a communication unit 202 with the PC 100 and a command processing unit 2
04, the servo amplifier unit 300, 400
Are servo units 302 and 402, output voltage pattern hold units 304 and 404, and motor power output unit 30, respectively.
It consists of 6,406. Then, the servo motor unit 5
00 and 600 are composed of servo motors 502 and 602 and encoders 504 and 604 for detecting the rotation of the servo motors 502 and 602.
【0004】PC100から出された割出し指令は、コ
ントロール部200のPCとの通信部202に入力され
る。PCとの通信部202は、所定の通信プロトコルに
従い受信処理を行い、これを指令処理部204に供給す
る。指令処理部204は、割出し指令に基づき、どのサ
ーボモータに対する指令かを決定すると共に、割出し位
置、速度指令についての信号を作成し、これをサーボア
ンプ部300,400に送る。この例では、2つのサー
ボモータ部500,600の両方を駆動する指令であっ
たとしている。The indexing command issued from the PC 100 is input to the PC communication unit 202 of the control unit 200. The communication unit 202 with the PC performs reception processing according to a predetermined communication protocol, and supplies this to the command processing unit 204. The command processing unit 204 determines which servo motor to command based on the indexing command, creates signals for indexing position and speed commands, and sends the signals to the servo amplifier units 300 and 400. In this example, the instruction is to drive both of the two servo motor units 500 and 600.
【0005】サーボアンプ部300のサーボ部302
は、供給された割出し位置、速度指令に基づき、出力電
圧指令を作成し、これを出力電圧パターンホールド部3
04に供給する。出力電圧パターンホールド部304
は、出力電圧のパターンをホールドし、これを所定のタ
イミングに従って順次出力電圧指令としてモータ動力出
力部306に供給する。このモータ動力出力部306
は、インバータを内蔵しており、動力用電源からの直流
電圧を、出力電圧指令に基づくインバータの制御により
所定の三相交流電流に変換し、これを出力する。サーボ
アンプ部300のモータ動力出力部306からの駆動電
流は、サーボモータ部500に供給される。Servo unit 302 of servo amplifier unit 300
Generates an output voltage command based on the supplied index position and speed command, and outputs this command to the output voltage pattern hold unit 3
Supply to 04. Output voltage pattern hold unit 304
Holds the pattern of the output voltage and sequentially supplies it to the motor power output unit 306 as an output voltage command in accordance with a predetermined timing. This motor power output unit 306
Incorporates an inverter, converts a DC voltage from a power source for power into a predetermined three-phase AC current by controlling the inverter based on an output voltage command, and outputs this. The drive current from the motor power output unit 306 of the servo amplifier unit 300 is supplied to the servo motor unit 500.
【0006】このサーボモータ部500は、X軸駆動用
のものであり、モータ動力出力部306からの駆動電力
に応じて、サーボモータ502が所定の回転をし、X軸
の駆動が行われる。このサーボモータ502の回転は、
エンコーダ504によって検出され(所定のパルス信号
を得、これに基づいて回転を検出する)、これが指令処
理部104に供給される。このエンコーダ504の出力
を監視することにより、所定のフィードバック制御が行
われ、割出し指令に応じたサーボモータ502の駆動が
達成される。なお、サーボモータ部600はY軸駆動の
ためのものであって、この駆動用にサーボアンプ部40
0が設けられている。このサーボアンプ部400、サー
ボモータ部600の構成、作用はサーボアンプ部30
0、サーボモータ部500と同様であるため、説明を省
略する。The servo motor unit 500 is for driving the X-axis, and the servo motor 502 rotates in a predetermined manner according to the drive power from the motor power output unit 306 to drive the X-axis. The rotation of this servo motor 502 is
It is detected by the encoder 504 (a predetermined pulse signal is obtained and rotation is detected based on this), and this is supplied to the command processing unit 104. By monitoring the output of the encoder 504, predetermined feedback control is performed, and the driving of the servo motor 502 according to the index command is achieved. The servo motor unit 600 is for driving the Y-axis, and the servo amplifier unit 40 is used for this driving.
0 is provided. The configuration and operation of the servo amplifier unit 400 and the servo motor unit 600 are the same as those of the servo amplifier unit 30.
0, since it is the same as the servo motor unit 500, description thereof will be omitted.
【0007】このように、従来の構成では、1つのサー
ボモータ部のために対応する1つのサーボアンプを設け
ていた。そして、これによって、サーボモータについ
て、割出し指令に応じた駆動を行っていた。As described above, in the conventional configuration, one corresponding servo amplifier is provided for one servo motor section. Thus, the servo motor is driven according to the indexing command.
【0008】[0008]
【発明が解決しようとする課題】このように、従来の駆
動装置では、1個のサーボモータに対し、これを制御す
るための専用のサーボアンプを設け、サーボモータの性
能を最大限に利用して高速かつ正確な駆動制御を行って
いる。しかし、この方式では、モータ数が多くなれば、
それに対応した数のサーボアンプが必要となる。そこ
で、取り付けスペースやコスト的な負担が多く、多数の
モータを使用するシステムが非常に高価で、またスペー
スが大きくなってしまうという問題点があった。As described above, in the conventional drive device, a servo amplifier dedicated to controlling one servo motor is provided for each servo motor to maximize the performance of the servo motor. High-speed and accurate drive control. However, with this method, if the number of motors increases,
A corresponding number of servo amplifiers are required. Therefore, there is a problem that a mounting space and a cost burden are large, a system using a large number of motors is very expensive, and the space becomes large.
【0009】本発明は、上記問題点を解決することを課
題としてなされたものであり、サーボアンプ数を減少し
て、システムに対する負担を小さくできる駆動装置を提
供することを目的とする。The present invention has been made to solve the above problems, and an object of the present invention is to provide a drive device in which the number of servo amplifiers can be reduced and the load on the system can be reduced.
【0010】[0010]
【課題を解決するための手段】第1発明は、複数のサー
ボモータを備えた駆動装置において、複数のサーボモー
タの動作を制御する制御部を有し、この制御部は第1の
動作モードにおいて、外部から供給される動作指令か
ら、1つのサーボモータへの電流供給指令を作成し、作
成された電流供給指令に基づいて上記1つのサーボモー
タの駆動を制御し、第2の動作モードにおいて、外部か
ら供給される動作指令から、複数のサーボモータへの電
流供給指令を順次作成し、作成された電流供給指令に基
づいて上記複数のサーボモータの駆動を制御することを
特徴とする。According to a first aspect of the present invention, in a drive device having a plurality of servo motors, a control unit for controlling the operation of the plurality of servo motors is provided, and the control unit is in the first operation mode. , A current supply command to one servo motor is created from an operation command supplied from the outside, the drive of the one servo motor is controlled based on the created current supply command, and in the second operation mode, It is characterized in that current supply commands to a plurality of servo motors are sequentially created from operation commands supplied from the outside, and drive of the plurality of servo motors is controlled based on the created current supply commands.
【0011】また、第2発明は、上記制御部が、制御す
るサーボモータの数に応じて、上記電流供給指令を作成
する周期を変更することを特徴とする。The second aspect of the invention is characterized in that the control section changes the cycle for generating the current supply command in accordance with the number of servomotors to be controlled.
【0012】また、第3発明は、上記制御部が、駆動す
べきサーボモータの数に対応する制御パラメータを予め
記憶しており、この制御パラメータに基づいて、1また
は複数のサーボモータへの電流供給指令を作成すること
を特徴とする。According to a third aspect of the present invention, the control unit stores in advance control parameters corresponding to the number of servo motors to be driven, and based on the control parameters, currents to one or a plurality of servo motors are stored. It is characterized by creating a supply command.
【0013】また、第4発明は、上記外部から供給され
る動作指令に駆動すべきサーボモータの数についての情
報が含まれており、上記制御部は、この情報に基づい
て、動作モードを判定する判定手段を有していることを
特徴とする。According to the fourth aspect of the invention, the operation command supplied from the outside includes information on the number of servo motors to be driven, and the control section determines the operation mode based on this information. It is characterized in that it has a determining means for performing.
【0014】[0014]
【作用】このように、第1発明の駆動装置においては、
その制御部が、2つの動作モードにおいて動作が可能と
なっている。すなわち、1つの動作モードにおいては、
制御部が1つのサーボモータのみを駆動し、他の1つの
動作モードにおいては、制御部が複数のモータを制御す
る。As described above, in the drive device of the first invention,
The control unit can operate in two operation modes. That is, in one operating mode,
The control unit drives only one servo motor, and the control unit controls a plurality of motors in another operation mode.
【0015】ここで、サーボモータに流す正弦波電流に
ついて説明する。まず、サーボモータに流す正弦波電流
は、サーボアンプ内に設けられたインバータのスイッチ
ングにより作られる。すなわち、図5(A)に示すよう
な、直流電圧の+極と−極の間に配置された3つのパワ
ートランジスタ対の各パワートランジスタのスイッチン
グを制御して、3つの出力端(パワートランジスタ対の
中間接続部)a,b,cからの出力を制御する。すなわ
ち、サーボモータの固定子巻線は、図5(B)のような
構成となっており、各巻線には、ia 、ib 、ic の電
流が流れる。そして、3つのパワートランジスタ対のう
ちの、1つの上側トランジスタをオンとし、他の2つの
下側トランジスタをオンすることによって、電流が固定
子巻線に流れ、1つの位相の電流をサーボモータに供給
できる。そこで、出力端子a,b,cから順次電流が流
れ出るように制御することによって、固定子巻線に所望
の正弦波を供給することができる。また、この正弦波を
供給するための制御は、PWM(パルス幅変調)を利用
しており、図6のように、パワートランジスタをオンに
する時間を制御することによって、正弦波を生成し、こ
れをサーボモータに供給する。Here, the sine wave current flowing in the servo motor will be described. First, the sinusoidal current flowing in the servo motor is created by switching the inverter provided in the servo amplifier. That is, as shown in FIG. 5 (A), switching of each power transistor of the three power transistor pairs arranged between the + pole and the − pole of the DC voltage is controlled to control the three output terminals (power transistor pair). Of the intermediate connection part) a, b, c. That is, the stator winding of the servomotor has a structure as shown in FIG. 5B, and currents ia, ib, and ic flow through the windings. Then, by turning on one upper side transistor of the three power transistor pairs and turning on the other two lower side transistors, a current flows through the stator winding and one phase current is supplied to the servo motor. Can be supplied. Therefore, a desired sine wave can be supplied to the stator winding by controlling the current to flow out from the output terminals a, b, and c in sequence. Further, control for supplying this sine wave uses PWM (pulse width modulation), and as shown in FIG. 6, by controlling the time for turning on the power transistor, a sine wave is generated, This is supplied to the servo motor.
【0016】ここで、PWM制御における1制御周期を
tn とすると、この制御周期内に、サーボアンプ部は、
次の制御周期において、電圧が+又は−又は0とするか
を判定しなければならない。そして、サーボアンプの出
力は、制御周期tn の間tn-1 の制御周期で演算した結
果の電圧を出力する。このようにして、各制御周期にお
いて、次の制御周期における出力電圧を演算算出すると
共に、前回の制御周期において演算した電圧を出力す
る。従って、制御周期tn の最短の長さは、サーボアン
プ部における演算スピードによって制限される。すなわ
ち、この制御周期は短ければ短いほど、制御の精度が上
昇するが、能力の限界以上短くすることはできない。Here, assuming that one control cycle in PWM control is tn, the servo amplifier unit within this control cycle
In the next control cycle, it has to be determined whether the voltage is + or − or 0. Then, the output of the servo amplifier outputs a voltage as a result of calculation in the control cycle of tn-1 during the control cycle tn. Thus, in each control cycle, the output voltage in the next control cycle is calculated and calculated, and the voltage calculated in the previous control cycle is output. Therefore, the shortest length of the control cycle tn is limited by the calculation speed in the servo amplifier section. That is, the shorter the control cycle, the higher the control accuracy, but the control cycle cannot be shortened beyond the limit.
【0017】そこで、第2発明においては、制御の内容
に応じて、制御周期を変更する。すなわち、サーボモー
タの制御精度がそれほど大きくなくてよい場合には、1
つのサーボアンプで複数のサーボモータを制御する。そ
して、この場合の制御周期の最短時間は、1つのサーボ
アンプで制御可能な周期とする。すなわち、2個のモー
タを制御する場合には、制御周期を2倍とする。これに
よって、2つのサーボモータへの出力電圧を順次演算算
出し、2つのサーボモータの駆動を制御することができ
る。また、サーボモータの制御の精度を高くしなければ
ならない場合には、上述のような制御周期を延ばしては
ならない。そこで、サーボアンプで制御するサーボモー
タを1つとして、正確な制御を行う。Therefore, in the second aspect of the invention, the control cycle is changed according to the content of the control. That is, when the control accuracy of the servo motor does not need to be so high, 1
Control multiple servo motors with one servo amplifier. The minimum control cycle time in this case is a cycle that can be controlled by one servo amplifier. That is, when controlling two motors, the control cycle is doubled. As a result, the output voltage to the two servo motors can be sequentially calculated and calculated, and the driving of the two servo motors can be controlled. Further, when the accuracy of control of the servo motor is required to be high, the control cycle as described above should not be extended. Therefore, one servo motor controlled by the servo amplifier is used for accurate control.
【0018】このように、第2発明においては、制御周
期を適応的に制御することによって、全体として効率的
なサーボモータの制御を行うことができる。そして、サ
ーボアンプの数を、サーボモータの数に比べ、少なくす
ることができるため、システム全体としてサイズを小さ
くすることができ、低コストのシステムを得ることがで
きる。As described above, according to the second aspect of the present invention, the servo motor can be efficiently controlled as a whole by adaptively controlling the control cycle. Since the number of servo amplifiers can be reduced as compared with the number of servo motors, the size of the entire system can be reduced and a low cost system can be obtained.
【0019】また、第3発明では、制御部が予め記憶さ
れている駆動すべきサーボモータの数に対応する制御パ
ラメータに応じて1または複数のサーボモータへの電流
供給指令を作成する。従って、駆動すべきサーボモータ
の数の変更にも容易に対処することができる。According to the third aspect of the invention, the control unit prepares a current supply command to one or a plurality of servo motors according to a control parameter corresponding to the number of servo motors to be driven which is stored in advance. Therefore, it is possible to easily cope with a change in the number of servo motors to be driven.
【0020】また、第4発明では、上記外部から供給さ
れる動作指令に駆動すべきサーボモータの数についての
情報が含まれているため、上記制御部は、この情報に基
づいて動作モードをすぐに判定することができる。従っ
て、制御遅れを生じることなく、サーボモータを駆動す
ることができる。Further, in the fourth aspect of the invention, since the operation command supplied from the outside includes the information on the number of servo motors to be driven, the control section immediately determines the operation mode based on this information. Can be determined. Therefore, the servo motor can be driven without causing a control delay.
【0021】[0021]
【実施例】以下、本発明の実施例について、図面に基づ
いて説明する。Embodiments of the present invention will be described below with reference to the drawings.
【0022】図1は、実施例の全体構成を示すブロック
図である。プログラマブルコントローラ(PC)10に
は、コントロール部12が接続されており、このコント
ロール部12に1つのサーボアンプ部14を介し、2つ
のサーボモータ部16a及び16bが接続されている。
PC10は、予め作成されたプログラムに従い、各種指
令を作成しこれを出力する。この例では、サーボモータ
についての駆動指令(軸割出し指令)をコントロール部
12に供給する。コントロール部12は、PCとの通信
部20において、PC10との間で予め決められている
通信プロトコルに従い、受信処理を行う。そして、得ら
れた割出し指令を指令処理部22に供給する。指令処理
部22は、供給された割出し指令に基づいて、駆動対象
軸ごとの位置割出し指令、速度指令を作成する。FIG. 1 is a block diagram showing the overall construction of the embodiment. A control unit 12 is connected to the programmable controller (PC) 10, and two servo motor units 16 a and 16 b are connected to the control unit 12 via one servo amplifier unit 14.
The PC 10 creates various commands according to a program created in advance and outputs them. In this example, a drive command (axis indexing command) for the servo motor is supplied to the control unit 12. The control unit 12 performs a receiving process in the communication unit 20 with the PC according to a communication protocol predetermined with the PC 10. Then, the obtained indexing command is supplied to the command processing unit 22. The command processing unit 22 creates a position indexing command and a speed command for each drive target axis based on the supplied indexing command.
【0023】一方、コントロール部12には、駆動軸選
択部24が設けられており、PCとの通信部20からの
割出し指令は、この駆動軸選択部24にも供給される。
駆動軸選択部24は、割出し指令の中から、これが複数
軸についての指令であるか否か、該当する軸は何かを判
定し、これについての指示を出力電圧切替え周期決定部
26に供給する。出力電圧切替え周期決定部26は、同
時に制御する軸の数を決定し、これをプログラムパラメ
ータ変更部28に供給する。プログラムパラメータ変更
部28は、これより、サーボアンプ部14において処理
する際におけるプログラムパラメータについての指令を
出力する。サーボアンプ部14は、サーボ部30を有し
ており、コントロール部12の指令処理部22からの位
置割出し、速度指令信号及びプログラムパラメータ変更
部28からのパラメータ信号を受け入れる。サーボ部3
0は、プログラムパラメータ変更部28からの信号に応
じ、特定された数のサーボモータの出力を制御する。こ
のために、サーボ部30は、軸分割処理部30aを内蔵
しており、制御軸の数が複数であった場合には、この軸
分割処理部30aが、制御対象別に、複数の信号を出力
する。この例では、サーボモータ部16a,16bの2
つがあるため、サーボアンプ部14は、2つの電圧パタ
ーンホールド部32a,32b及びモータ動力出力部3
4a,34bを有している。そして、割出し指令が、2
つのモータについての駆動を制御するものであった場合
には、軸分割処理部30aが、2つの出力電圧パターン
ホールド部32a,32bにそれぞれのサーボモータ出
力用の信号を出力する。軸分割処理部30aから出力さ
れた出力電圧指令値は、出力電圧パターンホールド部3
2a,32bを介しモータ動力出力部34a,34bに
供給され、ここに内蔵されているインバータのスイッチ
ングが制御される。On the other hand, the control section 12 is provided with a drive axis selecting section 24, and the indexing command from the communication section 20 with the PC is also supplied to the drive axis selecting section 24.
The drive axis selection unit 24 determines from the indexing command whether or not this is a command for a plurality of axes, what is the corresponding axis, and supplies an instruction about this to the output voltage switching cycle determination unit 26. To do. The output voltage switching cycle determining unit 26 determines the number of axes to be controlled simultaneously, and supplies this to the program parameter changing unit 28. From this, the program parameter changing unit 28 outputs a command regarding a program parameter for processing in the servo amplifier unit 14. The servo amplifier unit 14 has a servo unit 30, and receives the position index from the command processing unit 22 of the control unit 12, the speed command signal and the parameter signal from the program parameter changing unit 28. Servo unit 3
0 controls the output of the specified number of servo motors according to the signal from the program parameter changing unit 28. For this reason, the servo unit 30 has a built-in axis division processing section 30a. When the number of control axes is plural, the axis division processing section 30a outputs a plurality of signals for each control target. To do. In this example, two servo motors 16a and 16b are used.
Since there are two, the servo amplifier unit 14 has two voltage pattern hold units 32a and 32b and a motor power output unit 3
It has 4a and 34b. And the indexing command is 2
In the case of controlling the driving of one motor, the axis division processing unit 30a outputs signals for each servo motor output to the two output voltage pattern holding units 32a and 32b. The output voltage command value output from the axis division processing unit 30a is output by the output voltage pattern holding unit 3
It is supplied to the motor power output parts 34a and 34b via 2a and 32b, and the switching of the inverter incorporated therein is controlled.
【0024】そこで、このモータ動力出力部34a,3
4bからサーボモータを駆動するための駆動電流が出力
される。サーボモータ部16a,16bは、サーボモー
タ36a,36b及びエンコーダ38a,38bからな
っており、モータ動力出力部34aから出力される電流
に応じてサーボモータ36a,36bが回転し、この回
転がエンコーダ38a,38bによって検出され、検出
値がサーボ部30及び指令処理部22にフィードバック
される。サーボモータ部30、指令処理部22は、エン
コーダ38a,38bからの検出値に応じて、サーボモ
ータ36a,36bの回転が指令値通りとなるように制
御を行う。Therefore, the motor power output sections 34a, 3
A drive current for driving the servo motor is output from 4b. The servo motor units 16a and 16b are composed of servo motors 36a and 36b and encoders 38a and 38b, and the servo motors 36a and 36b rotate according to the current output from the motor power output unit 34a. , 38b, and the detected value is fed back to the servo unit 30 and the command processing unit 22. The servo motor unit 30 and the command processing unit 22 perform control so that the rotations of the servo motors 36a and 36b follow the command values according to the detection values from the encoders 38a and 38b.
【0025】次に、実施例の動作について、図2に基づ
いて説明する。まず、従来のシステムと同様に、PCか
ら割出し制御指令が送信される。この場合、この割出し
制御指令には、2軸同時制御を行うか又は1軸ずつ制御
を行うかの指令が含まれている。通常の場合、この2軸
同時制御か否かについては、プログラマが軸制御の精度
の必要性から、予めプログラミングしておく。なお、プ
ログラミングの際に、軸移動精度についての入力を行う
ことにより、自動的に2軸同時制御か否かのプログラム
を生成してもよい。さらに、プログラムの中には、単に
軸移動の精度についての値だけを含ませておき、受信側
において2軸同時制御を行うか否かについて決定しても
よい。Next, the operation of the embodiment will be described with reference to FIG. First, the index control command is transmitted from the PC, as in the conventional system. In this case, this indexing control command includes a command for performing simultaneous two-axis control or controlling one axis at a time. In the usual case, the programmer pre-programs whether or not the simultaneous control of two axes is necessary because of the necessity of the accuracy of axis control. It should be noted that, at the time of programming, it is possible to automatically generate a program as to whether or not simultaneous control of two axes is performed by inputting the accuracy of axis movement. Further, the program may include only the value regarding the accuracy of the axis movement, and determine whether or not the two-axis simultaneous control is performed on the receiving side.
【0026】PC10から出力された割出し制御指令
は、PCとの通信部20に入力され、受信処理された
後、指令処理部22に入力され、ここで制御対象軸、割
出し位置、速度が判断される(S101)。一方、PC
から送られてきた割出し指令は、駆動軸選択部24に供
給され、ここで2軸同時制御か否かが判定される(S1
02)。そして、1軸制御であった場合には、出力電圧
切り換え周期決定部26及びプログラムパラメータ変更
部28により、1軸制御用のプログラムパラメータが選
択される(S103)。一方、2軸制御であった場合に
は、2軸制御用のプログラムパラメータが選択される
(S104)。そして、S103、104において選択
されたプログラムパラメータ及びS101で作成された
制御対象軸、割出し位置、速度についての信号は、サー
ボ部30に供給される。このサーボ部30においては、
入力される情報に基づいて各モータに対する出力電圧パ
ターンを決定する。この際、制御対象となる軸の数によ
って、制御周期を変更する。すなわち、表1に示すよう
に、制御周期tn においては、tn+2 ,tn+3 の制御周
期中に、サーボモータ36aに対して出力する電圧の判
断を行う。The indexing control command output from the PC 10 is input to the communication unit 20 with the PC and, after being received and processed, is input to the command processing unit 22 where the control target axis, indexing position and speed are set. It is determined (S101). On the other hand, PC
The indexing command sent from is supplied to the drive axis selection unit 24, where it is determined whether or not two-axis simultaneous control is performed (S1).
02). Then, in the case of uniaxial control, the output voltage switching cycle determining unit 26 and the program parameter changing unit 28 select a program parameter for uniaxial control (S103). On the other hand, in the case of biaxial control, program parameters for biaxial control are selected (S104). Then, the program parameters selected in S103 and S104 and the control target axis, index position, and speed signals created in S101 are supplied to the servo unit 30. In this servo unit 30,
The output voltage pattern for each motor is determined based on the input information. At this time, the control cycle is changed depending on the number of axes to be controlled. That is, as shown in Table 1, in the control cycle tn, the voltage output to the servo motor 36a is determined during the control cycle of tn + 2 and tn + 3.
【0027】[0027]
【表1】 そして、次の制御周期tn+1 においては、tn+2 ,tn+
3 の制御周期中にサーボモータ36bに対して出力する
電圧の判断を行う。また、制御周期tn 及びtn+1 の期
間において、モータ36aに対し出力する電圧は、制御
周期tn-2 のときに演算した結果の電圧出力を継続す
る。又、モータ36bに対しては、tn-1の制御周期で
演算した結果の電圧を出力する。[Table 1] Then, in the next control cycle tn + 1, tn + 2, tn +
During the control period of 3, the voltage output to the servo motor 36b is judged. Further, during the control cycles tn and tn + 1, the voltage output to the motor 36a continues the voltage output of the result calculated in the control cycle tn-2. Further, the voltage resulting from the calculation in the control cycle of tn-1 is output to the motor 36b.
【0028】このようにして、電圧出力パターンが決定
された場合には、これを軸分割処理部30aに入力し、
軸分割処理部30aは、モータ36aに対する出力電圧
指令があるかを判定し(S106)、この出力電圧指令
があった場合には、モータ36aの出力電圧ホールド部
32aに電圧指令を出力する(S107)。そして、モ
ータ動力出力部34aが、入力される電圧出力指令に基
づいてモータ36aに対する動力出力を行う(S10
8)。一方、軸分割処理部30aは、S106と並列し
て、モータ36bに対する出力電圧指令があるかを判定
する(S109)。モータ36bに対する電圧出力指令
があった場合には、出力電圧ホールド部32bに出力電
圧指令を出力する(S110)。そして、モータ動力出
力部34bが、サーボモータ36bに対し駆動電流を出
力する(S111)。When the voltage output pattern is determined in this way, it is input to the axis division processing section 30a,
The axis division processing unit 30a determines whether or not there is an output voltage command for the motor 36a (S106), and if there is this output voltage command, outputs the voltage command to the output voltage holding unit 32a of the motor 36a (S107). ). Then, the motor power output unit 34a outputs power to the motor 36a based on the input voltage output command (S10).
8). On the other hand, the axis division processing unit 30a determines in parallel with S106 whether there is an output voltage command for the motor 36b (S109). When there is a voltage output command to the motor 36b, the output voltage command is output to the output voltage hold unit 32b (S110). Then, the motor power output unit 34b outputs a drive current to the servo motor 36b (S111).
【0029】このように、本実施例におけるサーボ部3
0は、2つの軸に対するサーボモータを同時に制御す
る。そこで、その2つのモータの制御を同時に行った場
合には、上述のように実質的に2つの制御周期において
出力が変化されない。そこで、各制御周期ごとに電圧値
を変更できる1軸制御に比べると、理想電流と異なるも
のになってしまう場合もある。In this way, the servo unit 3 in this embodiment is
0 controls servo motors for two axes simultaneously. Therefore, when the two motors are controlled at the same time, the output does not substantially change in two control cycles as described above. Therefore, the current may be different from the ideal current as compared with the uniaxial control in which the voltage value can be changed in each control cycle.
【0030】すなわち、表2に制御周期t0 〜t3 にお
ける出力電圧指令の例を示す。この例によれば、制御周
期t0 において、t2 ,t3 でモータ36aに対して出
力する電圧は+が最適と判断し、制御周期t1 において
t2 ,t3 においてモータ36bに対して出力する電圧
は−が最適と判断し、制御周期t2 においてt4 ,t5
に対し出力する電圧は0が最適と判断し、制御周期t3
においてt4 ,t5 においてモータ36bに対して出力
する電圧は+が最適と判断する。これに応じて、制御周
期t2 〜t3 においては、モータ36aに対する出力電
圧は+となり、モータ36bに対する出力電圧は−とな
る。一方、制御周期t4 ,t5 においては、モータ36
aに対する出力電圧は0となり、モータ36bに対する
出力電圧は+となる。That is, Table 2 shows an example of the output voltage command in the control cycle t0 to t3. According to this example, in the control cycle t0, the voltage output to the motor 36a at t2 and t3 is judged to be +, and the voltage output to the motor 36b at t2 and t3 in the control cycle t1 is-. It is judged to be optimum and t4, t5 in the control cycle t2
It is judged that 0 is the optimum voltage to be output to the control cycle t3.
At +4, it is determined that + is the optimum voltage output to the motor 36b at t4 and t5. Accordingly, in the control cycle t2 to t3, the output voltage for the motor 36a becomes + and the output voltage for the motor 36b becomes-. On the other hand, in the control cycles t4 and t5, the motor 36
The output voltage for a is 0, and the output voltage for the motor 36b is +.
【0031】[0031]
【表2】 これによって、モータ36aの出力電圧及びモータ36
bの出力電圧は、図3に示すようになる。このように、
2倍の制御周期ごとに出力電圧が変化されるため、図に
おいて破線で示すような実電流波形となり、理想電流波
形とは若干異なるものとなる。すなわち、電流の脈動が
大きくなってしまう。しかしながら、このような2軸の
制御を行うのは、位置割出し制御などが比較的低精度で
よい場合に限られているため、このような制御において
も十分対応できる。例えば、プログラム作成段階におい
て、このような2軸制御の後に、1軸の制御による正確
な位置割出しを行うようなフローとすることによって、
高速動作かつ正確な位置制御なども行うことができる。
そして、このようにして1つのサーボアンプによって複
数のモータの制御が可能となる。そこで、サーボアンプ
の数を減少することができ、取り付けスペースを減少で
きると共に、装置の低コスト化を図ることができる。[Table 2] Accordingly, the output voltage of the motor 36a and the motor 36a
The output voltage of b is as shown in FIG. in this way,
Since the output voltage is changed every double control cycle, the actual current waveform is as shown by the broken line in the figure, which is slightly different from the ideal current waveform. That is, the pulsation of the current becomes large. However, such two-axis control is limited to the case where the position indexing control or the like can be performed with relatively low accuracy, and thus such control can be sufficiently dealt with. For example, in the program creation stage, after such a two-axis control, a flow for performing accurate position indexing by controlling the one-axis is used.
High-speed operation and accurate position control can also be performed.
Then, in this way, a plurality of motors can be controlled by one servo amplifier. Therefore, the number of servo amplifiers can be reduced, the mounting space can be reduced, and the cost of the device can be reduced.
【0032】[0032]
【発明の効果】以上説明したように、第1発明によれ
ば、1つのサーボアンプによって、2以上のサーボモー
タを駆動することができる。そこで、取り付けスペース
を減少することができると共に、低コストで同様の処理
を達成することができる。As described above, according to the first aspect of the present invention, one servo amplifier can drive two or more servo motors. Therefore, the installation space can be reduced, and the same processing can be achieved at low cost.
【0033】また、第2発明によれば、2以上のサーボ
モータを駆動する場合には、サーボモータの制御周期を
変更するため、制御部の能力を最大限利用して制御を行
うことができる。また、第3発明によれば、サーボモー
タの数に応じた制御パラメータを予め記憶しておくこと
によって、駆動すべきサーボモータ数の変更に迅速に対
処できる。さらに、第4発明によれば、外部から供給す
る指令に駆動すべきサーボモータ数についての情報を含
ませておくことにより、駆動すべきサーボモータ数を迅
速に認識して、遅れを生じることなくサーボモータを制
御することができる。Further, according to the second aspect of the present invention, when two or more servo motors are driven, the control cycle of the servo motors is changed, so that the control unit can be controlled by making maximum use of its capability. . Further, according to the third aspect of the present invention, the control parameter corresponding to the number of servo motors is stored in advance, so that the change in the number of servo motors to be driven can be promptly dealt with. Further, according to the fourth aspect of the invention, by including the information about the number of servo motors to be driven in the command supplied from the outside, the number of servo motors to be driven can be recognized quickly and the delay is not generated. The servo motor can be controlled.
【図1】実施例の全体構成を示すブロック図である。FIG. 1 is a block diagram showing an overall configuration of an embodiment.
【図2】実施例の動作を説明するフローチャートであ
る。FIG. 2 is a flowchart illustrating the operation of the embodiment.
【図3】実施例における出力電流の波形を示す波形図で
ある。FIG. 3 is a waveform diagram showing a waveform of an output current in the example.
【図4】従来の装置における構成を示すブロック図であ
る。FIG. 4 is a block diagram showing a configuration of a conventional device.
【図5】インバータ及びモータ固定子の構成を示す説明
図である。FIG. 5 is an explanatory diagram showing configurations of an inverter and a motor stator.
【図6】モータの固定子コイルに流れる電流の流れを示
す波形図である。FIG. 6 is a waveform diagram showing the flow of current flowing through the stator coil of the motor.
10 プログラマブルコントローラ(PC) 12 コントロール部 14 サーボアンプ部 16 サーボモータ部 10 Programmable Controller (PC) 12 Control Section 14 Servo Amplifier Section 16 Servo Motor Section
フロントページの続き (72)発明者 榎本 稔 愛知県刈谷市朝日町1丁目1番地 豊田工 機株式会社内 (72)発明者 伊藤 浩行 愛知県刈谷市朝日町1丁目1番地 豊田工 機株式会社内 (72)発明者 高野 操一郎 愛知県刈谷市豊田町2丁目1番地 株式会 社豊田自動織機製作所内Front page continuation (72) Inventor Minoru Enomoto 1-1, Asahi-cho, Kariya city, Aichi prefecture Toyota Koki Co., Ltd. (72) Inventor Hiroyuki Ito 1-1, Asahi-cho, Kariya city Aichi prefecture Toyota machine (72) Inventor, Ryoichiro Takano, 2-chome, Toyota-cho, Kariya city, Aichi Prefecture Toyota Industries Corporation
Claims (4)
おいて、 複数のサーボモータの動作を制御する制御部を有し、 この制御部は、 第1の動作モードにおいて、 外部から供給される動作指令から、1つのサーボモータ
への電流供給指令を作成し、作成された電流供給指令に
基づいて上記1つのサーボモータの駆動を制御し、 第2の動作モードにおいて、 外部から供給される動作指令から、複数のサーボモータ
への電流供給指令を順次作成し、作成された電流供給指
令に基づいて上記複数のサーボモータの駆動を制御する
ことを特徴とする駆動装置。1. A drive device having a plurality of servo motors, comprising a control unit for controlling the operation of the plurality of servo motors, wherein the control unit has an operation command supplied from the outside in a first operation mode. From the operation command supplied from the outside in the second operation mode, by generating a current supply command to one servo motor, controlling the drive of the one servo motor based on the created current supply command. A drive device, wherein current supply commands to a plurality of servo motors are sequentially created, and drive of the plurality of servo motors is controlled based on the created current supply commands.
を作成する周期を変更することを特徴とする駆動装置。2. The drive device according to claim 1, wherein the control unit changes a cycle for creating the current supply command according to the number of servo motors to be controlled.
いて、 上記制御部は、 駆動すべきサーボモータの数に対応する制御パラメータ
を予め記憶しており、この制御パラメータに基づいて、
1または複数のサーボモータへの電流供給指令を作成す
ることを特徴とする駆動装置。3. The drive device according to claim 1, wherein the control unit stores in advance control parameters corresponding to the number of servo motors to be driven, and based on the control parameters,
A drive device for creating a current supply command to one or a plurality of servomotors.
置において、 上記外部から供給される動作指令に駆動すべきサーボモ
ータの数についての情報が含まれており、 上記制御部は、この情報に基づいて、動作モードを判定
する判定手段を有していることを特徴とする駆動装置。4. The drive device according to claim 1, wherein the operation command supplied from the outside includes information about the number of servo motors to be driven, and the control unit includes: A drive device having a determination means for determining an operation mode based on this information.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP710194A JPH07222479A (en) | 1994-01-26 | 1994-01-26 | Driving apparatus |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP710194A JPH07222479A (en) | 1994-01-26 | 1994-01-26 | Driving apparatus |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH07222479A true JPH07222479A (en) | 1995-08-18 |
Family
ID=11656698
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP710194A Pending JPH07222479A (en) | 1994-01-26 | 1994-01-26 | Driving apparatus |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH07222479A (en) |
Cited By (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH09298897A (en) * | 1996-04-26 | 1997-11-18 | Sony Corp | Motor driver device |
| US7038418B2 (en) | 2002-08-28 | 2006-05-02 | Fanuc Ltd | Numerical control apparatus |
| JP2006262636A (en) * | 2005-03-17 | 2006-09-28 | Yaskawa Electric Corp | Multi-axis servo driver |
| JP2008299426A (en) * | 2007-05-29 | 2008-12-11 | Ricoh Co Ltd | Servo control device, method and program, and ink jet recording apparatus |
| KR20180031666A (en) * | 2018-03-21 | 2018-03-28 | 주식회사 주원테크놀러지 | Method and Apparatus for Controlling Motor Capable of Programming |
-
1994
- 1994-01-26 JP JP710194A patent/JPH07222479A/en active Pending
Cited By (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH09298897A (en) * | 1996-04-26 | 1997-11-18 | Sony Corp | Motor driver device |
| US7038418B2 (en) | 2002-08-28 | 2006-05-02 | Fanuc Ltd | Numerical control apparatus |
| JP2006262636A (en) * | 2005-03-17 | 2006-09-28 | Yaskawa Electric Corp | Multi-axis servo driver |
| JP2008299426A (en) * | 2007-05-29 | 2008-12-11 | Ricoh Co Ltd | Servo control device, method and program, and ink jet recording apparatus |
| KR20180031666A (en) * | 2018-03-21 | 2018-03-28 | 주식회사 주원테크놀러지 | Method and Apparatus for Controlling Motor Capable of Programming |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US8441219B2 (en) | Motor control device and electrical equipment provided with the same | |
| US8736217B2 (en) | Servo motor control device for controlling servo motor configured to drive feed axis of machine tool | |
| US7541763B2 (en) | Servo control device | |
| JPH063994B2 (en) | Control method for multiple digital servos | |
| JPH07222479A (en) | Driving apparatus | |
| EP1139561B1 (en) | Method of operating an AC servomotor | |
| US6310457B1 (en) | Servomotor controller | |
| JP6313186B2 (en) | Motor drive control device and control method of motor drive control device | |
| JP2004114176A (en) | Numerical controller | |
| EP2894781A1 (en) | Motor control device, washing machine comprising same, and washer/dryer | |
| JP3133207B2 (en) | Motor control device | |
| JP3427800B2 (en) | Numerical control unit | |
| JP3706556B2 (en) | Control device for permanent magnet motor | |
| JP2012070489A (en) | Drive control device and drive control method for motor | |
| JPH06165572A (en) | Motor drive controller and motor control method | |
| Kreindler | DSP Solution for Digital Motion Control | |
| JP2002325472A (en) | Inverter control device | |
| Frigeni | Firmware | |
| JPH02101997A (en) | Servo motor control device | |
| JPH05150822A (en) | Industrial robot weaving controller | |
| JP2017157122A (en) | Computer numerical control servo driving system | |
| JP2002064988A (en) | Adaptable operation controller | |
| JPH0246196A (en) | Stepping motor control method | |
| JP3009672B2 (en) | Servo motor controller | |
| JPS60200317A (en) | Multi-axis current control method |