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

JP6234210B2 - Stepping motor control device, optical device and interchangeable lens - Google Patents

Stepping motor control device, optical device and interchangeable lens Download PDF

Info

Publication number
JP6234210B2
JP6234210B2 JP2013261927A JP2013261927A JP6234210B2 JP 6234210 B2 JP6234210 B2 JP 6234210B2 JP 2013261927 A JP2013261927 A JP 2013261927A JP 2013261927 A JP2013261927 A JP 2013261927A JP 6234210 B2 JP6234210 B2 JP 6234210B2
Authority
JP
Japan
Prior art keywords
gain
stepping motor
value
voltage
voltage value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2013261927A
Other languages
Japanese (ja)
Other versions
JP2015119571A5 (en
JP2015119571A (en
Inventor
穣 渡邉
穣 渡邉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP2013261927A priority Critical patent/JP6234210B2/en
Publication of JP2015119571A publication Critical patent/JP2015119571A/en
Publication of JP2015119571A5 publication Critical patent/JP2015119571A5/en
Application granted granted Critical
Publication of JP6234210B2 publication Critical patent/JP6234210B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Control Of Stepping Motors (AREA)

Description

本発明は、ステッピングモータの制御技術に関し、特にステッピングモータに過電流が流れ続けることを防止する技術に関する。   The present invention relates to a stepping motor control technique, and more particularly to a technique for preventing an overcurrent from continuously flowing in a stepping motor.

ステッピングモータの制御方法としては、ステッピングモータに通電を行う通電ON時間と通電を行わない通電OFF時間とを交互に繰り返すPWM(Pulse-Width-Modulation)制御がある。PWM制御では、通電ON時間と通電OFF時間を加算した時間に対する通電ON時間の比率であるデューティー比を変更することによって所望の駆動電力値でステッピングモータを駆動することができる。ただし、デューティー比を設定した後に駆動電源の電圧値が変動した場合に、想定した駆動電力値とは異なる駆動電力値がステッピングモータに供給される。特に駆動電源の電圧値が想定した値よりも上昇した場合には、ステッピングモータに過電流が流れるおそれがある。   As a method for controlling the stepping motor, there is PWM (Pulse-Width-Modulation) control that alternately repeats an energization ON time for energizing the stepping motor and an energization OFF time for not energizing the stepping motor. In the PWM control, the stepping motor can be driven with a desired drive power value by changing the duty ratio, which is the ratio of the energization ON time to the time obtained by adding the energization ON time and the energization OFF time. However, when the voltage value of the drive power supply fluctuates after setting the duty ratio, a drive power value different from the assumed drive power value is supplied to the stepping motor. In particular, when the voltage value of the driving power supply rises higher than an assumed value, there is a possibility that an overcurrent flows through the stepping motor.

特許文献1には、ステッピングモータの駆動中に駆動電源の電圧値を検出する電圧検出部を設け、検出された電圧値に応じて駆動電力値が所定の値となるようにデューティー比を設定してPWM制御する方法が開示されている。   In Patent Document 1, a voltage detection unit that detects the voltage value of the drive power supply during driving of the stepping motor is provided, and the duty ratio is set so that the drive power value becomes a predetermined value according to the detected voltage value. A method for PWM control is disclosed.

特開平08−009686号公報JP 08-009686 A

しかしながら、特許文献1にて開示された方法では、電圧検出部に不具合が生じて、駆動電源の電圧値を実際の値よりも低く検出してしまった場合に、ステッピングモータに過電流が流れ続けるおそれがある。また、ステッピングモータに流れる電流を検出する電流検出回路を設け、過電流を検出する構成も考えられるが、ステッピングモータに対して駆動電流検出回路を設けることで構成が複雑化し、装置の大型化を招く可能性がある。   However, in the method disclosed in Patent Document 1, when a malfunction occurs in the voltage detection unit and the voltage value of the drive power supply is detected lower than the actual value, an overcurrent continues to flow through the stepping motor. There is a fear. Also, a current detection circuit that detects the current flowing through the stepping motor can be provided to detect overcurrent, but the configuration becomes complicated by providing a drive current detection circuit for the stepping motor, which increases the size of the device. There is a possibility of inviting.

本発明は、構成を複雑化することなく、ステッピングモータに過電流が流れ続けることを防止できるようにしたステッピングモータ制御装置、ステッピングモータ制御方法およびステッピングモータ制御プログラムを提供する。   The present invention provides a stepping motor control device, a stepping motor control method, and a stepping motor control program capable of preventing an overcurrent from continuing to flow through a stepping motor without complicating the configuration.

本発明の一側面としてのステッピングモータ制御装置は、駆動電源からステッピングモータに供給される駆動電力値を制御する。該ステッピングモータ制御装置は、駆動電源の電圧値を検出する電圧検出手段と、電圧検出手段により検出された電圧値に応じて、駆動電力値が所定電力値となるようにゲインを設定するゲイン制御手段とを有する。そして、ゲイン制御手段は、所定電力値よりも高い駆動電力値がステッピングモータに供給される第1のゲイン以上の値にゲインが設定された異常状態が所定時間、継続したことに応じて、該ゲインを第1のゲインより低い第2のゲインに設定することを特徴とする。
また、本発明の他の一側面としてのステッピングモータ制御装置は、駆動電源からステッピングモータに供給される駆動電力値を制御する。該ステッピングモータ制御装置は、駆動電源の電圧値を検出する電圧検出手段と、電圧検出手段により検出された電圧値に応じて、駆動電力値が所定電力値となるようにゲインを設定するゲイン制御手段とを有する。ゲイン制御手段は、所定電力値よりも高い駆動電力値がステッピングモータに供給される第1のゲイン以上の値にゲインが設定された異常状態か否かを周期的に繰り返し判定し、異常状態であるとの判定が連続して所定回数行われることに応じて、ゲインを第1のゲインより低い第2のゲインに設定することを特徴とする。
A stepping motor control device according to one aspect of the present invention controls a driving power value supplied from a driving power source to a stepping motor. The stepping motor control device includes a voltage detection unit that detects a voltage value of the drive power supply, and a gain control that sets a gain so that the drive power value becomes a predetermined power value according to the voltage value detected by the voltage detection unit. Means. Then, the gain control means in response to a high drive power value than Jo Tokoro power value is abnormal state a predetermined time the gain is set to a first gain or more values that will be supplied to the stepping motor, and continued, The gain is set to a second gain lower than the first gain.
A stepping motor control device according to another aspect of the present invention controls a driving power value supplied from a driving power source to a stepping motor. The stepping motor control device includes a voltage detection unit that detects a voltage value of the drive power supply, and a gain control that sets a gain so that the drive power value becomes a predetermined power value according to the voltage value detected by the voltage detection unit. Means. The gain control means periodically determines whether or not the drive power value higher than the predetermined power value is an abnormal state in which the gain is set to a value equal to or higher than the first gain supplied to the stepping motor. The gain is set to a second gain lower than the first gain in response to the determination that there is a predetermined number of times continuously.

なお、ステッピングモータと、該ステッピングモータにより駆動される光学部材と、上記ステッピングモータ制御装置とを有する光学機器も、本発明の他の一側面を構成する。   An optical device having a stepping motor, an optical member driven by the stepping motor, and the stepping motor control device also constitutes another aspect of the present invention.

また、本発明の他の一側面としての交換レンズは、カメラ本体に対して取り外し可能に装着される。該交換レンズは、ステッピングモータと、該ステッピングモータにより駆動される光学部材と、駆動電源からステッピングモータに供給される駆動電力値を制御するステッピングモータ制御手段とを有する。モータ制御手段は、駆動電源の電圧値を検出する電圧検出手段と、電圧検出手段により検出された電圧値に応じて、駆動電力値が所定電力値となるようにゲインを設定するゲイン制御手段とを有する。そして、ゲイン制御手段は、所定電力値よりも高い駆動電力値がステッピングモータに供給される第1のゲイン以上の値にゲインが設定された異常状態が所定時間、継続したことに応じて、カメラ本体に対して異常状態を通知することを特徴とする。
さらに、本発明の他の側面としての交換レンズは、カメラ本体に対して取り外し可能に装着される。該交換レンズは、ステッピングモータと、該ステッピングモータにより駆動される光学部材と、駆動電源からステッピングモータに供給される駆動電力値を制御するステッピングモータ制御手段とを有する。モータ制御手段は、駆動電源の電圧値を検出する電圧検出手段と、電圧検出手段により検出された電圧値に応じて、駆動電力値が所定電力値となるようにゲインを設定するゲイン制御手段とを有する。ゲイン制御手段は、所定電力値よりも高い駆動電力値がステッピングモータに供給される第1のゲイン以上の値にゲインが設定された異常状態か否かを周期的に繰り返し判定し、異常状態であるとの判定が連続して所定回数行われることに応じて、カメラ本体に対して異常状態を通知することを特徴とする。
The interchangeable lens as another aspect of the present invention is detachably attached to the camera body. The interchangeable lens includes a stepping motor, an optical member driven by the stepping motor, and stepping motor control means for controlling a driving power value supplied from the driving power source to the stepping motor. The motor control means includes a voltage detection means for detecting a voltage value of the drive power supply, and a gain control means for setting a gain so that the drive power value becomes a predetermined power value according to the voltage value detected by the voltage detection means; Have Then, the gain control means in response to a high drive power value than Jo Tokoro power value is abnormal state a predetermined time the gain is set to a first gain or more values that will be supplied to the stepping motor, and continued, An abnormal state is notified to the camera body.
Furthermore, the interchangeable lens as another aspect of the present invention is detachably attached to the camera body. The interchangeable lens includes a stepping motor, an optical member driven by the stepping motor, and stepping motor control means for controlling a driving power value supplied from the driving power source to the stepping motor. The motor control means includes a voltage detection means for detecting a voltage value of the drive power supply, and a gain control means for setting a gain so that the drive power value becomes a predetermined power value according to the voltage value detected by the voltage detection means; Have The gain control means periodically determines whether or not the drive power value higher than the predetermined power value is an abnormal state in which the gain is set to a value equal to or higher than the first gain supplied to the stepping motor. An abnormality state is notified to the camera body in response to the determination that there is a predetermined number of times continuously.

本発明によれば、駆動電源の電圧値に対して第1のゲイン以上のゲインが設定される異常状態が所定時間継続したことに応じてゲインを第2のゲインに設定する。これにより、構成を複雑化することなく、また一時的な駆動電源の電圧値の変動に伴って異常状態となったことに応じてゲインが第2のゲインに設定されることなく、異常状態の継続によりステッピングモータに過電流が流れ続けることを防止することができる。   According to the present invention, the gain is set to the second gain in response to an abnormal state in which a gain equal to or greater than the first gain is set for a predetermined time with respect to the voltage value of the drive power supply. Thereby, without making the configuration complicated, the gain is not set to the second gain in response to the abnormal state due to the temporary fluctuation of the voltage value of the driving power supply, and the abnormal state By continuing, overcurrent can be prevented from continuing to flow through the stepping motor.

本発明の実施例1であるステッピングモータ制御装置を備えたカメラシステムの構成を示すブロック図。1 is a block diagram illustrating a configuration of a camera system including a stepping motor control device that is Embodiment 1 of the present invention. 実施例1におけるレンズ側でのステッピングモータの制御を示す図。FIG. 3 is a diagram illustrating control of a stepping motor on the lens side in Embodiment 1. 実施例1におけるモータ駆動波形、ゲイン、電圧検出値および電圧値を示す図。FIG. 3 is a diagram illustrating a motor drive waveform, a gain, a voltage detection value, and a voltage value in the first embodiment. 実施例1における異常状態の検出過程を示す図。FIG. 3 is a diagram illustrating an abnormal state detection process in the first embodiment. 実施例1における異常対応処理を示すフローチャート。3 is a flowchart illustrating an abnormality handling process according to the first embodiment. 本発明の実施例2における異常対応処理を示すフローチャート。The flowchart which shows the abnormality response process in Example 2 of this invention.

以下、本発明の実施例について図面を参照しながら説明する。   Embodiments of the present invention will be described below with reference to the drawings.

図1には、本発明の実施例1であるステッピングモータ制御装置を搭載した交換レンズ(光学機器)2と、該交換レンズ2が取り外し可能に装着されるカメラ本体3とから構成されるカメラシステム1の電気的構成を示している。   FIG. 1 shows a camera system comprising an interchangeable lens (optical device) 2 equipped with a stepping motor control apparatus that is Embodiment 1 of the present invention, and a camera body 3 to which the interchangeable lens 2 is detachably mounted. 1 shows an electrical configuration.

カメラ本体3内には、カメラCPU30と、制御系電源31と、駆動系電源(駆動電源)32と、カメラ通信ユニット33と、レンズ装着検出部34と、焦点検出ユニット35とが設けられている。   In the camera body 3, a camera CPU 30, a control system power supply 31, a drive system power supply (drive power supply) 32, a camera communication unit 33, a lens attachment detection unit 34, and a focus detection unit 35 are provided. .

カメラCPU30は、カメラ本体3のすべての動作の制御を司っており、RAM、ROMおよびEEPROM等のメモリを内蔵している。制御系電源31は、焦点検出ユニット35や不図示の測光部等、電力消費量が比較的少なく安定した供給電圧を必要とする制御系回路に電力を供給する。駆動系電源(駆動電源)32は、制御系電源31の電圧または電力を検出し、交換レンズ2や不図示のシャッタ制御部等、電力消費量が比較的多い駆動系回路に電力を供給する。   The camera CPU 30 controls all operations of the camera body 3 and has a built-in memory such as a RAM, a ROM, and an EEPROM. The control system power supply 31 supplies power to a control system circuit that requires a stable supply voltage with a relatively small amount of power consumption, such as the focus detection unit 35 and a photometric unit (not shown). The drive system power supply (drive power supply) 32 detects the voltage or power of the control system power supply 31 and supplies power to a drive system circuit that consumes a relatively large amount of power, such as the interchangeable lens 2 or a shutter control unit (not shown).

レンズ装着検出部34は、カメラ本体3のマウントに交換レンズ2が装着されたことを検出する。焦点検出ユニット35は、交換レンズ2内の撮影光学系からの光束を用いて被写体に対する撮影光学系の焦点状態(デフォーカス量)を位相差検出方式により検出する。   The lens attachment detection unit 34 detects that the interchangeable lens 2 is attached to the mount of the camera body 3. The focus detection unit 35 detects the focus state (defocus amount) of the photographic optical system with respect to the subject using the phase difference detection method using the light beam from the photographic optical system in the interchangeable lens 2.

カメラ通信ユニット33は、後述するレンズCPU20との通信を行うための複数の通信端子を有し、焦点検出情報(デフォーカス量情報)や測光情報をレンズCPU20に送信したり、後述するレンズID情報をレンズCPU20から受信したりする。   The camera communication unit 33 has a plurality of communication terminals for performing communication with a lens CPU 20 described later, and transmits focus detection information (defocus amount information) and photometry information to the lens CPU 20 or lens ID information described later. Is received from the lens CPU 20.

交換レンズ2内には、レンズCPU(制御手段)20と、フォーカスレンズ21および絞りユニット23を含む撮影光学系と、フォーカスレンズ駆動回路22とが設けられている。さらに、交換レンズ2内には、絞り開放位置センサ24と、ステッピングモータ25と、絞り駆動回路26と、レンズ通信ユニット27とが設けられている。   In the interchangeable lens 2, a lens CPU (control means) 20, a photographing optical system including a focus lens 21 and a diaphragm unit 23, and a focus lens drive circuit 22 are provided. Further, in the interchangeable lens 2, an aperture opening position sensor 24, a stepping motor 25, an aperture driving circuit 26, and a lens communication unit 27 are provided.

レンズCPU20は、カメラCPU30からの命令信号、要求信号および各種情報に基づいて交換レンズ2内の動作を制御する。レンズCPU20は、RAM、ROMおよびEEPROM等のメモリと、ステッピングモータ25の駆動を制御するための駆動制御部等を内蔵している。フォーカスレンズ駆動回路22は、レンズCPU20からのフォーカス指令信号に応じてフォーカスレンズ21を光軸方向に移動させて焦点調節を行う。絞り駆動回路26は、レンズCPU20からの絞り指令信号に従ってステッピングモータ25を回転させて光学部材としての絞りユニット(絞り羽根)23を駆動し、絞り値(F値)を制御する。絞り開放位置センサ24は、フォトインタラプタ等の検出器により構成されており、絞り羽根が開放位置にあるか否かを検出する。絞り開放位置センサ24による検出結果は、レンズCPU20に送られる。   The lens CPU 20 controls the operation in the interchangeable lens 2 based on the command signal, request signal, and various information from the camera CPU 30. The lens CPU 20 includes a memory such as a RAM, a ROM, and an EEPROM, and a drive control unit for controlling the driving of the stepping motor 25. The focus lens drive circuit 22 performs focus adjustment by moving the focus lens 21 in the optical axis direction in accordance with a focus command signal from the lens CPU 20. The aperture driving circuit 26 rotates the stepping motor 25 in accordance with the aperture command signal from the lens CPU 20 to drive the aperture unit (aperture blade) 23 as an optical member, thereby controlling the aperture value (F value). The aperture opening position sensor 24 is constituted by a detector such as a photo interrupter, and detects whether or not the aperture blade is in the open position. The detection result by the aperture opening position sensor 24 is sent to the lens CPU 20.

レンズ通信ユニット27は、カメラCPU30と通信を行うための複数の通信端子を有し、上述した焦点検出情報(デフォーカス量情報)や測光情報をカメラCPU30から受信する。また、レンズ通信ユニット27は、交換レンズ2に固有の識別情報であるレンズID情報をカメラCPU30に送信する。   The lens communication unit 27 has a plurality of communication terminals for communicating with the camera CPU 30 and receives the above-described focus detection information (defocus amount information) and photometry information from the camera CPU 30. The lens communication unit 27 transmits lens ID information, which is identification information unique to the interchangeable lens 2, to the camera CPU 30.

なお、本実施例では、絞りユニット23の駆動用アクチュエータとしてステッピングモータ25を用い、このステッピングモータ25に対して後述するステッピングモータ制御装置を適用する。しかし、フォーカスレンズ(光学部材)21の駆動用にステッピングモータおよびステッピングモータ制御装置を適用してもよい。   In this embodiment, a stepping motor 25 is used as a driving actuator for the aperture unit 23, and a stepping motor control device described later is applied to the stepping motor 25. However, a stepping motor and a stepping motor control device may be applied for driving the focus lens (optical member) 21.

次に、図2を用いて、ステッピングモータ制御装置としてのレンズCPU20により行われるステッピングモータ25(つまりは絞りユニット23)の駆動制御について説明する。   Next, drive control of the stepping motor 25 (that is, the aperture unit 23) performed by the lens CPU 20 as the stepping motor control device will be described with reference to FIG.

レンズCPU20内には、駆動速度設定部200と、駆動電力設定部201と、駆動波形生成部202と、異常状態判定部203と、異常時間計測部204と、駆動系電圧検出部205と、ROM206と、RAM207とが設けられている。駆動電力設定部201、異常状態判定部203および異常時間計測部204はゲイン制御手段に相当する。また、駆動系電圧検出部205は電圧検出手段に相当する。   In the lens CPU 20, a driving speed setting unit 200, a driving power setting unit 201, a driving waveform generation unit 202, an abnormal state determination unit 203, an abnormal time measurement unit 204, a driving system voltage detection unit 205, and a ROM 206 are included. And a RAM 207 are provided. The drive power setting unit 201, the abnormal state determination unit 203, and the abnormal time measurement unit 204 correspond to gain control means. The drive system voltage detection unit 205 corresponds to voltage detection means.

駆動速度設定部200は、絞りユニット23の駆動に対する速度指令に対して、ステッピングモータ25の駆動速度を決定する。駆動系電圧検出部205は、駆動系電源32の電圧値を検出する。駆動電力設定部201は、駆動系電圧検出部205にて検出された駆動系電源32の電圧値に応じて、所定の駆動電力値(以下、所定電力値という)を実現するためのゲインを設定する。   The drive speed setting unit 200 determines the drive speed of the stepping motor 25 in response to a speed command for driving the aperture unit 23. The drive system voltage detection unit 205 detects the voltage value of the drive system power supply 32. The drive power setting unit 201 sets a gain for realizing a predetermined drive power value (hereinafter referred to as a predetermined power value) according to the voltage value of the drive system power supply 32 detected by the drive system voltage detection unit 205. To do.

駆動波形生成部202は、駆動速度設定部200で決定された駆動速度および駆動電力設定部201で決めている所定電力値にしたがって、駆動信号パターン(駆動波形)を生成し、該駆動信号パターンを有する駆動信号を絞り駆動回路26に出力する。この際、駆動波形生成部202は、2相駆動や1−2相駆動やマイクロステップ駆動といったステッピングモータ25の駆動方式に応じて、該ステッピングモータの各相における励磁パターンに対応する駆動信号パターンを生成する。駆動信号を受けた絞り駆動回路26は、該駆動信号を駆動電流および駆動電圧に変換してステッピングモータ25に供給する。   The drive waveform generation unit 202 generates a drive signal pattern (drive waveform) according to the drive speed determined by the drive speed setting unit 200 and a predetermined power value determined by the drive power setting unit 201, and the drive signal pattern is generated. The drive signal having the same is output to the aperture drive circuit 26. At this time, the drive waveform generation unit 202 generates a drive signal pattern corresponding to the excitation pattern in each phase of the stepping motor according to the driving method of the stepping motor 25 such as two-phase driving, 1-2 phase driving, and microstep driving. Generate. Upon receiving the drive signal, the diaphragm drive circuit 26 converts the drive signal into a drive current and a drive voltage and supplies the drive current and drive voltage to the stepping motor 25.

異常状態判定部203は、駆動電力設定部201で設定されたゲインが異常値であるか否かを判定する。具体的には、設定されたゲインが第1のゲイン以上であった場合に異常状態であると判定する。ここで、異常状態は、駆動電力設定部201が駆動系電源32の電圧値を実際の電圧値より低く誤検出することで発生する状態である。また、第1のゲインは、該誤検出された電圧値に対して駆動電力設定部201が設定可能なゲインであるが、より具体的な決定方法については後述する。   The abnormal state determination unit 203 determines whether or not the gain set by the drive power setting unit 201 is an abnormal value. Specifically, when the set gain is equal to or greater than the first gain, it is determined that the state is abnormal. Here, the abnormal state is a state that occurs when the drive power setting unit 201 erroneously detects the voltage value of the drive system power supply 32 lower than the actual voltage value. The first gain is a gain that can be set by the drive power setting unit 201 with respect to the erroneously detected voltage value, and a more specific determination method will be described later.

異常時間計測部204は、異常状態判定部203が異常状態であると判定した時刻から時間(以下、異常時間という)の計測を開始する。そして、計測した異常時間が所定時間としての閾値時間を超えた場合に、駆動電力設定部201はゲインを第2のゲインに設定する。閾値時間は、駆動系電源32の電圧値の通常起こり得る変動が発生してから終了するまでの時間よりも長い時間に設定されるが、より具体的な決定方法については後述する。また、第2のゲインは、少なくとも第1のゲインより低いゲインであるが、より具体的な決定方法については後述する。   The abnormal time measuring unit 204 starts measuring time (hereinafter referred to as abnormal time) from the time when the abnormal state determining unit 203 determines that the abnormal state is present. Then, when the measured abnormal time exceeds a threshold time as a predetermined time, the drive power setting unit 201 sets the gain to the second gain. The threshold time is set to a time longer than the time from the occurrence of the normally possible fluctuation of the voltage value of the drive system power supply 32 to the end, and a more specific determination method will be described later. The second gain is a gain lower than at least the first gain, and a more specific determination method will be described later.

ROM206には、レンズCPU20を動作させるための各種コンピュータプログラムやデータ等が格納されている。RAM207は、該コンピュータプログラムで利用する演算結果や保持すべきデータを一時的に保管するために使用される。   The ROM 206 stores various computer programs and data for operating the lens CPU 20. The RAM 207 is used for temporarily storing calculation results used in the computer program and data to be held.

図3には、ステッピングモータ25の駆動の例として、ステッピングモータ25に供給される駆動電流の波形と、駆動系電源32の電圧値と、駆動系電圧検出部205により検出された電圧値と、駆動電力設定部201で設定されたゲインを示している。ステッピングモータ25に供給される駆動電流の波形は、駆動波形生成部202にて生成される駆動信号パターンに対応する波形であり、図3ではこれを駆動波形と記す。また、図3は、ステッピングモータ25に対して正弦波状の駆動信号を印加するマイクロステップ駆動を行う場合を示している。   In FIG. 3, as an example of driving of the stepping motor 25, the waveform of the driving current supplied to the stepping motor 25, the voltage value of the driving system power supply 32, the voltage value detected by the driving system voltage detection unit 205, The gain set by the drive power setting unit 201 is shown. The waveform of the drive current supplied to the stepping motor 25 is a waveform corresponding to the drive signal pattern generated by the drive waveform generation unit 202, which is referred to as a drive waveform in FIG. FIG. 3 shows a case where microstep driving in which a sinusoidal driving signal is applied to the stepping motor 25 is performed.

時刻t0から時刻t1までの間は、駆動系電源32の電圧値はV1で、駆動系電圧検出部205が検出した電圧値はD1であり、駆動電力設定部201はD1に応じて所定電力値を実現するためのゲインG1を設定する。   From time t0 to time t1, the voltage value of the drive system power supply 32 is V1, the voltage value detected by the drive system voltage detection unit 205 is D1, and the drive power setting unit 201 has a predetermined power value according to D1. A gain G1 for realizing the above is set.

次の時刻t1では、駆動系電源32の電圧値が変動してV2に上昇すると、駆動系電圧検出部205が検出する電圧値もD2に上昇するので、駆動電力設定部201はD2に応じて所定電力値を実現するためのゲインG2を設定する。このため、駆動系電源32の電圧変動の影響を受けずに所定電力値に対応する駆動電力値でステッピングモータ25を駆動することができる。D2がD1に比べて上昇しているので、ゲインG2はゲインG1に対して低い値となる。   At the next time t1, when the voltage value of the drive system power supply 32 fluctuates and rises to V2, the voltage value detected by the drive system voltage detection unit 205 also rises to D2, so the drive power setting unit 201 responds to D2. A gain G2 for realizing a predetermined power value is set. For this reason, the stepping motor 25 can be driven with the driving power value corresponding to the predetermined power value without being affected by the voltage fluctuation of the driving system power supply 32. Since D2 is higher than D1, the gain G2 is a lower value than the gain G1.

さらに時刻t2で、駆動系電源32の電圧値が変動してV3に上昇すると、駆動系電圧検出部205が検出した電圧値もD3に上昇するので、駆動電力設定部201はD3に応じて所定電力値を実現するためのゲインG3を設定する。このため、時刻t2のときと同様に、駆動系電源32の電圧変動の影響を受けずに所定電力値でステッピングモータ25を駆動することができる。ここでも、D3がD2に比べて上昇しているので、ゲインG3はゲインG2に対して低い値となる。   Furthermore, when the voltage value of the drive system power supply 32 fluctuates and rises to V3 at time t2, the voltage value detected by the drive system voltage detection unit 205 also rises to D3. Therefore, the drive power setting unit 201 is predetermined according to D3. A gain G3 for realizing the power value is set. For this reason, similarly to the time t2, the stepping motor 25 can be driven with the predetermined power value without being affected by the voltage fluctuation of the drive system power supply 32. Again, since D3 is higher than D2, gain G3 is a lower value than gain G2.

次に時刻t3において駆動系電圧検出部205に不具合が発生し、駆動系電源32の電圧値はV3のまま変動していないのにもかかわらず、駆動系電圧検出部205が検出した電圧値が実際の電圧値D3より低い(さらにはD1より低い)D4に変化したとする。これに伴い、駆動電力設定部201は、D4に応じて所定電力値を実現するためのゲインG4としてゲインG3よりも大きい値を設定する。しかし、駆動系電源32から供給されている実際の電圧値はV3であるため、駆動電力値として所定電力値よりも大きな値が設定されることになる。この結果、ステッピングモータ25に、所定電力値に対して設定される得る駆動電流よりも大きな電流である過電流が流れる。   Next, at time t3, a malfunction occurs in the drive system voltage detection unit 205, and the voltage value detected by the drive system voltage detection unit 205 is not changed even though the voltage value of the drive system power supply 32 remains V3. It is assumed that the voltage has changed to D4 lower than the actual voltage value D3 (and lower than D1). Accordingly, the driving power setting unit 201 sets a value larger than the gain G3 as the gain G4 for realizing the predetermined power value according to D4. However, since the actual voltage value supplied from the drive system power supply 32 is V3, a value larger than the predetermined power value is set as the drive power value. As a result, an overcurrent that is larger than the drive current that can be set for the predetermined power value flows through the stepping motor 25.

このような場合、本実施例では、ゲインG4が異常状態判定部203で異常状態であると判定される閾値である第1のゲイン(GA)以上であれば、時刻t3において異常状態判定部203が異常状態であると判定する。そして、異常時間計測部204が異常時間の計測を開始する。時刻t4において異常時間計測部204が計測している異常時間が閾値時間を超えた判定すると、駆動電力設定部201はゲインを第2のゲイン(GB=G5)に設定する。駆動電力設定部201がゲインを第2のゲインに設定する処理を、以下、異常対応処理という。   In such a case, in this embodiment, if the gain G4 is equal to or greater than the first gain (GA) that is a threshold value determined as an abnormal state by the abnormal state determination unit 203, the abnormal state determination unit 203 at time t3. Is determined to be in an abnormal state. Then, the abnormal time measuring unit 204 starts measuring the abnormal time. If it is determined that the abnormal time measured by the abnormal time measurement unit 204 exceeds the threshold time at time t4, the drive power setting unit 201 sets the gain to the second gain (GB = G5). The process in which the drive power setting unit 201 sets the gain to the second gain is hereinafter referred to as an abnormality handling process.

図4には、第1のゲインGAと、閾値時間TAと、第2のゲインGBの例を示している。駆動系電源32の特性上、何ら異常がない状態においても、駆動系電源32の電圧値が瞬間的に変動する場合がある。この場合に想定される電圧変動値と変動継続時間に基づいて、駆動電力設定部201が異常対応処理を実行しないように制限しつつ、図3における時刻t3で発生したような異常状態を検出し、ステッピングモータ25に過電流が流れ続けないようにする必要がある。   FIG. 4 shows an example of the first gain GA, the threshold time TA, and the second gain GB. Even if there is no abnormality in the characteristics of the drive system power supply 32, the voltage value of the drive system power supply 32 may fluctuate instantaneously. Based on the voltage fluctuation value assumed in this case and the fluctuation continuation time, the abnormal condition such as that occurred at time t3 in FIG. 3 is detected while restricting the drive power setting unit 201 not to perform the abnormality handling process. It is necessary to prevent an overcurrent from continuing to flow through the stepping motor 25.

例えば、図4中の時刻t1における時刻t2までの駆動系電源32の電圧の低下(V1→V2)や時刻t3における時刻t4までの電圧の低下(V3→V4)は、想定される一時的または瞬間的な電圧変動である。この場合は、これらの電圧低下に対する異常対応処理を制限する必要がある。したがって、第1のゲインGAおよび閾値時間TAを、以下のように設定することが必要である。   For example, the voltage drop (V1 → V2) of the drive system power supply 32 up to time t2 at time t1 in FIG. 4 and the voltage drop (V3 → V4) up to time t4 at time t3 are assumed temporarily or Instantaneous voltage fluctuation. In this case, it is necessary to limit the abnormality handling process for these voltage drops. Therefore, it is necessary to set the first gain GA and the threshold time TA as follows.

すなわち、閾値時間TAを、駆動系電源32の電圧変動に対して駆動電力設定部201が設定するゲインが第1のゲインGA以上となっている状態が継続すると想定される時間よりも長い時間に設定する。また、第1のゲインGAを、駆動系電源32の電圧変動によって閾値時間以上の継続が想定される最低の電圧値に対して駆動電力値が所定電力値となるように駆動電力設定部201によって設定されるゲインより大きくする必要がある。ただし、第1のゲインGAおよび閾値時間TAを設定するのは、ステッピングモータ25に過電流が流れ続けることによる該モータ25の温度上昇を抑制するためである。このため、第1のゲインGAを上記条件を満たす範囲で可能な限り小さい値とし、閾値時間も上記条件を満たす範囲で可能な限り短い時間とすることが望ましい。   That is, the threshold time TA is set to a time longer than the time when the state in which the gain set by the drive power setting unit 201 with respect to the voltage fluctuation of the drive system power supply 32 is equal to or greater than the first gain GA is continued. Set. In addition, the drive power setting unit 201 sets the first gain GA so that the drive power value becomes a predetermined power value with respect to the lowest voltage value that is assumed to continue for the threshold time or longer due to the voltage fluctuation of the drive system power supply 32. It must be larger than the set gain. However, the reason why the first gain GA and the threshold time TA are set is to suppress an increase in the temperature of the motor 25 due to the overcurrent continuing to flow through the stepping motor 25. For this reason, it is desirable that the first gain GA is as small as possible within the range satisfying the above conditions, and the threshold time is as short as possible within the range satisfying the above conditions.

一方、第2のゲインGBは、駆動系電源32の電圧変動により想定される最大の電圧値に対して、ステッピングモータ25の過度の温度上昇によって該モータ25やその周辺の部品の故障や誤動作を引き起こさない範囲の値であればよく、例えば零でもよい。ゲインが零とは、ステッピングモータ25への通電を遮断することに相当する。   On the other hand, the second gain GB causes a failure or malfunction of the motor 25 or its peripheral components due to an excessive temperature rise of the stepping motor 25 with respect to the maximum voltage value assumed by the voltage fluctuation of the drive system power supply 32. Any value within the range that does not cause it is sufficient, for example, zero. A gain of zero corresponds to cutting off the power supply to the stepping motor 25.

図4では、時刻t1においてゲインが第1のゲインGAを上回るため、異常状態判定部203が異常状態であると判定し、異常時間計測部204が異常時間の計測を開始する。ただし、閾値時間TA内でゲインが第1のゲインGAを下回るため、駆動電力設定部201は異常対応処理を行わない。また、時刻t3から時刻t4ではゲインが第1のゲインGA以上にはならないため、異常状態判定部203は異常状態ではないと判定する。   In FIG. 4, since the gain exceeds the first gain GA at time t1, the abnormal state determination unit 203 determines that it is in an abnormal state, and the abnormal time measurement unit 204 starts measuring the abnormal time. However, since the gain falls below the first gain GA within the threshold time TA, the drive power setting unit 201 does not perform the abnormality handling process. In addition, since the gain does not exceed the first gain GA from time t3 to time t4, the abnormal state determination unit 203 determines that there is no abnormal state.

時刻t5において再びゲインが第1のゲインGAを上回るため、異常状態判定部203は異常状態であると判定し、異常時間計測部204が異常時間の計測を開始する。そして時刻t6において計測時間が閾値時間TAに到達すると、駆動電力設定部201は異常対応処理を行ってゲインを第2のゲインGBに設定する。   Since the gain again exceeds the first gain GA at time t5, the abnormal state determination unit 203 determines that it is in an abnormal state, and the abnormal time measurement unit 204 starts measuring the abnormal time. When the measurement time reaches the threshold time TA at time t6, the drive power setting unit 201 performs an abnormality handling process and sets the gain to the second gain GB.

次に、本実施例における異常対応処理を含むゲイン設定処理の詳細を、図5のフローチャートを用いて説明する。なお、図中の「Y」は「Yes」を意味し、「N」は「No」を意味する。異常監視処理は、レンズCPU20がコンピュータプログラムであるステッピングモータ制御プログラムに従って所定周期のルーチンで繰り返し実行する。これらのことは、後述する実施例2でも同じである。   Next, details of the gain setting process including the abnormality handling process in the present embodiment will be described with reference to the flowchart of FIG. In the figure, “Y” means “Yes”, and “N” means “No”. The abnormality monitoring process is repeatedly executed by the lens CPU 20 in a routine having a predetermined cycle in accordance with a stepping motor control program that is a computer program. These are the same in Example 2 described later.

ステップST501では、レンズCPU20は、ステッピングモータ25が通電中か否かを判定する。ここでいう通電中とは、ステッピングモータ25の回転駆動のための通電を行っている状態および回転駆動後に回転位置を保持するための通電を行っている保持通電状態を含むものであってもよいし、保持通電状態に限定してもよい。レンズCPUは、通電中でない場合にはステップST512に進み、通電中であった場合にはステップST502に進む。   In step ST501, the lens CPU 20 determines whether or not the stepping motor 25 is energized. The term “in energization” as used herein may include a state in which energization is performed for rotational driving of the stepping motor 25 and a holding energization state in which energization is performed to hold the rotational position after the rotational driving. However, it may be limited to the holding energized state. If the lens CPU is not energized, the process proceeds to step ST512. If the lens CPU is energized, the process proceeds to step ST502.

ステップST502では、レンズCPU20は、駆動系電圧検出部205により駆動系電源32の電圧値を検出する。   In step ST502, the lens CPU 20 detects the voltage value of the drive system power supply 32 by the drive system voltage detection unit 205.

次に、ステップST503では、レンズCPU20は、ステップST502で検出した駆動系電源32の電圧値からステッピングモータ25の駆動電力値が所定電力値となるように駆動電力設定部201でゲインを設定し、ステップST504に進む。ここで設定するゲインは、例えば駆動系電圧検出部205の検出した電圧値が5Vで、所定電力値が2.5V相当値であれば、2.5/5=0.5となる。   Next, in step ST503, the lens CPU 20 sets the gain in the driving power setting unit 201 so that the driving power value of the stepping motor 25 becomes a predetermined power value from the voltage value of the driving system power supply 32 detected in step ST502. It progresses to step ST504. The gain set here is, for example, 2.5 / 5 = 0.5 when the voltage value detected by the drive system voltage detection unit 205 is 5V and the predetermined power value is a value equivalent to 2.5V.

ステップST504では、レンズCPU20は、異常状態判定部203によって、ステップST503で設定したゲインが第1のゲインGA以上であるか否かを判定する。レンズCPU20は、設定されたゲインが第1のゲインGA以上でない場合には(つまりは正常状態である場合は)ステップST512に進み、第1のゲインGA以上であった場合(つまりは異常状態である場合)にはステップST505に進む。   In step ST504, the lens CPU 20 determines whether the gain set in step ST503 is greater than or equal to the first gain GA by the abnormal state determination unit 203. If the set gain is not equal to or greater than the first gain GA (that is, in a normal state), the lens CPU 20 proceeds to step ST512, and if the gain is equal to or greater than the first gain GA (that is, in an abnormal state). If yes, the process proceeds to step ST505.

ステップST505では、レンズCPU20は、異常検出フラグをチェックする。異常検出フラグは、異常状態判定部203の判定結果が正常状態から異常状態へと変化した際に「1」となるフラグである。レンズCPU20は、異常検出フラグが「0」であれば(つまりは前回のルーチンでの判定結果が正常状態であれば)、ステップST506に進み、「1」であれば(つまり前回のルーチンでの判定結果が異常状態であれば)ステップST508に進む。   In step ST505, the lens CPU 20 checks the abnormality detection flag. The abnormality detection flag is a flag that becomes “1” when the determination result of the abnormal state determination unit 203 changes from the normal state to the abnormal state. If the abnormality detection flag is “0” (that is, if the determination result in the previous routine is normal), the lens CPU 20 proceeds to step ST506, and if it is “1” (that is, in the previous routine). If the determination result is abnormal), the process proceeds to step ST508.

ステップST506では、レンズCPU20は、異常検出フラグを「1」に設定し、ステップST507にて異常時間計測部204で異常時間の計測を開始する。そして、ステップST501に戻る。   In step ST506, the lens CPU 20 sets the abnormality detection flag to “1”, and in step ST507, the abnormal time measuring unit 204 starts measuring the abnormal time. Then, the process returns to step ST501.

ステップST508では、レンズCPU20は、異常時間計測部204で計測している異常時間が閾値時間以上になったか否かを判定する。異常時間が閾値時間以上であればステップST509に進み、異常時間が閾値以上でなければそのまま時間計測を継続してステップST501に戻る。   In step ST508, the lens CPU 20 determines whether or not the abnormal time measured by the abnormal time measuring unit 204 is equal to or longer than the threshold time. If the abnormal time is equal to or greater than the threshold time, the process proceeds to step ST509. If the abnormal time is not equal to or greater than the threshold, time measurement is continued and the process returns to step ST501.

ステップST509では、レンズCPU20は、駆動電力設定部201にてゲインを第2のゲインGBに設定する。これにより、ステッピングモータ25に閾値時間を超えて過電流が流れ続けることを防止する。その後、ステップST510において、レンズCPU20は異常時間計測部204にて計測している異常時間を零にクリアし、ステップST511にて異常検出フラグを「0」にクリアする。そして、ステップST501に戻る。   In step ST509, the lens CPU 20 sets the gain to the second gain GB in the drive power setting unit 201. This prevents overcurrent from continuing to flow through the stepping motor 25 beyond the threshold time. Thereafter, in step ST510, the lens CPU 20 clears the abnormal time measured by the abnormal time measurement unit 204 to zero, and clears the abnormality detection flag to “0” in step ST511. Then, the process returns to step ST501.

ステップST512では、レンズCPU20は、異常時間計測部204にて計測している異常時間を零にクリアし、ステップST511にて異常検出フラグを「0」にクリアする。そして、ステップST501に戻る。   In step ST512, the lens CPU 20 clears the abnormal time measured by the abnormal time measurement unit 204 to zero, and clears the abnormality detection flag to “0” in step ST511. Then, the process returns to step ST501.

以上説明したように、本実施例では、レンズCPU20が、駆動系電源32の電圧値を検出し、該検出結果に応じてステッピングモータ25に供給する駆動電力値が所定電力値となるようにゲインを設定する処理を周期的に繰り返し行う。そして、設定したゲインがステッピングモータ25に過電流が流れることになる第1のゲイン以上である異常値と判定されてからの経過時間(異常時間)が閾値時間以上になることに応じて、ゲインを過電流が流れ続けないようにするための第2のゲインに設定する。これにより、構成を複雑化することなく、また一時的な駆動系電源32の電圧値変動に伴って異常状態となることに応じて異常対応処理が実行されてしまうことなく、異常状態の継続によりステッピングモータに過電流が流れ続けることを防止することができる。   As described above, in the present embodiment, the lens CPU 20 detects the voltage value of the drive system power supply 32, and gains so that the drive power value supplied to the stepping motor 25 according to the detection result becomes a predetermined power value. The process of setting is periodically repeated. Then, when the set gain is determined to be an abnormal value that is equal to or greater than the first gain that causes an overcurrent to flow through the stepping motor 25, the elapsed time (abnormal time) is equal to or greater than the threshold time. Is set to a second gain for preventing overcurrent from continuing to flow. As a result, without complicating the configuration, the abnormality handling process is not executed in response to the abnormal state associated with the temporary voltage fluctuation of the drive system power supply 32, and the abnormal state is continued. It is possible to prevent overcurrent from continuing to flow through the stepping motor.

(変形例)
本実施例では、駆動系電源32の電圧値(検出電圧値)に対して設定されたゲインが第1のゲイン以上になった時点から異常時間の計測を開始し、異常時間が閾値時間以上となることに応じてゲインを第2のゲインに設定する処理について説明した。しかし、周期的に(所定周期で)繰り返されるルーチンにて設定されたゲインが第1のゲイン以上の値になったと判定された回数をカウントする方法を用いてもよい。この場合、該判定が連続して所定回数行われることに応じて(つまりは異常時間が所定周期×所定回数に相当する時間、継続することに応じて)ゲインを第2のゲインに設定すればよい。
(Modification)
In this embodiment, the measurement of the abnormal time is started when the gain set for the voltage value (detected voltage value) of the drive system power supply 32 becomes equal to or higher than the first gain, and the abnormal time is equal to or higher than the threshold time. The process of setting the gain to the second gain according to the above has been described. However, a method of counting the number of times when it is determined that the gain set in a routine that is repeated periodically (with a predetermined period) becomes a value equal to or greater than the first gain may be used. In this case, if the gain is set to the second gain according to the determination being continuously performed a predetermined number of times (that is, according to the abnormal time continuing for a time corresponding to the predetermined period × the predetermined number of times). Good.

また、本実施例では、周期的に(所定周期で)実行される毎回のルーチンで駆動系電源32の電圧値を検出し、所定周期ごとに該検出電圧値に対してゲインを設定する場合について説明した。しかし、これ以外のゲイン設定方法として、レンズCPU20の負荷を軽減するため、ゲインが異常値であると判定したときにのみ駆動系電源32の電圧値を検出し、その検出電圧値に対して、駆動電力値が所定電力値になるようにゲインを設定してもよい。ただし、この場合は、ステッピングモータ25に対して第1のゲインが設定され続けることが生じ得る。このため、第1のゲインは、駆動系電源32の電圧値の変動において想定される最大の電圧値に対して、ステッピングモータ25の過度の温度上昇を引き起こさない範囲のゲインにする必要がある。   Further, in this embodiment, the voltage value of the drive system power supply 32 is detected by a routine executed periodically (with a predetermined cycle), and the gain is set for the detected voltage value every predetermined cycle. explained. However, as another gain setting method, in order to reduce the load on the lens CPU 20, the voltage value of the drive system power supply 32 is detected only when the gain is determined to be an abnormal value. The gain may be set so that the drive power value becomes a predetermined power value. However, in this case, the first gain may continue to be set for the stepping motor 25. For this reason, the first gain needs to be a gain that does not cause an excessive temperature rise of the stepping motor 25 with respect to the maximum voltage value assumed in the fluctuation of the voltage value of the drive system power supply 32.

これらの変形例については、後述する実施例2においても同じである。   These modifications are the same in the second embodiment described later.

なお、本実施例はレンズ交換式カメラシステムにおいて用いられる交換レンズにステッピングモータ制御装置が搭載されている場合について説明したが、レンズ一体型カメラ(光学機器)に本実施例と同様の処理を行うステッピングモータ制御装置を搭載してもよい。   In this embodiment, the case where the stepping motor control device is mounted on the interchangeable lens used in the interchangeable lens camera system has been described. However, the lens integrated camera (optical apparatus) performs the same processing as in this embodiment. A stepping motor control device may be mounted.

次に、本発明の実施例2について説明する。本実施例における交換レンズおよびカメラ本体の構成は、実施例1と同じであり、共通する構成要素には、実施例1と同じ符号を付す。ただし、本実施例では、レンズ通信ユニット27が、カメラ本体3に対して交換レンズ2の異常状態を通知する異常状態通知部として機能する。   Next, a second embodiment of the present invention will be described. The configurations of the interchangeable lens and the camera body in the present embodiment are the same as those in the first embodiment, and common constituent elements are denoted by the same reference numerals as in the first embodiment. However, in this embodiment, the lens communication unit 27 functions as an abnormal state notification unit that notifies the camera body 3 of an abnormal state of the interchangeable lens 2.

実施例1では、異常時間が閾値時間以上となることに応じて交換レンズ側においてレンズCPU20がゲインを第2のゲインに設定するという異常対応処理を行う場合について説明した。これに対して、本実施例では、レンズCPU20は異常時間が閾値時間以上になることに応じて異常状態通知部を通じてカメラ本体側のカメラCPU30に対し、異常状態を通知する異常状態通知を送信する。そして、異常状態通知を受信したカメラCPU30は、レンズCPU20に対して異常対応処理を実行するようレンズCPU20に命令を送信し、該命令に応じてレンズCPU20が異常対応処理を行う。   In the first embodiment, a case has been described in which the lens CPU 20 performs the abnormality handling process in which the lens CPU 20 sets the gain to the second gain on the interchangeable lens side when the abnormal time is equal to or greater than the threshold time. On the other hand, in this embodiment, the lens CPU 20 transmits an abnormal state notification for notifying the abnormal state to the camera CPU 30 on the camera body side through the abnormal state notification unit in response to the abnormal time being equal to or greater than the threshold time. . The camera CPU 30 that has received the abnormal state notification transmits an instruction to the lens CPU 20 to execute the abnormality handling process to the lens CPU 20, and the lens CPU 20 performs the abnormality handling process in response to the instruction.

図6には、本実施例においてレンズCPU20が行う異常対応処理を含むゲイン設定処理のフローチャートを示している。また、図6には、カメラCPU30が行う処理の一部も示している。   FIG. 6 shows a flowchart of gain setting processing including abnormality handling processing performed by the lens CPU 20 in this embodiment. FIG. 6 also shows part of the processing performed by the camera CPU 30.

ステップST501〜ステップST513は、実施例1(図5)のステップST501〜ステップST513と同じであるので、説明を省略する。   Steps ST501 to ST513 are the same as steps ST501 to ST513 in the first embodiment (FIG. 5), and thus the description thereof is omitted.

レンズCPU20は、ステップST508において異常時間計測部204で計測している異常時間が閾値時間以上になったと判定すると、ステップST601に進み、カメラCPU30に対して上述した異常状態通知を行う。   If the lens CPU 20 determines in step ST508 that the abnormal time measured by the abnormal time measurement unit 204 has become equal to or greater than the threshold time, the process proceeds to step ST601 and notifies the camera CPU 30 of the abnormal state described above.

異常状態通知を受けたカメラCPU30は、ステップST801において、レンズCPU20に対して異常対応処理の実行命令を送信する。このとき、カメラCPU30は、カメラ本体3において交換レンズ側にて異常状態が発生したことを示す警告をモニタに表示したり音声で出力したりしてもよい。   Receiving the abnormal state notification, the camera CPU 30 transmits an execution instruction for the abnormality handling process to the lens CPU 20 in step ST801. At this time, the camera CPU 30 may display a warning indicating that an abnormal state has occurred on the interchangeable lens side in the camera body 3 on the monitor or output the warning.

そして、上記実行命令を受けたレンズCPU20は、ステップS509において、実施例1にて説明したように駆動電力設定部201にてゲインを第2のゲインに設定する異常対応処理を行う。この後の処理は実施例1と同じである。   Then, in step S509, the lens CPU 20 that has received the execution command performs an abnormality handling process in which the drive power setting unit 201 sets the gain to the second gain as described in the first embodiment. The subsequent processing is the same as in the first embodiment.

このように本実施例でも、レンズCPU20が、駆動系電源32の電圧値を検出し、該検出結果に応じてステッピングモータ25に供給する駆動電力値が所定電力値となるようにゲインを設定する処理を周期的に繰り返し行う。そして、設定したゲインがステッピングモータ25に過電流が流れることになる第1のゲイン以上である異常値と判定されてからの経過時間(異常時間)が閾値時間以上になることに応じて、カメラCPU30に対して異常状態通知を行う。この後、該異常状態通知に応答したカメラCPU30からの実行命令に応じて、レンズCPU20が異常対応処理を行う。これにより、構成を複雑化することなく、また一時的な駆動系電源32の電圧値変動に伴って異常状態になることに応じて異常対応処理が実行されてしまうことなく、異常状態の継続によりステッピングモータ25に過電流が流れ続けることを防止することができる。   Thus, also in this embodiment, the lens CPU 20 detects the voltage value of the drive system power supply 32, and sets the gain so that the drive power value supplied to the stepping motor 25 becomes a predetermined power value according to the detection result. The process is repeated periodically. Then, when the set gain is determined to be an abnormal value that is equal to or greater than the first gain that causes an overcurrent to flow through the stepping motor 25, the elapsed time (abnormal time) is determined to be equal to or greater than the threshold time. An abnormal condition is notified to the CPU 30. Thereafter, the lens CPU 20 performs an abnormality handling process in response to an execution command from the camera CPU 30 in response to the abnormal state notification. Thereby, without complicating the configuration, the abnormality handling process is not executed in response to the abnormal state due to the temporary voltage fluctuation of the driving system power supply 32, and the abnormal state is continued. It is possible to prevent an overcurrent from continuing to flow through the stepping motor 25.

また、レンズCPU20からカメラCPU30への異常状態通知によって、レンズCPU20とカメラCPU30との間で異常状態の情報を共有することができる。これにより、カメラCPU30において、上述した警告動作等、異常状態に関連する処理を行うことも可能となる。   Also, the abnormal state information can be shared between the lens CPU 20 and the camera CPU 30 by the abnormal state notification from the lens CPU 20 to the camera CPU 30. Thereby, the camera CPU 30 can also perform processing related to the abnormal state such as the warning operation described above.

以上説明した各実施例は代表的な例にすぎず、本発明の実施に際しては、各実施例に対して種々の変形や変更が可能である。   Each embodiment described above is only a representative example, and various modifications and changes can be made to each embodiment in carrying out the present invention.

ステッピングモータに過電流が流れ続けることによる不具合の発生を回避することが可能な光学機器を提供することができる。   It is possible to provide an optical apparatus capable of avoiding the occurrence of problems due to the overcurrent continuously flowing through the stepping motor.

2 交換レンズ
20 レンズCPU
25 ステッピングモータ
32 駆動系電源
200 駆動速度設定部
201 駆動電力設定部
202 駆動波形生成部
203 異常状態判定部
204 異常時間計測部
205 駆動系電圧検出部
2 Interchangeable lens 20 Lens CPU
25 Stepping motor 32 Drive system power supply
200 Drive Speed Setting Unit 201 Drive Power Setting Unit 202 Drive Waveform Generation Unit 203 Abnormal State Determination Unit 204 Abnormal Time Measurement Unit 205 Drive System Voltage Detection Unit

Claims (11)

駆動電源からステッピングモータに供給される駆動電力値を制御するステッピングモータ制御装置であって、
前記駆動電源の電圧値を検出する電圧検出手段と、
前記電圧検出手段により検出された前記電圧値に応じて、前記駆動電力値が所定電力値となるようにゲインを設定するゲイン制御手段とを有し、
前記ゲイン制御手段は、前記所定電力値よりも高い前記駆動電力値が前記ステッピングモータに供給される第1のゲイン以上の値に前記ゲインが設定された異常状態が所定時間、継続したことに応じて、前記ゲインを前記第1のゲインより低い第2のゲインに設定することを特徴とするステッピングモータ制御装置。
A stepping motor control device for controlling a driving power value supplied from a driving power source to a stepping motor,
Voltage detection means for detecting a voltage value of the drive power supply;
Gain control means for setting a gain so that the drive power value becomes a predetermined power value according to the voltage value detected by the voltage detection means;
It said gain control means prior Symbol higher the driving power value is the gain is set abnormal state for a predetermined time to a first gain or more values that will be supplied to the stepping motors than a predetermined power value, that continued Accordingly, the stepping motor control device is characterized in that the gain is set to a second gain lower than the first gain.
駆動電源からステッピングモータに供給される駆動電力値を制御するステッピングモータ制御装置であって、
前記駆動電源の電圧値を検出する電圧検出手段と、
前記電圧検出手段により検出された前記電圧値に応じて、前記駆動電力値が所定電力値となるようにゲインを設定するゲイン制御手段とを有し、
前記ゲイン制御手段は、前記所定電力値よりも高い前記駆動電力値が前記ステッピングモータに供給される第1のゲイン以上の値に前記ゲインが設定された異常状態か否かを周期的に繰り返し判定し、前記異常状態であるとの判定が連続して所定回数行われることに応じて、前記ゲインを前記第1のゲインより低い第2のゲインに設定することを特徴とするステッピングモータ制御装置。
A stepping motor control device for controlling a driving power value supplied from a driving power source to a stepping motor,
Voltage detection means for detecting a voltage value of the drive power supply;
Gain control means for setting a gain so that the drive power value becomes a predetermined power value according to the voltage value detected by the voltage detection means;
The gain control means periodically determines whether or not the driving power value higher than the predetermined power value is an abnormal state in which the gain is set to a value equal to or higher than a first gain supplied to the stepping motor. and, wherein a determination is abnormal state continuously according to be carried out for a predetermined number of times, wherein the to Luz stepping motor to set the gain to a second gain lower than said first gain Control device.
前記電圧検出手段は、前記駆動電源の電圧値を周期的に繰り返し検出し、
前記ゲイン制御手段は、前記電圧検出手段による検出が行われるごとに、その検出された前記電圧値に応じて前記ゲインを設定することを特徴とする請求項1または2に記載のステッピングモータ制御装置。
The voltage detection means periodically and repeatedly detects the voltage value of the drive power supply;
3. The stepping motor control device according to claim 1, wherein the gain control unit sets the gain according to the detected voltage value every time detection by the voltage detection unit is performed. .
前記異常状態は、前記電圧検出手段が前記駆動電源の電圧値を実際の電圧値より低く誤検出する状態であり、
前記第1のゲインは、該誤検出された前記電圧値に対して前記ゲイン制御手段が設定可能なゲインであることを特徴とする請求項1からのいずれか一項に記載のステッピングモータ制御装置。
The abnormal state is a state in which the voltage detection unit erroneously detects a voltage value of the drive power supply lower than an actual voltage value,
The first gain is said error detected the gain control means stepping motor control according to claims 1, wherein in any one of the three that is a gain that can be set for the voltage value apparatus.
前記所定時間は、前記駆動電源の電圧値の変動が発生してから終了するまでの時間よりも長い時間であることを特徴とする請求項1からのいずれか一項に記載のステッピングモータ制御装置。 The predetermined time is, the stepping motor control according to claim 1, any one of 4, wherein the variation of the voltage value of the driving power supply is a time longer than the time to the end from the occurrence apparatus. ステッピングモータと、
該ステッピングモータにより駆動される光学部材と、
請求項1からのいずれか一項に記載のステッピングモータ制御装置とを有することを特徴とする光学機器。
A stepping motor,
An optical member driven by the stepping motor;
An optical apparatus comprising the stepping motor control device according to any one of claims 1 to 5 .
カメラ本体に対して取り外し可能に装着される交換レンズであって、
ステッピングモータと、
該ステッピングモータにより駆動される光学部材と、
駆動電源から前記ステッピングモータに供給される駆動電力値を制御するステッピングモータ制御手段とを有し、
前記モータ制御手段は、
前記駆動電源の電圧値を検出する電圧検出手段と、
前記電圧検出手段により検出された前記電圧値に応じて、前記駆動電力値が所定電力値となるようにゲインを設定するゲイン制御手段とを有し、
前記ゲイン制御手段は、前記所定電力値よりも高い前記駆動電力値が前記ステッピングモータに供給される第1のゲイン以上の値に前記ゲインが設定された異常状態が所定時間、継続したことに応じて、前記カメラ本体に対して前記異常状態を通知することを特徴とする交換レンズ。
An interchangeable lens that is detachably attached to the camera body,
A stepping motor,
An optical member driven by the stepping motor;
Stepping motor control means for controlling a driving power value supplied to the stepping motor from a driving power supply,
The motor control means includes
Voltage detection means for detecting a voltage value of the drive power supply;
Gain control means for setting a gain so that the drive power value becomes a predetermined power value according to the voltage value detected by the voltage detection means;
It said gain control means prior Symbol higher the driving power value is the gain is set abnormal state for a predetermined time to a first gain or more values that will be supplied to the stepping motor than a predetermined power value, that continued In response, an interchangeable lens that notifies the camera body of the abnormal state.
カメラ本体に対して取り外し可能に装着される交換レンズであって、
ステッピングモータと、
該ステッピングモータにより駆動される光学部材と、
駆動電源から前記ステッピングモータに供給される駆動電力値を制御するステッピングモータ制御手段とを有し、
前記モータ制御手段は、
前記駆動電源の電圧値を検出する電圧検出手段と、
前記電圧検出手段により検出された前記電圧値に応じて、前記駆動電力値が所定電力値となるようにゲインを設定するゲイン制御手段とを有し、
前記ゲイン制御手段は、前記所定電力値よりも高い前記駆動電力値が前記ステッピングモータに供給される第1のゲイン以上の値に前記ゲインが設定された異常状態か否かを周期的に繰り返し判定し、前記異常状態であるとの判定が連続して所定回数行われることに応じて、前記カメラ本体に対して前記異常状態を通知することを特徴とする交換レンズ。
An interchangeable lens that is detachably attached to the camera body,
A stepping motor,
An optical member driven by the stepping motor;
Stepping motor control means for controlling a driving power value supplied to the stepping motor from a driving power supply,
The motor control means includes
Voltage detection means for detecting a voltage value of the drive power supply;
Gain control means for setting a gain so that the drive power value becomes a predetermined power value according to the voltage value detected by the voltage detection means;
The gain control means periodically determines whether or not the driving power value higher than the predetermined power value is an abnormal state in which the gain is set to a value equal to or higher than a first gain supplied to the stepping motor. and, wherein a determination that the abnormal state continuously in response to be carried out for a predetermined number of times, exchange lenses you and notifies the abnormal state with respect to the camera body.
前記電圧検出手段は、前記駆動電源の電圧値を周期的に繰り返し検出し、
前記ゲイン制御手段は、前記電圧検出手段による検出が行われるごとに、その検出された前記電圧値に応じて前記ゲインを設定することを特徴とする請求項またはに記載の交換レンズ。
The voltage detection means periodically and repeatedly detects the voltage value of the drive power supply;
It said gain control means, every time the detection by said voltage detecting means is performed, the interchangeable lens according to claim 7 or 8, characterized in that for setting the gain in accordance with the said detected voltage value.
前記異常状態は、前記電圧検出手段が前記駆動電源の電圧値を実際の電圧値より低く誤検出する状態であり、
前記第1のゲインは、該誤検出された前記電圧値に対して前記ゲイン制御手段が設定可能なゲインであることを特徴とする請求項からのいずれか一項に記載の交換レンズ。
The abnormal state is a state in which the voltage detection unit erroneously detects a voltage value of the drive power supply lower than an actual voltage value,
Wherein the first gain is interchangeable lens according to any one of claims 7 9, characterized in that said gain control means relative to said error said detected voltage value is programmable gain.
前記所定時間は、前記駆動電源の電圧値の変動が発生してから終了するまでの時間よりも長い時間であることを特徴とする請求項から10のいずれか一項に記載の交換レンズ。 The predetermined time is, the interchangeable lens according to claims 7 to any one of 10, wherein the variation of the voltage value of the driving power supply is a time longer than the time to the end from the occurrence.
JP2013261927A 2013-12-19 2013-12-19 Stepping motor control device, optical device and interchangeable lens Expired - Fee Related JP6234210B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2013261927A JP6234210B2 (en) 2013-12-19 2013-12-19 Stepping motor control device, optical device and interchangeable lens

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2013261927A JP6234210B2 (en) 2013-12-19 2013-12-19 Stepping motor control device, optical device and interchangeable lens

Publications (3)

Publication Number Publication Date
JP2015119571A JP2015119571A (en) 2015-06-25
JP2015119571A5 JP2015119571A5 (en) 2017-02-02
JP6234210B2 true JP6234210B2 (en) 2017-11-22

Family

ID=53531850

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013261927A Expired - Fee Related JP6234210B2 (en) 2013-12-19 2013-12-19 Stepping motor control device, optical device and interchangeable lens

Country Status (1)

Country Link
JP (1) JP6234210B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7496526B2 (en) * 2020-03-12 2024-06-07 株式会社アイカムス・ラボ Drug administration device and drug administration control method

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06178594A (en) * 1992-12-04 1994-06-24 Canon Inc Stepping motor drive
JP4490671B2 (en) * 2003-11-11 2010-06-30 日立オートモティブシステムズ株式会社 Position control device
JP5106632B2 (en) * 2008-06-17 2012-12-26 三菱電機株式会社 Engine control device
JP2010063271A (en) * 2008-09-04 2010-03-18 Yokogawa Electric Corp Planar motor device and positioning device using the same

Also Published As

Publication number Publication date
JP2015119571A (en) 2015-06-25

Similar Documents

Publication Publication Date Title
JP5254092B2 (en) Interchangeable lens camera system and camera body
CN112368063B (en) Gas Monitoring System
JP5693477B2 (en) Interchangeable lens and camera system
JP6234210B2 (en) Stepping motor control device, optical device and interchangeable lens
WO2019171552A1 (en) Life prediction method and life prediction device for optical modules
CN113853551A (en) Control system for multiple deep ultraviolet optical oscillators
JP6258809B2 (en) Optical information reader, control method and program for optical information reader
JP2020068312A (en) Laser device
JP2016224353A (en) DRIVE UNIT CONTROL DEVICE, DRIVE UNIT CONTROL METHOD, PROGRAM, AND ELECTRONIC DEVICE
EP3467561A1 (en) Control apparatus, image capturing apparatus, control method, and program
JP6655984B2 (en) Focus adjusting device, control method therefor, and imaging device
JP2021018278A (en) Optical device, imaging apparatus, and driving method of optical device
JP2015130749A (en) Interchangeable lens, imaging apparatus, and control method of interchangeable lens
JP2013160897A (en) Optical device
JP5359017B2 (en) Image processing memory malfunction detection device, image display device using the same, and image processing memory malfunction detection method
JP2024150350A (en) Driving device, lens system, and method for controlling driving device
JP2019161890A (en) Malfunction detection device
JPH0563256A (en) Output control device for laser device
JP6270530B2 (en) Stepping motor control method, program, aperture control device, and optical apparatus
WO2023171392A1 (en) Motor drive control device, motor unit, and motor drive control method
JP4391356B2 (en) LD control apparatus and image forming apparatus
JP2002291148A (en) Equipment temperature control device
JP2015084111A (en) Interchangeable lens and camera system
JP2024065827A (en) POWER SUPPLY CONTROL DEVICE, POWER SUPPLY CONTROL METHOD, POWER SUPPLY CONTROL PROGRAM, AND IMAGE FORMING APPARATUS
CN113874151A (en) Method for determining factors of change and laser processing device

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20161216

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20161216

TRDD Decision of grant or rejection written
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20170913

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20170926

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20171024

R151 Written notification of patent or utility model registration

Ref document number: 6234210

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

LAPS Cancellation because of no payment of annual fees