JP2009017670A - Controller for stepping motor - Google Patents

Controller for stepping motor Download PDF

Info

Publication number
JP2009017670A
JP2009017670A JP2007176169A JP2007176169A JP2009017670A JP 2009017670 A JP2009017670 A JP 2009017670A JP 2007176169 A JP2007176169 A JP 2007176169A JP 2007176169 A JP2007176169 A JP 2007176169A JP 2009017670 A JP2009017670 A JP 2009017670A
Authority
JP
Japan
Prior art keywords
stepping motor
motor
origin
reference position
steps
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.)
Pending
Application number
JP2007176169A
Other languages
Japanese (ja)
Inventor
Takeshi Matsuyama
健 松山
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.)
Juki Corp
Original Assignee
Juki Corp
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 Juki Corp filed Critical Juki Corp
Priority to JP2007176169A priority Critical patent/JP2009017670A/en
Priority to CNA200810127849XA priority patent/CN101340171A/en
Priority to KR1020080064875A priority patent/KR20090004749A/en
Publication of JP2009017670A publication Critical patent/JP2009017670A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02PCONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
    • H02P8/00Arrangements for controlling dynamo-electric motors of the kind having motors rotating step by step
    • H02P8/24Arrangements for stopping
    • H02P8/30Holding position when stopped
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02KDYNAMO-ELECTRIC MACHINES
    • H02K37/00Motors with rotor rotating step by step and without interrupter or commutator driven by the rotor, e.g. stepping motors
    • H02K37/22Damping units
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02PCONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
    • H02P3/00Arrangements for stopping or slowing electric motors, generators, or dynamo-electric converters
    • H02P3/02Details
    • H02P3/025Details holding the rotor in a fixed position after deceleration

Abstract

<P>PROBLEM TO BE SOLVED: To achieve a controller for stepping motor that improves accuracy in origin-position alignment of a stepping motor. <P>SOLUTION: The controller for stepping motor 10 is configured, such at after a rotation reference position of a stepping motor 1 is detected by a reference-position detection means 4; a motor driver 2 is made to output a drive current to a specified step in a prescribed excitation pattern so as to stop the motor at a specified step (for example, fifth step) of an excitation pattern that appears first after passing through the rotation reference position; and accordingly, since the stepping motor 1 can be stopped at a prescribed origin position even if load variations, such as temporal changes or temperature changes (for example, phase delays) occur, the stepping motor 1 is allowed to surely stop at the same origin position. <P>COPYRIGHT: (C)2009,JPO&INPIT

Description

本発明は、ステッピングモータ制御装置に関する。   The present invention relates to a stepping motor control device.

従来、ステッピングモータを使った送り機構において、位置検出器を用いることなくモータの原点位置を検出するため、可動部を機械的稼動範囲の端(メカリミット)に突き当てて脱調させて、その位置の相励磁パターンを記憶することにより原点位置を規定することによって、その後の原点検出の際に、その記憶した相励磁パターンでステッピングモータの回転を停止させる技術が知られている(例えば、特許文献1参照。)。   Conventionally, in a feed mechanism using a stepping motor, in order to detect the origin position of the motor without using a position detector, the movable part is abutted against the end of the mechanical operating range (mechanical limit) and stepped out. A technique is known in which the origin position is defined by storing the phase excitation pattern of the position, and the rotation of the stepping motor is stopped at the stored phase excitation pattern at the time of subsequent origin detection (for example, patent Reference 1).

また、送り機構等の原点位置として、ステッピングモータが原点検索方向に回転した際に、原点センサがONした場所から更に規定のステップ数だけ進んだ位置を原点とする技術も知られている。
特開平5−236800号公報
In addition, a technique is known in which the origin is a position further advanced by a specified number of steps from the place where the origin sensor is turned on when the stepping motor rotates in the origin search direction as the origin position of the feed mechanism or the like.
JP-A-5-236800

しかしながら、上記特許文献1の場合、送り機構をメカリミットに突き当てて脱調させる際に、工業用ミシンのようにモータトルクが大きいと、異常音が生じてしまうことや、最悪の場合には送り機構が故障しまうことがあるという問題があった。   However, in the case of the above-mentioned Patent Document 1, when the feed mechanism is brought into contact with the mechanical limit and stepped out, if the motor torque is large like an industrial sewing machine, abnormal noise may be generated or in the worst case. There was a problem that the feed mechanism might break down.

また、上記原点センサを用いる従来技術によってステッピングモータを駆動した場合、モータを駆動させる励磁相(駆動相)と、実際に駆動する負荷(ロータ)には位相遅れの関係が生じている。つまり、所定の励磁パターンでモータを励磁していても、負荷(ロータ)は、それより数ステップ前の位置を移動するように遅れているのが通常である。
そして、この位相遅れが常に一定であればよいが、位相遅れはステッピングモータの経時変化や使用環境温度変化などによって異なるため、位相遅れの変化に伴い原点位置がずれてしまうという問題があった。
Further, when the stepping motor is driven by the conventional technique using the origin sensor, there is a phase delay relationship between the excitation phase (driving phase) for driving the motor and the load (rotor) that is actually driven. That is, even when the motor is excited with a predetermined excitation pattern, the load (rotor) is usually delayed so as to move a position several steps before that.
The phase delay may be constant at all times. However, since the phase delay varies depending on the time-dependent change of the stepping motor, the use environment temperature, and the like, there is a problem that the origin position is shifted with the change of the phase delay.

具体的には、5相ステッピングモータのフルステップ駆動を使用した送り機構の場合、励磁パターンは10通り(例えば、0〜9の10通り)ある。そして、モータの制御装置が、その励磁パターンを順番に繰り返してモータに与えていくことにより、モータが回転するようになっている。
そして、例えば、モータの励磁相(A)と、負荷の位置(B)の刻みを、図6(a)、(b)に示すように表して、励磁が矢印Cの方向に切り替えられていく場合、図6(a)に示すように、励磁位置に対して3ステップ遅れて追従する負荷が原点センサ位置を通過し、その時の励磁位置(図中“0”の位置;第0ステップ)から規定の5ステップ分、励磁を進めて停止すると“5”の位置(第5ステップ)が原点位置となる。一方、図6(b)に示すように、励磁位置に対して4ステップ遅れて追従する負荷が原点センサ位置を通過し、その時の励磁位置(図中“1”の位置;第1ステップ)から規定の5ステップ分、励磁を進めて停止すると“6”の位置(第6ステップ)が原点位置となる。すなわち、この位相遅れの変化によって、原点位置が1ステップ分ずれてしまっている。
このように、上記従来技術の場合、位相遅れの変化によって、原点位置の再現性が得られないという問題がある。
Specifically, in the case of a feed mechanism that uses full-step driving of a five-phase stepping motor, there are 10 excitation patterns (for example, 10 patterns of 0 to 9). Then, the motor controller rotates the motor by repeatedly applying the excitation pattern to the motor in order.
Then, for example, the excitation phase (A) of the motor and the increment of the load position (B) are represented as shown in FIGS. 6 (a) and 6 (b), and the excitation is switched in the direction of arrow C. In this case, as shown in FIG. 6A, the load that follows the excitation position with a delay of 3 steps passes through the origin sensor position, and from the excitation position at that time (position “0” in the figure; 0th step). When excitation is advanced and stopped for the specified 5 steps, the position “5” (fifth step) becomes the origin position. On the other hand, as shown in FIG. 6B, a load that follows the excitation position with a delay of 4 steps passes through the origin sensor position, and from the excitation position (position “1” in the figure; first step) at that time. When excitation is advanced and stopped for the prescribed 5 steps, the position “6” (sixth step) becomes the origin position. That is, the origin position is shifted by one step due to the change in the phase delay.
As described above, the conventional technique has a problem that the reproducibility of the origin position cannot be obtained due to the change in the phase delay.

本発明の目的は、ステッピングモータの原点位置合わせの精度を向上させるステッピングモータ制御装置を提供することである。   An object of the present invention is to provide a stepping motor control device that improves the accuracy of alignment of the origin of a stepping motor.

以上の課題を解決するため、請求項1に記載の発明は、ステッピングモータを駆動制御するステッピングモータ制御装置であって、ステッピングモータの回転基準位置を検知する基準位置検知手段と、ステッピングモータに駆動電流を供給するモータドライバと、モータドライバに所定の励磁パターンに応じた駆動電流を出力させるモータ制御部と、を備え、ステッピングモータを原点位置で停止させる際、基準位置検知手段によりステッピングモータの回転基準位置が検知された後、モータ制御部が、所定の励磁パターンにおける規定のステップまでモータドライバに駆動電流を出力させることで、ステッピングモータを規定ステップに応じた原点位置で停止させることを特徴とする。   In order to solve the above problems, the invention described in claim 1 is a stepping motor control device for driving and controlling a stepping motor, wherein the stepping motor is driven by a reference position detecting means for detecting a rotation reference position of the stepping motor. A motor driver that supplies current and a motor control unit that outputs a drive current corresponding to a predetermined excitation pattern to the motor driver. When the stepping motor is stopped at the origin position, the reference position detection means rotates the stepping motor. After the reference position is detected, the motor control unit causes the motor driver to output a drive current until a specified step in a predetermined excitation pattern, thereby stopping the stepping motor at the origin position corresponding to the specified step. To do.

請求項1に記載の発明によれば、ステッピングモータ制御装置は、基準位置検知手段によりステッピングモータの回転基準位置が検知された後、所定の励磁パターンにおける規定のステップまでモータドライバに駆動電流を出力させることによって、回転基準位置の通過後に最初に現れる励磁パターンの規定ステップでモータ停止させて、ステッピングモータを規定ステップに応じた所定の原点位置で停止させることができる。   According to the first aspect of the present invention, the stepping motor control device outputs a driving current to the motor driver until a predetermined step in a predetermined excitation pattern after the reference position detecting means detects the rotation reference position of the stepping motor. Thus, the motor is stopped at the specified step of the excitation pattern that appears first after passing through the rotation reference position, and the stepping motor can be stopped at the predetermined origin position corresponding to the specified step.

請求項2に記載の発明は、請求項1に記載のステッピングモータ制御装置において、ステッピングモータを停止させる原点位置の調整時に、基準位置検知手段が、ステッピングモータの回転基準位置を検知した後、所定の励磁パターンの全ステップ数に対する半分程度のステップ数分励磁を進めた位置のステップを、原点位置に相当する規定ステップとしてモータ制御部が記憶し、モータ制御部が、その記憶した規定ステップまでモータドライバに駆動電流を出力させることで、ステッピングモータを原点位置で停止させることを特徴とする。   According to a second aspect of the present invention, in the stepping motor control device according to the first aspect, the reference position detecting means detects the rotation reference position of the stepping motor after the reference position detecting means detects the rotation reference position at the time of adjusting the origin position for stopping the stepping motor. The motor control unit memorizes the step at the position where the excitation has been advanced by about half of the total number of steps of the excitation pattern as the specified step corresponding to the origin position, and the motor control unit stores the motor up to the stored specified step. The stepping motor is stopped at the origin position by causing the driver to output a driving current.

請求項2に記載の発明によれば、請求項1に記載の発明と同様の作用を奏するとともに、ステッピングモータ制御装置は、ステッピングモータを停止させる原点位置を設定する調整時に、基準位置検知手段がステッピングモータの回転基準位置を検知した後、所定の励磁パターンの全ステップ数に対する半分程度のステップ数分励磁を進めた位置のステップを、原点位置に相当する規定ステップとして記憶して設定することができる。   According to the second aspect of the present invention, the same effect as that of the first aspect of the invention can be obtained, and the stepping motor control device can perform the adjustment of the reference position detecting means at the time of adjusting the origin position for stopping the stepping motor. After detecting the rotation reference position of the stepping motor, it is possible to store and set a step at a position where excitation has been advanced by about half of the total number of steps of a predetermined excitation pattern as a specified step corresponding to the origin position. it can.

請求項1に記載の発明によれば、ステッピングモータ制御装置は、基準位置検知手段によりステッピングモータの回転基準位置が検知された後、所定の励磁パターンにおける規定のステップまでモータドライバに駆動電流を出力させることによって、回転基準位置の通過後に最初に現れる励磁パターンの規定ステップでモータ停止させて、ステッピングモータを規定ステップに応じた所定の原点位置で停止させることができるので、経時変化や温度変化等の負荷変動(例えば、位相遅れ)が発生しても、ステッピングモータが必ず同じ原点位置に停止することが可能になる。
よって、このステッピングモータ制御装置により、高精度の原点検索が可能となり、モータの停止位置ズレによる不具合をなくすことができ、ステッピングモータの原点位置合わせの精度を向上させることが可能になる。
According to the first aspect of the present invention, the stepping motor control device outputs a driving current to the motor driver until a predetermined step in a predetermined excitation pattern after the reference position detecting means detects the rotation reference position of the stepping motor. By doing so, the motor can be stopped at the specified step of the excitation pattern that appears first after passing through the rotation reference position, and the stepping motor can be stopped at the predetermined origin position according to the specified step. Even if a load fluctuation (for example, phase delay) occurs, the stepping motor can always stop at the same origin position.
Therefore, this stepping motor control device enables high-accuracy origin search, eliminates problems due to motor stop position deviation, and improves the accuracy of stepping motor origin alignment.

請求項2に記載の発明によれば、ステッピングモータ制御装置は、ステッピングモータを停止させる原点位置を設定する調整時に、基準位置検知手段がステッピングモータの回転基準位置を検知した後、所定の励磁パターンの全ステップ数に対する半分程度のステップ数分励磁を進めた位置のステップを、原点位置に相当する規定ステップとして記憶して設定することができる。
そして、ステッピングモータ制御装置は、その記憶した規定ステップまでモータドライバに駆動電流を出力させることによって、ステッピングモータを原点位置で停止させることができる。
According to the second aspect of the present invention, the stepping motor control device has a predetermined excitation pattern after the reference position detecting means detects the rotation reference position of the stepping motor during the adjustment for setting the origin position for stopping the stepping motor. The step at the position where the excitation has been advanced by about half the number of all the steps can be stored and set as the specified step corresponding to the origin position.
Then, the stepping motor control device can stop the stepping motor at the origin position by causing the motor driver to output a drive current up to the stored specified step.

ここで、所定の励磁パターンの全ステップ数に対する半分程度のステップ数とは、例えば、全ステップ数が「10」である場合には、半分のステップ数「5」や、その「5」の前後である、約半分の「4」や「6」のステップ数のことである。全ステップ数が「10」のように偶数となる場合には、半分のステップ数が「5」と定まるが、基準位置検知手段や回転基準位置の配置によっては、約半分の「4」や「6」のステップ数の方が規定ステップとして好適となることがあり、また、全ステップ数が奇数となるような場合には、きっちり半分のステップ数を定めることができないため、規定ステップを全ステップ数に対する半分程度のステップとする。   Here, the number of steps that is about half of the total number of steps of the predetermined excitation pattern is, for example, when the total number of steps is “10”, half the number of steps “5” or around “5”. The number of steps is about half of “4” and “6”. When the total number of steps is an even number such as “10”, the half number of steps is determined as “5”. However, depending on the arrangement of the reference position detection means and the rotation reference position, about half “4” and “ The step number of “6” may be more preferable as the specified step. In addition, when the total number of steps is an odd number, it is not possible to set exactly half the number of steps. The number of steps is about half of the number.

以下、図を参照して本発明に係るステッピングモータ制御装置の実施形態を説明する。
本実施の形態では、分解能0.72°の5相ステッピングモータのフルステップ駆動に対する制御を行うステッピングモータ制御装置を例に説明する。
なお、発明の範囲は、図示例に限定されない。
Hereinafter, an embodiment of a stepping motor control apparatus according to the present invention will be described with reference to the drawings.
In the present embodiment, a stepping motor control device that performs control for full-step driving of a 5-phase stepping motor having a resolution of 0.72 ° will be described as an example.
The scope of the invention is not limited to the illustrated example.

ステッピングモータ制御装置10は、図1に示すように、ステッピングモータ1と、そのステッピングモータ1に駆動電流を供給するモータドライバ2と、そのモータドライバ2に所定の励磁パターンに応じた駆動電流を出力させるモータ制御部3と、ステッピングモータ1の回転基準位置を検知する基準位置検知手段4等を備えて構成されている。   As shown in FIG. 1, the stepping motor control device 10 outputs a stepping motor 1, a motor driver 2 that supplies a driving current to the stepping motor 1, and a driving current corresponding to a predetermined excitation pattern to the motor driver 2. And a reference position detecting means 4 for detecting the rotation reference position of the stepping motor 1, and the like.

ステッピングモータ1は、例えば、5相ステッピングモータであって、5相HBモータである場合、コイルを10個、歯を50枚有する構成をとっている。そして、1ステップでは0.72°回転し、10ステップでロータ(負荷)は歯1枚分移動するようになっている。   For example, when the stepping motor 1 is a five-phase stepping motor and is a five-phase HB motor, the stepping motor 1 has a configuration including 10 coils and 50 teeth. Then, in one step, it is rotated 0.72 °, and in 10 steps, the rotor (load) is moved by one tooth.

モータドライバ2は、例えば、励磁順序を決定する励磁回路2aと、モータに供給する電力を制御する駆動回路2bとを備えている。   The motor driver 2 includes, for example, an excitation circuit 2a that determines the excitation order and a drive circuit 2b that controls the power supplied to the motor.

モータ制御部3は、例えば、各種の演算処理等を行うCPUと、CPUのワークエリアとして使用されるRAMと、CPUにより実行される各種制御プログラム及び各種データ等が格納されるROMと、を備えている。
そして、モータ制御部3は、例えば、ROMに格納されている所定の励磁パターンに対応する指令パルス信号をモータドライバ2に出力することによって、そのモータドライバ2に励磁パターンに対応する駆動電流を出力させ、その駆動電流をステッピングモータ1に供給させることにより、ステッピングモータ1を駆動させる制御を行う。
なお、励磁パターンは複数のステップからなり、5相ステッピングモータのフルステップ駆動の場合、所定の励磁パターンは10ステップ(例えば、0〜9の10ステップ)からなる。そして、モータ制御部3の制御処理によって、モータドライバ2が励磁パターンの各ステップに応じた駆動電流を順番にステッピングモータ1に与えていくことにより、ステッピングモータ1を回転駆動させることができる。
また、モータ制御部3は、ステッピングモータ1を停止させる原点位置を設定する調整処理に関する制御や、その設定した原点位置でステッピングモータ1を停止させる処理に関する制御を実行する。
The motor control unit 3 includes, for example, a CPU that performs various arithmetic processes, a RAM that is used as a work area of the CPU, and a ROM that stores various control programs executed by the CPU, various data, and the like. ing.
The motor control unit 3 outputs a drive current corresponding to the excitation pattern to the motor driver 2 by, for example, outputting a command pulse signal corresponding to a predetermined excitation pattern stored in the ROM to the motor driver 2. Then, the drive current is supplied to the stepping motor 1 so that the stepping motor 1 is controlled to be driven.
The excitation pattern is composed of a plurality of steps, and in the case of full-step driving of a five-phase stepping motor, the predetermined excitation pattern is composed of 10 steps (for example, 10 steps from 0 to 9). The stepping motor 1 can be driven to rotate by the motor driver 2 sequentially supplying a driving current corresponding to each step of the excitation pattern to the stepping motor 1 by the control process of the motor control unit 3.
In addition, the motor control unit 3 executes control related to adjustment processing for setting the origin position for stopping the stepping motor 1 and control related to processing for stopping the stepping motor 1 at the set origin position.

基準位置検知手段4は、例えば、ステッピングモータ1のロータ(負荷)に施されている回転基準位置を検知する原点センサであって、その回転基準位置を検知した際に、検知信号をモータ制御部3に出力する。   The reference position detection means 4 is an origin sensor that detects, for example, a rotation reference position applied to the rotor (load) of the stepping motor 1, and when the rotation reference position is detected, a detection signal is sent to the motor control unit. 3 is output.

そして、ステッピングモータ1を停止させる原点位置の調整処理を行う際、ステッピングモータ制御装置10のモータ制御部3は、基準位置検知手段4がステッピングモータ1の回転基準位置を検知した後、所定の励磁パターンの全ステップ数(本実施形態では、10ステップ)に対する半分程度のステップ数(本実施形態では、例えば、4ステップ、5ステップ)分、励磁を進めた位置のステップを原点位置に相当する規定ステップとして、モータ制御部3のRAMに記憶する制御を実行する。   When the origin position adjustment process for stopping the stepping motor 1 is performed, the motor control unit 3 of the stepping motor control device 10 performs predetermined excitation after the reference position detection unit 4 detects the rotation reference position of the stepping motor 1. A step corresponding to the origin position is a step at a position where excitation is advanced by about half the number of steps of the pattern (10 steps in this embodiment) (for example, 4 steps and 5 steps in this embodiment). As a step, control stored in the RAM of the motor control unit 3 is executed.

また、ステッピングモータ1を原点位置で停止させる原点復帰動作を行う際、ステッピングモータ制御装置10のモータ制御部3は、基準位置検知手段4によりステッピングモータ4の回転基準位置が検知された後、モータ制御部3が、所定の励磁パターンにおける規定のステップであって、RAMに記憶された規定ステップまでモータドライバ2に駆動電流を出力させることで、ステッピングモータ1を規定ステップに応じた原点位置で停止させる制御を実行する。   Further, when performing the origin return operation for stopping the stepping motor 1 at the origin position, the motor control unit 3 of the stepping motor control device 10 detects the rotation reference position of the stepping motor 4 by the reference position detection means 4 and then performs the motor The control unit 3 stops the stepping motor 1 at the origin position corresponding to the specified step by causing the motor driver 2 to output the drive current until the specified step stored in the RAM, which is the specified step in the predetermined excitation pattern. The control to be executed is executed.

次に、本実施の形態におけるステッピングモータ制御装置10による、ステッピングモータ1を停止させる原点位置を設定する調整処理について、図2に示すフローチャートに基づき説明する。   Next, an adjustment process for setting an origin position for stopping the stepping motor 1 by the stepping motor control apparatus 10 according to the present embodiment will be described based on a flowchart shown in FIG.

まず、ステッピングモータ1を停止させる原点位置を設定するための原点検索信号がモータ制御部3に入力されると、モータ制御部3は、基準位置検知手段4が回転基準位置を検知したことに伴う検知信号が入力されたか否かを判断する(ステップS101)。   First, when an origin search signal for setting an origin position for stopping the stepping motor 1 is input to the motor control unit 3, the motor control unit 3 accompanies that the reference position detection unit 4 has detected the rotation reference position. It is determined whether or not a detection signal has been input (step S101).

モータ制御部3が、基準位置検知信号が入力されたと判断すると(ステップS101;Yes)、モータ制御部3は、0〜9の10ステップからなる励磁パターンにおける、基準位置検知信号が入力されたタイミングのステップから、全ステップ数の約半数分である5ステップ、励磁を進めた位置のステップを取得する(ステップS102)。
なお、具体的には、図3(a)に示すように、励磁位置に対して3ステップ遅れて負荷が追従している場合、基準位置検知手段4が回転基準位置に対応する第7ステップを検知した際、励磁相は第0ステップに達しているので、その第0ステップから5ステップ分、励磁を進めた位置の第5ステップを、モータ制御部3が取得する。
When the motor control unit 3 determines that the reference position detection signal has been input (step S101; Yes), the motor control unit 3 is the timing at which the reference position detection signal is input in the excitation pattern consisting of 10 steps of 0 to 9. From this step, 5 steps, which is about half of the total number of steps, and the step at the position where excitation is advanced are acquired (step S102).
Specifically, as shown in FIG. 3A, when the load follows the excitation position with a delay of 3 steps, the reference position detection unit 4 performs the seventh step corresponding to the rotation reference position. When detected, since the excitation phase has reached the 0th step, the motor control unit 3 acquires the 5th step at the position where the excitation is advanced by 5 steps from the 0th step.

そして、モータ制御部3は、取得した第5ステップを原点位置に相当する規定ステップとしてRAMに記憶して設定する(ステップS103)。
なお、この取得した第5ステップに不都合や不具合がある場合、全ステップ数の約半数である4ステップや6ステップ励磁を進めた位置のステップを取得するようにして、より適切な規定ステップを記憶し格納するようにする。
このようにして、ステッピングモータ制御装置10のモータ制御部3は、ステッピングモータ1を停止させる原点位置に関する規定ステップを設定する。そして、その規定ステップに応じた原点位置調整がなされる。
Then, the motor control unit 3 stores and sets the acquired fifth step in the RAM as a defining step corresponding to the origin position (step S103).
If there is an inconvenience or problem in the acquired fifth step, a more appropriate specified step is stored by acquiring the step at the position where the four-step excitation or the six-step excitation is advanced, which is about half of the total number of steps. And store it.
In this way, the motor control unit 3 of the stepping motor control device 10 sets a specified step relating to the origin position where the stepping motor 1 is stopped. Then, the origin position is adjusted according to the specified step.

次に、本実施の形態におけるステッピングモータ制御装置10による、ステッピングモータ1を原点位置で停止させる原点復帰動作処理について、図4に示すフローチャートに基づき説明する。   Next, the origin return operation processing for stopping the stepping motor 1 at the origin position by the stepping motor control device 10 in the present embodiment will be described based on the flowchart shown in FIG.

まず、ステッピングモータ1を停止させるためのモータ停止信号がモータ制御部3に入力されると、モータ制御部3は、基準位置検知手段4が回転基準位置を検知したことに伴う検知信号が入力されたか否かを判断する(ステップS201)。   First, when a motor stop signal for stopping the stepping motor 1 is input to the motor control unit 3, the motor control unit 3 receives a detection signal associated with the reference position detection unit 4 detecting the rotation reference position. It is determined whether or not (step S201).

モータ制御部3が、基準位置検知信号が入力されたと判断すると(ステップS201;Yes)、モータ制御部3は、RAMに記憶された規定ステップまでモータドライバ2に駆動電流を出力させる(ステップS202)。   When the motor control unit 3 determines that the reference position detection signal has been input (step S201; Yes), the motor control unit 3 causes the motor driver 2 to output a drive current until the specified step stored in the RAM (step S202). .

そして、モータの励磁相が規定ステップに達すると(ステップS203;Yes)、ステッピングモータ1は、その規定ステップに応じた原点位置に停止する(ステップS204)。
なお、具体的には、図3(b)に示すように、原点位置設定時における3ステップ遅れの位相遅れと異なり、励磁位置に対して4ステップ遅れの位相遅れで負荷が追従している場合であっても、回転基準位置の通過後に最初に現れる規定ステップである第5ステップでモータが停止するようになり、ステッピングモータ1の位相遅れが変化しても、ステッピングモータ1の停止位置が安定することとなる。
When the excitation phase of the motor reaches the specified step (Step S203; Yes), the stepping motor 1 stops at the origin position corresponding to the specified step (Step S204).
Specifically, as shown in FIG. 3 (b), when the load follows the excitation position with a phase delay of 4 steps, unlike the phase delay of 3 steps when the origin position is set. Even so, the motor stops at the fifth step, which is the first defined step that appears after passing the rotation reference position, and even if the phase delay of the stepping motor 1 changes, the stop position of the stepping motor 1 is stable. Will be.

ここで、原点位置に相当する規定ステップを、励磁パターンの全ステップ数に対する半分程度のステップ数分、励磁を進めた位置のステップとする訳について説明する。   Here, the reason why the prescribed step corresponding to the origin position is set to a step at a position where excitation is advanced by about half the number of steps of the excitation pattern is explained.

図5(a)に示すように、励磁位置に対して3ステップ遅れて負荷が追従している場合に、基準位置検知手段4が回転基準位置に対応する第7ステップを検知した際の第0ステップから1ステップ分、励磁を進めた位置の第1ステップを原点位置に相当する規定ステップとして設定したとする。
そして、ステッピングモータ1を原点位置で停止させる原点復帰動作の際に、図5(b)に示すように、励磁位置に対して5ステップ遅れて負荷が追従していると、回転基準位置の通過後に最初に現れる規定ステップである第1ステップでモータを停止させると、その停止位置は励磁パターンの1サイクル分ずれた位置、つまり、10ステップ分ずれた第1ステップに応じた位置になってしまうという問題が生じることになる。
As shown in FIG. 5A, when the load follows the excitation position with a delay of 3 steps, the 0th step when the reference position detection means 4 detects the seventh step corresponding to the rotation reference position. It is assumed that the first step at the position where excitation has been advanced by one step from the step is set as a specified step corresponding to the origin position.
Then, during the origin return operation in which the stepping motor 1 is stopped at the origin position, as shown in FIG. 5B, if the load follows the excitation position with a delay of 5 steps, the rotation reference position passes. If the motor is stopped in the first step, which is the first defined step that appears later, the stop position is shifted by one cycle of the excitation pattern, that is, the position corresponding to the first step shifted by 10 steps. The problem will arise.

これに対して本発明のように、励磁パターンの全ステップ数に対する半分程度のステップ数である5ステップ分、励磁を進めた位置のステップを原点位置に相当する規定ステップとすることによれば、位相遅れの程度によらず、モータの停止位置が励磁パターンの1サイクル分ずれてしまうようなことなく、所定の原点位置に停止させることが可能になるのである。つまり、規定ステップは、励磁パターンの全ステップ数に対して多過ぎず、少な過ぎず、中間程度の約半分程度が好ましい。
なお、励磁パターンの全ステップ数に対する半分のステップ数を規定ステップとするのではなく、ほぼ中間である半分程度のステップ数を規定ステップとする訳は、全ステップ数が「10」のように偶数となる場合には、半分のステップ数が「5」と定まるが、基準位置検知手段4の位置やステッピングモータ1の回転基準位置の配置によっては、約半分の「4」や「6」のステップ数の方が規定ステップとして好適となることがあるためであり、また、全ステップ数が奇数となるような場合には、きっちり半分のステップ数を定めることができないためである。
On the other hand, according to the present invention, according to the step of the position where the excitation is advanced by 5 steps, which is about half the total number of steps of the excitation pattern, as the specified step corresponding to the origin position, Regardless of the degree of phase delay, the motor stop position can be stopped at a predetermined origin position without being shifted by one cycle of the excitation pattern. That is, the prescribed steps are not too many and not too small with respect to the total number of steps of the excitation pattern, and are preferably about half of the middle.
It should be noted that half the number of steps in the excitation pattern is not the specified step, but the half number of steps, which is almost in the middle, is the specified step because the total number of steps is an even number such as “10”. In this case, half the number of steps is determined to be “5”, but depending on the position of the reference position detecting means 4 and the rotation reference position of the stepping motor 1, about half of the “4” and “6” steps are set. This is because the number may be more suitable as the prescribed step, and when the total number of steps is an odd number, it is not possible to determine exactly half the number of steps.

このように、本発明に係るステッピングモータ制御装置10は、基準位置検知手段4によりステッピングモータ1の回転基準位置が検知された後、所定の励磁パターンにおける規定のステップ(第5ステップ)までモータドライバ2に駆動電流を出力させることによって、その回転基準位置の通過後に最初に現れる励磁パターンの規定ステップ(第5ステップ)でモータ停止し、ステッピングモータ1を所定の原点位置で停止させることができるので、経時変化や温度変化等の負荷変動(例えば、位相遅れ)が発生しても、ステッピングモータ1は必ず同じ原点位置に停止することとなって、高精度の原点検索が可能となり、モータの停止位置ズレによる不具合をなくすことができる。つまり、ステッピングモータ1の原点位置合わせの精度を向上させることが可能になる。
特に、回転基準位置の通過後に励磁を進めるステップ数を、励磁パターン数の半分程度とすることによって、経時変化や温度変化等の負荷変動が発生しても、励磁パターンにおける規定ステップを誤認識してしまい、モータの停止位置が励磁パターンの1サイクル分ずれてしまうようなことはなく、より高精度の原点検索が可能となる。
As described above, the stepping motor control device 10 according to the present invention enables the motor driver to perform a predetermined step (fifth step) in a predetermined excitation pattern after the reference position detection unit 4 detects the rotation reference position of the stepping motor 1. By outputting the drive current to No. 2, the motor is stopped at the specified step (fifth step) of the excitation pattern that appears first after passing through the rotation reference position, and the stepping motor 1 can be stopped at the predetermined origin position. Even if load fluctuations (eg, phase lag) such as changes over time or temperature changes occur, the stepping motor 1 always stops at the same origin position, enabling high-precision origin search and stopping the motor. Problems due to misalignment can be eliminated. That is, it becomes possible to improve the accuracy of the origin position alignment of the stepping motor 1.
In particular, by setting the number of steps of excitation after passing the rotation reference position to about half of the number of excitation patterns, even if load fluctuations such as changes over time or temperature changes occur, the specified steps in the excitation pattern are erroneously recognized. Therefore, the motor stop position is not shifted by one cycle of the excitation pattern, and the origin search can be performed with higher accuracy.

なお、以上の実施の形態においては、分解能0.72°の5相ステッピングモータのフルステップ駆動の場合を例に説明したが、本発明はこれに限定されるものではなく、例えば、ハーフステップ駆動(全20ステップからなる励磁パターン)や、1.8°の2相ステッピングモータのフルステップ駆動(全4ステップの励磁パターン)や、ハーフステップ駆動(全8ステップの励磁パターン)等、その他のステッピングモータの駆動制御に適用してもよい。   In the above embodiment, the case of full-step driving of a 5-phase stepping motor with a resolution of 0.72 ° has been described as an example. However, the present invention is not limited to this, for example, half-step driving. Other stepping such as (excitation pattern consisting of 20 steps in total), full-step drive of 1.8 ° 2-phase stepping motor (excitation pattern of all 4 steps), half-step drive (excitation pattern of all 8 steps), etc. You may apply to the drive control of a motor.

また、その他、具体的な細部構造等についても適宜に変更可能であることは勿論である。   In addition, it is needless to say that other specific detailed structures can be appropriately changed.

本発明に係るステッピングモータ制御装置の要部構成を示すブロック図である。It is a block diagram which shows the principal part structure of the stepping motor control apparatus which concerns on this invention. ステッピングモータ制御装置による、ステッピングモータを停止させる原点位置を設定する調整処理を示すフローチャートである。It is a flowchart which shows the adjustment process which sets the origin position which stops a stepping motor by a stepping motor control apparatus. ステッピングモータの励磁相と、負荷の位置の相関を示す説明図であり、3ステップの位相遅れの際に調整ステップ数を「5」とした原点位置の調整処理(a)と、4ステップの位相遅れの際の原点復帰動作処理(b)を示している。It is explanatory drawing which shows the correlation of the excitation phase of a stepping motor, and the position of a load, The adjustment process (a) of the origin position which made the adjustment step number "5" in the case of 3 steps of phase delays, and the phase of 4 steps The origin return operation process (b) at the time of delay is shown. ステッピングモータ制御装置による、ステッピングモータを原点位置で停止させる原点復帰動作処理を示すフローチャートである。It is a flowchart which shows the origin return operation | movement process which stops a stepping motor by an origin position by a stepping motor control apparatus. ステッピングモータの励磁相と、負荷の位置の相関を示す説明図であり、調整ステップ数を「1」とした原点位置の調整処理(a)と、停止位置が励磁パターンの1サイクル分ずれた状態(b)とを示している。It is explanatory drawing which shows the correlation of the excitation phase of a stepping motor, and the position of a load, The adjustment process (a) of the origin position which made the number of adjustment steps "1", and the stop position shifted | deviated by 1 cycle of the excitation pattern (B) is shown. ステッピングモータの励磁相と、負荷の位置の相関を示す説明図であり、従来の原点復帰動作処理における3ステップの位相遅れの場合(a)と、従来の原点復帰動作処理における4ステップの位相遅れの場合(b)を示している。It is explanatory drawing which shows the correlation of the excitation phase of a stepping motor, and the position of a load, (a) in the case of the 3-step phase delay in the conventional origin return operation processing, and the 4-step phase delay in the conventional origin return operation processing Case (b) is shown.

符号の説明Explanation of symbols

1 ステッピングモータ
2 モータドライバ
3 モータ制御部
4 基準位置検知手段
10 ステッピングモータ制御装置
DESCRIPTION OF SYMBOLS 1 Stepping motor 2 Motor driver 3 Motor control part 4 Reference position detection means 10 Stepping motor control apparatus

Claims (2)

ステッピングモータを駆動制御するステッピングモータ制御装置であって、
前記ステッピングモータの回転基準位置を検知する基準位置検知手段と、
前記ステッピングモータに駆動電流を供給するモータドライバと、
前記モータドライバに所定の励磁パターンに応じた駆動電流を出力させるモータ制御部と、を備え、
前記ステッピングモータを原点位置で停止させる際、
前記基準位置検知手段により前記ステッピングモータの回転基準位置が検知された後、前記モータ制御部が、所定の励磁パターンにおける規定のステップまで前記モータドライバに駆動電流を出力させることで、前記ステッピングモータを前記規定ステップに応じた原点位置で停止させることを特徴とするステッピングモータ制御装置。
A stepping motor control device for driving and controlling a stepping motor,
A reference position detecting means for detecting a rotation reference position of the stepping motor;
A motor driver for supplying a driving current to the stepping motor;
A motor control unit for causing the motor driver to output a drive current according to a predetermined excitation pattern,
When stopping the stepping motor at the origin position,
After the rotation reference position of the stepping motor is detected by the reference position detection means, the motor control unit causes the motor driver to output a drive current until a predetermined step in a predetermined excitation pattern, thereby causing the stepping motor to A stepping motor control device that stops at an origin position corresponding to the prescribed step.
前記ステッピングモータを停止させる原点位置の調整時に、前記基準位置検知手段が、前記ステッピングモータの回転基準位置を検知した後、所定の励磁パターンの全ステップ数に対する半分程度のステップ数分励磁を進めた位置のステップを、原点位置に相当する規定ステップとして前記モータ制御部が記憶し、
前記モータ制御部が、その記憶した規定ステップまで前記モータドライバに駆動電流を出力させることで、前記ステッピングモータを原点位置で停止させることを特徴とする請求項1に記載のステッピングモータ制御装置。
At the time of adjusting the origin position for stopping the stepping motor, the reference position detection means detects the rotation reference position of the stepping motor, and then proceeds with excitation by about half of the number of steps of the predetermined excitation pattern. The step of the position is stored by the motor control unit as a specified step corresponding to the origin position,
2. The stepping motor control device according to claim 1, wherein the motor control unit stops the stepping motor at an origin position by causing the motor driver to output a driving current until the stored specified step. 3.
JP2007176169A 2007-07-04 2007-07-04 Controller for stepping motor Pending JP2009017670A (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
JP2007176169A JP2009017670A (en) 2007-07-04 2007-07-04 Controller for stepping motor
CNA200810127849XA CN101340171A (en) 2007-07-04 2008-07-04 Pecking motor control device
KR1020080064875A KR20090004749A (en) 2007-07-04 2008-07-04 Stepping motor controlling device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007176169A JP2009017670A (en) 2007-07-04 2007-07-04 Controller for stepping motor

Publications (1)

Publication Number Publication Date
JP2009017670A true JP2009017670A (en) 2009-01-22

Family

ID=40214154

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007176169A Pending JP2009017670A (en) 2007-07-04 2007-07-04 Controller for stepping motor

Country Status (3)

Country Link
JP (1) JP2009017670A (en)
KR (1) KR20090004749A (en)
CN (1) CN101340171A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012144372A (en) * 2011-01-11 2012-08-02 Oerlikon Textile Gmbh & Co Kg Method for calibrating pivoting stroke of yarn feeder arranged on yarn splicing device and yarn splicing device for implementing the method

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101932715B1 (en) * 2011-11-14 2018-12-27 삼성전자주식회사 Apparatus and method for controlling stepping motor
WO2018002883A1 (en) 2016-06-29 2018-01-04 3M Innovative Properties Company A method of retrofitting a hearing protector, and a hearing protector
WO2018146774A1 (en) * 2017-02-09 2018-08-16 株式会社Fuji Motor control device and feeder
JP7001044B2 (en) * 2018-11-28 2022-01-19 オムロン株式会社 Control system

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60200799A (en) * 1984-03-26 1985-10-11 Canon Inc Control system for motor

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60200799A (en) * 1984-03-26 1985-10-11 Canon Inc Control system for motor

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012144372A (en) * 2011-01-11 2012-08-02 Oerlikon Textile Gmbh & Co Kg Method for calibrating pivoting stroke of yarn feeder arranged on yarn splicing device and yarn splicing device for implementing the method

Also Published As

Publication number Publication date
KR20090004749A (en) 2009-01-12
CN101340171A (en) 2009-01-07

Similar Documents

Publication Publication Date Title
US9527176B2 (en) Control device for machine tool including rotary indexing device
JP2009017670A (en) Controller for stepping motor
EP2555068A1 (en) Synchronization control apparatus
JP2010098923A (en) Driving device and electronic apparatus
JP2005313280A (en) Numerical control device
JPS61150699A (en) Step motor controller
JP4901912B2 (en) Stepping motor drive device and controller
JP2015159709A (en) Motor controller and correction data creation method
JP6484954B2 (en) Motor control device, motor control system, motor control method, and motor control program
JP2017093071A (en) Motor control device and optical device
JPH07266190A (en) Numerical control system
JP2000081912A (en) Method for detecting present location
JP2020052829A (en) Servo control device
JP2003088184A (en) Multiaxial controller and method for synchronizing among these axes
JP2014033586A (en) Motor controller and motor control method
JP2009125815A (en) Screw tightening device and its control method
JPS5866121A (en) Deviation phase modulator for numerical controlling device
JP6565774B2 (en) Stepping motor control device and stepping motor control method
JP2008079395A (en) Drive controller of vibration actuator, lens barrel and camera
JP2009011087A (en) Micro step control method of stepping motor, and dynamo-electric apparatus
JP2016187299A (en) Motor control device and motor control method
JP2023152086A (en) Driver and drive system
JPWO2023112303A5 (en)
JP6137973B2 (en) Stepping motor control device, optical apparatus, stepping motor control method, and program
JP2006262961A (en) Motor controller for sewing machine

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20100604

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20120413

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20120605

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20121106