JP3266675B2 - controller - Google Patents

controller

Info

Publication number
JP3266675B2
JP3266675B2 JP34227092A JP34227092A JP3266675B2 JP 3266675 B2 JP3266675 B2 JP 3266675B2 JP 34227092 A JP34227092 A JP 34227092A JP 34227092 A JP34227092 A JP 34227092A JP 3266675 B2 JP3266675 B2 JP 3266675B2
Authority
JP
Japan
Prior art keywords
circuit
signal
output
pulse
switching
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 - Fee Related
Application number
JP34227092A
Other languages
Japanese (ja)
Other versions
JPH06197577A (en
Inventor
昌彦 北村
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.)
Panasonic Electric Works Co Ltd
Original Assignee
Matsushita Electric 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 Matsushita Electric Works Ltd filed Critical Matsushita Electric Works Ltd
Priority to JP34227092A priority Critical patent/JP3266675B2/en
Publication of JPH06197577A publication Critical patent/JPH06197577A/en
Application granted granted Critical
Publication of JP3266675B2 publication Critical patent/JP3266675B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Control Of Stepping Motors (AREA)
  • Control Of Electric Motors In General (AREA)

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、モータの回転の制御
行うコントローラに関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a controller for controlling rotation of a motor .

【0002】[0002]

【従来の技術】パルス信号を出力して位置制御を行うコ
ントローラには、図5に示すようにプログラムで設定さ
れた数だけパルス信号をモータ駆動回路2にコントロー
ラ1より送り、ステップモータのようなモータ3を駆動
する方式のものと、図6に示すようにコントローラ1か
らパルス信号をモータ駆動回路2に送り、モータ3を駆
動するとともにモータ3の回転をエンコーダ4で検知し
てエンコーダ4から回転に対応して出力されるパルス信
号をコントローラ1でカウントして所定値に達したとき
にモータ駆動回路1へのパルス信号の出力を停止させる
フィードバック制御を行う方式のものがある。
2. Description of the Related Art As shown in FIG. 5 , a controller for outputting a pulse signal to a motor drive circuit 2 sends a pulse signal to a motor drive circuit 2 by a number of times set by a program . 6 , a pulse signal is sent from the controller 1 to the motor drive circuit 2 to drive the motor 3 and the rotation of the motor 3 is detected by the encoder 4 to rotate the motor 3 as shown in FIG. There is a method of performing feedback control for stopping the output of the pulse signal to the motor drive circuit 1 when the controller 1 counts the pulse signal output in response to a predetermined value and reaches a predetermined value.

【0003】[0003]

【発明が解決しようとする課題】ところで上記の図5
方式のコントローラ1では、図6に示すフィードバック
制御ができず、また図6のコントローラ1ではパルス信
号の出力と、外部からのパルス信号をカウントするカウ
ンタとが独立しているため、フィードバック制御を行な
わない場合でも外部で配線をする必要があった。
In [0005] Incidentally controller 1 scheme described above in FIG. 5, can not feedback control shown in FIG. 6, also the output of the controller 1, the pulse signal in FIG. 6, a pulse signal from the outside Since the counter for counting is independent, it is necessary to perform wiring externally even when feedback control is not performed.

【0004】また上記のようなコントローラ1からのパ
ルス信号でモータ3を駆動制御する場合、モータ3の回
転方向を切り換える場合があるが、従来のモータ駆動回
路1には、正転用のパルス信号と、反転用のパルス信号
とを夫々別個の入力端を介して入力し、入力するパルス
信号によって正転と反転とを切り換えるものと、パルス
信号を取り込むとともに、コントローラ2からの正転/
反転信号を取り込み、この正転/反転信号に基づいて正
転と反転とを切り換えるものとがあったため、夫々に対
応するコントローラが必要であった。
When the motor 3 is driven and controlled by a pulse signal from the controller 1 as described above, the rotation direction of the motor 3 may be switched. However, the conventional motor drive circuit 1 includes a pulse signal for normal rotation and a pulse signal for normal rotation. , A pulse signal for inversion, and a pulse signal for inversion, which are switched between normal rotation and inversion by the input pulse signal.
In some cases, an inversion signal is fetched, and switching between normal rotation and inversion is performed based on the normal rotation / inversion signal.

【0005】このように従来のコントローラは制御方式
や、接続するモータ駆動回路の方式等に応じたものを用
いる必要があるという問題があった。
As described above, the conventional controller has a problem that it is necessary to use a controller according to a control system, a system of a motor drive circuit to be connected, and the like.

【0006】本発明は、上述の点に鑑みて為されたもの
、モータ駆動回路の正転、反転の切換えに対する方式
の違いがあっても、夫々の方式に対応することができる
コントローラを提供するにある。
The present invention has been made in view of the above points, and has a method for switching between normal rotation and reverse rotation of a motor drive circuit.
An object of the present invention is to provide a controller that can cope with each system even if there is a difference .

【0007】[0007]

【課題を解決するための手段】上述の目的を達成するた
めに、請求項1記載の発明は、プログラムで設定された
周波数のパルス信号を発生させるパルス発生回路と、正
転、反転用のパルス信号を別個に出力する出力モードと
パルス信号とそのパルス信号が正転/反転を示す信号と
を出力する出力モードとを切り換える切換回路と、パル
ス発生回路、切換回路をプログラムに設定されたパラメ
ータに基づいて制御するとともに、正転/反転を示す信
号を作成する制御回路と、切換回路の切り換え動作に応
じてパルス発生回路のパルス信号及び制御回路の正転/
反転を示す信号を外部へ出力する出力回路を備えたもの
である。
To achieve the above object, according to the Invention The invention of Claim 1, wherein includes a pulse generating circuit for generating a pulse signal having a frequency set by the program, the normal rotation, the inverting A switching circuit for switching between an output mode for separately outputting a pulse signal and an output mode for outputting a pulse signal and a signal indicating that the pulse signal indicates normal rotation / reversal; a pulse generation circuit; And a control circuit for generating a signal indicating normal rotation / reversal, a pulse signal of a pulse generation circuit and a normal rotation /
An output circuit for outputting a signal indicating inversion to the outside is provided.

【0008】[0008]

【作用】請求項1記載の発明によれば、モータ駆動回路
の正転、反転の切換えに対する方式の違いがあっても、
方式の違いをプログラムのパラメータで設定するだけ
で、出力する信号を夫々の方式に併せて切換えることが
できる。
SUMMARY OF According to the first aspect of the invention, the forward rotation of the motors driving circuit, even scheme difference in respect switching of inversion,
The signal to be output can be switched according to each method only by setting the difference of the method by the parameter of the program.

【0009】[0009]

【実施例】以下本発明を実施例により説明する。The present invention will be described below with reference to examples.

【0010】本実施例は、図1に示すようにパルス信号
を作成するパルス発生回路11と、2つの出力端を持
ち、制御信号Cと信号Bとに基づいて2つの出力端Y
0’,Y1’から出力する信号を切換選択する切換回路
13と、切換回路13の出力端Y0’,Y1’から出力
される信号を夫々に対応する出力端Y0、Y1より外部
のモータ駆動回路等に出力するI/Fとしての出力回路
10と、メモリ16に格納されたプログラムに沿ってパ
ルス発生回路11を制御するとともに、正転/反転を指
定する信号をプログラムに設定されたパラメータに基づ
いて作成して切換回路13に出力するとともに切換回路
13を制御するCPU15と、メモリ16とから成る。
This embodiment has a pulse generating circuit 11 for generating a pulse signal as shown in FIG. 1 and two output terminals, and two output terminals Y based on a control signal C and a signal B.
A switching circuit 13 for switching and selecting signals output from 0 'and Y1', and a motor driving circuit external to output terminals Y0 'and Y1' of the switching circuit 13 from corresponding output terminals Y0 and Y1. And the like, and an output circuit 10 as an I / F for controlling the pulse generation circuit 11 in accordance with a program stored in a memory 16 and a signal for designating normal rotation / inversion based on parameters set in the program. The CPU 15 controls the switching circuit 13 and outputs it to the switching circuit 13.

【0011】切換回路13は図2に示す論理回路から構
成され、CPU15からの制御信号C及び信号Bにより
出力端Y0’,Y1’より出力する信号を切り換えるよ
うになっており、制御信号Cがオンのときには信号Aを
出力端Y1’に出力され、信号Bを出力端Y0’に出力
し、逆に制御信号Cがオフのときには信号Bがオフであ
れば、信号Aを出力端Y1’に出力し、信号Bがオンで
あれば信号AをY0’に出力する。
The switching circuit 13 is composed of the logic circuit shown in FIG. 2 , and switches signals output from the output terminals Y0 'and Y1' according to a control signal C and a signal B from the CPU 15. When ON, the signal A is output to the output terminal Y1 ', and the signal B is output to the output terminal Y0'. Conversely, when the control signal C is OFF, if the signal B is OFF, the signal A is output to the output terminal Y1 '. If the signal B is on, the signal A is output to Y0 '.

【0012】ここで信号Aはパルス発生回路11から出
力されるパルス信号で、信号BはCPU15から出力さ
れる正転/反転を指示する信号である。而して本実施例
では、メモリ16に格納されるプログラムとして図3
示すようなプログラムを格納して、パラメータエリアに
制御信号Cをオン/オフするパラメータを書き込めば、
CPU15はこのパラメータに基づいて制御信号を作成
するとともに、出力端Y0、Y1より出力する信号のモ
ードを設定することができる。
Here, the signal A is a pulse signal output from the pulse generation circuit 11, and the signal B is a signal output from the CPU 15 for instructing normal rotation / inversion. In this embodiment, a program as shown in FIG. 3 is stored as a program stored in the memory 16 and a parameter for turning on / off the control signal C is written in the parameter area.
The CPU 15 can create a control signal based on these parameters and set the mode of the signal output from the output terminals Y0 and Y1.

【0013】つまり図3に示すプログラムは、出力端Y
0の信号がオフで正転、オンで反転を示す信号で、出力
端Y1からはパルス信号を発生するプログラムであり、
パラメータが0のとき、制御信号Cをオンし、パラメー
タが1のとき制御信号Cをオフするプログラムである。
而して初期設定において、接続するモータ駆動回路が正
転/反転を指示する信号で、正転/反転を切り換えるも
のであれば、パラメータを0とし、或いはモータ駆動回
路が正転、反転の夫々に対応するパルス信号を受けるこ
とにより正転、反転を切り換える場合には、パラメータ
を1とする。
That is, the program shown in FIG.
0 is a signal indicating normal rotation when off, and a signal indicating reverse when on, and is a program for generating a pulse signal from the output terminal Y1.
The program turns on the control signal C when the parameter is 0, and turns off the control signal C when the parameter is 1.
In the initial setting, if the motor drive circuit to be connected is a signal for instructing normal rotation / reversal and switches between normal rotation / reversal, the parameter is set to 0, or the motor drive circuit is switched to normal rotation / reversal, respectively. When switching between normal rotation and reverse rotation by receiving a pulse signal corresponding to

【0014】パラメータが0の場合には、CPU15は
制御信号Cをオンするため、図4(c)に示すように切
換回路13の出力端Y1’の出力は図4(a)に示すパ
ルス発生回路11のパルス信号Aとなり、図4(d)に
示すように出力端Y0’の出力は図4(b)に示すCP
U15が出力する正転/反転を指示する信号Bとなる。
つまり出力回路10の出力端Y1、Y0からはこの切換
回路13の出力端Y1,Y0の出力信号が出力すること
になる。
[0014] If the parameter is 0, since CPU15 is to turn on the control signal C, the output of FIG. 4 the output terminal Y1 of the switching circuit 13 as shown in (c) 'the pulse generator shown in FIG. 4 (a) CP pulse signal a next circuit 11, the output shown in FIG. 4 (d) to an output terminal Y0 as shown 'is shown in FIG. 4 (b)
A signal B is output from U15 for instructing normal rotation / inversion.
That is, output signals of the output terminals Y1 and Y0 of the switching circuit 13 are output from the output terminals Y1 and Y0 of the output circuit 10.

【0015】またパラメータが1の場合には、CPU1
5は制御信号Cをオフするため、CPU15から出力さ
れる正転/反転を指示する信号Bがオン、つまり正転で
あれば、図4(e)に示すように切換回路13の出力端
Y1’の出力は図4(a)に示すパルス信号Aとなり、
出力端Y0’の出力は図4(f)に示すようにオフす
る。逆にCPU15から出力される正転/反転を指示す
る信号Bがオフ、つまり逆転であれば、図4(e)に示
すように切換回路13の出力端Y1’の出力はオフし、
図4(f)に示すように出力端Y0’の出力はパルス信
号Aとなる。
If the parameter is 1, the CPU 1
5 turns off the control signal C, and when the signal B for instructing normal rotation / inversion output from the CPU 15 is on, that is, normal rotation, the output terminal Y1 of the switching circuit 13 as shown in FIG. 'Becomes the pulse signal A shown in FIG.
The output of the output terminal Y0 'is turned off as shown in FIG. 4 (f). Conversely, if the signal B for instructing normal rotation / reversal output from the CPU 15 is off, that is, reverse rotation, the output of the output terminal Y1 'of the switching circuit 13 is turned off as shown in FIG.
As shown in FIG. 4F, the output of the output terminal Y0 ′ becomes a pulse signal A.

【0016】そして出力回路10の出力端Y1、Y0は
この切換回路13の出力端Y1,Y0の出力信号が出力
することになる。
The output signals of the output terminals Y1 and Y0 of the switching circuit 13 are output from the output terminals Y1 and Y0 of the output circuit 10.

【0017】[0017]

【発明の効果】請求項1記載の発明は、プログラムで設
定された周波数のパルス信号を発生させるパルス発生回
路と、正転、反転用のパルス信号を別個に出力する出力
モードとパルス信号とそのパルス信号が正転/反転を示
す信号とを出力する出力モードとを切り換える切換回路
と、パルス発生回路、切換回路をプログラムに設定され
たパラメータに基づいて制御するとともに、正転/反転
を示す信号を作成する制御回路と、切換回路の切り換え
動作に応じてパルス発生回路のパルス信号及び制御回路
の正転/反転を示す信号を外部へ出力する出力回路を備
えたので、モータ駆動回路の正転、反転の切換えに対す
る方式の違いがあっても、方式の違いをプログラムのパ
ラメータで設定するだけで、出力する信号を夫々の方式
に併せて切換することができ、モータ駆動回路の正転、
反転の切換えに対する方式に対して対応することができ
るという効果がある。
The invention of claim 1, wherein according to the present invention includes a pulse generating circuit for generating a pulse signal having a frequency set by the program, forward, and output mode and a pulse signal to separately output a pulse signal for inverting A switching circuit for switching between an output mode in which the pulse signal outputs a signal indicating normal rotation / reversal, a pulse generation circuit, and a switching circuit for controlling the switching circuit based on parameters set in a program and indicating normal rotation / reversal; A control circuit for generating a signal; and an output circuit for outputting a pulse signal of a pulse generation circuit and a signal indicating forward / reverse rotation of the control circuit to the outside in accordance with the switching operation of the switching circuit. Even if there is a difference in the method for switching between inversion and inversion, the signal to be output is switched in accordance with each method only by setting the difference in the method with the program parameter. Door can be, the forward rotation of the motor drive circuit,
There is an effect that it is possible to cope with a method for switching the inversion.

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

【図1】本発明の実施例1を示す回路ブロック図であ
る。
FIG. 1 is a circuit block diagram showing a first embodiment of the present invention.

【図2】同上の切換回路の回路図である。FIG. 2 is a circuit diagram of a switching circuit according to the first embodiment;

【図3】同上のプログラムを示すラダー図である。FIG. 3 is a ladder diagram showing a program of the above.

【図4】同上の動作説明用タイミングチャートである。FIG. 4 is a timing chart for explaining the above operation.

【図5】従来例を説明するための使用例の回路ブロック
図である。
FIG. 5 is a circuit block diagram of a usage example for explaining a conventional example.

【図6】別の従来例を説明するための使用例の回路ブロ
ック図である。
FIG. 6 is a circuit block diagram of a usage example for explaining another conventional example.

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

1 コントローラ 10 出力回路 11 パルス発生回路 13 切換回 15 CPU 16 メモリ1 the controller 10 output circuit 11 the pulse generating circuit 13 switching circuit 15 CPU 16 Memory

フロントページの続き (58)調査した分野(Int.Cl.7,DB名) H02P 5/00 H02P 8/00 Continuation of front page (58) Field surveyed (Int.Cl. 7 , DB name) H02P 5/00 H02P 8/00

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】プログラムで設定された周波数のパルス信
号を発生させるパルス発生回路と、正転、反転用のパル
ス信号を別個に出力する出力モードとパルス信号とその
パルス信号が正転/反転を示す信号とを出力する出力モ
ードとを切り換える切換回路と、パルス発生回路、切換
回路をプログラムに設定されたパラメータに基づいて制
御するとともに、正転/反転を示す信号を作成する制御
回路と、切換回路の切り換え動作に応じてパルス発生回
路のパルス信号及び制御回路の正転/反転を示す信号を
外部へ出力する出力回路を備えたことを特徴とするコン
トローラ
1. A pulse signal having a frequency set by a program.
Pulse generation circuit for generating a signal
Output signal, pulse signal and its output
An output module that outputs a pulse signal indicating forward / reverse rotation
Switching circuit to switch the mode, pulse generation circuit, switching
The circuit is controlled based on the parameters set in the program.
Control to generate a signal indicating forward / reverse rotation
Circuit and the pulse generation time according to the switching operation of the switching circuit.
Pulse signal of the road and a signal indicating forward / reverse of the control circuit
A controller comprising an output circuit for outputting to the outside .
JP34227092A 1992-12-22 1992-12-22 controller Expired - Fee Related JP3266675B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP34227092A JP3266675B2 (en) 1992-12-22 1992-12-22 controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP34227092A JP3266675B2 (en) 1992-12-22 1992-12-22 controller

Publications (2)

Publication Number Publication Date
JPH06197577A JPH06197577A (en) 1994-07-15
JP3266675B2 true JP3266675B2 (en) 2002-03-18

Family

ID=18352423

Family Applications (1)

Application Number Title Priority Date Filing Date
JP34227092A Expired - Fee Related JP3266675B2 (en) 1992-12-22 1992-12-22 controller

Country Status (1)

Country Link
JP (1) JP3266675B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4703846B2 (en) * 2000-12-28 2011-06-15 株式会社エスジー Motor driver for continuous casting machine
JP5327441B2 (en) * 2008-12-12 2013-10-30 オムロン株式会社 Pulse output device

Also Published As

Publication number Publication date
JPH06197577A (en) 1994-07-15

Similar Documents

Publication Publication Date Title
JPH05176547A (en) Microcomputer
JPH0426391A (en) Controller of brushless motor
JP3677497B2 (en) Pulse width modulation waveform generator and three-phase pulse width modulation waveform generator
US6002218A (en) Control device for air conditioner
JPH05328789A (en) Motor driver
US5942865A (en) Driving apparatus of a switched reluctance motor
JP3266675B2 (en) controller
US5550451A (en) Microcomputer with built-in motor control circuit
JP2637564B2 (en) Microcomputer with built-in motor controller circuit
US5687277A (en) Motor drive control device which uses pulse width modulation to control the speed of a motor
JP2676058B2 (en) Motor drive circuit
JP2005065486A5 (en)
US20030184272A1 (en) Method and control unit for driving a control circuit
JP3546449B2 (en) Method and apparatus for switching pulse period of pulse generating circuit
KR0165451B1 (en) Position controlling signal generating circuit
JP2818986B2 (en) Microcomputer with built-in motor control circuit
JP3456107B2 (en) I / O module
JPH1023779A (en) Voltage driven transistor drive power supply apparatus
JPH0775359A (en) Device for driving motor
JP2924347B2 (en) DC motor start / stop device
JP2722912B2 (en) Alarm signal adjustment circuit
JPH0447553B2 (en)
JPS6321198Y2 (en)
SU1476589A1 (en) Method and apparatus for controlling induction motor with symmetric power switch in phases of stator winding
JP3015398B2 (en) Antenna drive

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20011218

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

Free format text: PAYMENT UNTIL: 20080111

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20090111

Year of fee payment: 7

LAPS Cancellation because of no payment of annual fees