JPH06197577A - Controller - Google Patents

Controller

Info

Publication number
JPH06197577A
JPH06197577A JP4342270A JP34227092A JPH06197577A JP H06197577 A JPH06197577 A JP H06197577A JP 4342270 A JP4342270 A JP 4342270A JP 34227092 A JP34227092 A JP 34227092A JP H06197577 A JPH06197577 A JP H06197577A
Authority
JP
Japan
Prior art keywords
circuit
pulse
output
signal
pulse signal
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
JP4342270A
Other languages
Japanese (ja)
Other versions
JP3266675B2 (en
Inventor
Masahiko Kitamura
昌彦 北村
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)

Abstract

PURPOSE:To enable a controller to cope with various kinds of systems with the same specification. CONSTITUTION:A CPU 15 designates the frequency of a pulse to a pulse generation circuit 11 and, at the same time, instructs the circuit 11 to generate the pulse in accordance with a program stored in a memory 16. Upon receiving the instruction, the circuit 11 outputs pulse signals of the instructed frequency to the outside through an output circuit 10. A counter circuit 14 counts signals inputted through a switching circuit 13 and returns a count-up signal to the CPU 15 when the count value of the signals reaches a value set in the program. The CPU 15 controls the circuit 11 so as to stop the output of the pulse signals or change the frequency of the pulse signals. The switching circuit 13 switches the signals inputted to the counter circuit 14 to the pulse signals from the circuit 11 or signals from the outside.

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 position control and speed control.

【0002】[0002]

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

【0003】[0003]

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

【0004】また上記のようなコントローラ1からのパ
ルス信号でモータ3を駆動制御する場合、モータ3の回
転方向を切り換える場合があるが、従来のモータ駆動回
路1には、正転用のパルス信号と、反転用のパルス信号
とを夫々別個の入力端を介して入力し、入力するパルス
信号によって正転と反転とを切り換えるものと、パルス
信号を取り込むとともに、コントローラ2からの正転/
反転信号を取り込み、この正転/反転信号に基づいて正
転と反転とを切り換えるものとがあったため、夫々に対
応するコントローラが必要であった。
When the motor 3 is driven and controlled by the 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 has a pulse signal for forward rotation. , Pulse signals for inversion are input via separate input terminals, respectively, and normal rotation and inversion are switched depending on the input pulse signal, and the pulse signal is taken in and
Since there is a case where an inversion signal is taken in and switching between normal rotation and inversion is performed based on this normal rotation / inversion signal, a controller corresponding to each is required.

【0005】このように従来のコントローラは制御方式
や、接続するモータ駆動回路の方式等に応じたものを用
いる必要があるという問題があった。本発明は、上述の
点に鑑みて為されたもので、同じ仕様のもので、各種方
式に対応することができるコントローラを提供するにあ
る。
As described above, the conventional controller has a problem that it is necessary to use a controller according to the control system and the system of the motor drive circuit to be connected. The present invention has been made in view of the above points, and it is an object of the present invention to provide a controller having the same specifications and capable of supporting various systems.

【0006】[0006]

【課題を解決するための手段】上述の目的を達成するた
めに、請求項1記載の発明は、センサ等の入力機器のオ
ン/オフ信号やパルス信号を取り込む入力回路と、オン
/オフ信号やパルス信号を外部へ出力する出力回路と、
プログラムで設定された周波数のパルス信号を発生させ
て出力回路に出力するパルス発生回路と、入力回路を通
じて取り込む外部からのパルス信号又はパルス発生回路
から出力するパルス信号を選択する切換回路と、選択さ
れたパルス信号を計数するカウンタ回路とを備えるとと
もに、プログラムに設定したパラメータに基づいて切換
回路を制御し、且つカウンタ回路のカウント値に基づい
てパルス発生回路のパルス信号の出力を制御する制御回
路を備えたものである。
In order to achieve the above-mentioned object, an invention according to claim 1 provides an input circuit for taking in an on / off signal and a pulse signal of an input device such as a sensor, an on / off signal and an on / off signal. An output circuit that outputs a pulse signal to the outside,
A pulse generation circuit that generates a pulse signal of a frequency set by the program and outputs it to the output circuit, a switching circuit that selects a pulse signal from the outside that is taken in through the input circuit or a pulse signal that is output from the pulse generation circuit, and A control circuit for controlling the switching circuit based on the parameter set in the program and controlling the output of the pulse signal of the pulse generation circuit based on the count value of the counter circuit. Be prepared.

【0007】請求項2記載の発明は、プログラムで設定
された周波数のパルス信号を発生させるパルス発生回路
と、正転、反転用のパルス信号を別個に出力する出力モ
ードとパルス信号とそのパルス信号が正転/反転を示す
信号とを出力する出力モードとを切り換える切換回路
と、パルス発生回路、切換回路をプログラムに設定され
たパラメータに基づいて制御するとともに、正転/反転
を示す信号を作成する制御回路と、切換回路の切り換え
動作に応じてパルス発生回路のパルス信号及び制御回路
の正転/反転を示す信号を外部へ出力する出力回路を備
えたものである。
According to a second aspect of the present invention, there is provided a pulse generation circuit for generating a pulse signal having a frequency set by a program, an output mode for separately outputting a pulse signal for forward rotation and a pulse signal for inversion, and the pulse signal and its pulse signal. Generates a signal indicating forward / reverse, while controlling the switching circuit for switching between the output mode for outputting a signal indicating forward / reverse and the pulse generation circuit and the switching circuit based on the parameters set in the program. And a control circuit and an output circuit for outputting a pulse signal of the pulse generating circuit and a signal indicating normal / inversion of the control circuit to the outside according to the switching operation of the switching circuit.

【0008】[0008]

【作用】請求項1記載の発明によれば、フィードバック
を行うか否かをプログラムのパラメータで設定するだけ
で、フィードバックを行う方式と、フィードバックを行
わない方式とに対応することができ、しかもフィードバ
ックを行わない場合には外部配線が必要ない。
According to the first aspect of the present invention, it is possible to deal with the feedback method and the non-feedback method only by setting whether or not the feedback is performed by the parameter of the program. If not done, no external wiring is required.

【0009】請求項2記載の発明によれば、モータ駆動
回路の正転、反転の切換えに対する方式の違いがあって
も、方式の違いをプログラムのパラメータで設定するだ
けで、出力する信号を夫々の方式に併せて切換えること
ができる。
According to the second aspect of the present invention, even if there is a difference in the method for switching the motor drive circuit between normal rotation and reverse rotation, the signals to be output can be respectively set only by setting the difference in the method with a program parameter. It can be switched according to the method.

【0010】[0010]

【実施例】以下本発明を実施例により説明する。 (実施例1)本実施例は請求項1記載の発明に対応する
ものであり、コントローラ1は図1に示す構成となって
いる。
EXAMPLES The present invention will be described below with reference to examples. (Embodiment 1) This embodiment corresponds to the invention described in claim 1, and the controller 1 has the configuration shown in FIG.

【0011】つまりモータ駆動回路等の外部機器へ速度
制御や、位置制御のためのパルス信号或いはセンサ等の
入力機器のオン/オフ信号を外部へ出力するためのI/
Fとしての出力回路10と、パルス信号を発生するため
のパルス発生回路11と、センサ等の入力機器のオン/
オフ信号やパルス信号を取り込むI/Fとしての入力回
路12と、上記パルス発生回路11が出力するパルス信
号と入力回路12を通じて取り込む外部のパルス信号或
いはセンサ等の入力機器のオン/オフ信号とを切換選択
する切換回路13と、この切換回路13で選択された信
号をカウントするカウンタ回路14と、パルス発生回路
11、切換回路13をメモリ16に格納されたプログラ
ム及びカウンタ回路14のカウント値に基づいて制御す
る制御回路を構成するCPU15とからなる。
That is, I / I for outputting a pulse signal for speed control or position control to an external device such as a motor drive circuit or an ON / OFF signal of an input device such as a sensor to the outside.
Output circuit 10 as F, pulse generation circuit 11 for generating a pulse signal, ON / OFF of an input device such as a sensor
An input circuit 12 as an I / F that takes in an off signal and a pulse signal, a pulse signal output from the pulse generation circuit 11 and an external pulse signal that is taken in through the input circuit 12 or an on / off signal of an input device such as a sensor A switching circuit 13 for switching and selecting, a counter circuit 14 for counting the signals selected by the switching circuit 13, a pulse generating circuit 11, a program stored in the memory 16 for the switching circuit 13 and a count value of the counter circuit 14 And a CPU 15 which constitutes a control circuit for controlling.

【0012】本実施例の基本的な動作は次の通りであ
る。まずCPU15はメモリ16に格納されたプログラ
ムに従って、パルス発生回路11にパルス周波数を指示
するとともにパルス発生を指示する。これらの指示によ
りパルス発生回路11は指示された周波数のパルス信号
を出力回路10を介して外部へ出力する。カウンタ回路
14は切換回路13を介して入力する信号をカウント
し、プログラムで設定されたカウント値をカウントする
とカウントアップ信号をCPU15へ返す。CPU15
はこのカウントアップ信号が返ってくるとパルス発生回
路11に対してパルス信号出力を止めたり、パルス周波
数を変える等の制御処理を行う。
The basic operation of this embodiment is as follows. First, the CPU 15 instructs a pulse frequency and a pulse generation to the pulse generation circuit 11 according to a program stored in the memory 16. According to these instructions, the pulse generation circuit 11 outputs the pulse signal of the designated frequency to the outside through the output circuit 10. The counter circuit 14 counts the signals input via the switching circuit 13, and returns a count-up signal to the CPU 15 when counting the count value set by the program. CPU15
When the count-up signal is returned, the pulse generator circuit 11 performs control processing such as stopping the pulse signal output and changing the pulse frequency.

【0013】ここで制御方式に対応するパラメータをプ
ログラムに設定することにより、CPU15はこのパラ
メータに沿って切換回路13を制御し、カウンタ回路1
4に入力する信号をパルス発生回路11が出力するパル
ス信号か、あるいは入力回路12を介して取り込んだ外
部の信号かの何れかを選択する。ここで図6に示すフィ
ードバックを行わない制御のパラメータがプログラムに
設定されている場合には、カウンタ回路14に内部配線
を通じてパルス発生回路11のパルス信号を与えるよう
に切換回路13をCPU15は制御する。
Here, by setting a parameter corresponding to the control method in the program, the CPU 15 controls the switching circuit 13 according to this parameter, and the counter circuit 1
Either the pulse signal output from the pulse generation circuit 11 or the external signal input via the input circuit 12 is selected as the signal input to the signal line 4. If the control parameters shown in FIG. 6 that do not perform feedback are set in the program, the CPU 15 controls the switching circuit 13 so as to give the pulse signal of the pulse generation circuit 11 to the counter circuit 14 through the internal wiring. .

【0014】また図7に示すフィードバックを行う制御
のパラメータがプログラムに設定されている場合には、
カウンタ回路14に入力回路12を通じて外部の信号を
与えるように切換回路13をCPU15は制御する。こ
のようにして本実施例のコントローラは異なる制御方式
に対応させることができるのである。
When the feedback control parameters shown in FIG. 7 are set in the program,
The CPU 15 controls the switching circuit 13 so as to apply an external signal to the counter circuit 14 through the input circuit 12. In this way, the controller of this embodiment can be adapted to different control methods.

【0015】(実施例2)本実施例は、請求項2記載の
発明に対応するものであり、図2は本実施例のコントロ
ーラ1の構成を示す。つまり本実施例では、パルス信号
を作成するパルス発生回路11と、2つの出力端を持
ち、制御信号Cと信号Bとに基づいて2つの出力端Y
0’,Y1’から出力する信号を切換選択する切換回路
13と、切換回路13の出力端Y0’,Y1’から出力
される信号を夫々に対応する出力端Y0、Y1より外部
のモータ駆動回路等に出力するI/Fとしての出力回路
10と、メモリ16に格納されたプログラムに沿ってパ
ルス発生回路11を制御するとともに、正転/反転を指
定する信号をプログラムに設定されたパラメータに基づ
いて作成して切換回路13に出力するとともに切換回路
13を制御するCPU15と、メモリ16とから成る。
(Embodiment 2) This embodiment corresponds to the invention described in claim 2, and FIG. 2 shows the configuration of the controller 1 of this embodiment. That is, in this embodiment, the pulse generator circuit 11 for generating a pulse signal and the two output terminals have two output terminals Y based on the control signal C and the signal B.
A switching circuit 13 for switching and selecting signals output from 0 ', Y1', and a motor drive circuit external to the output terminals Y0, Y1 corresponding to the output terminals Y0 ', Y1' of the switching circuit 13, respectively. And the output circuit 10 as an I / F for outputting to the pulse generator circuit 11 according to a program stored in the memory 16 and a signal designating normal / inversion based on a parameter set in the program. It is composed of a CPU 15 and a memory 16 which are created and output to the switching circuit 13 and control the switching circuit 13.

【0016】切換回路13は図3に示す論理回路から構
成され、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. 3, and switches the signals output from the output terminals Y0 'and Y1' according to the control signal C and the signal B from the CPU 15, and the control signal C is changed. When the control signal C is off, the signal A is output to the output end Y1 ', and when the control signal C is off, the signal A is output to the output end Y1'. If the signal B is on, the signal A is output to Y0 '.

【0017】ここで信号Aはパルス発生回路11から出
力されるパルス信号で、信号BはCPU15から出力さ
れる正転/反転を指示する信号である。而して本実施例
では、メモリ16に格納されるプログラムとして図4に
示すようなプログラムを格納して、パラメータエリアに
制御信号Cをオン/オフするパラメータを書き込めば、
CPU15はこのパラメータに基づいて制御信号を作成
するとともに、出力端Y0、Y1より出力する信号のモ
ードを設定することができる。
Here, the signal A is a pulse signal output from the pulse generating circuit 11, and the signal B is a signal output from the CPU 15 to instruct normal rotation / inversion. In this embodiment, therefore, if a program as shown in FIG. 4 is stored as the 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 this parameter and set the mode of the signal output from the output terminals Y0 and Y1.

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

【0019】パラメータが0の場合には、CPU15は
制御信号Cをオンするため、図5(c)に示すように切
換回路13の出力端Y1’の出力は図5(a)に示すパ
ルス発生回路11のパルス信号Aとなり、図5(d)に
示すように出力端Y0’の出力は図5(b)に示すCP
U15が出力する正転/反転を指示する信号Bとなる。
つまり出力回路10の出力端Y1、Y0からはこの切換
回路13の出力端Y1,Y0の出力信号が出力すること
になる。
When the parameter is 0, the CPU 15 turns on the control signal C, so that the output of the output terminal Y1 'of the switching circuit 13 as shown in FIG. 5C is generated by the pulse generation shown in FIG. 5A. It becomes the pulse signal A of the circuit 11, and as shown in FIG. 5 (d), the output of the output terminal Y0 'is CP shown in FIG. 5 (b).
The signal B is a signal B output by U15 for instructing normal rotation / inversion.
That is, the output terminals Y1 and Y0 of the output circuit 10 output the output signals of the output terminals Y1 and Y0 of the switching circuit 13.

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

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

【0022】[0022]

【発明の効果】請求項1記載の発明は、センサ等の入力
機器のオン/オフ信号やパルス信号を取り込む入力回路
と、オン/オフ信号やパルス信号を外部へ出力する出力
回路と、プログラムで設定された周波数のパルス信号を
発生させて出力回路に出力するパルス発生回路と、入力
回路を通じて取り込む外部からのパルス信号又はパルス
発生回路から出力するパルス信号を選択する切換回路
と、選択されたパルス信号を計数するカウンタ回路とを
備えるとともに、プログラムに設定したパラメータに基
づいて切換回路を制御し、且つカウンタ回路のカウント
値に基づいてパルス発生回路のパルス信号の出力を制御
する制御回路を備えたので、フィードバックを行うか否
かをプログラムのパラメータで設定するだけで、フィー
ドバックを行う方式と、フィードバックを行わない方式
とに対応することができ、しかもフィードバックを行わ
ない場合には外部配線が必要ないという効果がある。
According to the first aspect of the present invention, there is provided an input circuit for taking in ON / OFF signals and pulse signals of an input device such as a sensor, an output circuit for outputting ON / OFF signals and pulse signals to the outside, and a program. A pulse generation circuit that generates a pulse signal of a set frequency and outputs it to the output circuit, a switching circuit that selects a pulse signal from the outside that is taken in through the input circuit or a pulse signal that is output from the pulse generation circuit, and the selected pulse A counter circuit for counting signals, and a control circuit for controlling the switching circuit based on the parameters set in the program and controlling the output of the pulse signal of the pulse generating circuit based on the count value of the counter circuit. Therefore, it is a method to give feedback by simply setting whether to give feedback with a parameter of the program. It may correspond to a method that does not perform feedback, yet in case of no feedback has the effect that there is no need to external wiring.

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

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

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

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

【図3】同上の切換回路の回路図である。FIG. 3 is a circuit diagram of a switching circuit of the above.

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

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

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

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

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

1 コントローラ 10 出力回路 11 パルス発生回路 12 入力回路 13 切換回路 14 カウンタ回路 15 CPU 16 メモリ 1 Controller 10 Output Circuit 11 Pulse Generation Circuit 12 Input Circuit 13 Switching Circuit 14 Counter Circuit 15 CPU 16 Memory

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】センサ等の入力機器のオン/オフ信号やパ
ルス信号を取り込む入力回路と、オン/オフ信号やパル
ス信号を外部へ出力する出力回路と、プログラムで設定
された周波数のパルス信号を発生させて出力回路に出力
するパルス発生回路と、入力回路を通じて取り込む外部
からのパルス信号又はパルス発生回路から出力するパル
ス信号を選択する切換回路と、選択されたパルス信号を
計数するカウンタ回路とを備えるとともに、プログラム
に設定したパラメータに基づいて切換回路を制御し、且
つカウンタ回路のカウント値に基づいてパルス発生回路
のパルス信号の出力を制御する制御回路を備えたことを
特徴するコントローラ。
1. An input circuit for taking in on / off signals and pulse signals of an input device such as a sensor, an output circuit for outputting on / off signals and pulse signals to the outside, and a pulse signal of a frequency set by a program. A pulse generating circuit for generating and outputting to the output circuit, a switching circuit for selecting an external pulse signal taken in through the input circuit or a pulse signal output from the pulse generating circuit, and a counter circuit for counting the selected pulse signal. A controller comprising: a control circuit that includes a control circuit that controls a switching circuit based on a parameter set in a program and that controls a pulse signal output of a pulse generation circuit based on a count value of a counter circuit.
【請求項2】プログラムで設定された周波数のパルス信
号を発生させるパルス発生回路と、正転、反転用のパル
ス信号を別個に出力する出力モードとパルス信号とその
パルス信号が正転/反転を示す信号とを出力する出力モ
ードとを切り換える切換回路と、パルス発生回路、切換
回路をプログラムに設定されたパラメータに基づいて制
御するとともに、正転/反転を示す信号を作成する制御
回路と、切換回路の切り換え動作に応じてパルス発生回
路のパルス信号及び制御回路の正転/反転を示す信号を
外部へ出力する出力回路を備えたことを特徴とするコン
トローラ。
2. A pulse generation circuit for generating a pulse signal having a frequency set by a program, an output mode for separately outputting a pulse signal for forward rotation and inversion, and a pulse signal and a forward / reverse rotation of the pulse signal. A switching circuit for switching between an output mode for outputting a signal indicating and a switching circuit for controlling the pulse generating circuit and the switching circuit based on the parameters set in the program, and a switching circuit for generating a signal indicating forward / reverse. A controller comprising an output circuit for outputting a pulse signal of a pulse generation circuit and a signal indicating normal / inversion of a control circuit to the outside according to a switching operation of the circuit.
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 true JPH06197577A (en) 1994-07-15
JP3266675B2 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)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002199780A (en) * 2000-12-28 2002-07-12 S G:Kk Motor driver for continuous casting machine
JP2010140341A (en) * 2008-12-12 2010-06-24 Omron Corp Pulse output device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002199780A (en) * 2000-12-28 2002-07-12 S G:Kk Motor driver for continuous casting machine
JP4703846B2 (en) * 2000-12-28 2011-06-15 株式会社エスジー Motor driver for continuous casting machine
JP2010140341A (en) * 2008-12-12 2010-06-24 Omron Corp Pulse output device

Also Published As

Publication number Publication date
JP3266675B2 (en) 2002-03-18

Similar Documents

Publication Publication Date Title
JPH1042583A (en) Motor controller and traveling element driving device for image reader
JPH06197577A (en) Controller
JP2000166275A (en) Servo control device by detecting current ripple
US5687277A (en) Motor drive control device which uses pulse width modulation to control the speed of a motor
KR0165451B1 (en) Position controlling signal generating circuit
JP3289921B2 (en) Programmable controller
JPH0255590A (en) Motor controller
JP3015398B2 (en) Antenna drive
JP3546449B2 (en) Method and apparatus for switching pulse period of pulse generating circuit
JPS61251499A (en) Drive circuit for stepping motor
JPH063441Y2 (en) Differential output circuit for actuator drive
JPH0825261A (en) Control device for motor
JPH0654597A (en) Stepping motor controller
JP2695546B2 (en) Microcomputer built-in count source automatic change timer
JPS61221596A (en) Pulse motor control circuit
JPH0876852A (en) Cam device
JPH03234411A (en) Method and device for pulse control for nc electric discharge machine
JPH0246197A (en) Digital servo device
JPH01190125A (en) Counter unit
JPH10301631A (en) Generation circuit for position control signal
JPH0349582A (en) Drive controller
JPH0246196A (en) Stepping motor control system
JPH0819296A (en) Controller of motor
JPH10127095A (en) Pulse motor driver and lens position controller employing it
JPS63107499A (en) Controller for stepping motor

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