Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP3901136B2 - Pulse output control device - Google Patents
[go: Go Back, main page]

JP3901136B2 - Pulse output control device - Google Patents

Pulse output control device Download PDF

Info

Publication number
JP3901136B2
JP3901136B2 JP2003189490A JP2003189490A JP3901136B2 JP 3901136 B2 JP3901136 B2 JP 3901136B2 JP 2003189490 A JP2003189490 A JP 2003189490A JP 2003189490 A JP2003189490 A JP 2003189490A JP 3901136 B2 JP3901136 B2 JP 3901136B2
Authority
JP
Japan
Prior art keywords
pulse
total
output
control device
output control
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 - Lifetime
Application number
JP2003189490A
Other languages
Japanese (ja)
Other versions
JP2005026961A (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.)
Fuji Electric FA Components and Systems Co Ltd
Original Assignee
Fuji Electric FA Components and Systems Co 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 Fuji Electric FA Components and Systems Co Ltd filed Critical Fuji Electric FA Components and Systems Co Ltd
Priority to JP2003189490A priority Critical patent/JP3901136B2/en
Publication of JP2005026961A publication Critical patent/JP2005026961A/en
Application granted granted Critical
Publication of JP3901136B2 publication Critical patent/JP3901136B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Landscapes

  • Numerical Control (AREA)

Description

【0001】
【発明の属する技術分野】
この発明は、数値制御工作機械のパルス列サーボモータやパルスモータの駆動などに用いられるパルス(列)の出力を制御するパルス出力制御装置に関するもので、特に一回の連続したパルス出力動作中において、ハードウェアで装備した総出力パルス数を越える(無限にでも大きな)総数の出力パルスを管理しながら出力することができるようにしたパルス出力制御装置に関する。
なお、以下各図において同一の符号は同一もしくは相当部分を示す。
【0002】
【従来の技術】
図4はこの種のパルス出力制御装置01の要部の構成を示すブロック図である。同図においては、先ず、総パルス数書込みラッチ1に総パルス数設定値5を書き込むことにより、この総パルス数設定値5が総パルス数ダウンカウンタ2に初期値として設定される。
次に加減速パルス出力制御部3にパルス出力開始信号6を与えることで、加減速パルス出力制御部3からの出力パルス9の出力が開始される。この出力パルス9は総パルス数ダウンカウンタ2に入力されるほか、本例では図外のパルス列サーボモータに与えられ、このパルス列サーボモータに出力パルス9の数に相当する回転角分の回転(移動)を行わせる。
【0003】
なお、加減速パルス出力制御部3はパルス出力開始信号6の入力後、総パルス数ダウンカウンタ2の残りパルス数7を監視しながら、出力パルス9の周波数を予め設定されたパラメータ(加速度)で漸増する加速モード、同じく出力パルス9の周波数を予め設定された値に保つ定速モード、同じく出力パルス9の周波数を予め設定されたパラメータ(減速度、本例ではその絶対値を加速度に等しくしている)で漸減する減速モードに切り換える機能を備えている。
従って本例では加減速パルス出力制御部3は、起動直後は加速モードとなって出力パルス9の周波数を設定された加速度で(つまり経過時間に対し一定の勾配で)漸増しながらパルス列サーボモータを加速運転し、出力パルス9の周波数が設定された周波数に達した後は次に述べる減速開始点まで定速モードとなって出力パルス9の周波数を一定に保ちサーボモータを定速運転する。
【0004】
次に、残りパルス数7が加速モードにおいて出力された出力パルス9の数に等しくなると、この時点を減速開始点として減速モードに切り換わり、出力パルス9の周波数を加速度と絶対値が等しい減速度で(つまり経過時間に対し加速時と等しい逆勾配で、換言すれば加速時と対称型の勾配で)漸減しながらサーボモータを減速運転する。
一方、総パルス数ダウンカウンタ2は、出力パルス9を入力するつど、設定された初期値である総パルス数設定値5からのカウントダウンを行い、出力パルス9の総数が総パルス数設定値5に達した時点で、カウントダウンによる残りパルス数がゼロになった旨の総パルス数ゼロ信号8を出力する。
【0005】
この総パルス数ゼロ信号8の出力時点に、減速モードにある加減速パルス出力制御部3からの出力パルス9の周波数は0となり、出力パルス9の出力が停止する。
こうして出力パルス9の1回分の(総パルス数設定値5に相当する総パルス数の)連続出力が終了する。
図3は図4の動作例を示すタイミング図で、上から順に図4のパルス出力開始信号6、総パルス数ゼロ信号8、出力パルス9の周波数(なお、この周波数曲線の面積は出力パルス9の出力数となる)、および残りパルス数7の時間的推移を示す。
【0006】
この例では3つの加工工程に対応するパルス出力期間T1(時点t11〜t12の間),T2(時点t21〜t22の間),T3(時点t31〜t32の間)ごとに、それぞれ総パルス数N1,N2,N3の出力パルス9の連続出力が行われており、各期間T1,T2,T3内にはそれぞれパルス出力9の周波数が直線的に増加する加速モードの期間と、パルス出力9の周波数が一定の定速モードの期間と、パルス出力9の周波数が加速モード時と対称の勾配で直線的に減少する減速モードの期間とが存在している。
ここで、時点t11,t21,t31にはそれぞれ総パルス数N1,N2,N3の設定値5が書込ラッチ1に書き込まれて、総パルス数ダウンカウンタ2に初期値として設定されると同時にパルス出力開始信号6が出力され、時点t12,t22,t32にはそれぞれ残りパルス数7が0となり、総パルス数ゼロ信号8が出力されている。
【0007】
なお、特許文献1には分注ノズルを上昇、下降するパルスモータを図3と同様な一群ずつの連続パルス出力で制御する例が示されている。
【0008】
【特許文献1】
特開平7−63772号公報 (図10、11、14、15)
【0009】
【発明が解決しようとする課題】
しかしながら、上述した従来のパルス出力制御装置においては、次のような問題点があった。
▲1▼1回分の連続パルス出力において、ハードウェアで装備した総パルス最大値を上回るパルス数を発生させることができない。
▲2▼連続パルス出力開始以前にその回分の必要な総出力パルス数を演算しておく必要がある。
▲3▼連続パルス出力動作中にパルス出力をダウンカウンタ2に設定した初期値を越えて継続させたい場合が生じてもそれができない。
【0010】
▲4▼例えば、それぞれ総パルス数N1,N2,N3の3つの加工工程分の作業を連続して実施しようとして、総パルス数Ns=(N1+N2+N3)のパルス出力を行いたい場合、Nsがハードウェアで装備した総パルス最大値を上回るとすれば、図3に示すように、2回以上(図3では3回)に分けて連続パルス出力を行わねばならず、この各1回分ごとに加減速および若干の停止期間が含まれるため、トータルとして総パルス数Ns分の出力を終えるまでの時間(制御時間)が、仮に総パルス数Nsを1回分の連続パルスとして出力できる場合に比べて長くなる。
【0011】
本発明はこれらの問題を解消できるパルス出力制御装置を提供することを課題とする。
【0012】
【課題を解決するための手段】
前記の課題を解決するために、請求項1のパルス出力制御装置は、
パルス出力開始指令(パルス出力開始信号6)に応じて少なくともパルス(出力パルス9)の繰り返し出力を開始し、監視対象の残りパルス数(7)が0となる時点に該パルスの出力を停止するパルス生成手段(加減速パルス出力制御部3)と、
総パルス数書込みラッチ(1)に総パルス数設定値(5)が書込まれるつど該総パルス数設定値を初期値として設定され、前記パルスを入力しつつ、そのつど該初期値をカウントダウンして該初期値の残存値を前記残りパルス数として出力すると共に、残りパルス数が0となった時点に総パルス数ゼロ信号(8)を出力する総パルス数カウントダウン手段(総パルス数ダウンカウンタ2)とを備えたパルス出力制御装置(01)において、
前記総パルス数書込みラッチに書込まれた総パルス数設定値と当該書込み時点の前記残りパルス数とを加算し、この加算値を前記総パルス数カウントダウン手段に前記初期値として設定する総パルス数加算手段(加算器4)を備えたものとする。
【0013】
また請求項2のパルス出力制御装置は、請求項1に記載のパルス出力制御装置において、
前記パルス生成手段が、前記パルス出力開始指令の入力時点に加速モードとなり前記パルスの周波数を指定されたパラメータに従って0から漸増するものであるようにする。
また請求項3のパルス出力制御装置は、請求項2に記載のパルス出力制御装置において、
前記パルス生成手段が、前記加速モードでの動作中、前記パルスの周波数が指定された値に達した時点に定速モードに切り換わり前記パルスの周波数を該指定値に保つものであるようにする。
【0014】
また請求項4のパルス出力制御装置は、請求項3に記載のパルス出力制御装置において、
前記パルス生成手段が、前記定速モードでの動作中、前記残りパルス数が所定値に達した時点に減速モードに切り換わって前記パルスの周波数を前記指定値から指定されたパラメータに従って漸減し、前記パルスの周波数が0となる時点に前記残りパルス数が0となるようにするものであるようにする。
また請求項5のパルス出力制御装置は、請求項1ないし4のいずれかに記載のパルス出力制御装置において、
前記パルス生成手段から出力される前記パルスの数が、このパルスに基づいて駆動されるモータ(サーボモータ04など)の移動量を定めるものであるようにする。
【0015】
即ち、本発明の作用は以下の如くである。即ち、
総パルス数書込みラッチ1と総パルス数ダウンカウンタ2との間に加算器を設け、出力パルス9の連続出力動作中でも、総パルス数書込みラッチ1に総パルス設定値5書き込むことで、この書き込んだ総パルス設定値5とこの時の総パルス数ダウンカウンタ2の残りパルス数との加算値を総パルス数ダウンカウンタ2へ新たな初期値として設定できるようにし、ハードウェアで装備した総パルス最大値を上回る(無限にでも大きな)総数の出力パルス9の連続出力動作を可能にするものである。
【0016】
【発明の実施の形態】
図1は本発明の一実施例としてのパルス出力制御装置とその上位システムとの要部の構成を示すブロック図である。図1のパルス出力制御装置01においては図4の従来の同装置01に対し、総パルス数書込みラッチ1と総パルス数ダウンカウンタ2との間に加算器4が追加されている点が異なる。
これにより図1では、出力パルス9の連続出力動作中でも、新たに総パルス数設定値5を総パルス数書込みラッチ1に書込むことにより、この新たに書込まれた総パルス数設定値5と、その時点での残りパルス数7との加算値を総パルス数ダウンカウンタ2に新たな初期値として設定することができる。
【0017】
なお、連続パルス出力動作の起動時には、その直前での総パルス数ダウンカウンタ2の残りパルス数7は0であることから、総パルス数書込みラッチ1に書込まれた総パルス数設定値5のみが総パルス数ダウンカウンタ2に初期値として設定される。
図1において、02はパルス出力制御装置01等と信号を授受しつつ、図1のシステム全体を制御するマイクロプロセッサ、03は次に述べるパルス列指令サーボアンプ、04はサーボモータ、05はサーボモータ04と一体に設けられ、サーボモータ04の回転角移動量に応じたパルス05aを出力するパルスジェネレータ、06はパルス05aを計数してマイクロプロセッサ02に伝えるカウンタである。
【0018】
ここで、パルス列指令サーボアンプ03は、加減速パルス出力制御部3からの出力パルス9のパルス列と、パルスジェネレータ05の出力パルス05aのパルス列とが1対1に対応するようにサーボモータ04に駆動信号を与え、サーボモータ04に出力パルス9のパルス数に対応する回転角分の回転(移動)を行わせる。
従って、マイクロプロセッサ02はカウンタ06の計数値からサーボモータ04の移動量を知ることができる。
図2は図1の動作の一実施例としての、図3に対応するタイミング図で、上から順に図1のパルス出力開始信号6、総パルス数ゼロ信号8、出力パルス9の周波数、および残りパルス数7の時間的推移を示す。
【0019】
図2では図3で述べた総パルス数N1,N2,N3の3つの加工工程分の総パルス数Ns(=N1+N2+N3)を継続して出力パルス9として出力し、サーボモータ04を停止することなく3つの加工工程分の作業を行う例を示す。
図2を説明すると、先ず時点ts1において、マイクロプロセッサ02は、第1工程分の総パルス数N1を総パルス数設定値5として総パルス数書込みラッチ1に書込む。
このとき総パルス数ダウンカウンタ2の残りパルス数7は0のため加算器4による加算は意味を持たず、総パルス数ダウンカウンタ2には総パルス数書込みラッチ1に書込まれた総パルス数設定値5としての値N1がそのまま初期値として設定される。
【0020】
そしてマイクロプロセッサ02は、加減速パルス出力制御部3に加速度および定速度を定めるパラメータと共にパルス出力開始信号6を与えてパルス出力9の継続出力動作を開始させる。
これにより加減速パルス出力制御部3は出力パルス9の出力を開始してその周波数を指定されたパラメータに従って直線的に増加し、サーボモータ04の速度を一定勾配で増加させながらサーボモータ04を加速運転する。
次の時点tsAにおいては出力パルス9の周波数がパラメータで指定された値に達することから、加減速パルス出力制御部3はパルス出力動作モードを定速モードに切換えて出力パルス9の周波数をこの指定値に固定させ、サーボモータ04を定速運転する。
【0021】
次にマイクロプロセッサ02は、この第1工程分の総パルス数N1の出力動作中、残りパルス数7とカウンタ06の計数値(つまりサーボモータ04の移動量)より第1工程でサーボモータ04を停止する必要がないと判断した時点ts2において、第2工程分の総パルス数N2を総パルス数設定値5として総パルス数書込みラッチ1に書込む。
これにより時点ts2において、新たな総パルス数設定値5である第2工程分の総パルス数N2とその時点での残りパルス数7との加算値が総パルス数ダウンカウンタ2に新たな初期値として設定される。
【0022】
このことは出力パルス9のこの連続出力動作中、第1工程分の総パルス数N1の出力パルス9の出力が終わった(つまり残りパルス数7が0となる)時点で、出力パルス9の出力を停止することなく第2工程分の総パルス数N2を総パルス数設定値5として総パルス数書込みラッチ1に書込むことと同等である。
次もマイクロプロセッサ02は、第2工程分の出力パルス9の出力動作中、残りパルス数7とカウンタ06の計数値より第2工程でサーボモータ04を停止する必要がないと判断した時点ts3において、第3工程分の総パルス数N3を総パルス数設定値5として総パルス数書込みラッチ1に書込む。
【0023】
これにより時点ts3において、新たな総パルス数設定値5である第3工程分の総パルス数N3とその時点での残りパルス数7との加算値が総パルス数ダウンカウンタ2に新たな初期値として設定される。
このことは出力パルス9のこの連続出力動作中、第1工程分と第2工程分との合計の総パルス数(N1+N2)の出力パルス9の出力が終わった(つまり残りパルス数7が0となる)時点で、出力パルス9の出力を停止することなく第3工程分の総パルス数N3を総パルス数設定値5として総パルス数書込みラッチ1に書込むことと同等である。
【0024】
次の時点tsBにおいては残りパルス数7が加速モード時に出力された総パルス数に等しくなることから加減速パルス出力制御部3はパルス出力動作モードを減速モードに切換える。
これにより加減速パルス出力制御部3は出力パルス9の周波数を経過時間に対し加速モード時と等しい割合で直線的に減少させ、サーボモータ04の速度を加速時と対称の勾配で減少させながらサーボモータ04を減速運転する。
従って残りパルス数7が0となる時点ts4には、総パルス数ダウンカウンタ2から総パルス数ゼロ信号8が出力されると同時に出力パルス9の周波数が0となり、加減速パルス出力制御部3からの出力パルス9の出力が停止する。
【0025】
このようにして、時点ts1からts4までの期間Tsに、継続パルス総数Ns(=N1+N2+N3)の出力パルス9の連続出力が行われ、サーボモータ04を停止させずにそれぞれ総パルス数N1,N2,N3の3つの加工工程分の作業が連続して行われる。
この時のパルス出力期間Tsは、この期間内におけるサーボモータ04の加速期間と減速期間をそれぞれ1回のみとすることができるので、従来の図3のようにそれぞれ加速期間、減速期間を持つ3つの加工工程のパルス出力期間の和(T1+T2+T3)よりも短くすることができる。
【0026】
【発明の効果】
本発明によれば、パルス出力開始信号6に応じて少なくとも出力パルス9の繰り返し出力を開始し、出力パルス9の周波数を順次、加速モード、定速モード、減速モードによって可変したのち、監視対象の残りパルス数7が0となる時点に出力パルス9の出力を停止する加減速パルス出力制御部3と、
総パルス数書込みラッチ1に総パルス数設定値5が書込まれるつど該総パルス数設定値5を初期値として設定され、出力パルス9を入力しつつ、そのつど該初期値をカウントダウンして該初期値の残存値を前記残りパルス数として出力すると共に、残りパルス数7が0となった時点に総パルス数ゼロ信号8を出力する総パルス数ダウンカウンタ2とを備えたパルス出力制御装置01において、
前記総パルス数書込みラッチ1に書込まれた総パルス数設定値5と当該書込み時点の前記残りパルス数とを加算し、この加算値を総パルス数ダウンカウンタ2に前記初期値として設定する加算器4を備えるようにしたので、
▲1▼規模が限られたハードウェア構成上の上限となる総パルス数最大値を上回る(無限にでも大きな)総数の出力パルス9を管理して継続出力することが可能になる。
【0027】
▲2▼ハードウェア構成上の上限を越える総パルス数内で行う複数の加工工程において、従来は1つの加工工程ごとにハードウェア構成上の上限以内の総パルス数を割り当てて、複数の加工工程分、従って複数回、出力パルス9の停止を伴う加減速を行う必要があったが、本発明では出力パルス9を停止することなく複数の加工工程を連続に実施することで加減速回数を1回とすることができ、複数の加工工程の実行時間を短縮することができる。
【図面の簡単な説明】
【図1】本発明の一実施例として要部の構成を示すブロック図
【図2】図1の動作の一実施例を示すタイミング図
【図3】図2に対応する従来のタイミング図
【図4】図1に対応する従来のブロック図
【符号の説明】
01 パルス出力制御装置
02 マイクロプロセッサ
03 パルス列指令サーボアンプ
04 サーボモータ
05 パルスジェネレータ
06 カウンタ
1 総パルス数書込ラッチ
2 総パルス数ダウンカウンタ
3 加減速パルス出力制御部
4 加算器
5 総パルス数設定値
6 パルス出力開始信号
7 残りパルス数
8 総パルス数ゼロ信号
9 出力パルス
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a pulse output control device for controlling the output of a pulse (train) used for driving a pulse train servomotor or pulse motor of a numerically controlled machine tool, and particularly during a single continuous pulse output operation. The present invention relates to a pulse output control device that can output a total number of output pulses that exceed the total number of output pulses equipped with hardware (even if it is infinitely large).
In the following drawings, the same reference numerals denote the same or corresponding parts.
[0002]
[Prior art]
FIG. 4 is a block diagram showing the configuration of the main part of this type of pulse output control device 01. In the figure, first, the total pulse number setting value 5 is written in the total pulse number writing latch 1 to set the total pulse number setting value 5 in the total pulse number down counter 2 as an initial value.
Next, by supplying a pulse output start signal 6 to the acceleration / deceleration pulse output control unit 3, output of the output pulse 9 from the acceleration / deceleration pulse output control unit 3 is started. The output pulse 9 is input to the total pulse number down counter 2 and is also supplied to a pulse train servo motor (not shown) in this example, and the pulse train servo motor is rotated (moved) by a rotation angle corresponding to the number of output pulses 9. ).
[0003]
The acceleration / deceleration pulse output control unit 3 monitors the remaining pulse number 7 of the total pulse number down counter 2 after inputting the pulse output start signal 6, and sets the frequency of the output pulse 9 with a preset parameter (acceleration). A gradually increasing acceleration mode, a constant speed mode in which the frequency of the output pulse 9 is maintained at a preset value, and a frequency parameter of the output pulse 9 (deceleration, in this example, the absolute value is made equal to the acceleration). It has a function to switch to the deceleration mode that gradually decreases.
Therefore, in this example, the acceleration / deceleration pulse output control unit 3 is in the acceleration mode immediately after startup, and the frequency of the output pulse 9 is gradually increased at a set acceleration (that is, with a constant gradient with respect to the elapsed time). After accelerating operation and the frequency of the output pulse 9 reaches the set frequency, a constant speed mode is set up to a deceleration start point described below, and the frequency of the output pulse 9 is kept constant and the servo motor is operated at a constant speed.
[0004]
Next, when the remaining number of pulses 7 becomes equal to the number of output pulses 9 output in the acceleration mode, this point is used as a deceleration start point, and the mode is switched to the deceleration mode. The servo motor is decelerated while gradually decreasing (in other words, with a reverse gradient equal to that during acceleration with respect to the elapsed time, in other words, with a gradient that is symmetrical to that during acceleration).
On the other hand, each time the output pulse 9 is input, the total pulse number down counter 2 counts down from the set initial pulse number setting value 5, and the total number of output pulses 9 becomes the total pulse number setting value 5. At this point, a total pulse number zero signal 8 is output to the effect that the remaining number of pulses due to the countdown has become zero.
[0005]
At the time when the total pulse number zero signal 8 is output, the frequency of the output pulse 9 from the acceleration / deceleration pulse output control unit 3 in the deceleration mode becomes 0, and the output of the output pulse 9 stops.
Thus, the continuous output of the output pulse 9 for one time (of the total number of pulses corresponding to the total number of pulses setting value 5) is completed.
FIG. 3 is a timing chart showing an example of the operation of FIG. 4. From the top, the pulse output start signal 6, the total pulse number zero signal 8, and the frequency of the output pulse 9 of FIG. And the time transition of the remaining number of pulses 7 is shown.
[0006]
In this example, the total number of pulses N1 for each pulse output period T1 (between time points t11 and t12), T2 (between time points t21 and t22), and T3 (between time points t31 and t32) corresponding to three machining steps. , N2, and N3, the output pulse 9 is continuously output. In each of the periods T1, T2, and T3, the frequency of the pulse output 9 increases linearly in each period T1, T2, and T3, and the frequency of the pulse output 9 Are constant speed modes, and there are deceleration mode periods in which the frequency of the pulse output 9 decreases linearly with a symmetrical gradient from that in the acceleration mode.
Here, at time points t11, t21, and t31, the set value 5 of the total number of pulses N1, N2, and N3 is written in the write latch 1 and is set as the initial value in the total number of pulses down counter 2 at the same time as the pulse. The output start signal 6 is output, and at the time points t12, t22, and t32, the remaining pulse number 7 becomes 0, and the total pulse number zero signal 8 is output.
[0007]
Patent Document 1 shows an example in which a pulse motor that raises and lowers a dispensing nozzle is controlled by a group of continuous pulse outputs similar to FIG.
[0008]
[Patent Document 1]
Japanese Patent Laid-Open No. 7-63772 (FIGS. 10, 11, 14, and 15)
[0009]
[Problems to be solved by the invention]
However, the conventional pulse output control device described above has the following problems.
(1) In one continuous pulse output, it is not possible to generate more pulses than the total maximum pulse value equipped with hardware.
{Circle around (2)} Before starting the continuous pulse output, it is necessary to calculate the required total number of output pulses.
(3) Even if it is desired to continue the pulse output beyond the initial value set in the down counter 2 during the continuous pulse output operation, it cannot be done.
[0010]
(4) For example, when it is desired to continuously perform the operations for three machining steps of the total number of pulses N1, N2, and N3, respectively, and when it is desired to output the total number of pulses Ns = (N1 + N2 + N3), Ns is the hardware If it exceeds the maximum value of the total pulse equipped in, continuous pulse output must be performed twice or more (3 times in FIG. 3) as shown in FIG. In addition, since some stop periods are included, the time (control time) until the output for the total number of pulses Ns as a total is longer than when the total number of pulses Ns can be output as one continuous pulse. .
[0011]
It is an object of the present invention to provide a pulse output control device that can solve these problems.
[0012]
[Means for Solving the Problems]
In order to solve the above-mentioned problem, a pulse output control device according to claim 1 comprises:
In response to a pulse output start command (pulse output start signal 6), at least a pulse (output pulse 9) is repeatedly output, and the output of the pulse is stopped when the number of remaining pulses (7) to be monitored becomes zero. Pulse generation means (acceleration / deceleration pulse output control unit 3);
Each time the total pulse number setting value (5) is written to the total pulse number writing latch (1), the total pulse number setting value is set as an initial value, and the initial value is counted down each time the pulse is input. The remaining value of the initial value is output as the remaining pulse number, and the total pulse number count down means (total pulse number down counter 2) outputs the total pulse number zero signal (8) when the remaining pulse number becomes zero. In the pulse output control device (01) provided with
Total pulse number setting value written in the total pulse number write latch and the remaining pulse number at the time of writing are added, and this added value is set as the initial value in the total pulse number countdown means It is assumed that addition means (adder 4) is provided.
[0013]
The pulse output control device according to claim 2 is the pulse output control device according to claim 1,
The pulse generating means is in an acceleration mode at the input time of the pulse output start command so that the frequency of the pulse is gradually increased from 0 according to a designated parameter.
The pulse output control device according to claim 3 is the pulse output control device according to claim 2,
During the operation in the acceleration mode, the pulse generation means switches to the constant speed mode when the pulse frequency reaches a specified value so as to keep the pulse frequency at the specified value. .
[0014]
The pulse output control device according to claim 4 is the pulse output control device according to claim 3,
During the operation in the constant speed mode, the pulse generation means switches to the deceleration mode when the number of remaining pulses reaches a predetermined value, and gradually reduces the frequency of the pulse according to the specified parameter from the specified value, The remaining number of pulses is made zero when the pulse frequency becomes zero.
The pulse output control device according to claim 5 is the pulse output control device according to any one of claims 1 to 4,
The number of pulses output from the pulse generating means determines the amount of movement of a motor (such as a servo motor 04) driven based on this pulse.
[0015]
That is, the operation of the present invention is as follows. That is,
An adder is provided between the total pulse number write latch 1 and the total pulse number down counter 2 so that the total pulse set value 5 is written in the total pulse number write latch 1 even during continuous output pulse 9 output operation. The sum of the total pulse setting value 5 and the remaining pulse number of the total pulse number down counter 2 at this time can be set as a new initial value in the total pulse number down counter 2, and the total pulse maximum value provided by hardware This enables continuous output operation of a total number of output pulses 9 exceeding (even infinitely large).
[0016]
DETAILED DESCRIPTION OF THE INVENTION
FIG. 1 is a block diagram showing the configuration of the main parts of a pulse output control device and its host system as an embodiment of the present invention. The pulse output control device 01 of FIG. 1 differs from the conventional device 01 of FIG. 4 in that an adder 4 is added between the total pulse number write latch 1 and the total pulse number down counter 2.
As a result, in FIG. 1, even during the continuous output operation of the output pulse 9, by newly writing the total pulse number setting value 5 to the total pulse number writing latch 1, the newly written total pulse number setting value 5 and The added value with the remaining number of pulses 7 at that time can be set as a new initial value in the total pulse number down counter 2.
[0017]
At the time of starting the continuous pulse output operation, the remaining pulse number 7 of the total pulse number down counter 2 immediately before is 0, so only the total pulse number setting value 5 written in the total pulse number writing latch 1 is used. Is set in the total pulse number down counter 2 as an initial value.
In FIG. 1, 02 is a microprocessor that controls the entire system of FIG. 1 while exchanging signals with the pulse output control device 01 and the like, 03 is a pulse train command servo amplifier described below, 04 is a servo motor, and 05 is a servo motor 04. Is a pulse generator that outputs a pulse 05a corresponding to the amount of rotational angle movement of the servo motor 04, and 06 is a counter that counts and transmits the pulse 05a to the microprocessor 02.
[0018]
Here, the pulse train command servo amplifier 03 is driven by the servo motor 04 so that the pulse train of the output pulse 9 from the acceleration / deceleration pulse output control unit 3 and the pulse train of the output pulse 05a of the pulse generator 05 correspond to each other on a one-to-one basis. A signal is given, and the servo motor 04 is rotated (moved) by a rotation angle corresponding to the number of output pulses 9.
Therefore, the microprocessor 02 can know the movement amount of the servo motor 04 from the count value of the counter 06.
FIG. 2 is a timing chart corresponding to FIG. 3 as an example of the operation of FIG. 1, and in order from the top, the pulse output start signal 6, the total pulse number zero signal 8, the frequency of the output pulse 9, and the rest of FIG. The time transition of the number of pulses 7 is shown.
[0019]
In FIG. 2, the total number of pulses Ns (= N1 + N2 + N3) corresponding to the three machining steps N1, N2, and N3 described in FIG. 3 is continuously output as the output pulse 9 without stopping the servo motor 04. An example of performing work for three processing steps is shown.
Referring to FIG. 2, first, at time ts1, the microprocessor 02 writes the total pulse number N1 for the first step into the total pulse number write latch 1 as the total pulse number setting value 5.
At this time, since the remaining pulse number 7 of the total pulse number down counter 2 is 0, the addition by the adder 4 has no meaning, and the total pulse number written to the total pulse number write latch 1 is not stored in the total pulse number down counter 2. The value N1 as the setting value 5 is set as it is as the initial value.
[0020]
Then, the microprocessor 02 gives the pulse output start signal 6 together with parameters for determining acceleration and constant speed to the acceleration / deceleration pulse output control unit 3 to start the continuous output operation of the pulse output 9.
As a result, the acceleration / deceleration pulse output control unit 3 starts outputting the output pulse 9 and linearly increases its frequency according to the designated parameter, and accelerates the servo motor 04 while increasing the speed of the servo motor 04 at a constant gradient. drive.
Since the frequency of the output pulse 9 reaches the value specified by the parameter at the next time tsA, the acceleration / deceleration pulse output control unit 3 switches the pulse output operation mode to the constant speed mode, and specifies the frequency of the output pulse 9 The servo motor 04 is operated at a constant speed.
[0021]
Next, during the output operation of the total number of pulses N1 for the first step, the microprocessor 02 activates the servo motor 04 in the first step based on the remaining number of pulses 7 and the count value of the counter 06 (that is, the movement amount of the servo motor 04). At the time ts2 when it is determined that it is not necessary to stop, the total pulse number N2 for the second step is written in the total pulse number write latch 1 as the total pulse number setting value 5.
As a result, at time ts2, the total value of the total number of pulses N2 for the second step, which is a new total pulse number setting value 5, and the remaining number of pulses 7 at that time are added to the total pulse number down counter 2 as a new initial value. Set as
[0022]
This means that during the continuous output operation of the output pulse 9, when the output of the output pulse 9 of the total number of pulses N1 for the first step is completed (that is, the remaining number of pulses 7 becomes 0), the output of the output pulse 9 is output. This is equivalent to writing the total pulse number N2 for the second step as the total pulse number setting value 5 in the total pulse number writing latch 1 without stopping the process.
Next, at the time ts3 when the microprocessor 02 determines that it is not necessary to stop the servo motor 04 in the second step from the remaining number of pulses 7 and the count value of the counter 06 during the output operation of the output pulse 9 for the second step. The total pulse number N3 for the third step is written in the total pulse number write latch 1 as the total pulse number setting value 5.
[0023]
Thereby, at time ts3, the total value of the total number of pulses N3 for the third step, which is the new total pulse number setting value 5, and the remaining number of pulses 7 at that time are added to the total pulse number down counter 2 as a new initial value. Set as
This means that during this continuous output operation of the output pulse 9, the output of the total number of pulses (N1 + N2) of the first process and the second process is completed (that is, the remaining number of pulses 7 is 0). This is equivalent to writing the total pulse number N3 for the third step as the total pulse number setting value 5 in the total pulse number writing latch 1 without stopping the output of the output pulse 9.
[0024]
At the next time point tsB, the remaining number of pulses 7 is equal to the total number of pulses output in the acceleration mode, so the acceleration / deceleration pulse output control unit 3 switches the pulse output operation mode to the deceleration mode.
As a result, the acceleration / deceleration pulse output control unit 3 linearly decreases the frequency of the output pulse 9 with respect to the elapsed time at a rate equal to that in the acceleration mode, and decreases the speed of the servo motor 04 with a gradient symmetrical to that during acceleration. The motor 04 is decelerated.
Therefore, at the time ts4 when the remaining number of pulses 7 becomes 0, the total pulse number zero signal 8 is output from the total pulse number down counter 2 and at the same time the frequency of the output pulse 9 becomes 0, and the acceleration / deceleration pulse output control unit 3 The output pulse 9 is stopped.
[0025]
In this way, the continuous pulse total number Ns (= N1 + N2 + N3) of the output pulses 9 is continuously output in the period Ts from the time point ts1 to ts4, and the total number of pulses N1, N2, and N2, respectively, without stopping the servo motor 04. Operations for the three processing steps of N3 are continuously performed.
The pulse output period Ts at this time can be set only once for the acceleration period and the deceleration period of the servo motor 04 within this period, and therefore has a respective acceleration period and deceleration period as shown in FIG. It can be made shorter than the sum (T1 + T2 + T3) of the pulse output periods of the two processing steps.
[0026]
【The invention's effect】
According to the present invention, the output of at least the output pulse 9 is started in response to the pulse output start signal 6, and the frequency of the output pulse 9 is sequentially changed according to the acceleration mode, the constant speed mode, and the deceleration mode, and then the monitoring target. An acceleration / deceleration pulse output control unit 3 that stops the output of the output pulse 9 when the remaining number of pulses 7 becomes 0;
Each time the total pulse number setting value 5 is written in the total pulse number writing latch 1, the total pulse number setting value 5 is set as an initial value, and while inputting the output pulse 9, the initial value is counted down each time, A pulse output control device 01 provided with a total pulse number down counter 2 that outputs the residual value of the initial value as the remaining pulse number and outputs the total pulse number zero signal 8 when the remaining pulse number 7 becomes zero. In
The total pulse number setting value 5 written in the total pulse number writing latch 1 is added to the remaining pulse number at the time of writing, and this added value is set as the initial value in the total pulse number down counter 2 Because we were equipped with vessel 4
(1) It becomes possible to manage and continuously output a total number of output pulses 9 exceeding the maximum value of the total number of pulses, which is the upper limit on the hardware configuration with a limited scale (even infinitely large).
[0027]
(2) In a plurality of machining steps performed within the total number of pulses exceeding the upper limit on the hardware configuration, conventionally, a total number of pulses within the upper limit on the hardware configuration is assigned to each processing step, and a plurality of machining steps are assigned. However, according to the present invention, the number of times of acceleration / deceleration is reduced to 1 by continuously performing a plurality of machining steps without stopping the output pulse 9. And the execution time of a plurality of processing steps can be shortened.
[Brief description of the drawings]
FIG. 1 is a block diagram showing a configuration of a main part as an embodiment of the present invention. FIG. 2 is a timing chart showing an embodiment of the operation of FIG. 1. FIG. 3 is a conventional timing chart corresponding to FIG. 4) Conventional block diagram corresponding to FIG.
01 Pulse output controller 02 Microprocessor 03 Pulse train command servo amplifier 04 Servo motor 05 Pulse generator 06 Counter 1 Total pulse number write latch 2 Total pulse number down counter 3 Acceleration / deceleration pulse output control unit 4 Adder 5 Total pulse number setting value 6 Pulse output start signal 7 Remaining pulse number 8 Total pulse number zero signal 9 Output pulse

Claims (5)

パルス出力開始指令に応じて少なくともパルスの繰り返し出力を開始し、監視対象の残りパルス数が0となる時点に該パルスの出力を停止するパルス生成手段と、
総パルス数書込みラッチに総パルス数設定値が書込まれるつど該総パルス数設定値を初期値として設定され、前記パルスを入力しつつ、そのつど該初期値をカウントダウンして該初期値の残存値を前記残りパルス数として出力すると共に、残りパルス数が0となった時点に総パルス数ゼロ信号を出力する総パルス数カウントダウン手段とを備えたパルス出力制御装置において、
前記総パルス数書込みラッチに書込まれた総パルス数設定値と当該書込み時点の前記残りパルス数とを加算し、この加算値を前記総パルス数カウントダウン手段に前記初期値として設定する総パルス数加算手段を備えたことを特徴とするパルス出力制御装置。
Pulse generation means for starting at least pulse repetition in response to a pulse output start command and stopping the output of the pulse when the number of remaining pulses to be monitored becomes 0;
Each time the total pulse number setting value is written to the total pulse number write latch, the total pulse number setting value is set as an initial value. In a pulse output control device comprising a total pulse number countdown means for outputting a value as the remaining pulse number and outputting a total pulse number zero signal when the remaining pulse number becomes 0,
Total pulse number setting value written in the total pulse number write latch and the remaining pulse number at the time of writing are added, and this added value is set as the initial value in the total pulse number countdown means A pulse output control device comprising an adding means.
請求項1に記載のパルス出力制御装置において、
前記パルス生成手段が、前記パルス出力開始指令の入力時点に加速モードとなり前記パルスの周波数を指定されたパラメータに従って0から漸増するものであることを特徴とするパルス出力制御装置。
In the pulse output control device according to claim 1,
The pulse output control device according to claim 1, wherein the pulse generating means is in an acceleration mode at the time of input of the pulse output start command, and gradually increases the frequency of the pulse from 0 according to a designated parameter.
請求項2に記載のパルス出力制御装置において、
前記パルス生成手段が、前記加速モードでの動作中、前記パルスの周波数が指定された値に達した時点に定速モードに切り換わり前記パルスの周波数を該指定値に保つものであることを特徴とするパルス出力制御装置。
In the pulse output control device according to claim 2,
The pulse generating means switches to a constant speed mode when the pulse frequency reaches a specified value during operation in the acceleration mode, and maintains the pulse frequency at the specified value. A pulse output control device.
請求項3に記載のパルス出力制御装置において、
前記パルス生成手段が、前記定速モードでの動作中、前記残りパルス数が所定値に達した時点に減速モードに切り換わって前記パルスの周波数を前記指定値から指定されたパラメータに従って漸減し、前記パルスの周波数が0となる時点に前記残りパルス数が0となるようにするものであることを特徴とするパルス出力制御装置。
In the pulse output control device according to claim 3,
During the operation in the constant speed mode, the pulse generation means switches to the deceleration mode when the number of remaining pulses reaches a predetermined value, and gradually decreases the frequency of the pulses from the specified value according to the specified parameter, A pulse output control device characterized in that the number of remaining pulses becomes zero when the frequency of the pulse becomes zero.
請求項1ないし4のいずれかに記載のパルス出力制御装置において、
前記パルス生成手段から出力される前記パルスの数が、このパルスに基づいて駆動されるモータの移動量を定めるものであることを特徴とするパルス出力制御装置。
In the pulse output control device according to any one of claims 1 to 4,
The pulse output control device characterized in that the number of pulses output from the pulse generation means determines a moving amount of a motor driven based on the pulses.
JP2003189490A 2003-07-01 2003-07-01 Pulse output control device Expired - Lifetime JP3901136B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003189490A JP3901136B2 (en) 2003-07-01 2003-07-01 Pulse output control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003189490A JP3901136B2 (en) 2003-07-01 2003-07-01 Pulse output control device

Publications (2)

Publication Number Publication Date
JP2005026961A JP2005026961A (en) 2005-01-27
JP3901136B2 true JP3901136B2 (en) 2007-04-04

Family

ID=34187687

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003189490A Expired - Lifetime JP3901136B2 (en) 2003-07-01 2003-07-01 Pulse output control device

Country Status (1)

Country Link
JP (1) JP3901136B2 (en)

Also Published As

Publication number Publication date
JP2005026961A (en) 2005-01-27

Similar Documents

Publication Publication Date Title
JP2002132349A (en) Acceleration and deceleration control method
JP3527022B2 (en) Numerical control unit
JP3795854B2 (en) Laser processing equipment
CN109960221B (en) Numerical control device
JP4542668B2 (en) Pulse oscillation IC and motor positioning control method and apparatus using the IC
JP3901136B2 (en) Pulse output control device
JPH05228794A (en) Positioning method for main spindle
JPH11245118A (en) Screw processing control device
CN112114561A (en) Numerical controller
JPH0316675A (en) System for applying sealing agent
JP2019141947A (en) Control device of tap machining
JP2006302208A (en) Numerical controller
JPH01214299A (en) Controller for stepping motor
JPH0885022A (en) Screw processing equipment
JPH11110048A (en) Position control servo device and servo control method for position control system
JP3136851B2 (en) Screw processing equipment
US5034169A (en) Injection control method in an electrically-operated injection molding machine
JPH0669659B2 (en) Cutting monitoring equipment
JPH01173209A (en) Industrial robot control method
JPH04245307A (en) Numerical controller and acceleration/deceleration control method
JP3235719B2 (en) Dimensional cutting control device for steel sheet
JP2006109551A (en) Controller and control method of pulse motor
JPS6015718A (en) Speed servo control method
JPH05204420A (en) Machine tool controller with two spindles
JPH0642166B2 (en) Servo control method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20050415

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20060703

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20060704

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20061124

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20061212

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20061225

R150 Certificate of patent or registration of utility model

Ref document number: 3901136

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20100112

Year of fee payment: 3

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

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

Free format text: PAYMENT UNTIL: 20100112

Year of fee payment: 3

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

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

Free format text: PAYMENT UNTIL: 20110112

Year of fee payment: 4

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

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

Free format text: PAYMENT UNTIL: 20110112

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20120112

Year of fee payment: 5

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

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

Free format text: PAYMENT UNTIL: 20120112

Year of fee payment: 5

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

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

Free format text: PAYMENT UNTIL: 20120112

Year of fee payment: 5

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

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

Free format text: PAYMENT UNTIL: 20120112

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20130112

Year of fee payment: 6

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

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

Free format text: PAYMENT UNTIL: 20130112

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20140112

Year of fee payment: 7

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

EXPY Cancellation because of completion of term