JPH0112560Y2 - - Google Patents

Info

Publication number
JPH0112560Y2
JPH0112560Y2 JP8180283U JP8180283U JPH0112560Y2 JP H0112560 Y2 JPH0112560 Y2 JP H0112560Y2 JP 8180283 U JP8180283 U JP 8180283U JP 8180283 U JP8180283 U JP 8180283U JP H0112560 Y2 JPH0112560 Y2 JP H0112560Y2
Authority
JP
Japan
Prior art keywords
stepping motor
pulse
value
hold
mode
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
Application number
JP8180283U
Other languages
Japanese (ja)
Other versions
JPS59189497U (en
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 filed Critical
Priority to JP8180283U priority Critical patent/JPS59189497U/en
Publication of JPS59189497U publication Critical patent/JPS59189497U/en
Application granted granted Critical
Publication of JPH0112560Y2 publication Critical patent/JPH0112560Y2/ja
Granted legal-status Critical Current

Links

Description

【考案の詳細な説明】 本考案は、高速モード、低速モード、ホールド
モードの各モードを順次設定し、ステツピングモ
ータを所定の角度だけ回転させるためのドライブ
信号を形成するステツピングモータのドライブ回
路に関する。
[Detailed description of the invention] The present invention is a stepping motor drive circuit that sequentially sets each mode of high speed mode, low speed mode, and hold mode, and forms a drive signal for rotating the stepping motor by a predetermined angle. Regarding.

従来、移動体を現在位置から所定の位置まで迅
速に移動せしめ、所定の位置に精度よく設定する
ための駆動装置として、ステツピングモータが用
いられる。このように移動体を移動させるために
は、ステツピングモータの回転角を精度よく規制
しなければならないが、このために、ステツピン
グモータの回転角を検出するセンサが設けられ、
かかるセンサの出力信号により、ステツピングモ
ータのドライブ信号を形成してステツピングモー
タを高速モード、低速モードあるいはホールドモ
ードに設定し、所定の角度だけ回転した時点で停
止するようにしている。したがつて、移動体を迅
速かつ精度よく所定の位置に設定するためには、
各モード毎のドライブ信号を精度よく形成するこ
とが必要となる。
2. Description of the Related Art Conventionally, a stepping motor is used as a drive device for quickly moving a moving body from a current position to a predetermined position and setting it at a predetermined position with high precision. In order to move the moving object in this way, the rotation angle of the stepping motor must be regulated with high precision. For this purpose, a sensor is provided to detect the rotation angle of the stepping motor.
The output signal of the sensor forms a drive signal for the stepping motor to set the stepping motor in high speed mode, low speed mode, or hold mode, and stops the stepping motor when it has rotated by a predetermined angle. Therefore, in order to quickly and accurately set a moving object in a predetermined position,
It is necessary to form drive signals for each mode with high precision.

かかるステツピングモータを駆動装置とする機
器の一例としては、プリンタがあるが、以下、移
動体としてプリンタの活字ホイールを例にとり、
この活字ホイールを回転駆動するステツピングモ
ータのドライブ信号を形成する従来のドライブ回
路について説明する。
An example of a device that uses such a stepping motor as a driving device is a printer. Below, we will take a type wheel of a printer as an example of a moving object.
A conventional drive circuit for forming a drive signal for a stepping motor that rotationally drives the type wheel will be described.

第1図は従来の活字ホイールの駆動機構の一例
を示す概略斜視図であつて、1は活字ホイール、
2,3はギヤ、4は分割板、5はセンサ、6はス
テツピングモータである。
FIG. 1 is a schematic perspective view showing an example of a conventional type wheel drive mechanism, in which 1 is a type wheel;
2 and 3 are gears, 4 is a dividing plate, 5 is a sensor, and 6 is a stepping motor.

同図において、ステツピングモータ6が回転す
ると、この回転はギヤ3,2を介して活字ホイー
ル1に伝達される。活字ホイール1には活字を有
する多数の活字腕が花弁状に取りつけられてお
り、所望の活字が現在位置から印字可能な所定の
位置、すなわち、印字位置まで移動するように、
ステツピングモータ6が回転する。
In the figure, when the stepping motor 6 rotates, this rotation is transmitted to the type wheel 1 via the gears 3 and 2. A large number of type arms having type are attached to the type wheel 1 in a petal shape, and the type is moved from the current position to a predetermined position where the desired type can be printed, that is, the printing position.
The stepping motor 6 rotates.

また、ステツピングモータ6の回転軸には、多
数の切込みを有する分割板4が取りつけられ、こ
の分割板4に対向してセンサ5が設けられてい
る。センサ5は、たとえば、ホトセンサであつ
て、ステツピングモータ6が回転すると、分割板
4の切込みにより、センサ5からステツピングモ
ータ6の回転位相を表わすパルス信号が得られ
る。したがつて、このパルス信号によつてステツ
ピングモータの回転角を知ることができ、このこ
とによつて、ステツピングモータ6の各モードを
設定することができる。
Further, a dividing plate 4 having a large number of notches is attached to the rotating shaft of the stepping motor 6, and a sensor 5 is provided opposite to this dividing plate 4. The sensor 5 is, for example, a photo sensor, and when the stepping motor 6 rotates, a pulse signal representing the rotational phase of the stepping motor 6 is obtained from the sensor 5 due to the cut in the dividing plate 4. Therefore, the rotation angle of the stepping motor can be known from this pulse signal, and thereby each mode of the stepping motor 6 can be set.

第2図はかかるパルス信号の用いてステツピン
グモータ6の各モードのドライブ信号を形成する
従来のドライブ回路の一例を示すブロツク図であ
つて、7はドライブ回路、8はパルスカウントユ
ニツト、9はホールドパルスパターン発生器、1
0は比較ユニツト、11はパルス変換器、12は
駆動増幅器であつて、第1図に対応する部分には
同一符号をつけている。
FIG. 2 is a block diagram showing an example of a conventional drive circuit that uses such pulse signals to form drive signals for each mode of the stepping motor 6, in which 7 is a drive circuit, 8 is a pulse count unit, and 9 is a drive circuit. Hold pulse pattern generator, 1
0 is a comparison unit, 11 is a pulse converter, and 12 is a drive amplifier, and parts corresponding to those in FIG. 1 are given the same reference numerals.

第2図において、センサ5からのパルス信号は
ドライブ回路7のパルスカウントユニツト8とホ
ールドパルスパターン発生回路9に供給される。
パルスカウントユニツト8はパルス信号をカウン
トし、そのカウント値を順次比較ユニツト10に
供給する。
In FIG. 2, a pulse signal from a sensor 5 is supplied to a pulse count unit 8 of a drive circuit 7 and a hold pulse pattern generation circuit 9.
The pulse count unit 8 counts the pulse signals and sequentially supplies the count value to the comparison unit 10.

比較ユニツト10には、ステツピングモータ6
の各モードに対する回転角に応じた数値が基準値
として設定されており、比較ユニツト10は、こ
れら基準値とパルスカウントユニツト8からのカ
ウント値とを比較し、各モードに対する指令信号
を発生する。
The comparison unit 10 includes a stepping motor 6.
Numerical values corresponding to the rotation angle for each mode are set as reference values, and the comparison unit 10 compares these reference values with the count value from the pulse count unit 8 and generates a command signal for each mode.

一方、ホールドパルスパターン発生器9は、セ
ンサ5から供給されるパルス信号に位相同期し、
ステツピングモータ6がホールドモード時のドラ
イブ信号に相当する信号、すなわち、ホールドパ
ルスパターンを発生する。このホールドパルスパ
ターンはパルス変換器11に供給され、比較ユニ
ツト10からの指令信号にもとづいて変換処理さ
れ、ドライブ信号として駆動増幅器12で増幅さ
れてステツピングモータ6に供給される。
On the other hand, the hold pulse pattern generator 9 is phase-synchronized with the pulse signal supplied from the sensor 5,
The stepping motor 6 generates a signal corresponding to a drive signal in the hold mode, that is, a hold pulse pattern. This hold pulse pattern is supplied to the pulse converter 11, converted based on the command signal from the comparison unit 10, amplified by the drive amplifier 12 as a drive signal, and supplied to the stepping motor 6.

第3図はステツピングモータ6の駆動方法の一
例を示す速度曲線図である。この図では、活字ホ
イール1(第1図)の印字しようとする所望の活
字の現在位置を角度0として基準位置とし、角度
Dが印字位置としている。
FIG. 3 is a speed curve diagram showing an example of a method of driving the stepping motor 6. As shown in FIG. In this figure, the current position of the desired type to be printed on the type wheel 1 (FIG. 1) is taken as the reference position with an angle of 0, and the angle D is taken as the printing position.

この活字に対しては、ステツピングモータ6を
角度0から角度Aまでは高速モードHiとして加
速せしめ、角度Aから角度Bまではホールドモー
ドHpとして減速せしめ、角度Bから角度Cまで
は低速モードLpにし、さらに、角度Cから角度D
まではホールドモードHpにして減速せしめ、所
望の活字が角度Dだけ回転した時点で停止するよ
うにする。
For this type, the stepping motor 6 is accelerated in high speed mode H i from angle 0 to angle A, decelerated in hold mode H p from angle A to angle B, and slowed down from angle B to angle C. Set mode L p , and then change angle C to angle D.
Until then, the hold mode is set to H p and the speed is decelerated until the desired type is rotated by an angle D and then stopped.

かかる角度はパルスカウントユニツト8のカウ
ント値でもつて表わされ、また、角度A,B,C
は比較ユニツト10に設定される基準値でもつて
表わされるものである。比較ユニツト10におい
て、これら角度を比較することにより、ステツピ
ングモータ6の各モードが指令可能となる。
This angle is also expressed by the count value of the pulse count unit 8, and the angles A, B, C
is also expressed by the reference value set in the comparison unit 10. By comparing these angles in the comparison unit 10, each mode of the stepping motor 6 can be commanded.

なお、第3図はステツピングモータ6の駆動方
法の一例あるが、一般に、モードの順序としては
このように設定されるものであつて、現在位置か
ら印字位置までの角度に応じて、高速モード、低
速モード、ホールドモードの長さが設定され、し
たがつて、比較ユニツト10に設定される基準値
は、ステツピングモータ6の必要とする回転角度
に応じて異なるものである。しかし、必ず、最後
にはホールドモードが設定され、このホールドモ
ードにおいて、ステツピングモータ6が減速され
て所望の活字が印字位置で停止するように、各基
準値が設定されるのである。
Although FIG. 3 shows an example of the method of driving the stepping motor 6, the order of the modes is generally set as shown below, and depending on the angle from the current position to the printing position, , low speed mode, and hold mode are set, and therefore, the reference value set in the comparison unit 10 differs depending on the required rotation angle of the stepping motor 6. However, the hold mode is always set at the end, and in this hold mode, each reference value is set so that the stepping motor 6 is decelerated and the desired type is stopped at the printing position.

第4図は各モードにおけるステツピングモータ
6のトルクを示す曲線図であつて、同図aはホー
ルドモード時のトルク曲線、同図bは低速モード
時のトルク曲線、同図cは高速モード時のトルク
曲線である。また、角度0は活字の現在位置であ
り、トルクが正のときには、ステツピングモータ
6が矢印X方向に回転しようとする。トルクが負
のときには、それとは逆に矢印Y方向に回転しよ
うとする。
FIG. 4 is a curve diagram showing the torque of the stepping motor 6 in each mode, where a is a torque curve in the hold mode, b is a torque curve in a low speed mode, and c is a torque curve in a high speed mode. This is the torque curve of Further, angle 0 is the current position of the type, and when the torque is positive, the stepping motor 6 attempts to rotate in the direction of arrow X. When the torque is negative, it tries to rotate in the direction of arrow Y in the opposite direction.

そこで、ステツピングモータ6がホールドモー
ドにあるときには、現在位置ではトルクは零であ
り、これより位置がづれると現在位置に戻すよう
に逆方向のトルクが生ずる。したがつて、第3図
において、高速モードHiあるいは低速モードLp
からホールドモードHpに切換えると、ステツピ
ングモータ6には、各瞬間毎にその瞬間に状態に
保持しようとするトルクが生じ、その結果、ステ
ツピングモータ6はブレーキ作用が生じて減速さ
れる。
Therefore, when the stepping motor 6 is in the hold mode, the torque is zero at the current position, and when the stepping motor 6 deviates from this position, a torque in the opposite direction is generated to return it to the current position. Therefore, in FIG. 3, high speed mode H i or low speed mode L p
When switching from to hold mode Hp , a torque is generated in the stepping motor 6 at each moment to maintain the state at that moment, and as a result, the stepping motor 6 is braked and decelerated.

低速モードにおいては、第4図bに示すよう
に、現在位置で最大であつて、回転するとともに
減少するようにトルク曲線が設定される。そこ
で、いま、第4図bのようにトルク曲線が設定さ
れると、矢印X方向に回転するように、最大のト
ルクが生じ、回転とともに、トルクが減少してい
く。
In the low speed mode, as shown in FIG. 4b, the torque curve is set so that it is maximum at the current position and decreases as the engine rotates. Therefore, if the torque curve is set as shown in FIG. 4b, the maximum torque will be generated as the motor rotates in the direction of the arrow X, and the torque will decrease as the motor rotates.

高速モードにおいては、現在位置で零であつ
て、回転するとともに増大していくトルク曲線が
設定される。この場合、第3図において、角度0
において高速モードHiを設定すると、このとき
のトルクは零であるから、ステツピングモータ6
は回転することができず、何らかの原因で所望の
方向とは逆方向に回転力を加わると、その方向に
回転し始めてしまい、非常に不安定である。この
ために、実際には、一旦低速モードに設定して所
望の方向に回転した後高速モードHiを設定する
ようにしている。
In the high-speed mode, a torque curve is set that is zero at the current position and increases as the motor rotates. In this case, in Fig. 3, the angle 0
When the high-speed mode H i is set, the torque at this time is zero, so the stepping motor 6
cannot rotate, and if for some reason a rotational force is applied in the opposite direction to the desired direction, it will begin to rotate in that direction, making it extremely unstable. For this purpose, in practice, the low speed mode is once set and the high speed mode H i is set after rotating in the desired direction.

高速モード時のトルクをこのように設定するの
は、ステツピングモータ6のコイルのインダクタ
ンス成分により供給電流の立上りに遅れが生じ、
このために、ステツピングモータ6に生ずる供給
電流による力が遅れを生ずるから、この遅れを考
慮してステツピングモータ6のトルクの最大点を
づらしたものであり、ステツピングモータが最大
のトルクのとき、最大のパワーが出るようにして
効率を向上させるものである。
The reason why the torque in high-speed mode is set in this way is that there is a delay in the rise of the supplied current due to the inductance component of the coil of the stepping motor 6.
For this reason, the force generated by the supply current generated in the stepping motor 6 is delayed, so the maximum torque point of the stepping motor 6 is shifted in consideration of this delay, and the maximum torque point of the stepping motor 6 is shifted. It improves efficiency by producing maximum power when

以上のように、各モードにおけるステツピング
モータ6のドライブ信号を形成するために、ホー
ルドパルスパターン発生器9とパルス変換器11
が設けられている。
As described above, in order to form a drive signal for the stepping motor 6 in each mode, the hold pulse pattern generator 9 and the pulse converter 11
is provided.

ホールドパルスパターン発生器9は、ホールド
モード時でのステツピングモータ6のドライブ信
号と同じ位相の信号、すなわち、ホールドパルス
パターンをセンサ5からのパルス信号に同期して
発生する。パルス変換器11は、比較ユニツト1
0からの指令信号により、ホールドパルスパター
ンを各モードに応じて移相させてドライブ信号を
形成するものであつて、高速モード時にはホール
ドパルスパターンを所定量移相させ、低速モード
時にはホールドパルスパターンを他の所定量移相
させ、また、ホールドモード時には、ホールドパ
ルスパターンをそのままの位相とする。
The hold pulse pattern generator 9 generates a signal having the same phase as the drive signal of the stepping motor 6 in the hold mode, that is, a hold pulse pattern in synchronization with the pulse signal from the sensor 5. The pulse converter 11 is connected to the comparison unit 1
A drive signal is formed by shifting the phase of the hold pulse pattern according to each mode according to a command signal from 0. In the high speed mode, the hold pulse pattern is phase shifted by a predetermined amount, and in the low speed mode, the hold pulse pattern is shifted. The phase is shifted by another predetermined amount, and in the hold mode, the phase of the hold pulse pattern is kept unchanged.

第5図はステツピングモータ6が4相励磁の場
合のドライブ回路7の動作の一例を説明するタイ
ミングチヤートであつて、Sはセンサ5の出力パ
ルス信号、HA,HB,HC,HDはホールドパルス
パターン発生器9の出力信号(ホールドパルスパ
ターン)、CA,CB,CC,CDはパルス変換器11か
らのドライブ信号であつて、ステツピングモータ
6の各相コイルに供給されるものである。
FIG. 5 is a timing chart illustrating an example of the operation of the drive circuit 7 when the stepping motor 6 is 4-phase excited, where S is the output pulse signal of the sensor 5, H A , H B , H C , H D is the output signal (hold pulse pattern) of the hold pulse pattern generator 9, and C A , C B , C C , and C D are drive signals from the pulse converter 11, which are applied to each phase coil of the stepping motor 6. It is supplied.

いま、センサ5がパルス信号の1サイクルを出
力するに要するステツピングモータ6の回転を1
ステツプとし、活字ホイール1の所望の活字が現
在位置から印字位置まで移動するために、ステツ
ピングモータ6が19ステツプ回転する場合につい
て説明するが、この場合、第3図で説明したよう
に、ステツピングモータ6の起動時においては、
まず、低速モードLpが設定され、ステツピングモ
ータ6が回転し始めると、高速モードHi、ホー
ルドモードHp、低速モードLpが順次設定され、
最後に、ホールドモードHpが設定されて上記活
字が印字位置に設定されるように、ステツピング
モード6が制御されるものとし、最初の低速モー
ドLpから高速モードHiへの切換えは1ステツプ
目で、高速モードHiからホールドモードHpへの
切換えは8ステツプ目で、このホールドモード
Hpから低速モードLpへの切換えは12ステツプ目
で、また、この低速モードLpからホールドモード
Hpへの切換えは17ステツプ目で切換えられ、こ
のようなステツプで切換えられると、所望の活字
が印字位置に設定されるものとする。
Now, the rotation of the stepping motor 6 required for the sensor 5 to output one cycle of the pulse signal is 1 rotation.
A case will be described in which the stepping motor 6 rotates 19 steps in order to move the desired type on the type wheel 1 from the current position to the printing position. When starting the ping motor 6,
First, the low speed mode L p is set, and when the stepping motor 6 starts rotating, the high speed mode H i , the hold mode H p , and the low speed mode L p are sequentially set.
Finally, the stepping mode 6 shall be controlled so that the hold mode H p is set and the above-mentioned type is set at the printing position, and the initial switching from the low speed mode L p to the high speed mode H i is 1. At the 8th step, switching from high-speed mode H i to hold mode H p is performed at the 8th step.
Switching from H p to low speed mode L p is the 12th step, and from this low speed mode L p to hold mode
It is assumed that the switch to H p is made at the 17th step, and when the switch is made at such a step, the desired type is set at the print position.

さて、第2図のホールドパルスパターン発生器
9は、センサ5からのパルス信号Sに位相同期し
た4つの信号HA,HB,HC,HDを発生する。こ
れらの信号は、その周期がパルス信号Sの4周
期、すなわち、4ステツプに等しく、2ステツプ
毎に立上りと立下りとが交互に有する。これらの
信号間では、π/2ラジアンだけ位相が順次異な
り、信号HA,HB,HC,HDの順でπ/2ラジア
ンづつ位相が進んでいる。
Now, the hold pulse pattern generator 9 shown in FIG. 2 generates four signals H A , H B , H C , HD which are phase synchronized with the pulse signal S from the sensor 5 . These signals have a period equal to four periods of the pulse signal S, that is, four steps, and have rising and falling edges alternately every two steps. The phases of these signals are sequentially different by π/2 radians, and the phases of the signals H A , HB , HC , and HD are advanced by π/2 radians in that order.

いま、これらの信号の高レベルを“1”、低レ
ベルを“0”とし、ステツプ毎の信号HA,HB
HC,HDのレベルの組み合わせ(HA,HB,HC
HD)をみると、(1,1,0,0),(1,0,
0,1),(0,0,1,1),(0,1,1,0)
の順で1ステツプづつレベルの組合わせが変化
し、かつ、4ステツプ毎に繰り返えされる。かか
るレベルの組合わせ(部分パターン)の変化パタ
ーン、すなわち、パルスパターンがホールドパル
スパターン発生器9から発生され、ドライブ信号
がかかるパルスパターンを有するときに、ステツ
ピングモータ6はホールドモードに設定されるも
のであつて、このパルスパターンがホールドパル
スパターンである。
Now, let us assume that the high level of these signals is "1" and the low level is "0", and the signals H A , H B ,
Combination of levels of H C and HD (H A , H B , H C ,
H D ), (1, 1, 0, 0), (1, 0,
0,1), (0,0,1,1), (0,1,1,0)
The combination of levels changes step by step in this order, and is repeated every four steps. When a change pattern of such level combinations (partial patterns), that is, a pulse pattern, is generated from the hold pulse pattern generator 9, and the drive signal has such a pulse pattern, the stepping motor 6 is set to the hold mode. This pulse pattern is a hold pulse pattern.

パルス変換器11は、上記信号HA,HB,HC
HDを、高速モードおよび低速モード時移相せし
める。高速モード時の移相量はπラジアン(2ス
テツプ)であり、低速モード時の移相量は3π/
2ラジアン(3ステツプ)である。このことは、
高速モード時、ホールドパルスパターンの部分パ
ターンを次のように変換したことにほかならな
い。すなわち、 (1,1,0,0)→(0,0,1,1) (1,0,0,1)→(0,1,1,0) (0,0,1,1)→(1,1,0,0) (0,1,1,0)→(1,0,0,1) したがつて、ホールドモード時、ステツピング
モータ6に第1相のコイルに供給される信号(す
なわち、コイル信号)CAが信号HA、第2相のコ
イル信号CBが信号HB、第3相のコイル信号CC
信号HC、第4相のコイル信号CDが信号HDとする
と、高速モード時には、コイル信号CAを信号HC
に、コイル信号CBを信号HDに、コイル信号CC
信号HAに、コイル信号CDを信号HBにすればよ
い。このことによつて、第4図aに示すトルク曲
線がπラジアンだけ右方に移動した第4図cのト
ルク曲線が得られる。
The pulse converter 11 receives the signals H A , H B , H C ,
HD is phase shifted in high speed mode and low speed mode. The amount of phase shift in high speed mode is π radians (2 steps), and the amount of phase shift in low speed mode is 3π/
2 radians (3 steps). This means that
In high-speed mode, this is nothing more than converting the partial pattern of the hold pulse pattern as follows. That is, (1,1,0,0)→(0,0,1,1) (1,0,0,1)→(0,1,1,0) (0,0,1,1)→ (1,1,0,0) (0,1,1,0)→(1,0,0,1) Therefore, in the hold mode, the voltage is supplied to the first phase coil of the stepping motor 6. The signal (i.e., coil signal) C A is the signal H A , the second phase coil signal C B is the signal H B , the third phase coil signal C C is the signal H C , and the fourth phase coil signal C D is the signal Assuming H D , in high-speed mode, the coil signal C A is changed to the signal H C
In this case, the coil signal C B can be changed to the signal HD , the coil signal C C can be changed to the signal H A , and the coil signal C D can be changed to the signal H B. This results in the torque curve of FIG. 4c, which is the torque curve of FIG. 4a shifted to the right by π radians.

同様にして、低速モード時においては、ホール
ドパルスパターンの部分パターンは次のように変
換されたことになる。すなわち、 (1,1,0,0)→(1,0,0,1) (1,0,0,1)→(0,0,1,1) (0,0,1,1)→(0,1,1,0) (0,1,1,0)→(1,1,0,0) したがつて、この場合には、コイル信号CA
信号HBに、コイル信号CBを信号HCに、コイル信
号CCを信号HDに、また、コイル信号CDを信号HA
とすればよい。このことによつて、第4図aに示
すトルク曲線が、π/2ラジアンだけ右方に移動
した第4図bのトルク曲線が得られる。
Similarly, in the low speed mode, the partial pattern of the hold pulse pattern is converted as follows. That is, (1,1,0,0)→(1,0,0,1) (1,0,0,1)→(0,0,1,1) (0,0,1,1)→ (0,1,1,0) (0,1,1,0)→(1,1,0,0) Therefore, in this case, the coil signal C A becomes the signal H B , and the coil signal C B to signal H C , coil signal C C to signal H D , and coil signal C D to signal H A
And it is sufficient. This results in the torque curve shown in FIG. 4b being shifted from the torque curve shown in FIG. 4a to the right by π/2 radians.

パルスカウントユニツト8は、センサ5からの
パルス信号の各パルス毎に1づつ減算する減算回
路であり、まず、値19がセツトされる。
The pulse count unit 8 is a subtraction circuit that subtracts 1 for each pulse of the pulse signal from the sensor 5, and is initially set to a value of 19.

そこで、ステツピングモータ6の起動時、パル
スカウントユニツト8からの値19が比較ユニツト
10に供給され、低速モードLpの指令信号がパル
ス変換器11に供給される。この指令信号にもと
づいて、パルス変換器11は供給されるホールド
パルスパターンを上記のように変換し、低速モー
ドLpに応じたドライブ信号を発生する。このドラ
イブ信号は駆動増幅器12で増幅されてステツピ
ングモータ6にコイル信号として供給される。
Therefore, when the stepping motor 6 is started, the value 19 from the pulse count unit 8 is supplied to the comparator unit 10, and a command signal for the low speed mode Lp is supplied to the pulse converter 11. Based on this command signal, the pulse converter 11 converts the supplied hold pulse pattern as described above, and generates a drive signal corresponding to the low speed mode L p . This drive signal is amplified by a drive amplifier 12 and supplied to the stepping motor 6 as a coil signal.

そこで、ステツピングモータ6は低速回転し、
センサ5からパルス信号が得られる。パルスカウ
ントユニツト8がカウント値18となると(1ステ
ツプ目)、これを比較ユニツト10が検知し、パ
ルス変換器11に高速モードHiの指令信号を与
える。パルス変換器11は、この指令信号にもと
づいて、ホールドパルスパターンを上記のように
変換し、ステツピングモータ6は高速モードHi
となつて加速回転する。
Therefore, the stepping motor 6 rotates at a low speed,
A pulse signal is obtained from the sensor 5. When the pulse count unit 8 reaches a count value of 18 (first step), the comparison unit 10 detects this and gives a command signal for the high speed mode Hi to the pulse converter 11. The pulse converter 11 converts the hold pulse pattern as described above based on this command signal, and the stepping motor 6 switches to the high speed mode H i
It rotates at an accelerated pace.

次に、8ステツプ目でパルスカウントユニツト
8のカウント値が11となると、比較ユニツト10
はホールドモードHpの指令信号を発し、パルス
変換器11はホールドパルスパターンと同じパル
スパターンのドライブ信号を発生する。このため
に、ステツピングモータ6はホールドモードHp
となり、ブレーキがかかつて減速回転する。
Next, when the count value of pulse count unit 8 reaches 11 at the 8th step, comparison unit 10
emits a command signal for hold mode H p , and pulse converter 11 generates a drive signal with the same pulse pattern as the hold pulse pattern. For this purpose, the stepping motor 6 is in the hold mode H p
As a result, the brake is applied and the rotation is decelerated.

さらに、12ステツプ目でパルスカウントユニツ
ト8のカウント値が7となると、比較ユニツト1
0は低速モードLpの指令信号を発し、パルス変換
器11はホールドパルスパターンを上記のように
変換し、ステツピングモータ6は低速回転する。
Furthermore, when the count value of pulse count unit 8 reaches 7 at the 12th step, comparison unit 1
0 issues a command signal for the low speed mode Lp , the pulse converter 11 converts the hold pulse pattern as described above, and the stepping motor 6 rotates at a low speed.

そして、17ステツプ目でパルスカウントユニツ
トのカウント値が2となると、比較ユニツト10
からホールドモードHpの指令信号が発生され、
ステツピングモータ6は減速して、所望の活字が
印字位置に来ると停止する。
Then, when the count value of the pulse count unit becomes 2 at the 17th step, the comparison unit 10
A command signal for hold mode H p is generated from
The stepping motor 6 decelerates and stops when the desired character comes to the printing position.

このようにして、ステツピングモータ6が制御
され、所望の活字が印字位置に設定されるのであ
るが、位置設定が精度よく行なわれるためには、
各モードでのステツピングモータ6の回転速度が
正確でなければならない。たとえば、第3図に示
すような速度曲線を経ることにより、現在位置
(角度0)にある活字が角度Dの印字位置に精度
よく設定されるものとすると、高速モードHi
低速モードLpにおける速度の少なくともいずれか
がわずかに変化しても、活字は角度Dでは停止し
ないし、また、ホールドモードHpでのブレーキ
作用がわずかに狂つても、活字は印字位置からず
れて停止する。
In this way, the stepping motor 6 is controlled and the desired type is set at the printing position, but in order to set the position accurately,
The rotation speed of the stepping motor 6 in each mode must be accurate. For example, if the type at the current position (angle 0) is accurately set to the printing position at angle D by passing through the speed curve shown in FIG. 3, then the high speed mode H i ,
Even if at least one of the speeds changes slightly in the low speed mode L p , the type will not stop at angle D, and even if the brake action in the hold mode H p is slightly out of order, the type will deviate from the printing position. and stop.

このように、この従来のドライブ回路を用いた
ステツピングモータの制御方法は、各モードでの
ステツピングモータの回転速度の精度が非常に重
要なポイントとなつている。
As described above, in the method of controlling a stepping motor using this conventional drive circuit, the accuracy of the rotational speed of the stepping motor in each mode is a very important point.

ところが、かかるステツピングモータの制御を
行なうことができるようにするために、所望の速
度特性が精度よく得られるべくステツピングモー
タを設計し、また、活字を印字位置まで移動させ
る全てのケースについてのモードの選定およびモ
ードの切換時点(ステツプ数)がステツピングモ
ータの速度特性に応じて設定されるわけである
が、設計値と実際の値とは必ずしも一致せず、ど
うしても多少の誤差が生ずることにより、活字の
位置設定の精度が低いことになる。
However, in order to be able to control such a stepping motor, the stepping motor must be designed so that the desired speed characteristics can be obtained with high accuracy, and the stepping motor must be designed so that the desired speed characteristics can be obtained with high accuracy. The mode selection and mode switching point (number of steps) are set according to the speed characteristics of the stepping motor, but the design value and the actual value do not necessarily match, and some errors inevitably occur. As a result, the accuracy of setting the position of the printed characters is low.

さらに、たとえ、製作時、ステツピングモータ
の速度特性やモードの切換時点が高精度に設定す
ることができたとしても、たとえば、ステツピン
グモータの速度特性などは、温度や湿度などの周
囲環境によつて変化するし、また、経年変化を伴
なうものであるから、活字の位置設定精度が劣化
することになる。
Furthermore, even if the speed characteristics and mode switching points of a stepping motor can be set with high precision during manufacturing, the speed characteristics of a stepping motor will depend on the surrounding environment such as temperature and humidity. Since it changes over time and is accompanied by aging, the accuracy of setting the position of printed characters deteriorates.

以上のことは、プリンタの活字の位置設定ばか
りでなく、一般に、移動体をステツピングモータ
を用いて移動させる機器について言えることであ
つて、従来のドライブ回路では、移動体の位置設
定を常時精度良く行なうことは、実際上不可能で
あつた。
The above can be said not only for setting the position of type in a printer, but also for devices that use stepping motors to move moving objects in general. It was practically impossible to do well.

本考案の目的は、上記従来技術の欠点を除き、
ステツピングモータによる移動体の位置設定を、
常時、高精度で行なうことができるようにしたス
テツピングモータのドライブ回路を提供するにあ
る。
The purpose of the present invention is to eliminate the drawbacks of the above-mentioned prior art,
Setting the position of a moving object using a stepping motor,
To provide a stepping motor drive circuit capable of always performing high precision driving.

この目的を達成するために、本考案は、ステツ
ピングモータの最終モードであるホールドモード
において、該ホールドモード開始時点における該
ステツピングモータの回転速度に応じたブレーキ
作用を、該ステツピングモータに生じさせるよう
にした点に特徴とする。
In order to achieve this objective, the present invention creates a braking action on the stepping motor in the hold mode, which is the final mode of the stepping motor, in accordance with the rotational speed of the stepping motor at the start of the hold mode. It is characterized by the fact that it allows

以下、本考案の実施例を図面について説明す
る。
Embodiments of the present invention will be described below with reference to the drawings.

第6図は本考案によるステツピングモータのド
ライブ回路の一実施例を示すブロツク図であつ
て、13は立下り検出器、14はパルス間隔検出
器、15は時間・速度変換器、16はアンドゲー
ト、17はオア回路、18,19,20,21は
レジスタ、22,23,24は比較器、25,2
6,27は演算器、28,29,30はレジス
タ、31は比較器、32はレジスタ、33,3
4,35,36は比較器、37,38はプログラ
マグル遅延回路、39,40はアンドゲート、4
1はオア回路、42,43,44はインバータ、
45はメモリ、46は制御ユニツト、47は増幅
器であり、第2図に対応する部分には同一符号を
つけて説明を一部省略する。
FIG. 6 is a block diagram showing an embodiment of the stepping motor drive circuit according to the present invention, in which 13 is a fall detector, 14 is a pulse interval detector, 15 is a time/speed converter, and 16 is an AND gate, 17 is an OR circuit, 18, 19, 20, 21 are registers, 22, 23, 24 are comparators, 25, 2
6, 27 are arithmetic units, 28, 29, 30 are registers, 31 are comparators, 32 are registers, 33, 3
4, 35, 36 are comparators, 37, 38 are programmable delay circuits, 39, 40 are AND gates, 4
1 is an OR circuit, 42, 43, 44 are inverters,
45 is a memory, 46 is a control unit, and 47 is an amplifier, and parts corresponding to those in FIG. 2 are given the same reference numerals, and some explanations will be omitted.

第6図において、センサ5からのパルス信号S
は増幅器47で増幅され、本考案によるドライブ
回路7の立下り検出器13に供給される。立下り
検出器13は供給された上記のパルス信号Sの立
下りに一致したパルス信号、すなわち、立下りパ
ルス信号aを発生し、この立下りパルス信号aは
パルス間隔検出器14、パルスカウントユニツト
8およびアンドゲート16に供給される。
In FIG. 6, the pulse signal S from the sensor 5
is amplified by an amplifier 47 and supplied to the fall detector 13 of the drive circuit 7 according to the present invention. The falling edge detector 13 generates a pulse signal that coincides with the falling edge of the supplied pulse signal S, that is, a falling pulse signal a, and this falling pulse signal a is sent to the pulse interval detector 14 and the pulse count unit. 8 and an AND gate 16.

比較器33の出力レベルが低レベル(以下、
“L”という)のときには、インバータ44によ
つてアンドゲート16は導通状態にあり、立下り
パルス信号aはアンドゲート16、オア回路17
を介してホールドパルスパターン発生器9に供給
される。このために、ホールドパルスパターン発
生器9は立下りパルス信号a、したがつて、セン
サ5からのパルス信号Sに位相同期したホールド
パルスパターンHを発生し、パルス変換器11は
このホールドパルスパターンを各モードに応じた
処理をなしてドライブ信号Cを発生する。ステツ
ピングモータ6はかかるドライブ信号Cによつて
制御されるが、以上の動作は、第2図で示した従
来のドライブ回路と同様である。
When the output level of the comparator 33 is low level (hereinafter referred to as
(referred to as "L"), the AND gate 16 is in a conductive state by the inverter 44, and the falling pulse signal a is transmitted to the AND gate 16 and the OR circuit 17.
The signal is supplied to the hold pulse pattern generator 9 via the hold pulse pattern generator 9. For this purpose, the hold pulse pattern generator 9 generates a hold pulse pattern H that is phase synchronized with the falling pulse signal a, and therefore the pulse signal S from the sensor 5, and the pulse converter 11 converts this hold pulse pattern into A drive signal C is generated by performing processing according to each mode. The stepping motor 6 is controlled by the drive signal C, and the above operation is similar to the conventional drive circuit shown in FIG.

パルス間隔検出器14は立下りパルス信号aの
各パルス間の時間間隔を測定し、時間・速度変換
器15は、パルス間隔検出器14で検出された時
間間隔から、ステツピングモータ6の各ステツプ
毎の平均回転速度を検出する。したがつて、パル
ス間隔検出器14と時間・速度変換器15とで速
度検出ユニツトを構成する。
The pulse interval detector 14 measures the time interval between each pulse of the falling pulse signal a, and the time/speed converter 15 calculates each step of the stepping motor 6 from the time interval detected by the pulse interval detector 14. Detect the average rotational speed for each rotation. Therefore, the pulse interval detector 14 and the time/speed converter 15 constitute a speed detection unit.

比較器33,34,35,36は第2図の比較
ユニツト10に対応する。比較器34は、パルス
カウントユニツト8のカウント値Mとレジスタ2
9に格納されている数値N1とを比較し、M>N1
のときに、高レベル(以下、“H”という)の高
速指令信号hiを発生する。比較器35は、パルス
カウントユニツト8のカウント値M、レジスタ2
9に格納されている数値N1およびレジスタ30
に格納されている数値N2が供給され、N1≧M>
N2のときに、“H”のホールド指令信号hpを発生
する。比較器36は、パルスカウントユニツト8
のカウント値Mとレジスタ30に格納されている
数値N2とを比較し、N2≧Mのときに、“H”の
低速指令信号lpを発生する。さらに、比較器33
は、ステツピングモータ6の最終モードであるホ
ールドモードを設定するためのものであつて、一
定の基準値が設定されていて、パルスカウントユ
ニツト8のカウント値Mがこの基準値に等しくな
つたとき、“H”の出力信号fを発生し、これが
ホールド指令信号hpとなる。
Comparators 33, 34, 35, 36 correspond to comparison unit 10 of FIG. The comparator 34 compares the count value M of the pulse count unit 8 with the register 2.
Compare the value N 1 stored in 9 and find that M>N 1
At this time, a high-speed command signal h i of high level (hereinafter referred to as "H") is generated. The comparator 35 receives the count value M of the pulse count unit 8 and the register 2.
Numeric value N 1 stored in 9 and register 30
A numerical value N 2 stored in is supplied, and N 1 ≧M>
When N2 , a hold command signal hp of "H" is generated. The comparator 36 is connected to the pulse counting unit 8
The count value M is compared with the numerical value N 2 stored in the register 30, and when N 2 ≧M, a low speed command signal l p of “H” is generated. Furthermore, the comparator 33
is for setting the hold mode which is the final mode of the stepping motor 6, and a certain reference value is set, and when the count value M of the pulse count unit 8 becomes equal to this reference value. , generates an "H" output signal f, which becomes the hold command signal h p .

比較器34からの高速指令信号hiはアンドゲー
ト39を通してパルス変換器11に供給され、パ
ルス変換器11を高速モードとする。比較器35
からのホールド指令信号hpはオア回路を通してパ
ルス変換器11に供給され、パルス変換器11を
ホールドモードとする。比較器36からの低速指
令信号lpはアンドゲート40を通してパルス変換
器11に供給され、パルス変換器11を低速モー
ドとするとともに、インバータ43で反転されて
アンドゲート39を遮断状態とする。これは、レ
ジスタ29,30に格納される数値が、後述する
ように設定されることから、高速モードよりも低
速モードを優先させるためである。さらに、比較
器33の“H”の出力信号fはオア回路41を通
してパルス変換器11をホールドモードとすると
ともに、インバータ42で反転されてアンドゲー
ト40を遮断する。これは、同様にしてレジスタ
29,30に格納される数値から、比較器33の
出力信号fによつて設定されるホールドモード
が、低速モードよりも優先させるためである。
The high speed command signal h i from the comparator 34 is supplied to the pulse converter 11 through the AND gate 39, and puts the pulse converter 11 into the high speed mode. Comparator 35
The hold command signal h p from the pulse converter 11 is supplied to the pulse converter 11 through the OR circuit, and the pulse converter 11 is placed in the hold mode. The low-speed command signal l p from the comparator 36 is supplied to the pulse converter 11 through the AND gate 40 to put the pulse converter 11 into the low-speed mode, and is inverted by the inverter 43 to turn the AND gate 39 into a cutoff state. This is because the numerical values stored in the registers 29 and 30 are set as described later, so that the low speed mode is prioritized over the high speed mode. Furthermore, the "H" output signal f of the comparator 33 passes through the OR circuit 41 to put the pulse converter 11 into the hold mode, and is inverted by the inverter 42 to cut off the AND gate 40. This is because the hold mode set by the output signal f of the comparator 33 is given priority over the low speed mode based on the numerical values similarly stored in the registers 29 and 30.

ここで、この実施例をプリンタの活字ホイール
1(第1図)の制御を対象とし、ステツピングモ
ータ6が第3図に示す速度曲線を呈するものとし
て説明することにする。しかし、これは、活字ホ
イールに限らず、一般の移動体の駆動制御につい
て同様に適用されるものである。なお、第3図に
おいて示されていないが、初段モードとして、高
速モードHiの前に低速モードLpが設けられてい
ることはいうまでもない。
Here, this embodiment will be described with reference to control of the type wheel 1 (FIG. 1) of a printer, and assuming that the stepping motor 6 exhibits the speed curve shown in FIG. 3. However, this is applicable not only to type wheels but also to drive control of general moving bodies. Although not shown in FIG. 3, it goes without saying that a low speed mode L p is provided as the first stage mode before the high speed mode H i .

そこで、パルスカウントユニツト8は、角度D
(第3図)だけステツピングモータ6が回転する
ときのステツプ数がプリセツトされ、立下りパル
ス信号aの各パルス毎に値1づつカウントダウン
する。また、パルスカウントユニツト8には、た
とえば、フリツプフロツプ回路も設けられてお
り、立下りパルスが1つ供給されると、パルスカ
ウントユニツト8が1つダウンカウントしたこと
を検知し、後述するような高速モードHiの開始
を表わす指令信号を発生する。
Therefore, the pulse count unit 8 calculates the angle D
The number of steps when the stepping motor 6 rotates by the amount shown in FIG. 3 is preset, and counts down by one for each pulse of the falling pulse signal a. The pulse count unit 8 is also provided with a flip-flop circuit, for example, and when one falling pulse is supplied, the pulse count unit 8 detects that it has counted down by one, and performs high-speed counting as described below. A command signal indicating the start of mode H i is generated.

一方、レジスタ29には、ステツピングモータ
6が角度A(第3図)回転したときのパルスカウ
ントユニツト8のカウント値に等しい数値(以
下、角度Aの値という)が格納される。レジスタ
30には、パルスカウントユニツト8にプリセツ
トされるステツプ数よりも大きな数値(以下、初
段値という)とステツピングモータ6が角度B
(第3図)回転したときのパルスカウントユニツ
トのカウント値に等しい数値(以下、角度Bの値
という)が選択的に格納される。これら初段値と
角度Bの値とのレジスタ30の入れ換えは、パル
スカウンタユニツト8から発生される上記指令信
号にもとづいて行なわれ、この指令信号は、パル
スカウントユニツト8のカウント値が、ステツピ
ングモータ6の初段モードである低速モードと高
速モードとの境に対応したカウント値になつたと
きに生ずる。
On the other hand, the register 29 stores a numerical value (hereinafter referred to as the value of angle A) equal to the count value of the pulse count unit 8 when the stepping motor 6 rotates through the angle A (FIG. 3). The register 30 contains a value larger than the number of steps preset in the pulse count unit 8 (hereinafter referred to as the initial step value) and a value when the stepping motor 6 is at an angle B.
(FIG. 3) A numerical value (hereinafter referred to as the value of angle B) equal to the count value of the pulse count unit when the rotation is performed is selectively stored. The exchange of these initial stage values and the value of angle B in the register 30 is performed based on the above-mentioned command signal generated from the pulse counter unit 8, and this command signal indicates that the count value of the pulse counter unit 8 is This occurs when a count value corresponding to the boundary between the low speed mode and the high speed mode, which is the first stage mode of No. 6, is reached.

パルスカウントユニツト8のプリセツト値やレ
ジスタ29,30に格納される数値は、予じめメ
モリ45に記憶されており、制御ユニツト46の
制御のもとに、これらの数値は読み出されてパル
スカウンタ8やレジスタ29,30に供給され、
ステツピングモータ6の1回の動作が完了する
と、レジスタ29,30に格納されている数値は
再びメモリ45に戻される。また、パルスカウン
トユニツト8で生じた上記の指令信号は、制御ユ
ニツト46に供給され、レジスタ30に格納され
る数値を初段値から角度Bの値に変更する。
The preset value of the pulse count unit 8 and the numerical values stored in the registers 29 and 30 are stored in advance in the memory 45, and under the control of the control unit 46, these numerical values are read out and stored in the pulse counter. 8 and registers 29 and 30,
When one operation of the stepping motor 6 is completed, the values stored in the registers 29 and 30 are returned to the memory 45. Further, the above command signal generated by the pulse count unit 8 is supplied to the control unit 46, and changes the numerical value stored in the register 30 from the initial value to the value of the angle B.

比較器33には、ステツピングモータ6が角度
C(第3図)回転したときのパルスカウントユニ
ツト8のカウント値に等しい基準値が設定されて
いる。ここで、第3図に示す最終のホールドモー
ドHp期間のステツプ数は、ステツピングモータ
6が1回の動作、すなわち、活字ホイール1(第
1図)の所望の活字を印字位置に設定するに要す
るステツプ数に無関係に一定としており、パルス
カウントユニツト8がカウントダウン機能をもた
せることにより、比較器33の基準値を一定とす
ることができるようにしている。
A reference value is set in the comparator 33, which is equal to the count value of the pulse count unit 8 when the stepping motor 6 rotates by an angle C (FIG. 3). Here, the number of steps in the final hold mode H p period shown in FIG. 3 is determined by one operation of the stepping motor 6, that is, setting the desired type on the type wheel 1 (FIG. 1) at the printing position. The reference value of the comparator 33 can be kept constant by providing the pulse count unit 8 with a countdown function.

なお、比較器31は基準値零が設定されてお
り、この基準値とパルスカウントユニツト8のカ
ウント値Mと比較することにより、このカウント
値Mが零になつたことを検知して移動終了信号を
発生する。
Note that the comparator 31 is set to a reference value of zero, and by comparing this reference value with the count value M of the pulse count unit 8, it detects that this count value M has become zero and issues a movement end signal. occurs.

次に、本考案の要部をなす、ステツピングモー
タ6の速度特性の誤差やブレーキ作用の誤差に伴
なう活字ホイール駆動制御の誤差の補正手段につ
いて説明する。
Next, a description will be given of means for correcting errors in type wheel drive control that are caused by errors in the speed characteristics of the stepping motor 6 and errors in the braking action, which constitute the essential part of the present invention.

この補正手段の機能は、第3図において、高速
モードHiや低速モードLpにおけるステツピング
モータ6の速度誤差、これらモード間のホールド
モードにおけるステツピングモータ6のブレーキ
作用の誤差に応じて、最終モードであるホールド
モードHpのブレーキ作用を調整し、上記速度誤
差やブレーキ作用の誤差があつても、所望の活字
が印字位置に精度よく設定することができるよう
にホーミング制御するものである。そして、かか
るブレーキ作用の調整は、現に実行されている印
字動作期間中に行なわれるが、調整されたブレー
キ作用は、次回の同じステツプ数の印字動作の最
終ホールドモードに用いられるのである。すなわ
ち、この補正手段は、各印字動作毎に、次回の同
じステツプ数の印字動作の最終ホールドモードに
おける最適なブレーキ作用が設定される学習機能
をもたせている。
As shown in FIG . 3, the function of this correction means is as follows : This adjusts the braking action in the hold mode H p , which is the final mode, and performs homing control so that the desired type can be accurately set at the printing position even if there is an error in the speed or braking action mentioned above. . The adjustment of the brake action is performed during the printing operation currently being executed, but the adjusted brake action is used in the final hold mode of the next printing operation with the same number of steps. That is, this correction means has a learning function that sets the optimum braking action in the final hold mode for the next printing operation with the same number of steps for each printing operation.

そこで、いま、第3図に示す速度曲線でもつて
ステツピングモータ6が回転するように設計され
ているものとすると、先に述べたように、比較器
33はパルスカウントユニツト8のカウント値M
が2になると、“H”の出力信号fを発生し、こ
れによつてホールドモードHp(以下、このホール
ドモードHpの期間をホーミング期間Fという)
が設定されるが、同時に、この出力信号fはイン
バータ44で反転されてアンドゲート16を遮断
状態とする。これとともに、出力信号fはプログ
ラマブル遅延回路37に供給され、第7図に示す
ように、時間T1だけ遅延された遅延信号d1が得
られる。この遅延信号d1はオア回路17とプログ
ラマブル遅延回路38とに供給され、プログラマ
ブル遅延回路38からは、第7図に示すように、
さらに時間T2だけ遅延された遅延信号d2が得ら
れてオア回路17に供給される。したがつて、こ
のホーミング期間Fでは、ホールドパルス発生器
9はオア回路17を介して供給される遅延信号
d1,d2の立上りに位相同期し、第7図に示す位相
の信号HA,HB,HC,HDによるホールドパルス
パターンが得られ、このホールドパルスパターン
のドライブ信号CA,CB,CC,CDがパルス変換器
11から得られる。
Therefore, assuming that the stepping motor 6 is designed to rotate according to the speed curve shown in FIG.
When becomes 2, it generates an "H" output signal f, which causes the hold mode H p (hereinafter, the period of this hold mode H p is referred to as the homing period F).
is set, but at the same time, this output signal f is inverted by the inverter 44 to turn off the AND gate 16. At the same time, the output signal f is supplied to the programmable delay circuit 37, and as shown in FIG. 7, a delayed signal d1 delayed by the time T1 is obtained. This delay signal d 1 is supplied to the OR circuit 17 and the programmable delay circuit 38, and from the programmable delay circuit 38, as shown in FIG.
A delayed signal d 2 that is further delayed by a time T 2 is obtained and supplied to the OR circuit 17 . Therefore, during this homing period F, the hold pulse generator 9 receives the delayed signal supplied via the OR circuit 17.
A hold pulse pattern is obtained by synchronizing the phase with the rising edges of d 1 and d 2 and the signals H A , H B , H C , HD with the phases shown in FIG . B , C C and C D are obtained from the pulse converter 11.

プログラマブル遅延回路37の遅延量はレジス
タ28に格納されている数値(以下、遅延値とい
う)D1によつて設定され、また、プログラマブ
ル遅延回路38の遅延量はレジスタ18に格納さ
れている数値(以下、遅延値という)D2によつ
て設定される。遅延値D2は活字ホイール1(第
1図)の活字を印字位置まで移動させるに要する
ステツプ数に応じて異なる一定の値であるのに対
し、遅延値D1はパルスカウントユニツト8のカ
ウント値Mが零のときのステツピングモータ6の
回転速度に応じて調整される。
The delay amount of the programmable delay circuit 37 is set by the numerical value (hereinafter referred to as delay value) D1 stored in the register 28, and the delay amount of the programmable delay circuit 38 is set by the numerical value (hereinafter referred to as delay value) stored in the register 18. (hereinafter referred to as the delay value) is set by D2 . The delay value D 2 is a constant value that varies depending on the number of steps required to move the type on the type wheel 1 (Fig. 1) to the printing position, whereas the delay value D 1 is the count value of the pulse count unit 8. It is adjusted according to the rotational speed of the stepping motor 6 when M is zero.

すなわち、時間・速度変換器15はステツピン
グモータ6の回転速度を表わす数値(以下、実速
度値Rという)を出力し、レジスタ19には、パ
ルスカウントユニツト8のカウント値Mが零のと
きのステツピングモータ6の設計上の回転速度
Voを表わす数値(以下、基準速度値Roという)
が格納されており、比較器31がカウント値Mが
零となつたことを検知すると、この基準速度値
Roと実速度値Rとは比較器22に供給される。
比較器22は、比較器31がパルスカウントユニ
ツト8のカウント値Mが零になつたことを検知す
ると、わずかの期間動作し、Ro>R,Ro=R,
Ro<Rのいずれであるかを判定する。この判定
結果は演算器25に供給され、その出力値とし
て、 Ro>Rのときには、−1 Ro=Rのときには、 0 Ro<Rのときには、+1 をレジスタ28に供給する。レジスタ28は格納
されている遅延値D1にこの出力値を加算し、次
回に用いる新たな遅延値D1として修正する。こ
れによつて、ブレーキ作用が強い場合には、カウ
ント値Mが零であるときの実速度値Rが小さくな
り、所望の活字は印字位置の手前で停止してしま
うから、プログラマブル遅延回路37の遅延量を
短かくしてブレーキの作用を弱くなるようにす
る。逆に、ブレーキ作用が弱い場合には、カウン
ト値Mが零であるときの実速度値Rは大きくな
り、所望の活字は印字位置を過ぎて停止すること
になるから、プログラマブル遅延回路37の遅延
量を長くしてブレーキの作用が強くなるようにす
る。
That is, the time/speed converter 15 outputs a numerical value representing the rotational speed of the stepping motor 6 (hereinafter referred to as the actual speed value R), and the register 19 stores the value when the count value M of the pulse count unit 8 is zero. Designed rotational speed of stepping motor 6
Numeric value representing Vo (hereinafter referred to as reference speed value Ro)
is stored, and when the comparator 31 detects that the count value M has become zero, this reference speed value
Ro and the actual speed value R are supplied to a comparator 22.
When the comparator 31 detects that the count value M of the pulse count unit 8 has become zero, the comparator 22 operates for a short period of time, and Ro>R, Ro=R,
Determine whether Ro<R. This determination result is supplied to the arithmetic unit 25, and as its output value, -1 when Ro>R, 0 when Ro=R, and +1 when Ro<R, is supplied to the register 28. The register 28 adds this output value to the stored delay value D 1 and corrects it as a new delay value D 1 to be used next time. As a result, when the braking action is strong, the actual speed value R when the count value M is zero becomes small, and the desired type stops before the printing position, so the programmable delay circuit 37 The delay amount is shortened to weaken the brake action. Conversely, if the braking action is weak, the actual speed value R when the count value M is zero will increase, and the desired printed character will stop after passing the printing position, so the delay of the programmable delay circuit 37 will increase. Increase the amount so that the brake action becomes stronger.

レジスタ19に格納される基準速度値Roは、
パルスカウントユニツト8のカウント値Mが零で
あるときの時間・速度変換器15からの実速度値
Rがこの基準速度値Roに等しいときには、必ず
活字が印字位置に精度よく停止するようにした値
であり、活字を印字位置まで移動するに要するス
テツプ数に応じた一定の値である。
The reference speed value Ro stored in the register 19 is
A value that ensures that when the actual speed value R from the time/speed converter 15 is equal to this reference speed value Ro when the count value M of the pulse count unit 8 is zero, the type always stops accurately at the printing position. , which is a constant value depending on the number of steps required to move the type to the printing position.

このようにして、プログラマブル遅延回路37
の遅延量を調整し、活字が印字位置に精度よく停
止するように、ステツピングモータ6のホーミン
グ期間Fにおけるブレーキ作用の調整を行なう。
In this way, the programmable delay circuit 37
The braking action of the stepping motor 6 during the homing period F is adjusted so that the type is accurately stopped at the printing position.

レジスタ18,28の遅延値D2,D1やレジス
タ19の基準速度値Roは通常メモリ45に記憶
されており、活字を印字位置まで移動する要する
ステツプ数に対応した値が読み出されて夫々レジ
スタ18,19,28に格納され、その活字に対
する動作が完了すると、レジスタ28に格納され
ている修正された遅延値D1は再びメモリ45に
記憶される。
The delay values D 2 and D 1 of the registers 18 and 28 and the reference speed value Ro of the register 19 are normally stored in the memory 45, and the values corresponding to the number of steps required to move the type to the printing position are read out and respectively The modified delay value D 1 stored in registers 18, 19, 28 is stored again in memory 45 when the operation for that character is completed.

なお、比較器31がカウント値Mが零であるこ
とを検知すると、プログラマブル遅延回路38は
リセツトされる。このリセツトにより、プログラ
マブル遅延回路38の出力レベルは、このリセツ
ト直前で“L”のときには、“H”に反転される。
したがつて、この出力レベルは、プログラマブル
遅延回路37からの遅延信号d1の立上りが時間
T2だけ遅延されて“L”から“H”に反転され
るか、あるいは、比較器31の出力信号によつて
“L”から“H”に反転され、この出力レベルの
反転はカウント値Mが零となる時点よりも遅れる
ことはない。
Note that when the comparator 31 detects that the count value M is zero, the programmable delay circuit 38 is reset. Due to this reset, the output level of the programmable delay circuit 38, which was at "L" immediately before this reset, is inverted to "H".
Therefore, this output level is determined by the rise of the delay signal d1 from the programmable delay circuit 37.
Either it is delayed by T 2 and inverted from "L" to "H", or it is inverted from "L" to "H" by the output signal of the comparator 31, and this inversion of the output level is caused by the count value M is never later than the point when becomes zero.

これは、カウント値Mが零となつた以後にホー
ルドパルスパターンHの相を転換すると、カウン
ト値Mが零のときには、トルクが零とならず、大
きな逆方向のトルクが生ずることになり、動作に
誤差が生じてしまうので、これを防止するためで
ある。
This is because if the phase of the hold pulse pattern H is changed after the count value M becomes zero, the torque will not become zero when the count value M is zero, but a large torque in the opposite direction will be generated, and the operation will be interrupted. This is to prevent errors from occurring.

以上によつて、ステツピングモータ6の速度誤
差やブレーキ作用の誤差による影響を防止し、活
字を印字位置よく設定されるが、さらに、高速モ
ードHiと次に続くホールドモードHpの切換時点
やこのホールドモードHpと次に続く低速モード
Lpの切換時点を、ステツピングモータ6の速度誤
差やブレーキ作用の誤差に応じて修正することに
より、次回の同じステツプ数の印字動作における
活字の印字位置への位置設定精度をより向上させ
ることができる。
As described above, the influence of the speed error of the stepping motor 6 and the brake action error can be prevented, and the printing position of the characters can be set accurately . Yako's hold mode H p and the following low speed mode
By correcting the switching point of L p according to the speed error of the stepping motor 6 and the error of the brake action, the position setting accuracy of the print position of the type in the next printing operation of the same number of steps can be further improved. I can do it.

このために、レジスタ29に格納される角度A
の値やレジスタ30に格納される角度Bの値は一
定とせず、時間・速度変換器15で検出されるス
テツピングモータ6の回転速度に応じて夫々の値
を修正する。
For this purpose, the angle A stored in the register 29
and the value of the angle B stored in the register 30 are not constant, but are modified in accordance with the rotational speed of the stepping motor 6 detected by the time/speed converter 15.

すなわち、レジスタ20には、高速モードHi
と次のホールドモードHpとの切換時点において
生ずべきステツピングモータ6の設計上の回転速
度VAを表わす数値(以下、基準速度値RAという)
が格納され、また、レジスタ21には、ホールド
モードHpと次の低速モードLpとの切換時点にお
いて生ずべきステツピングモータ6の設計上の回
転速度VBを表わす数値(以下、基準速度値RB
いう)が格納される。
That is, the register 20 contains the high-speed mode H i
A numerical value representing the designed rotational speed V A of the stepping motor 6 that should occur at the time of switching between and the next hold mode H p (hereinafter referred to as reference speed value R A )
is stored in the register 21, and the value representing the designed rotational speed VB of the stepping motor 6 that should occur at the time of switching between the hold mode Hp and the next low speed mode Lp (hereinafter referred to as the reference speed) is stored in the register 21. The value RB ) is stored.

レジスタ20の基準速度値RAと実速度値Rと
は比較器23に供給されており、比較器35の出
力信号(ホールド指令信号hp)が供給されると、
その立上り時点近傍のわずかな期間動作し、RA
>R,RA=R,RA<Rのいずれであるかを判定
する。この判定結果は演算器26に供給され、そ
の出力値として RA>Rのときには、+1 RA=Rのときには、 0 RA<Rのときには、−1 をレジスタ29に供給する。レジスタ29は格納
されている角度Aの値にこの出力値を加算し、次
回に用いる新たな角度Aの値として修正する。こ
の出力値の加算によつて、ステツピングモータ6
の回転速度が遅い場合には、高速モードHiから
ホールドモードHpに切換わる角度A(第3図)は
1ステツプだけ遅らされ、逆に、速い場合には、
1ステツプだけ進められて、高速モードHiから
ホールドモードHpへの切換時点における実速度
値Rが基準速度値RAに等しくなるようにする。
The reference speed value R A and the actual speed value R of the register 20 are supplied to the comparator 23, and when the output signal (hold command signal h p ) of the comparator 35 is supplied,
It operates for a short period of time near its rise point, and R A
>R, R A =R, R A <R is determined. This determination result is supplied to the arithmetic unit 26, and its output value is supplied to the register 29 as +1 when R A >R, 0 when R A =R, and -1 when R A <R. The register 29 adds this output value to the stored value of angle A and corrects it as a new value of angle A to be used next time. By adding this output value, the stepping motor 6
If the rotational speed of
It is advanced by one step so that the actual speed value R at the time of switching from the high speed mode H i to the hold mode H p becomes equal to the reference speed value R A .

また、レジスタ21の基準速度値RBと時間・
速度変換器15からの実速度値Rとが比較器24
に供給される。比較器24は比較器36の出力信
号(低速指令信号lp)の立上り時点近傍のわずか
な期間動作し、RB>R,RB=R,RB<Rのいず
れであるかを判定する。この判定結果は演算器2
7に供給され、その出力値として、 RB>Rのときに、−1 RB=Rのときに、 0 RB<Rのときに、+1 をレジスタ30に供給する。レジスタ30は格納
されている角度Bの値にこの出力値を加算し、次
回に用いる新たな角度Bの値として修正する。こ
れによつて、高速モードHiに続くホールドモー
ドHpにおけるステツピングモータ6のブレーキ
作用が大きいとき(すなわち、減速効果が大きい
とき)には、ホールドモードHpから低速モード
Lpに切換わる角度B(第3図)は、1ステツプだ
け進められ、逆に、ブレーキ作用が小さいときに
は、角度Bは1ステツプだけ遅らされ、ホールド
モードHpから低速モードLpへ切換わる時点での
実速度値Rが基準速度RBに等しくなるようにす
る。
In addition, the reference speed value R B of the register 21 and the time
The actual speed value R from the speed converter 15 is connected to the comparator 24.
is supplied to The comparator 24 operates for a short period of time near the rising edge of the output signal of the comparator 36 (low-speed command signal l p ), and determines whether R B > R, R B = R, or R B < R. . This judgment result is calculated by computing unit 2.
When R B >R, -1 when R B =R, and 0 when R B <R, +1 is supplied to the register 30 as its output value. The register 30 adds this output value to the stored value of angle B and corrects it as a new value of angle B to be used next time. As a result, when the braking action of the stepping motor 6 is large in the hold mode H p following the high speed mode H i (that is, when the deceleration effect is large), the hold mode H p is changed to the low speed mode.
The angle B (FIG. 3) for switching to L p is advanced by one step; conversely, when the braking action is small, angle B is delayed by one step, switching from the hold mode H p to the low speed mode L p . The actual speed value R at the time of the change is made equal to the reference speed R B.

なお、演算部26,27がレジスタ29,30
に夫々上記出力値を供給するタイミングは、比較
器35,36が夫々のモードを指令してから少な
くとも1ステツプ経過した後である。これは、レ
ジスタ29,30の夫々基準速度値RA,RBが修
正されても、比較器34,35,36が誤つた判
定をしないようにするためである。
Note that the calculation units 26 and 27 are connected to the registers 29 and 30.
The timing for supplying the above output values to the respective modes is after at least one step has elapsed since the comparators 35 and 36 commanded the respective modes. This is to prevent the comparators 34, 35, and 36 from making erroneous decisions even if the reference speed values R A and R B in the registers 29 and 30 are corrected, respectively.

以上の説明から明らかなように、レジスタ2
0,21に格納される基準速度値RA,RBは、活
字ホイール1(第1図)の活字を印字位置に移動
させるに要するステツプ数に応じて異なる一定の
値であつてメモリ45に記憶されており、活字の
現在位置と印字位置との差を表わすステツプ数が
決まると、このステツプ数に対応した基準速度値
RA,RBがメモリ45から読み出されてレジスタ
20,21に格納される。
As is clear from the above explanation, register 2
The reference speed values R A and R B stored at 0 and 21 are constant values that vary depending on the number of steps required to move the type on the type wheel 1 (FIG. 1) to the printing position, and are stored in the memory 45. Once the number of steps representing the difference between the current position of the type and the printing position is determined, the reference speed value corresponding to this number of steps is determined.
R A and R B are read from the memory 45 and stored in the registers 20 and 21.

なお、レジスタ28,29,30に格納されて
いる修正された数値のメモリ45への書き込み
は、比較器31から移動終了信号が供給されてか
ら一定時間後に動作する制御ユニツト46によつ
て行なわれる。
Note that writing of the corrected numerical values stored in the registers 28, 29, and 30 into the memory 45 is performed by the control unit 46, which operates after a certain period of time after the movement end signal is supplied from the comparator 31. .

レジスタ32はステツピングモータ6の回転方
向を決める値(以下、回転方向値という)を格納
し、ホールドパルスパターン発生器9を制御して
回転方向に応じたホールドパルスパターンHを発
生させる。
The register 32 stores a value that determines the rotational direction of the stepping motor 6 (hereinafter referred to as rotational direction value), and controls the hold pulse pattern generator 9 to generate a hold pulse pattern H corresponding to the rotational direction.

メモリ45には、これまで述べたように、活字
が印字位置に達するまでのステツプ数毎に分類さ
れて、パルスカウントユニツト8のプリセツト
値、レジスタ18,19,20,21,28,2
9,30に格納される数値が記憶されており、図
示しない装置によつて活字の必要なステツプ数が
検出されると、制御ユニツト46により、このス
テツプ数に応じた上記プリセツト値や数値が読み
出されてパルスカウントユニツト8や夫々のレジ
スタに送られる。印字動作が完了すると、レジス
タ28,29,30の修正された数値が、夫々メ
モリ45の対応するアドレスに戻されて記憶され
る。また、レジスタ32に格納されるべき回転方
向値もメモリ45の所定のアドレスに記憶されて
いる。
As described above, the memory 45 stores the preset values of the pulse count unit 8, registers 18, 19, 20, 21, 28, 2, classified by the number of steps it takes for the type to reach the printing position.
9 and 30 are memorized, and when a device (not shown) detects the required number of steps of printing, the control unit 46 reads out the preset values and numerical values corresponding to this number of steps. The signal is output and sent to the pulse count unit 8 and the respective registers. When the printing operation is completed, the corrected values in the registers 28, 29, and 30 are returned and stored at the corresponding addresses in the memory 45, respectively. Further, the rotational direction value to be stored in the register 32 is also stored at a predetermined address in the memory 45.

メモリ45はROM(読み出し専用メモリ)と
RAM(ランダムアクセスメモリ)とからなる。
ROMには、設計上設定されたパルスカウントユ
ニツト8のプリセツト値やレジスタ18,19,
20,21,28,29,30に格納される数値
が、活字が印字位置に達するまでのステツプ数毎
に分類されて書き込まれており、また、レジスタ
32に格納されるべき回転方向値も書き込まれて
いる。
The memory 45 is a ROM (read-only memory)
Consists of RAM (Random Access Memory).
The ROM contains preset values of the pulse count unit 8 set in the design and registers 18, 19,
Numerical values stored in registers 20, 21, 28, 29, and 30 are classified and written according to the number of steps it takes for the type to reach the printing position, and the rotational direction value to be stored in register 32 is also written. It is.

RAMはROMから読み出された上記数値を記
憶し、また、印字終了後、レジスタ28,29,
30からの修正された数値を記憶する。
The RAM stores the above numerical values read from the ROM, and after printing is completed, registers 28, 29,
Store the revised numbers from 30.

そこで、プリンタの電源が入ると、制御ユニツ
ト46により、ROMに書き込まれている各数値
が読み出されてRAMの所定のアドレスに書き込
まれる。次に、所望の活字について印字位置まで
のステツプ数が検出されると、このステツプ数に
応じた各アドレスの数値がRAMから読み出さ
れ、パルスカウントユニツト8や各レジスタに送
られる。
When the printer is powered on, the control unit 46 reads out each numerical value written in the ROM and writes it to a predetermined address in the RAM. Next, when the number of steps to the print position for the desired type is detected, the numerical value at each address corresponding to this number of steps is read from the RAM and sent to the pulse count unit 8 and each register.

上記所望の活字に対する印字が終了すると、レ
ジスタ28,29,30から修正された数値が
RAMに送られ、元のアドレスに書き込まれる。
再び同じステツプ数の印字動作を行なう場合に
は、この修正された数値がRAMから読み出さ
れ、夫々レジスタ28,29,30に格納され
る。
When the printing of the desired type is completed, the revised numerical values are read from the registers 28, 29, and 30.
Sent to RAM and written to original address.
When performing a printing operation with the same number of steps again, the revised numerical values are read out from the RAM and stored in the registers 28, 29, and 30, respectively.

なお、この場合、レジスタ28,29,30に
格納される数値が書き込まれるRAMのアドレス
を、印字位置までの活字の移動ステツプ数に応じ
て異ならせ、他の数値はこの移動ステツプ数に関
係なく共通のアドレスとし、移動ステツプ数が変
わる毎に、これらに対するパルスカウントユニツ
ト8のプリセツト値やレジスタ18,19,2
0,21に格納される数値をROMから読み出し
てRAMの上記共通のアドレスに書き込むように
してもよい。また、RAMには、レジスタ28,
29,30に格納される数値のみを記憶するよう
にし、パルスカウントユニツト8のプリセツト値
やレジスタ18,19,20,21,32の数値
は、直接ROMから読み出して夫々パルスカウン
トユニツトやレジスタ18〜32に供給するよう
にしてもよい。
In this case, the RAM addresses to which the numerical values stored in registers 28, 29, and 30 are written are made different depending on the number of movement steps of the type to the printing position, and the other values are written regardless of the number of movement steps. A common address is used, and each time the number of movement steps changes, the preset value of the pulse count unit 8 and the registers 18, 19, 2 are changed.
The numerical values stored in 0 and 21 may be read from the ROM and written to the above-mentioned common address in the RAM. In addition, the RAM includes registers 28,
The preset values of the pulse count unit 8 and the values of the registers 18, 19, 20, 21, and 32 are directly read from the ROM and stored in the pulse count unit and registers 18 to 32, respectively. 32 may be supplied.

制御ユニツト46は、上記した一連の動作の制
御を行なうが、また、電源投入直後および各印字
動作の開始前、パルスカウントユニツト8や各レ
ジスタをリセツトする。
The control unit 46 controls the series of operations described above, but also resets the pulse count unit 8 and each register immediately after the power is turned on and before starting each printing operation.

次に、活字に必要なステツプ数が19として、こ
の実施例の動作を説明する。この場合、上記従来
技術と同様、第5図に示すように、1ステツプ目
で低速モードLpから高速モードHiに、8ステツ
プ目で高速モードHiからホールドモードHpに、
12ステツプ目でホールドモードHpから低速モー
ドLpに、さらに、17ステツプ目でホーミング制御
を行なうホールドモードHpに切換わるようにす
るものとする。
Next, the operation of this embodiment will be explained assuming that the number of steps required for printing is 19. In this case, as in the prior art described above, as shown in FIG. 5, the first step changes from the low speed mode L p to the high speed mode H i , and the eighth step changes from the high speed mode H i to the hold mode H p .
It is assumed that the hold mode H p is switched to the low speed mode L p at the 12th step, and further to the hold mode H p in which homing control is performed at the 17th step.

さて、図示しない装置により、活字を移動させ
るに要するステツプ数が19と判定されると、制御
ユニツト46により、このステツプ数に対する各
数値がメモリ45が読み出され、パルスカウンタ
8に値19がプリセツトされ、同時に、レジスタ1
8,28に所定の遅延値D2,D1が、レジスタ1
9,20,21に所定の基準速度値Ro,RA,RB
が、レジスタ29に値11が、レジスタ30にパル
スカウントユニツト8のプリセツト値19より大き
い、たとえば、値20が夫々格納され、さらに、レ
ジスタ32にステツピングモータ6の回転方向を
設定する値が格納される。
Now, when a device (not shown) determines that the number of steps required to move the type is 19, the control unit 46 reads out each numerical value corresponding to this number of steps from the memory 45, and presets the value 19 in the pulse counter 8. and at the same time register 1
Predetermined delay values D 2 and D 1 are stored in registers 8 and 28.
9, 20, 21 are predetermined reference speed values Ro, R A , R B
However, the value 11 is stored in the register 29, the value 20, which is larger than the preset value 19 of the pulse count unit 8, is stored in the register 30, and the value for setting the rotation direction of the stepping motor 6 is stored in the register 32. be done.

この状態において、ホールドパルスパターン発
生器9はホールドパルスパターンHを発生し、比
較器33はパルスカウントユニツト8のカウント
値Mと基準値2とを比較し、比較器34はカウン
ト値Mとレジスタ29に格納されている数値N1
(=11)とを比較し、比較器35はカウント値M
がレジスタ29に格納されている数値N1(=11)
とレジスタ30に格納されている数値N2(=20)
との間にあるか否かを判定し、さらに、比較器3
6はカウント値Mとレジスタ30に格納されてい
る数値N2(=20)とを比較する。
In this state, the hold pulse pattern generator 9 generates the hold pulse pattern H, the comparator 33 compares the count value M of the pulse count unit 8 with the reference value 2, and the comparator 34 compares the count value M with the register 29. The number N stored in 1
(=11), and the comparator 35 outputs the count value M
is the numerical value N 1 (=11) stored in register 29
and the numerical value N 2 (=20) stored in register 30
Comparator 3
6 compares the count value M and the numerical value N 2 (=20) stored in the register 30.

ここで、カウント値Mは19であるから、 N2(=20)>M(=19)>N1(=11)>2 であり、先に述べたように、比較器33,35の
出力レベルは“L”、比較器34,36の出力レ
ベルは“H”となる。そこで、アンドゲート1
6,40は導通状態、アンドゲート39は遮断状
態にあり、立下り検出器13からの立下りパルス
信号aがホールドパルスパターン発生器9に供給
可能となるとともに、比較器36の“H”の出力
信号が低速指令信号lpとしてパルス変換器11に
供給される。このために、パルス変換器11はホ
ールドパルスパターンHを変換して低速ドライブ
信号Cを発生し、ステツピングモータ6は低速回
転して低速モードLpが設定される。
Here, since the count value M is 19, N 2 (=20)>M (=19)> N1 (=11)>2, and as mentioned earlier, the outputs of the comparators 33 and 35 The level is "L" and the output levels of the comparators 34 and 36 are "H". Therefore, and gate 1
6 and 40 are in a conductive state, and the AND gate 39 is in a cutoff state, so that the falling pulse signal a from the falling detector 13 can be supplied to the hold pulse pattern generator 9, and the “H” level of the comparator 36 is The output signal is supplied to the pulse converter 11 as a low speed command signal l p . For this purpose, the pulse converter 11 converts the hold pulse pattern H to generate a low-speed drive signal C, and the stepping motor 6 rotates at a low speed to set the low-speed mode Lp .

ステツピングモータ6が1ステツプ回転し、立
下り検出器13が1つの立下りパルスを発生する
と、パルスカウントユニツト8のカウント値Mは
18となる。これとともに、パルスカウントユニツ
ト8は制御ユニツト46に指令信号を送り、これ
によつて制御ユニツト46はレジスタ30に格納
されている値20をメモリ45に戻し、さらに、メ
モリ45から値7を読み出してレジスタ30に格
納する。したがつて、数値N2は7となる。
When the stepping motor 6 rotates one step and the falling edge detector 13 generates one falling pulse, the count value M of the pulse count unit 8 is
It becomes 18. At the same time, the pulse count unit 8 sends a command signal to the control unit 46, which causes the control unit 46 to return the value 20 stored in the register 30 to the memory 45, and further read out the value 7 from the memory 45. Store in register 30. Therefore, the number N 2 is 7.

そこで、 M>N1(=11)>N2(=7)>2 となり、“H”であつた比較器36の出力レベル
は“L”となつてアンドゲート39は導通状態と
なる。このために、比較器34の“H”の出力信
号は高速指令信号hiとしてパルス変換器11に供
給される。この結果、高速モードHiが設定され
てステツピングモータ6は加速されて高速回転す
る。
Therefore, M>N 1 (=11)>N 2 (=7)>2, and the output level of the comparator 36, which was "H", becomes "L" and the AND gate 39 becomes conductive. For this purpose, the "H" output signal of the comparator 34 is supplied to the pulse converter 11 as a high-speed command signal h i . As a result, the high speed mode H i is set and the stepping motor 6 is accelerated and rotates at a high speed.

ステツピングモータ6の高速回転とともに、立
下り検出器13からは立下りパルス信号aが発生
し、ホールドパルスパターン発生器9に供給され
るとともに、速度検出ユニツトに供給されて時
間・速度変換器15から実速度値Rが発生する。
Along with the high-speed rotation of the stepping motor 6, a falling pulse signal a is generated from the falling detector 13, and is supplied to the hold pulse pattern generator 9, as well as to the speed detection unit and the time/speed converter 15. The actual speed value R is generated from .

そして、パルスカウントユニツト8が、立下り
パルスが供給される毎に、値1づつ減算し、 N1(=11)≧M>N2(=7)>2 となると、これまで“H”であつた比較器34の
出力レベルは“L”となり、代りに、比較器35
の出力レベルが“H”となる。この結果、パルス
変換器11にホールド指令信号hpが供給されてホ
ールドモードHpが設定され、ステツピングモー
タ6は逆方向トルクによりブレーキが作用して減
速回転する。
Then, the pulse count unit 8 subtracts the value by 1 each time a falling pulse is supplied, and when N 1 (=11) ≧ M > N 2 (= 7) > 2, it is determined that the pulse count is "H" until now. The output level of the comparator 34 becomes "L", and the output level of the comparator 35 becomes "L" instead.
The output level becomes "H". As a result, the hold command signal h p is supplied to the pulse converter 11 and the hold mode H p is set, and the stepping motor 6 is braked by the reverse torque and rotates at a reduced speed.

比較器35の出力レベルの立上りと同時に比較
器23が動作し、レジスタ20に格納されている
基準速度値RAと実速度値Rとを比較する。この
比較結果にもとづいて演算器26は、先に述べた
ように、+1,0,−1のいずれかの加算値を発生
し、ホールドモードHpの少なくとも1ステツプ
経過後、この加算値をレジスタ29に供給してそ
こに格納されている値(この場合、11)を修正す
る。
At the same time as the output level of the comparator 35 rises, the comparator 23 operates and compares the reference speed value R A stored in the register 20 with the actual speed value R. Based on this comparison result, the arithmetic unit 26 generates an added value of +1, 0, or -1, and registers this added value after at least one step of the hold mode H p has elapsed. 29 to modify the value stored there (11 in this case).

ステツピングモータ6の減速回転とともに、さ
らに、パルスカウントユニツト8が減算し、 N1(=11)>N2(=7)≧M>2 となると、これまで“H”であつた比較器35の
出力レベルは“L”となり、代りに、これまで
“L”であつた比較器36の出力レベルは“H”
となつて低速モードLpが設定され、ステツピング
モータ6は低速回転する。
As the stepping motor 6 decelerates, the pulse count unit 8 further subtracts, and when N 1 (=11)>N 2 (=7)≧M>2, the comparator 35, which had been at “H”, The output level of the comparator 36 becomes "L", and instead, the output level of the comparator 36, which was previously "L", becomes "H".
Therefore, the low speed mode L p is set, and the stepping motor 6 rotates at a low speed.

比較器36の出力レベルが“H”となると同時
に、比較器24が動作してレジスタ21に格納さ
れている基準速度値RBと実速度値Rとを比較す
る。そして、レジスタ29と同様に、これらの差
に応じて、低速モードLpの少なくとも1ステツプ
経過後、レジスタ30に格納されている数値N2
(この場合、7)に+1,0、あるいは−1を加
算して修正する。
At the same time that the output level of the comparator 36 becomes "H", the comparator 24 operates to compare the reference speed value R B stored in the register 21 with the actual speed value R. Then, similarly to the register 29, depending on these differences, after at least one step in the low speed mode L p has passed, the numerical value N 2 stored in the register 30 is changed.
(In this case, 7) is corrected by adding +1, 0, or -1.

ステツピングモータ6がさらに回転し、 2≧M となると、これまで“L”であつた比較器33の
出力レベルは“H”となり、その“H”の出力信
号はオア回路41を通してホールド指令信号hp
してパルス変換器11に供給され、また、アンド
ゲート40を遮断状態にする。この結果、ホール
ドモードHpが設定されてステツピングモータ6
は減速回転する。これと同時に、出力信号fはイ
ンバータ44で反転されてアンドゲート16を遮
断状態とし、立下りパルス信号aの通過を阻止す
る。
When the stepping motor 6 further rotates and 2≧M, the output level of the comparator 33, which was previously “L”, becomes “H”, and the “H” output signal is passed through the OR circuit 41 as a hold command signal. It is supplied to the pulse converter 11 as h p , and also turns off the AND gate 40. As a result, the hold mode H p is set and the stepping motor 6
rotates at a reduced speed. At the same time, the output signal f is inverted by the inverter 44 to cut off the AND gate 16, thereby blocking the passage of the falling pulse signal a.

さらに、“H”の出力信号fは、レジスタ28
に格納されている遅延値D1に応じた遅延量T1(第
7図)のプログラマブル遅延回路37に供給さ
れ、遅延信号d1としてオア回路17を通してホー
ルドパルスパターン発生器9に供給される。ま
た、この遅延信号d1は、レジスタ18に格納され
ている遅延値D2に応じた遅延量T2(第7図)のプ
ログラマブル遅延回路38に供給され、遅延信号
d2としてオア回路17を通してホールドパルスパ
ターン発生器9に供給される。この結果、ホール
ドパルスパターン発生器9からは、遅延信号d1
d2の立上りに位相同期したホールドパルスパター
ンが得られる。
Furthermore, the output signal f of "H" is transmitted to the register 28.
The signal is supplied to the programmable delay circuit 37 with a delay amount T 1 (FIG. 7) corresponding to the delay value D 1 stored in the delay signal D 1 , and is supplied to the hold pulse pattern generator 9 through the OR circuit 17 as a delay signal d 1 . Further, this delay signal d 1 is supplied to a programmable delay circuit 38 with a delay amount T 2 (FIG. 7) according to the delay value D 2 stored in the register 18, and the delay signal d 1 is
It is supplied to the hold pulse pattern generator 9 through the OR circuit 17 as d 2 . As a result, the hold pulse pattern generator 9 outputs delayed signals d 1 ,
A hold pulse pattern whose phase is synchronized with the rising edge of d2 is obtained.

そこで、ステツピングモータ6は、プログラマ
ブル遅延回路37,38の遅延量に応じた逆トル
クが生じ、ブレーキが働いて減速してついには停
止する。
Therefore, a reverse torque is generated in the stepping motor 6 according to the delay amount of the programmable delay circuits 37 and 38, and the brake is applied to decelerate and finally stop.

そして、比較器31がパルスカウントユニツト
8のカウント値Mが零になつたことを検知する
と、比較器22が動作してレジスタ19に格納さ
れている基準速度値Roと実速度値Rとを比較す
る。演算器25はこれらの値の差に応じて+1,
0,−1のいずれかを発生し、この値でもつてレ
ジスタ28に格納されている遅延値D1を修正す
る。
When the comparator 31 detects that the count value M of the pulse count unit 8 has become zero, the comparator 22 operates to compare the reference speed value Ro stored in the register 19 with the actual speed value R. do. The arithmetic unit 25 calculates +1,
Either 0 or -1 is generated, and the delay value D1 stored in the register 28 is modified with this value.

印字動作が終了すると、制御ユニツト46は、
レジスタ28,29,30に格納されている修正
された値とをメモリ45に戻し、次の同じステツ
プ数19の印字のための数値として備える。
When the printing operation is completed, the control unit 46
The corrected values stored in the registers 28, 29, and 30 are returned to the memory 45 and prepared as numerical values for the next printing of the same step number 19.

ところで、メモリ45のROMに書き込まれて
いるレジスタ28,29,30に格納されるべき
数値を、そのまま用いて印字を行なうのは、誤差
が生ずる可能性が大きくて好ましいことではな
い。そこで、この誤差を除くために、電源投入
後、プリンタを所定期間試運転状態とし、各移動
ステツプ数について、所定回数づつ動作させ、レ
ジスタ28に格納されるべき遅延値D1、レジス
タ29,30に格納されるべき数値N1,N2
夫々修正し、これら修正された数値を各移動ステ
ツプの最初の印字動作のために用いるようにす
る。
By the way, it is not preferable to print using the numerical values written in the ROM of the memory 45 that should be stored in the registers 28, 29, and 30 as they are because there is a large possibility that an error will occur. Therefore, in order to eliminate this error, after turning on the power, the printer is put into a test run state for a predetermined period of time, and the printer is operated a predetermined number of times for each movement step number, and the delay value D 1 to be stored in the register 28 is set in the registers 29 and 30. The numbers N 1 and N 2 to be stored are respectively modified so that these modified numbers are used for the first printing operation of each movement step.

以上説明したように、本考案によれば、ステツ
ピングモータの回転速度に誤差が生じても、最終
モードであるホールドモードにおけるブレーキ作
用を、該ホールドモードにおける前記回転速度が
規定の値となるべく調整され、この結果、前記ス
テツピングモータの回転角の精度が向上すること
になり、上記従来技術の欠点を除いて優れた機能
のステツピングモータのドライブ回路を提供する
ことができる。
As explained above, according to the present invention, even if an error occurs in the rotational speed of the stepping motor, the braking action in the hold mode, which is the final mode, is adjusted so that the rotational speed in the hold mode is a specified value. As a result, the accuracy of the rotational angle of the stepping motor is improved, and it is possible to provide a stepping motor drive circuit with excellent functions without the drawbacks of the prior art described above.

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

第1図はプリンタにおける活字ホイールの駆動
機構の一例を示す概略斜視図、第2図は従来のス
テツピングモータのドライブ回路の一例を示すブ
ロツク図、第3図はステツピングモータの駆動方
法の一例を示す速度曲線図、第4図a,b,cは
ステツピングモータの各モードにおけるトルクを
示す曲線図、第5図は4相励磁ステツピングモー
タに対する第2図のドライブ回路の動作を説明す
るためのタイミングチヤート、第6図は本考案に
よるステツピングモータのドライブ回路の一実施
例を示すブロツク図、第7図は第6図のドライブ
回路のホーミング期間における動作を説明するた
めのタイミングチヤートである。 5……センサ、6……ステツピングモータ、7
……ドライブ回路、8……パルスカウントユニツ
ト、9……ホールドパルスパターン発生器、11
……パルス変換器、14……パルス間隔検出器、
15……時間・速度変換器、16……アンドゲー
ト、17……オア回路、18,19……レジス
タ、22……比較器、25……演算器、28……
レジスタ、31,33……比較器、37,38…
…プログラマブル遅延回路、44……インバー
タ。
Fig. 1 is a schematic perspective view showing an example of a type wheel drive mechanism in a printer, Fig. 2 is a block diagram showing an example of a conventional stepping motor drive circuit, and Fig. 3 is an example of a stepping motor driving method. Figures 4a, b, and c are curve diagrams showing the torque in each mode of the stepping motor. Figure 5 explains the operation of the drive circuit in Figure 2 for the four-phase excitation stepping motor. FIG. 6 is a block diagram showing an embodiment of the stepping motor drive circuit according to the present invention, and FIG. 7 is a timing chart for explaining the operation of the drive circuit of FIG. 6 during the homing period. be. 5...Sensor, 6...Stepping motor, 7
...Drive circuit, 8...Pulse count unit, 9...Hold pulse pattern generator, 11
...Pulse converter, 14...Pulse interval detector,
15... Time/speed converter, 16... AND gate, 17... OR circuit, 18, 19... Register, 22... Comparator, 25... Arithmetic unit, 28...
Registers, 31, 33... Comparators, 37, 38...
...Programmable delay circuit, 44...Inverter.

Claims (1)

【実用新案登録請求の範囲】[Scope of utility model registration request] ステツピングモータの回転位相を検出するセン
サからのパルス信号をホールドパルスパターン発
生器に供給して該パルス信号に位相同期したホー
ルドパルスパターンを発生し、該ホールドパルス
パターンを変換処理して前記ステツピングモータ
の各モードに対するドライブ信号を形成するよう
にしたステツピングモータのドライブ回路におい
て、前記センサからのパルス信号をカウントする
パルスカウントユニツトと、該パルスカウントユ
ニツトのカウント数から前記ステツピングモータ
の最終モードであるホールドモードの開始時点を
検出する第1の比較器と、該第1の比較器の出力
信号を遅延する第1の遅延装置と、該第1の遅延
装置の出力信号を遅延する第2の遅延装置と、該
第1の比較器の出力信号により前記パルス信号に
代えて該第1および該第2の遅延装置の出力信号
を前記ホールドパルスパターン発生器に供給する
切換装置と、該パルスカウントユニツトのカウン
ト数から該ホールドモードの終了時点を検出する
第2の比較器と、該第2の比較器による該ホール
ドモードの終了検出時点でのステツピングモータ
の回転速度を表わす実速度値と予じめ設定された
基準速度値とを比較する第3の比較器と、該第1
の遅延装置の遅延量を決めかつ第3の比較器の比
較結果に応じて修正される遅延値が格納されたレ
ジスタとを設け、前記第1の比較器の出力信号に
よつて前記ホールドパルスパターン発生器からの
前記ホールドパルスパターンを前記第1および第
2の遅延装置の出力信号に位相同期させるととも
に、前記ホールドモードの終了時点での前記ステ
ツピングモータの実速度値が前記基準速度値とな
るように構成したことを特徴とするステツピング
モータのドライブ回路。
A pulse signal from a sensor that detects the rotational phase of the stepping motor is supplied to a hold pulse pattern generator to generate a hold pulse pattern phase-synchronized with the pulse signal, and the hold pulse pattern is converted and processed to perform the stepping motor. A stepping motor drive circuit configured to form drive signals for each mode of the motor includes a pulse count unit that counts pulse signals from the sensor, and a final mode of the stepping motor based on the count number of the pulse count unit. a first comparator for detecting the start point of the hold mode, a first delay device for delaying the output signal of the first comparator, and a second delay device for delaying the output signal of the first delay device. a switching device for supplying the output signals of the first and second delay devices to the hold pulse pattern generator in place of the pulse signal according to the output signal of the first comparator; a second comparator for detecting the end point of the hold mode from the count number of the counting unit; and an actual speed value representing the rotational speed of the stepping motor at the time the second comparator detects the end of the hold mode. a third comparator that compares the speed with a preset reference speed value;
a register storing a delay value that determines the amount of delay of the delay device and is corrected according to the comparison result of the third comparator; The hold pulse pattern from the generator is phase-synchronized with the output signals of the first and second delay devices, and the actual speed value of the stepping motor at the end of the hold mode becomes the reference speed value. A stepping motor drive circuit characterized in that it is configured as follows.
JP8180283U 1983-06-01 1983-06-01 Stepping motor drive circuit Granted JPS59189497U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8180283U JPS59189497U (en) 1983-06-01 1983-06-01 Stepping motor drive circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8180283U JPS59189497U (en) 1983-06-01 1983-06-01 Stepping motor drive circuit

Publications (2)

Publication Number Publication Date
JPS59189497U JPS59189497U (en) 1984-12-15
JPH0112560Y2 true JPH0112560Y2 (en) 1989-04-12

Family

ID=30211759

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8180283U Granted JPS59189497U (en) 1983-06-01 1983-06-01 Stepping motor drive circuit

Country Status (1)

Country Link
JP (1) JPS59189497U (en)

Also Published As

Publication number Publication date
JPS59189497U (en) 1984-12-15

Similar Documents

Publication Publication Date Title
JP4385768B2 (en) Motor control device
US7005814B2 (en) Motor control apparatus having current supply phase correction
JP6708157B2 (en) Shift range control device
EP0419303B1 (en) A pulse with modulation control system for a motor
JPS6292799A (en) Driving device for stepping motor
JPS585600B2 (en) Step motor speed control method and device
JPH0112560Y2 (en)
JPS6349117Y2 (en)
JPS6349116Y2 (en)
JP3403283B2 (en) Information storage device
JPS6349118Y2 (en)
US4732099A (en) Motor controller for a sewing machine
JPS6349119Y2 (en)
US4469995A (en) Method of stopping a stepping motor
US4864211A (en) Drive control for DC electric motor
JP3070928B2 (en) Excitation controller for variable reluctance motor
JPH028559B2 (en)
WO2023286510A1 (en) Positioning device and control method for same
JPH099666A (en) Speed controller for motor
JPH08103092A (en) Servo controller and servo control method
JPH0716555B2 (en) Sewing machine controller
JPH0646596A (en) Drive controller for stepping motor
JP3102520B2 (en) Drive device for brushless motor
JP2010133857A (en) Method and apparatus of detecting motor rotation speed of cargo handling vehicle
JP3327298B2 (en) Method of generating speed command in tuning phase control of servo system