JPS6248843B2 - - Google Patents
Info
- Publication number
- JPS6248843B2 JPS6248843B2 JP16260681A JP16260681A JPS6248843B2 JP S6248843 B2 JPS6248843 B2 JP S6248843B2 JP 16260681 A JP16260681 A JP 16260681A JP 16260681 A JP16260681 A JP 16260681A JP S6248843 B2 JPS6248843 B2 JP S6248843B2
- Authority
- JP
- Japan
- Prior art keywords
- servo motor
- rotation
- counter
- signal
- command
- 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.)
- Expired
Links
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Program-control systems
- G05B19/02—Program-control systems electric
- G05B19/18—Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of program data in numerical form
- G05B19/414—Structure of the control system, e.g. common controller or multiprocessor systems, interface to servo, programmable interface controller
- G05B19/4142—Structure of the control system, e.g. common controller or multiprocessor systems, interface to servo, programmable interface controller characterised by the use of a microprocessor
Landscapes
- Engineering & Computer Science (AREA)
- Computer Hardware Design (AREA)
- Microelectronics & Electronic Packaging (AREA)
- Human Computer Interaction (AREA)
- Manufacturing & Machinery (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Automation & Control Theory (AREA)
- Numerical Control (AREA)
- Control Of Position Or Direction (AREA)
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明は、マイクロプロセツサシステムにより
制御されサーボモータの回転制御を行う制御指令
回路に利用する。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention is utilized in a control command circuit that is controlled by a microprocessor system and controls the rotation of a servo motor.
第1図は一般的な制御回路の一例を示すブロツ
ク構成図である。すなわち、マイクロプロセツサ
システム1、制御指令回路部2、サーボモータ制
御部3により構成される制御系であつて、サーボ
モータ4に印加する電圧やパルス幅を制御してサ
ーボモータ4を回転させる。サーボモータ4の回
転に応じた出力を出すセンサ5の出力をサーボモ
ータ制御部3に入力させて、例えば回転量に比例
したパルス数の応答信号10に変換させる。マイ
クロプロセツサシステム1は、はじめに、サーボ
モータの停止すべき位置までの回転量をデータバ
ス8によつて制御指令回路部2に送り、コントロ
ールバス7に制御信号を送つて上記回転量を設定
させるように構成されている。
FIG. 1 is a block diagram showing an example of a general control circuit. That is, it is a control system composed of a microprocessor system 1, a control command circuit section 2, and a servo motor control section 3, and controls the voltage and pulse width applied to the servo motor 4 to rotate the servo motor 4. The output of the sensor 5, which outputs an output corresponding to the rotation of the servo motor 4, is input to the servo motor control section 3, and is converted into a response signal 10 having a number of pulses proportional to the amount of rotation, for example. The microprocessor system 1 first sends the amount of rotation of the servo motor to the stop position to the control command circuit section 2 via the data bus 8, and sends a control signal to the control bus 7 to set the amount of rotation. It is configured as follows.
従来の制御指令回路部2は、例えば第2図に示
すように構成されている。すなわち、データバス
8で与えられたサーボモータ4の回転量をコント
ロールバス7の指示によつて減算カウンタ51に
設定する。減算カウンタ51の内容は、サーボモ
ータ制御部3(第1図)からの応答信号10によ
つて減カウントされる。したがつて、カウンタ出
力信号54は、サーボモータの残り回転数を示す
ことになる。デコード回路網52はカウンタ出力
信号54の数値を読出専用メモリ53のアドレス
信号55に変換して出力する。 The conventional control command circuit section 2 is configured as shown in FIG. 2, for example. That is, the amount of rotation of the servo motor 4 given via the data bus 8 is set in the subtraction counter 51 according to instructions from the control bus 7 . The contents of the subtraction counter 51 are decremented by the response signal 10 from the servo motor control section 3 (FIG. 1). Therefore, the counter output signal 54 indicates the remaining number of revolutions of the servo motor. The decoding circuitry 52 converts the numerical value of the counter output signal 54 into an address signal 55 for the read-only memory 53 and outputs it.
読出専用メモリ53の各番地には、サーボモー
タ4への回転速度等の指令情報があらかじめ記憶
させてある。したがつて、デコード回路網52お
よび読出専用メモリ53の内容を適当に設定して
おけば、例えば第3図に示すように減算カウンタ
51の内容に対応した指令信号9を出力させるこ
とができる。また、カウンタ出力信号54の数値
が「0」になつたときは、デコード回路網52
は、割込信号6を出力してマイクロプロセツサシ
ステム1(第1図)に送り、マイクロプロセツサ
システム1は、次のステツプのサーボモータの回
転量をデータバスに送出し、上述と同様な動作を
繰り返してサーボモータを制御する。 At each address of the read-only memory 53, command information such as the rotational speed for the servo motor 4 is stored in advance. Therefore, by appropriately setting the contents of the decoding circuit network 52 and the read-only memory 53, it is possible to output a command signal 9 corresponding to the contents of the subtraction counter 51, as shown in FIG. 3, for example. Further, when the numerical value of the counter output signal 54 becomes "0", the decoding circuit network 52
outputs an interrupt signal 6 and sends it to the microprocessor system 1 (Fig. 1), which sends the rotation amount of the servo motor for the next step to the data bus and performs the same process as described above. Control the servo motor by repeating the operation.
サーボモータ制御部3は、上記指令信号9によ
り、サーボモータ4に印加すべきパルス幅、電圧
等を制御してサーボモータ4に印加し、サーボモ
ータ4を駆動する制御機能を有する。 The servo motor control section 3 has a control function of controlling the pulse width, voltage, etc. to be applied to the servo motor 4 using the command signal 9, and applying the same to the servo motor 4 to drive the servo motor 4.
上述の従来構成では、読出専用メモリ53にプ
ログラム可能な読出専用メモリ(PROM)を使用
することにより、サーボ系の定数の小さい変更等
には対応することが可能である。しかし、サーボ
系の定数の比較的大きな変更は、デコード回路網
52の回路変更および読出専用メモリ53の変更
が必要となる。これらの変更は、プリント基板化
された回路にとつては大問題である。また、指令
信号の数に対応して読出専用メモリ53、デコー
ド回路網52の構成規模が大となり、回路を構成
する部品点数が多くなるという欠点がある。ま
た、これらの回路に汎用のLSI等を使用すること
が困難である。
In the conventional configuration described above, by using a programmable read-only memory (PROM) as the read-only memory 53, it is possible to cope with small changes in the constants of the servo system. However, a relatively large change in the constants of the servo system requires circuit changes in the decoding circuit network 52 and changes in the read-only memory 53. These changes are a big problem for circuits implemented on printed circuit boards. Further, there is a drawback that the configuration scale of the read-only memory 53 and the decoding circuit network 52 increases in accordance with the number of command signals, and the number of parts constituting the circuit increases. Furthermore, it is difficult to use general-purpose LSIs or the like for these circuits.
本発明は、上述の従来の欠点を解決し、汎用の
LSI、IC等を使用した小規模な回路で、しかもサ
ーボ系の定数変更等に対して柔軟に対処可能なサ
ーボ系の制御指令回路を提供することを目的とす
る。 The present invention solves the above-mentioned conventional drawbacks and provides a general-purpose
The purpose of this invention is to provide a servo system control command circuit that is a small-scale circuit using LSI, IC, etc., and can flexibly deal with changes in servo system constants.
本発明は、サーボモータの回転を制御するマイ
クロプロセツサシステムと、サーボモータに接続
されサーボモータに回転電流を与えるとともにサ
ーボモータの回転センサ出力を取り込むサーボモ
ータ制御部との間に接続され、上記マイクロプロ
セツサシステムからサーボモータの回転量をデイ
ジタル信号として入力する手段と、上記サーボモ
ータ制御部にこのデイジタル信号を出力する手段
と、上記回転量を設定し上記回転センサ出力に対
応する信号で減算計数し所定値に達すると上記マ
イクロプロセツサシステムに割込信号を与えるカ
ウンタ手段とを備えたサーボ系の制御指令回路に
おいて、前記入力する手段は前記マイクロプロセ
ツサシステムから到来する指令信号設定パルスに
より上記回転量の蓄積を行う指令バツフアレジス
タを含み、前記出力する手段はこの指令バツフア
レジスタの出力を入力とし前記割込信号の発生に
伴いその蓄積内容を出力する出力レジスタを含
み、前記カウンタ手段は、現時の回転量を設定し
減算計数を実行する第一のカウンタの他に、前記
マイクロプロセツサシステムから入力する次の回
転量を設定して待機する第二のカウンタを備え、
前記割込信号の発生に同期してこの二つのカウン
タを切り換える手段を含むことを特徴とする。
The present invention provides a microprocessor system that is connected between a microprocessor system that controls the rotation of a servo motor, and a servo motor control section that is connected to the servo motor and that applies rotational current to the servo motor and takes in the output of a rotation sensor of the servo motor. means for inputting the amount of rotation of the servo motor as a digital signal from the microprocessor system; means for outputting this digital signal to the servo motor control section; and means for setting the amount of rotation and subtracting it with a signal corresponding to the output of the rotation sensor. In a control command circuit for a servo system, the control command circuit includes a counter means for counting and supplying an interrupt signal to the microprocessor system when a predetermined value is reached. The counter includes a command buffer register for accumulating the amount of rotation; The means includes, in addition to a first counter that sets the current amount of rotation and performs subtraction counting, a second counter that sets and waits for the next amount of rotation input from the microprocessor system;
The present invention is characterized in that it includes means for switching between these two counters in synchronization with the generation of the interrupt signal.
本発明の制御指令回路は、マイクロプロセツサ
システムがデータバスに出力するサーボモータの
回転量をカウンタにセツトし、サーボモータから
の応答信号によつてこれを減カウントし、カウン
ト値が0になると割込信号を出力する。この減カ
ウントのためのカウンタを2個設け、これを切替
えて使用する。すなわち第1または第2のカウン
タの内容が0になるごとに、交互に他方のカウン
タの減算を可能とするとともに、マイクロプロセ
ツサシステムに割込信号を送出し、かつ出力レジ
スタにゲート信号を送つてその時点の入力信号を
指令信号として出力させ、割込信号によつてマイ
クロプロセツサシステムが前記第1または第2の
カウンタに次のステツプの回転量をセツトさせ
る。割込信号のオフにより出力レジスタがその時
点の入力信号をラツチしたのちに、指令バツフア
レジスタに次のステツプの指令信号をセツトす
る。
The control command circuit of the present invention sets the rotation amount of the servo motor that the microprocessor system outputs to the data bus in a counter, and decrements the rotation amount based on the response signal from the servo motor, and when the count value becomes 0. Outputs an interrupt signal. Two counters are provided for this countdown, and these are used by switching. That is, each time the content of the first or second counter becomes 0, it alternately enables the other counter to be subtracted, and also sends an interrupt signal to the microprocessor system and a gate signal to the output register. Then, the input signal at that time is outputted as a command signal, and the microprocessor system causes the first or second counter to set the rotation amount of the next step in response to the interrupt signal. After the output register latches the current input signal by turning off the interrupt signal, the command signal for the next step is set in the command buffer register.
次に、本発明について図面を参照して詳細に説
明する。
Next, the present invention will be explained in detail with reference to the drawings.
本発明の全体構成は前述の第1図と同等であ
る。 The overall configuration of the present invention is the same as that shown in FIG. 1 described above.
第4図は本発明の一実施例の主要部を示す回路
図であつて、第1図に示された制御指令回路部2
に対応する部分のみが示されている。本発明はこ
の部分に特徴がある。 FIG. 4 is a circuit diagram showing the main parts of one embodiment of the present invention, and is a circuit diagram showing the control command circuit section 2 shown in FIG.
Only the corresponding parts are shown. The present invention is characterized by this part.
マイクロプロセツサシステム1からは、サーボ
モータ4の回転量とともに、指令信号が出力さ
れ、これらはデータバス8によつて送られ、コン
トロールバス7の制御信号によつて以下に説明す
るカウンタ、レジスタ等にセツトされる。 The microprocessor system 1 outputs command signals as well as the amount of rotation of the servo motor 4. These are sent via the data bus 8, and the control signals from the control bus 7 are used to control the counters, registers, etc. described below. is set to
インターバルタイマ19は、第1のカウンタ1
9−1と第2のカウンタ19−2を内蔵し、コン
トロールバス7から与えられる制御信号によつ
て、データバス8で与えられたサーボモータの次
の停止位置までの回転量を上記各カウンタ19−
1,19−2にセツトする。データバス8は、イ
ンターバルタイマ19の端子D0〜D7に接続さ
れ、コントロールバス7は端子A0,A1,
,,に接続されている。二つのカウン
タ19−1,19−2は、応答信号10が端子
CLK1,CLK2に入力するとカウント値を減算
し、カウント値が0になると端子OUT1,OUT
2にハイレベルを出力する構成である。この減算
動作は、それぞれ端子GAT1,GAT2にハイレ
ベルが入力したときに行われ、これらの端子にロ
ーレベルが入力したときはこの減算動作が禁止さ
れる。 The interval timer 19 is a first counter 1
9-1 and a second counter 19-2, each counter 19 calculates the amount of rotation of the servo motor to the next stop position given by the data bus 8 according to the control signal given from the control bus 7. −
Set to 1,19-2. The data bus 8 is connected to terminals D0 to D7 of the interval timer 19, and the control bus 7 is connected to terminals A0, A1,
,,It is connected to the. The two counters 19-1 and 19-2 receive the response signal 10 at their terminals.
When input to CLK1 and CLK2, the count value is subtracted, and when the count value becomes 0, terminals OUT1 and OUT
This configuration outputs a high level to 2. This subtraction operation is performed when a high level is input to each of the terminals GAT1 and GAT2, and this subtraction operation is prohibited when a low level is input to these terminals.
カウンタ19−1および19−2の端子OUT
1およびOUT2の信号は第1のオアゲート23
に入力され、第1のオアゲート23の出力は、割
込信号6としてマイクロプロセツサ1(第1図)
に送られる。同時に第1図のオアゲート23の出
力よつてD型フリツプフロツプ20をセツトす
る。 Terminal OUT of counters 19-1 and 19-2
1 and OUT2 signals are sent to the first OR gate 23
The output of the first OR gate 23 is input to the microprocessor 1 (FIG. 1) as an interrupt signal 6.
sent to. At the same time, the D-type flip-flop 20 is set by the output of the OR gate 23 shown in FIG.
フリツプフロツプ20の正出力端子Qは前記カ
ウンタ19−1の端子GAT1に接続されてい
る。D型フリツプフロツプ20の負出力端子
は、自身のD端子に接続されるとともに、前記カ
ウンタ19−2の端子GAT2に接続されてい
る。したがつて、カウンタ19−1または19−
2は、いずれか一方が減カウントし、そのカウン
ト値0になつたとき割込信号6がハイレベルにな
り、その時点のD型フリツプフロツプ20のD端
子の状態を正出力端子Qに出力させる。 The positive output terminal Q of the flip-flop 20 is connected to the terminal GAT1 of the counter 19-1. The negative output terminal of the D-type flip-flop 20 is connected to its own D terminal and also to the terminal GAT2 of the counter 19-2. Therefore, counter 19-1 or 19-
2, one of them decrements the count, and when the count value reaches 0, the interrupt signal 6 becomes high level, and the state of the D terminal of the D-type flip-flop 20 at that time is outputted to the positive output terminal Q.
これによりいままで減カウントしていた方のカ
ウンタの減カウントが禁止され、他方のカウンタ
が減カウント可能となる。また、コントロールバ
ス7により、初期設定パルス31が与えられたと
きは、インバータ32の出力を否定した信号が、
フリツプフロツプ20のリセツト端子に入力し
て、フリツプフロツプ20がリセツトされる。す
なわち、初期設定パルス31によつて第2のカウ
ンタ19−2が減カウント可能となる。 As a result, the counter that has been decrementing until now is prohibited from decrementing, and the other counter is allowed to decrement. Furthermore, when the initial setting pulse 31 is given by the control bus 7, the signal that negates the output of the inverter 32 is
By inputting the reset terminal of flip-flop 20, flip-flop 20 is reset. That is, the initial setting pulse 31 enables the second counter 19-2 to decrement the count.
一方、データバス8で与えられた指令信号は、
コントロールバス7で与えられる指令信号設定パ
ルス30によつて、指令バツフアレジスタ22に
セツトされる。指令バツフアレジスタ22の出力
は、出力レジスタ21に入力される。そして、前
記初期設定パルス31および前記第1のオアゲー
ト23の出力が第2のオアゲート24を介して、
上記出力レジスタ21のゲート信号としてG端子
に接続される。初期設定パルス31の入力または
カウンタ19−1,19−2のカウントアツプ等
によつて、出力レジスタ21の端子Gにハイレベ
ルが入力すると、出力レジスタ21の入力データ
D0〜D8が出力端子Q0〜Q7に直接出力され、前記
ゲート信号がローレベルになると、出力レジスタ
21はその時点のデータをラツチし、以後ゲート
信号がハイレベルになるまでラツチしたデータを
出力する。 On the other hand, the command signal given via the data bus 8 is
It is set in the command buffer register 22 by a command signal setting pulse 30 given via the control bus 7. The output of the command buffer register 22 is input to the output register 21. Then, the initial setting pulse 31 and the output of the first OR gate 23 are passed through the second OR gate 24,
It is connected to the G terminal as a gate signal of the output register 21. When a high level is input to the terminal G of the output register 21 due to input of the initial setting pulse 31 or count-up of the counters 19-1 and 19-2, the input data of the output register 21 is
D 0 to D 8 are directly output to the output terminals Q 0 to Q 7 , and when the gate signal becomes low level, the output register 21 latches the data at that time, and thereafter latches the data until the gate signal becomes high level. Output data.
出力レジスタ21の出力データは指令信号9と
して第1図に示すサーボモータ制御部3へ送られ
る。また、初期設定パルス31はインバータ32
で反転させ、さらにもう一度反転させてフリツプ
フロツプ20のリセツト端子に入力する。 The output data of the output register 21 is sent as a command signal 9 to the servo motor control section 3 shown in FIG. In addition, the initial setting pulse 31 is applied to the inverter 32.
, and then invert it again and input it to the reset terminal of the flip-flop 20.
次に、本実施例の動作について第4図、第5図
および第6図を参照して説明する。第6図はレジ
スタ22,21、カウンタ19−1,19−2の
内容および割込信号6の状態を示すタイムチヤー
トである。いま、停止指令Aによつてサーボモー
タは停止しているものとする。このとき、指令バ
ツフアレジスタ22および出力レジスタ21の内
容は停止指令Aであり、カウンタ19−1および
19−2の内容は「0」である。そして、第5図
に示すように指令Bによりn1回転、指令Cにより
n2回転、指令Dによりn3回転、…、指令Zにより
nZ回転をそれぞれ行わせて合計回転量
を回転させるものとする。上記指令A〜Zおよび
回転量n1〜nZは、マイクロプロセツサシステム
で制御系に適するようにプログラムされまたは計
算されて出力される。そして、データバス8を通
して指令バツフアレジスタ22およびインターバ
ルタイマ19に与えられ、コントロールバス7の
制御信号によつてそれぞれセツトされる。 Next, the operation of this embodiment will be explained with reference to FIGS. 4, 5, and 6. FIG. 6 is a time chart showing the contents of registers 22, 21, counters 19-1, 19-2, and the state of interrupt signal 6. It is now assumed that the servo motor is stopped by a stop command A. At this time, the contents of the command buffer register 22 and the output register 21 are the stop command A, and the contents of the counters 19-1 and 19-2 are "0". Then, as shown in Fig. 5, command B makes n 1 rotation, and command C gives n 1 rotation.
n 2 rotations, n 3 rotations by command D, ..., n Z rotations by command Z, total rotation amount shall be rotated. The commands A to Z and the rotation amounts n 1 to n Z are programmed or calculated by the microprocessor system and outputted as appropriate for the control system. The signal is then applied to the command buffer register 22 and the interval timer 19 through the data bus 8, and set by the control signal on the control bus 7, respectively.
まず、マイクロプロセツサシステムからデータ
バス8に最初の回転量n1を出力し、コントロール
バス7の制御信号により第2のカウンタ19−2
に回転量n1をセツトする(第6図c参照)。次い
で、マイクロプロセツサシステムからデータバス
8に次の回転量n2が出力され、コントロールバス
7の制御信号により第1のカウンタ19−1に回
転量n2がセツトされる(第6図d参照)。このと
き、第1のオアゲート23の出力がローレベルと
なり出力レジスタ21は停止指令Aをラツチす
る。次いで、データバス8に指令Bが出力され、
指令信号設定パルス30によつて指令バツフアレ
ジスタ22に指令Bがセツトされる(第6図a参
照)。そして、次に初期設定パルス31が入力し
たとき、出力レジスタ21が指令Bをラツチし指
令Bを出力する(第6図b参照)。またフリツプ
フロツプ20がリセツトされる。 First, the microprocessor system outputs the initial rotation amount n1 to the data bus 8, and the second counter 19-2 is output by the control signal from the control bus 7.
Set the rotation amount n 1 to (see Fig. 6c). Next, the microprocessor system outputs the next rotation amount n 2 to the data bus 8, and the rotation amount n 2 is set in the first counter 19-1 by the control signal from the control bus 7 (see FIG. 6d). ). At this time, the output of the first OR gate 23 becomes low level and the output register 21 latches the stop command A. Next, command B is output to the data bus 8,
Command B is set in the command buffer register 22 by the command signal setting pulse 30 (see FIG. 6a). Then, when the initial setting pulse 31 is input next, the output register 21 latches the command B and outputs the command B (see FIG. 6b). Flip-flop 20 is also reset.
指令Bによりサーボモータ制御部3(第1図)
がサーボモータを駆動し、サーボモータが回転す
ると、サーボモータの回転量に対応した応答信号
10が返送される。応答信号10はカウンタ19
−1および19−2のカウント端子CLK1,
CLK2に接続されているが、いま第2のカウン
タ19−2のみが減カウント可能である。したが
つて、第2のカウンタ19−2の内容(n1)は応
答パルス10によつて減カウントされる(第6図
c参照)。この間サーボモータは指令Bによる回
転を実行している。その後、次のステツプの指令
Cがデータバス8で与えられ、指令設定パルス3
0によつて指令バツフアレジスタ22にセツトさ
れる(第6図a)。 The servo motor control section 3 (Fig. 1) is activated by command B.
drives the servo motor, and when the servo motor rotates, a response signal 10 corresponding to the amount of rotation of the servo motor is sent back. The response signal 10 is sent to the counter 19
-1 and 19-2 count terminal CLK1,
Although connected to CLK2, only the second counter 19-2 can now count down. Therefore, the content (n 1 ) of the second counter 19-2 is decremented by the response pulse 10 (see FIG. 6c). During this time, the servo motor is rotating according to command B. After that, the command C for the next step is given via the data bus 8, and the command setting pulse 3
0 in the command buffer register 22 (FIG. 6a).
一方、サーボモータの回転によりカウンタ19
−2が減カウントされ、回転量n1に達したときカ
ウント値が「0」となり、端子OUT2にハイレ
ベルを出力する。これにより、割込信号6がハイ
レベルとなり(第6図f)、同時にフリツプフロ
ツプ20が反転してカウンタ19−2の減カウン
トを禁止し、カウンタ19−1が減カウント可能
となる(第6図d)。また、第2のオア回路24
を介してゲート信号が出力レジスタ21に与えら
れるから、出力レジスタ21は指令Cを出力する
(第6図b)。すなわち、サーボモータは指令Cに
よつて回転し、その回転量に応じた応答信号10
によつてカウンタ19−1が減カウントを開始す
る。 On the other hand, due to the rotation of the servo motor, the counter 19
-2 is decremented, and when the rotation amount n1 is reached, the count value becomes "0" and a high level is output to the terminal OUT2. As a result, the interrupt signal 6 becomes high level (FIG. 6f), and at the same time, the flip-flop 20 is inverted, prohibiting the counter 19-2 from counting down, and allowing the counter 19-1 to count down (FIG. 6). d). In addition, the second OR circuit 24
Since the gate signal is applied to the output register 21 via the output register 21, the output register 21 outputs the command C (FIG. 6b). That is, the servo motor rotates according to the command C, and a response signal 10 corresponding to the amount of rotation is generated.
The counter 19-1 starts counting down.
上記割込信号6がマイクロプロセツサシステム
に送られると、マイクロプロセツサシステムは割
込処理を行う。すなわちカウンタ19−2に回転
量n3を設定する。回転量n3の設定によりカウンタ
19−2の出力端子OUT2がローレベルになる
と、割込信号6および出力レジスタ21の端子G
がローレベルになり(第6図f)、指令Cが出力
レジスタ21にラツチされる。その後マイクロプ
ロセツサシステムはデータバス8に指令Dを出力
し、コントロールバス7の制御信号によつて指令
バツフアレジスタ22にセツトさせる(第6図
a)。 When the interrupt signal 6 is sent to the microprocessor system, the microprocessor system performs interrupt processing. That is, the rotation amount n3 is set in the counter 19-2. When the output terminal OUT2 of the counter 19-2 becomes low level due to the setting of the rotation amount n3 , the interrupt signal 6 and the terminal G of the output register 21
becomes low level (FIG. 6f), and the command C is latched in the output register 21. Thereafter, the microprocessor system outputs the command D to the data bus 8, and causes it to be set in the command buffer register 22 by the control signal of the control bus 7 (FIG. 6a).
カウンタ19−1の内容が「0」になると、上
記と同様にして、今度は、カウンタ19−2が減
カウント可能となり、出力レジスタ21は指令D
を出力し、カウンタ19−1に回転量n4がセツト
されたのち指令バツフア22に指令Eがセツトさ
れる。 When the content of the counter 19-1 becomes "0", the counter 19-2 becomes capable of decrementing in the same manner as described above, and the output register 21 outputs the command D.
After the rotation amount n4 is set in the counter 19-1, the command E is set in the command buffer 22.
以上の動作の繰り返しにより、最後に指令Zに
よりnZ回転が完了すると、全ステツプの一連の
制御動作が完了し、指令Aによりサーボ系全体が
停止の状態となる。 By repeating the above operations, when n Z rotation is finally completed by command Z, a series of control operations of all steps is completed, and by command A, the entire servo system is brought to a halt state.
このように本発明の回路では、サーボ系の制御
情報はすべてマイクロプロセツサシステムが発生
するから、サーボ系の仕様変更等に対しては、プ
ログラムを変更することによつて対処することが
可能である。すなわち、従来のようにROMを交
換する等のハードウエア部分の変更を行うことな
く、大幅な指令内容その他の変更が可能である。
In this way, in the circuit of the present invention, all the control information for the servo system is generated by the microprocessor system, so it is possible to deal with changes in the specifications of the servo system by changing the program. be. That is, it is possible to make significant changes to the command contents and other matters without changing the hardware such as replacing the ROM as in the past.
また、二つのカウンタを設けたがこれらの次ス
テツプに対応する切替えは、一方のカウンタの出
力信号によつて自動的に行われ、プログラムの介
入なしに切替えることが可能である。したがつ
て、マイクロプロセツサシステムの割込処理が簡
単であり、割込受付時間の制限が緩和される。 Further, although two counters are provided, the switching corresponding to the next step is automatically performed by the output signal of one of the counters, and it is possible to switch without program intervention. Therefore, the interrupt processing of the microprocessor system is simple, and restrictions on interrupt acceptance time are relaxed.
本発明は、サーボ系の定数、例えばモータの負
荷慣性が大幅に異なる場合等においても、ハード
ウエアを変換せずにプログラムによつて対処する
ことができる。したがつて融通性に富み良好な制
御を行うことができる。しかもハード部分の構成
は簡単で部品点数も少なくて足りる。例えば、多
くの種類の活字があつて、それぞれの慣性モーメ
ントが大きく異なるような場合においても、活字
に対応して指令信号を変化させることが可能であ
り、種々の活字を最適の状態で使用することがで
きる。 According to the present invention, even if the constants of the servo system, such as the load inertia of the motor, are significantly different, this can be handled by a program without converting the hardware. Therefore, it is possible to perform highly flexible and good control. Furthermore, the hardware configuration is simple and requires only a small number of parts. For example, even if there are many types of type and the moment of inertia of each type is greatly different, it is possible to change the command signal according to the type, so that the various types can be used in the optimal condition. be able to.
第1図は本発明が実施される一般的なサーボ系
の制御指令回路の一例を示すブロツク図。第2図
は従来例の制御指令回路部の一例を示すブロツク
図。第3図は従来例の減算カウンタの内容と指令
信号との関係の一例を示す図。第4図は本発明の
一実施例を示す一部論理回路図を含むブロツク
図。第5図は実施例における各ステツプの指令信
号と回転数との関係を示す図。第6図は実施例に
おける各レジスタおよびカウンタの内容および割
込信号の状態等を示すタイムチヤート。
1……マイクロプロセツサシステム、2……制
御指令回路部、3……サーボモータ制御部、4…
…サーボモータ、5……センサ、6……割込信
号、7……コントロールバス、8……データバ
ス、9……指令信号、10……応答信号、19…
…インターバルタイマ、19−1……第1のカウ
ンタ、19−2……第2のカウンタ、20……D
型フリツプフロツプ、21……出力レジスタ、2
2……指令バツフアレジスタ、23,24……オ
アゲート、30……指令信号設定パルス、31…
…初期設定パルス、32……インバータ。
FIG. 1 is a block diagram showing an example of a general servo system control command circuit in which the present invention is implemented. FIG. 2 is a block diagram showing an example of a conventional control command circuit section. FIG. 3 is a diagram showing an example of the relationship between the contents of a conventional subtraction counter and a command signal. FIG. 4 is a block diagram including a partial logic circuit diagram showing one embodiment of the present invention. FIG. 5 is a diagram showing the relationship between the command signal of each step and the rotation speed in the embodiment. FIG. 6 is a time chart showing the contents of each register and counter, the state of an interrupt signal, etc. in the embodiment. DESCRIPTION OF SYMBOLS 1... Microprocessor system, 2... Control command circuit section, 3... Servo motor control section, 4...
... Servo motor, 5 ... Sensor, 6 ... Interrupt signal, 7 ... Control bus, 8 ... Data bus, 9 ... Command signal, 10 ... Response signal, 19 ...
...Interval timer, 19-1...First counter, 19-2...Second counter, 20...D
type flip-flop, 21...output register, 2
2... Command buffer register, 23, 24... OR gate, 30... Command signal setting pulse, 31...
...Initial setting pulse, 32...Inverter.
Claims (1)
セツサシステム1と、サーボモータに接続されサ
ーボモータに回転電流を与えるとともにサーボモ
ータの回転センサ出力を取り込むサーボモータ制
御部3との間に接続され、 上記マイクロプロセツサシステムからサーボモ
ータの回転量をデイジタル信号として入力する手
段と、上記サーボモータ制御部にこのデイジタル
信号を出力する手段と、上記回転量を設定し上記
回転センサ出力に対応する信号で減算計数し所定
値に達すると上記マイクロプロセツサシステムに
割込信号を与えるカウンタ手段とを備えた サーボ系の制御指令回路において、 前記入力する手段は前記マイクロプロセツサシ
ステムから到来する指令信号設定パルスにより上
記回転量の蓄積を行う指令バツフアレジスタ22
を含み、 前記出力する手段はこの指令バツフアレジスタ
の出力を入力とし前記割込信号の発生に伴いその
蓄積内容を出力する出力レジスタ21を含み、 前記カウンタ手段は、現時の回転量を設定し減
算計数を実行する第一のカウンタ19−1の他
に、前記マイクロプロセツサシステムから入力す
る次の回転量を設定して待機する第二のカウンタ
19−2を備え、前記割込信号の発生に同期して
この二つのカウンタを切り換える手段20を含む ことを特徴とするサーボ系の制御指令回路。[Scope of Claims] 1. Between a microprocessor system 1 that controls the rotation of the servo motor and a servo motor control unit 3 that is connected to the servo motor and applies rotational current to the servo motor and captures the rotation sensor output of the servo motor. means for inputting the amount of rotation of the servo motor as a digital signal from the microprocessor system, means for outputting this digital signal to the servo motor control section, and means for setting the amount of rotation to the output of the rotation sensor. In a control command circuit for a servo system, the control command circuit includes a counter means that performs subtraction counting with a corresponding signal and provides an interrupt signal to the microprocessor system when a predetermined value is reached, wherein the input means comes from the microprocessor system. A command buffer register 22 that accumulates the amount of rotation according to the command signal setting pulse.
The output means includes an output register 21 that receives the output of the command buffer register and outputs the accumulated content upon generation of the interrupt signal, and the counter means sets the current rotation amount. In addition to the first counter 19-1 that performs subtraction counting, a second counter 19-2 is provided that waits after setting the next rotation amount input from the microprocessor system, and generates the interrupt signal. A servo system control command circuit comprising means 20 for switching these two counters in synchronization with the servo system.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP16260681A JPS5864507A (en) | 1981-10-14 | 1981-10-14 | Control commanding circuit for servo system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP16260681A JPS5864507A (en) | 1981-10-14 | 1981-10-14 | Control commanding circuit for servo system |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS5864507A JPS5864507A (en) | 1983-04-16 |
| JPS6248843B2 true JPS6248843B2 (en) | 1987-10-15 |
Family
ID=15757784
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP16260681A Granted JPS5864507A (en) | 1981-10-14 | 1981-10-14 | Control commanding circuit for servo system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS5864507A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH02461U (en) * | 1988-06-14 | 1990-01-05 |
-
1981
- 1981-10-14 JP JP16260681A patent/JPS5864507A/en active Granted
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH02461U (en) * | 1988-06-14 | 1990-01-05 |
Also Published As
| Publication number | Publication date |
|---|---|
| JPS5864507A (en) | 1983-04-16 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPH08263104A (en) | Controller and control system | |
| JPS6248843B2 (en) | ||
| JPS62262685A (en) | Speed control system for ac motor | |
| JPH0758892B2 (en) | Digital pulse width modulation circuit | |
| JP3289921B2 (en) | Programmable controller | |
| JPH0580604B2 (en) | ||
| JPH05328734A (en) | Microcomputer having built-in motor control circuit | |
| JPH0753312Y2 (en) | Pulse counting device | |
| JPH01216626A (en) | Pulse count circuit | |
| KR940022059A (en) | Encoder Output Error Compensation Method | |
| JPH065175B2 (en) | Absolute type encoder | |
| JP2754654B2 (en) | Microcomputer output control circuit | |
| JPH07506204A (en) | Processor operating state transition controller from current state to subsequent state | |
| JPS6269352A (en) | microprocessor | |
| JP2621477B2 (en) | In-circuit emulator | |
| JPS58157386A (en) | Plural servo motor simultaneous control system | |
| RU1818674C (en) | Three-phase induction motor control device | |
| JP2648003B2 (en) | Timer counter | |
| JPH04281396A (en) | Control device for stepping motor | |
| JP2509464Y2 (en) | D / A conversion circuit | |
| JPS6269350A (en) | microprocessor | |
| JPH04326426A (en) | Instruction decoding circuit | |
| JPS6022666A (en) | Rotary encoder device | |
| JPS6136646B2 (en) | ||
| JPH08106447A (en) | Microcomputer |