JPH01287511A - Focus detecting device - Google Patents

Focus detecting device

Info

Publication number
JPH01287511A
JPH01287511A JP11732888A JP11732888A JPH01287511A JP H01287511 A JPH01287511 A JP H01287511A JP 11732888 A JP11732888 A JP 11732888A JP 11732888 A JP11732888 A JP 11732888A JP H01287511 A JPH01287511 A JP H01287511A
Authority
JP
Japan
Prior art keywords
lens
focus
focus detection
switch
determined
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
JP11732888A
Other languages
Japanese (ja)
Inventor
Masataka Hamada
正隆 浜田
Kenji Ishibashi
賢司 石橋
Tokuji Ishida
石田 徳治
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.)
Minolta Co Ltd
Original Assignee
Minolta Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Minolta Co Ltd filed Critical Minolta Co Ltd
Priority to JP11732888A priority Critical patent/JPH01287511A/en
Priority to US07/299,656 priority patent/US4935765A/en
Priority to US07/299,646 priority patent/US4952965A/en
Publication of JPH01287511A publication Critical patent/JPH01287511A/en
Priority to US07/462,478 priority patent/US5053800A/en
Pending legal-status Critical Current

Links

Landscapes

  • Focusing (AREA)
  • Automatic Focus Adjustment (AREA)

Abstract

PURPOSE:To increase the probability that focus detection becomes possible and to shorten the lens driving time up to focusing after focus detection by setting the position of a lens after a low-contrast research scan to a specific stop position, and setting this specific stop position to a position where the lens is used normally at high frequency. CONSTITUTION:When the focus detection by a focus detecting means 2 is disabled, this state is decided by a disabled detection deciding means 4. In this case, a focus detecting means 2 performs focus detection while the lens 1 is driven by a lens driving means 3 under the control of a lens scan control means 5 to make a lens scan (low-contrast research scan) for searching for a lens position where the focus detection is impossible. This lens scan is made between the terminal positions of the lens 1 or in a narrower range. When the lens position where the focus detection is possible is not found, the lens driving means 3 is so controlled under the control of a control means 7 as to drive the lens 1 to a specific stop position Ns determined by a lens position determining means 6. Consequently, the time up to focusing is shortened.

Description

【発明の詳細な説明】 [産業上の利用分野コ 本発明は、自動焦点調節装置付きの一眼レフカメラなど
に用いられる焦点検出装置に間するものである。
DETAILED DESCRIPTION OF THE INVENTION [Industrial Field of Application] The present invention relates to a focus detection device used in a single-lens reflex camera equipped with an automatic focus adjustment device.

[従来の技術] 従来、撮影用のレンズの焦点状態を検出して、合焦位置
にレンズを駆動する自動焦点調節装置において、焦点検
出が不能であるときには、レンズを駆動しながら焦点検
出可能なレンズ位置を探す動作(いわゆるローコンスキ
ャン)を行うことが提案されている(特開昭59−18
2411号公報)。
[Prior Art] Conventionally, in an automatic focus adjustment device that detects the focus state of a lens for photographing and drives the lens to the in-focus position, when focus detection is impossible, it is possible to detect focus while driving the lens. It has been proposed to perform an operation to search for the lens position (so-called low contrast scan) (Japanese Patent Laid-Open No. 59-18
Publication No. 2411).

また、上記公報においては、レンズが最近接又は無限遠
のいずれかの終端位置に達したことを検出し、始めて一
方の終端位置に達した場合にはレンズの駆動方向を反転
させ、続けて他方の終端位置に達した場合には、レンズ
駆動を停止させることが提案されている。
In addition, in the above publication, it is detected that the lens has reached either the closest end position or the infinity end position, and when one end position is reached for the first time, the driving direction of the lens is reversed, and then the other end position is reversed. It has been proposed to stop the lens drive when the end position of the lens is reached.

[発明が解決しようとする課題] 上述の従来技術にあっては、ローコンスキャンを行って
も焦点検出可能なレンズ位置が見付からない場合には、
最近接又は無限遠のいずれかの終端位置にてレンズ駆動
を停止させると共に、焦点検出不能表示を行うようにな
っていた。したがって、ローコンスキャン後の焦点検出
不能状態では、レンズ位置は最近接又は無限遠のいずれ
かの終端位置に偏っていることになる。この状態で撮影
者がカメラを振るか、又は撮影者がカメラを構えている
ところに被写体が現れた場合には、レンズ位置が偏って
いるので焦点検出不能となることが多い、また、仮に焦
点検出可能となっても、偏ったレンズ位置から合焦位置
までレンズを駆動しなければならないので、合焦までの
時間が長くかがるという問題があり、貴重なシャッター
チャンスを逃す恐れがある。
[Problems to be Solved by the Invention] In the above-mentioned conventional technology, if a lens position that allows focus detection cannot be found even after performing a low contrast scan,
The lens drive is stopped at either the closest end position or the infinity end position, and an indication that the focus cannot be detected is displayed. Therefore, in a state where focus cannot be detected after low-contrast scanning, the lens position is biased toward either the closest end position or the infinity end position. If the photographer shakes the camera in this state, or if a subject appears in the area where the photographer is holding the camera, the lens position will be biased and the focus will often not be detected. Even if detection becomes possible, the lens must be driven from a biased lens position to the in-focus position, so there is a problem that it takes a long time to focus, and there is a risk of missing a valuable photo opportunity.

例えば、コントラストの少ない明るい背景(青空)の中
に、コントラストのある被写体く野鳥)が現れて素早く
移動して行くのを追いがけながら焦点検出するような場
合には、レンズ位置が偏っていると、被写体が焦点検出
エリア内に入っても焦点検出不能となることがあり、仮
に焦点検出可能となっても偏ったレンズ位置から合焦位
置までレンズを駆動している間に被写体が居なくなり、
貴重なシャッターチャンスを逃すことになる。
For example, if a contrasting subject (wild bird) appears in a bright background (blue sky) with little contrast and you are trying to detect the focus while following it as it moves quickly, the lens position may be biased. , even if the subject enters the focus detection area, focus may not be detected, and even if focus can be detected, the subject may disappear while the lens is being driven from the biased lens position to the in-focus position.
You will miss a valuable photo opportunity.

本発明はこのような点に鑑みてなされたものであり、そ
の目的とするところは、ローコンスキャン後に焦点検出
可能となる確率が高く、合焦までの時間が短い焦点検出
装置を提供することにある。
The present invention has been made in view of these points, and its purpose is to provide a focus detection device that has a high probability of being able to detect focus after low contrast scanning and that takes a short time to focus. It is in.

[課題を解決するための手段] 本発明に係る焦点検出装置にあっては、上記の課題を解
決するために、第1図に示すように、撮影用のレンズ(
1)と、レンズ(1)の焦点状態を検出する焦点検出手
段(2)と、レンズ(1)を駆動するレンズ駆動手段(
3)と、焦点検出手段(2)による焦点検出が不能か否
かを判定する焦点検出不能判定手段(4)と、焦点検出
不能判定手段(4)により焦点検出不能と判定されたと
きに、レンズ駆動手段(3)によりレンズ(1)を駆動
すると共に焦点検出手段(2)により焦点検出動作を行
わせるレンズ走査制御手段(5)と、レンズ(1)の所
定の停止位置Nsを決定するレンズ位置決定手段(6)
と、レンズ走査制御手段(5)によるレンズ走査によっ
ても焦点検出可能なレンズ位置が見付からない場合に、
レンズ位置決定手段(6)にて決定された所定の停止位
置Nsにレンズ(1)を駆動するようにレンズ駆動手段
(3)を制御する制御手段(7)とを備えて成ることを
特徴とするものである。
[Means for Solving the Problems] In order to solve the above problems, in the focus detection device according to the present invention, as shown in FIG.
1), a focus detection means (2) for detecting the focus state of the lens (1), and a lens drive means (2) for driving the lens (1).
3), a focus detection impossibility determining means (4) for determining whether focus detection by the focus detecting means (2) is impossible, and when it is determined that the focus cannot be detected by the focus detecting impossibility determining means (4), A lens scanning control means (5) for driving the lens (1) by the lens drive means (3) and performing a focus detection operation by the focus detection means (2), and determining a predetermined stop position Ns of the lens (1). Lens position determining means (6)
When a lens position where the focus can be detected cannot be found by the lens scanning by the lens scanning control means (5),
A control means (7) for controlling the lens drive means (3) to drive the lens (1) to a predetermined stop position Ns determined by the lens position determination means (6). It is something to do.

ただし、第1図は本発明の構成を機能的にブロック化し
て示した説明図であり、後述の実施例では、上記構成の
主要部をマイクロコンピュータのプログラムにより実現
している。
However, FIG. 1 is an explanatory diagram showing the configuration of the present invention in functional blocks, and in the embodiments described later, the main part of the above configuration is realized by a microcomputer program.

[作用〕 以下、本発明の作用を第1図により説明する。[Effect] Hereinafter, the operation of the present invention will be explained with reference to FIG.

撮影用のレンズ(1)は被写体からの光を結像させる。A photographic lens (1) forms an image of light from a subject.

焦点検出手段(2)はレンズ(1)の焦点状態を検出す
る。レンズ(1)の焦点状態は、通常、合焦位置からの
デフォーカス量(焦点ずれ量)として検出され、その符
号により前ビンと後ピンを区別している。通常の焦点検
出時においては、焦点検出手段(2)の焦点検出結果に
基づいて、レンズ(1)を合焦位置に向けて駆動する。
The focus detection means (2) detects the focus state of the lens (1). The focus state of the lens (1) is usually detected as the amount of defocus (defocus amount) from the in-focus position, and the front focus and the back focus are distinguished by the sign thereof. During normal focus detection, the lens (1) is driven toward the in-focus position based on the focus detection result of the focus detection means (2).

レンズ(1)の駆動は、レンズ駆動手段(3)により行
われる。
The lens (1) is driven by a lens driving means (3).

ところで、レンズ(1)の現在位置が合焦位置から大き
く外れている場合には、焦点検出手段(2)による焦点
検出が不能となる場合がある。この状態は焦点検出不能
判定手段(4)により判定される。
By the way, if the current position of the lens (1) is far away from the in-focus position, focus detection by the focus detection means (2) may become impossible. This state is determined by the focus detection failure determining means (4).

焦点検出が不能と判定された場合には、レンズ走査制御
手段(5)の制御下で、レンズ駆動手段(3)によりレ
ンズ(1)を駆動しながら焦点検出手段(2)により焦
点検出を行うことによって、焦点検出可能なレンズ位置
を探すレンズ走査(ローコンスキャン)が行われる。こ
のレンズ走査はレンズ(1)の終端位置間、又はそれよ
りも少し狭い範囲で行われる。
If it is determined that focus detection is impossible, focus detection is performed by the focus detection means (2) while driving the lens (1) by the lens drive means (3) under the control of the lens scanning control means (5). Accordingly, a lens scan (low contrast scan) is performed to search for a lens position where focus can be detected. This lens scanning is performed between the end positions of the lens (1) or within a slightly narrower range.

このレンズ走査によっても焦点検出可能なレンズ位置が
見付からない場合には、制御手段(7)の制御下にて、
レンズ位置決定手段(6)にて決定された所定の停止位
it N sにレンズ(1)を駆動するようにレンズ駆
動手段(3)が制御される。
If a lens position where the focus can be detected cannot be found by this lens scanning, under the control of the control means (7),
The lens driving means (3) is controlled to drive the lens (1) to a predetermined stop position it N s determined by the lens position determining means (6).

[実施例] 第2図は、本発明の一実施例としてのカメラの回路構成
を示すブロック回路図である。ただし、焦点検出動作に
直接関係しない部分については図示を省略しである。〈
μC)は焦点調節のための演算及びシーケンス制御を行
うマイクロコンピュータである。(LEC)は交換レン
ズ内に設けられたレンズ回路で、交換レンズ固有の情報
をマイクロコンピュータ(μC)に伝達する。(AFC
)は、上記レンズを通過した被写体光を光電変換して焦
点検出データを出力する焦点検出回路で、焦点検出デー
タをデジタル信号に変換して、マイクロコンピュータ(
μC)に出力する。(DSP)は表示回路で、レンズの
合焦表示及び焦点検出不能表示を行う、(ILM)は被
写体に焦点検出用の補助光を照射するための補助光発光
装置である。(M)は交換レンズのフォーカシングレン
ズを駆動するためのモータであり、レンズ駆動回路(L
 D C)の制御下にてレンズの繰り出し及び縁り込み
を行う、レンズ駆動回路(L D C)は、マイクロコ
ンピュータ(μC)からのモータ駆動速度の信号、モー
タ駆動方向の信号及びモータ停止の制御信号を入力し、
これに基づいて、モータ(M)を駆動する。(ENC)
はエンコーダで、モータ(M)の回転量を検出し、モー
タ(M)の所定の回転量に応じてマイクロコンピュータ
(μC)にパルスを出力する。
[Embodiment] FIG. 2 is a block circuit diagram showing the circuit configuration of a camera as an embodiment of the present invention. However, illustrations of parts not directly related to the focus detection operation are omitted. <
μC) is a microcomputer that performs calculations and sequence control for focus adjustment. (LEC) is a lens circuit provided in the interchangeable lens, which transmits information specific to the interchangeable lens to the microcomputer (μC). (A.F.C.
) is a focus detection circuit that photoelectrically converts the subject light that has passed through the lens and outputs focus detection data.
μC). (DSP) is a display circuit that displays the focus of the lens and indicates that focus cannot be detected. (ILM) is an auxiliary light emitting device that irradiates the subject with auxiliary light for focus detection. (M) is a motor for driving the focusing lens of the interchangeable lens, and the lens drive circuit (L
The lens drive circuit (LDC), which extends and edges the lens under the control of the DC), receives motor drive speed signals, motor drive direction signals, and motor stop signals from a microcomputer (μC). Input the control signal,
Based on this, the motor (M) is driven. (ENC)
is an encoder that detects the amount of rotation of the motor (M) and outputs pulses to the microcomputer (μC) according to a predetermined amount of rotation of the motor (M).

ここで、マイクロコンピュータ(μC)は、レンズを最
も繰り込んだ状態である無限遠位置からのレンズの繰り
出し量を絶対量として知るためのレンズ位置カウンタN
Lを内蔵している。このレンズ位置カウンタNLは、レ
ンズが無限遠位置に繰り込まれたときに内部の命令によ
りNL=0にリセットされ、レンズが繰り出されている
ときには、内部の命令によりエンコーダ(E N C)
からのパルスに応じてカウントアツプされ、レンズが繰
り込まれているときには、内部の命令によりエンコーダ
(ENC)からのパルスに応じてカウントダウンされる
。レンズが最近接位置まで繰り出されたときには、レン
ズ位置カウンタNLの値はN1.=Nmaxとなる。こ
の最大繰り出し量N 輸axはレンズにより夫々異なり
、レンズ回路(L E C)からレンズ固有の情報とし
てマイクロコンピュータ(μC)に読み込まれる。
Here, the microcomputer (μC) uses a lens position counter N to know the amount of lens extension from the infinity position, which is the most retracted state, as an absolute amount.
It has a built-in L. This lens position counter NL is reset to NL=0 by an internal command when the lens is retracted to the infinite position, and when the lens is extended, the encoder (ENC) is reset by an internal command.
When the lens is retracted, it is counted down according to pulses from the encoder (ENC) according to an internal command. When the lens is extended to the closest position, the value of the lens position counter NL is N1. =Nmax. This maximum extension amount N ax differs depending on the lens, and is read from the lens circuit (LEC) into the microcomputer (μC) as lens-specific information.

(BAT)は電源電池であり、マイクロコンピュータ(
μC)及び他の回路に電力を供給する。電源電池(BA
T)の両端には、抵抗(R1)とコンデンサ(C1)の
直列回路よりなる時定数回路が接続されており、抵抗(
R1)とコンデンサ(C1)の接続点はマイクロコンピ
ュータ(μC)のパワーオンリセット端子(RES)に
接続されている。電源電池(BAT)を接続すると、マ
イクロコンピュータ(μC)の電源端子(Vcc)とア
ース端子(G N D )の間に電源電圧が印加されて
、マイクロコンピュータ(μC)が能動状態になるが、
コンデンサ(C1)の充電電圧、即ちマイクロコンピュ
ータ(μC)のリセット端子(RES)に印加される電
圧が所定電圧に達するまでは、マイクロコンピュータ(
μC)は動作しない、コンデンサ(C1)の電圧が所定
電圧以上になると、マイクロコンピュータ(μC)はリ
セットされて、後述のステップ#l(第3図参照)から
の動作を開始する。
(BAT) is a power supply battery, and a microcomputer (
μC) and other circuits. Power battery (BA
A time constant circuit consisting of a series circuit of a resistor (R1) and a capacitor (C1) is connected to both ends of the resistor (T).
The connection point between R1) and the capacitor (C1) is connected to the power-on reset terminal (RES) of the microcomputer (μC). When the power battery (BAT) is connected, a power supply voltage is applied between the power terminal (Vcc) and the ground terminal (GND) of the microcomputer (μC), and the microcomputer (μC) becomes active.
Until the charging voltage of the capacitor (C1), that is, the voltage applied to the reset terminal (RES) of the microcomputer (μC) reaches a predetermined voltage, the microcomputer (
When the voltage of the capacitor (C1) exceeds a predetermined voltage, the microcomputer (μC) is reset and starts operating from step #l (see FIG. 3), which will be described later.

(SR)はリセットスイッチであり、このスイッチがO
Nされると、レンズは初期位置にリセットされる。(S
oo)は無限遠位置検出スイッチであり、レンズが無限
遠位置に繰り込まれたときにONされる。(SM)はメ
インスイッチであり、カメラの使用時にONされる。(
SL)は撮影準備スイッチであり、通常は、レリーズ釦
(図示せず)の第1ストロークでONされる。(SAF
)はAFモードスイッチであり、このスイッチ(SAF
)がONであるときには、焦点検出結果に基づいて合焦
位置にレンズを駆動するオートフォーカスモードが選択
され、スイッチ(SAF)がOFFであるときには、焦
点検出結果に基づいて合焦又は非合焦の表示のみを行い
、レンズ駆動は行わないマニュアルフォーカスモードが
選択される。(SMZ)はマクロゾーンスイッチであり
、マクロ機構付きのズームレンズにおいて、ズームリン
グをマクロゾーンに設定したときに開放される0本実施
例で使用されるマクロ機構付きのズームレンズでは、ズ
ームリングがマクロゾーンに設定されているときには、
オートフォーカスモードが使用不可となるので、これを
マイクロコンピュータ(μC)に知らせるために、レン
ズ回路(L E C)はマクロゾーンであることを示す
信号SMZをマイクロコンピュータ(μC)に出力する
(SR) is a reset switch, and this switch is OFF.
When N is pressed, the lens is reset to the initial position. (S
oo) is an infinity position detection switch, which is turned on when the lens is retracted to the infinity position. (SM) is a main switch, which is turned on when using the camera. (
SL) is a photographing preparation switch, which is normally turned on by the first stroke of a release button (not shown). (SAF
) is the AF mode switch, and this switch (SAF
) is ON, the autofocus mode is selected to drive the lens to the focus position based on the focus detection result, and when the switch (SAF) is OFF, the autofocus mode is selected based on the focus detection result. A manual focus mode is selected in which only the image is displayed and the lens is not driven. (SMZ) is a macro zone switch, which is opened when the zoom ring is set to the macro zone in a zoom lens with a macro mechanism. When set to macro zone,
Since the autofocus mode is disabled, in order to notify the microcomputer (μC) of this, the lens circuit (LEC) outputs a signal SMZ indicating the macro zone to the microcomputer (μC).

次に、カメラの焦点調節動作をフローチャートを参照し
ながら説明する。まず、電池が装着され、パワーオンリ
セットがなされると、マイクロコンピュータ(μC)は
第3図に示す#1以降のプログラムを実行する。まず、
#1で全フラグをリセットする。ただし、後述のレンズ
未装着フラグLENOFのみは1にセットしておく、#
2でレンズ回路(LEC)からレンズデータの入力を行
う、レンズ回路(L E C)からは、レンズ装着信号
ICP、マクロゾーン信号SMZ、等倍以上マクロレン
ズ装着信号LCPR1最大繰り出し量N IIax、開
放絞り値A V o、焦点距離の情報ZFZ、変換係数
に、AF可能信号AFE、AFカプラー信号AFCP等
がマイクロコンピュータ(μC)に入力される。ここで
、焦点距離の情報ZFZは、撮影レンズの焦点距離f(
am)を対数変換した情報であり、本実施例では、次式
で表されるものとする。
Next, the focus adjustment operation of the camera will be explained with reference to a flowchart. First, when the battery is installed and a power-on reset is performed, the microcomputer (μC) executes the programs starting from #1 shown in FIG. first,
#1 resets all flags. However, only the lens not installed flag LENOF (described later) should be set to 1, #
In step 2, input lens data from the lens circuit (LEC). From the lens circuit (LEC), the lens attachment signal ICP, macro zone signal SMZ, macro lens attachment signal LCPR1, maximum extension amount N IIax, open The aperture value A Vo, focal length information ZFZ, conversion coefficients, AF enable signal AFE, AF coupler signal AFCP, etc. are input to a microcomputer (μC). Here, the focal length information ZFZ is the focal length f(
am) is logarithmically transformed, and in this embodiment, it is assumed to be expressed by the following equation.

ZFZ=8X(2fogz(f/6.25)+11−■
また、変換係数には、デフォーカス量DFをレンズ駆動
量ΔNに変換するための係数である。AF可能信号AF
Eは交換レンズが焦点検出可能なレンズであることを示
す信号である。AFカプラー信号AFCPは交換レンズ
に自動焦点調節用の動力伝達機構(AFカプラー)が付
いていることを示す信号である。
ZFZ=8X(2fogz(f/6.25)+11-■
Further, the conversion coefficient is a coefficient for converting the defocus amount DF into the lens drive amount ΔN. AF possible signal AF
E is a signal indicating that the interchangeable lens is a focus detectable lens. The AF coupler signal AFCP is a signal indicating that the interchangeable lens is equipped with a power transmission mechanism (AF coupler) for automatic focus adjustment.

#3ではレンズ装着信号ICPの有無を判定する。レン
ズが装着されていれば、レンズ回路(LEC)からレン
ズ装着信号ICPがマイクロコンピュータ(μC)に供
給されるが、レンズが装着されていなければ、前記レン
ズ装着信号ICPが供給されないので、マイクロコンピ
ュータ(μC)はこのレンズ装着信号ICPの有無を調
べることにより、レンズ装着の判定を行う。#3でレン
ズ装着信号が無ければ、レンズが装着されていないと判
定され、#8でレンズ未装着フラグLENOFを1とし
て、#10(第4図)へ進む、また、#3でレンズ装着
信号が有れば、レンズが装着されていると判定され、#
4でフラグLENOFが1であるかを判定する。#4で
LENOF=1であれば、レンズ未装着の状態からレン
ズが装着されたと判定し、#5でレンズ未装着フラグL
ENOFを0とし、#6へ進む、#6では500 m5
ecの時間が経過するのを待ち、#7でω繰り込みのサ
ブルーチン(第10図)を実行する。そして、#10で
メインスイッチ(SM)がONであるかを判定する。#
10でメインスイッチ(SN)がONでなければ、#2
へ戻って、レンズ装着信号の有無を判定する。したがっ
て、電池が装着されて、#1から処理を開始した場合と
、#2〜#10のループ中でレンズが装着されたときに
は、500 n5ecの時間待ちをした後、■繰り込み
のサブルーチンを実行することになる。
In #3, the presence or absence of the lens attachment signal ICP is determined. If the lens is attached, the lens circuit (LEC) supplies the lens attachment signal ICP to the microcomputer (μC), but if the lens is not attached, the lens attachment signal ICP is not supplied, so the microcomputer (μC) determines whether the lens is attached by checking the presence or absence of the lens attachment signal ICP. If there is no lens attachment signal in #3, it is determined that the lens is not attached, and in #8 the lens not attached flag LENOF is set to 1, and the process proceeds to #10 (Fig. 4). Also, in #3, the lens attachment signal is output. If there is, it is determined that the lens is attached, and #
4, it is determined whether the flag LENOF is 1. If LENOF=1 in #4, it is determined that the lens is attached from the state where the lens is not attached, and the lens not attached flag L is set in #5.
Set ENOF to 0 and proceed to #6, 500 m5 in #6
After waiting for the time ec to elapse, the ω renormalization subroutine (FIG. 10) is executed in #7. Then, in #10, it is determined whether the main switch (SM) is ON. #
If the main switch (SN) is not ON at 10, #2
Returning to step 1, the presence or absence of the lens attachment signal is determined. Therefore, when the battery is attached and processing starts from #1, and when the lens is attached during the loop from #2 to #10, the subroutine for renormalization is executed after waiting for 500 n5ec. It turns out.

ここで、5001Isecの時間待ちを行う理由につい
て説明すると、電池装着時やレンズ装着時には、撮影者
がレンズを手に持っていることが多い、したがって、電
池が装着された直後やレンズが装着された直後にレンズ
の繰り込みを開始すると、駆動系に過負荷が掛かつて、
レンズの繰り込みが途中で停止されたり、レンズやカメ
ラの駆動系を傷めたり、撮影者が驚いて思わずカメラを
落としたりすることがある。これを防止するために、5
005secの時間待ちをして、撮影者がレンズから手
を離した頃にレンズの繰り込みを開始するものである。
Here, to explain the reason for waiting for 5001 Isec, the photographer often holds the lens in his hand when attaching the battery or lens. If you start retracting the lens immediately, the drive system will be overloaded and
Lens retraction may stop midway, damage the lens or camera drive system, or the photographer may become surprised and drop the camera. To prevent this, 5
After waiting for a time of 0.005 seconds, lens retraction is started when the photographer takes his hand off the lens.

次に、#10でメインスイッチ(SM)がONであれば
、#15でレンズ初期位置演算のサブルーチン(第9図
)を実行し、#20で(1)繰り込みのサブルーチン(
第10図)を実行し、#25でレンズ初期位置セットの
サブルーチン(第11図)を実行した後、#30でメイ
ンスイッチ(SM)がOFFかを判定する。メインスイ
ッチ(SM)がOFFであれば、#35での繰り込みの
サブルーチンを実行し、#2(第3図)に戻る。#30
でメインスイッチ(SM)がOFFでなければ、#45
に進む。
Next, if the main switch (SM) is ON in #10, the lens initial position calculation subroutine (Fig. 9) is executed in #15, and (1) renormalization subroutine (Fig. 9) is executed in #20.
After executing the lens initial position setting subroutine (FIG. 11) in #25, it is determined in #30 whether the main switch (SM) is OFF. If the main switch (SM) is OFF, the renormalization subroutine at #35 is executed and the process returns to #2 (FIG. 3). #30
If the main switch (SM) is not OFF, #45
Proceed to.

第9図はレンズ初期位置演算のサブルーチンの内容を示
すフローチャートである。このサブルーチンがコールさ
れると、まず、#1000でレンズ回路(LEC)から
レンズデータの入力を行う。
FIG. 9 is a flowchart showing the contents of a subroutine for calculating the lens initial position. When this subroutine is called, first, in #1000, lens data is input from the lens circuit (LEC).

#1005では、等倍以上マクロレンズ装着信号LCP
Rの有無を判定する。#1005で等倍以上マクロレン
ズが装着されていれば、#1040でレンズ初期位置セ
ット用のデフォーカス量DFsをDFm/2とし、サブ
ルーチンがコールされたステップにリターンする。ここ
で、DFaはレンズの最近接位置から無限遠位置までの
範囲をカバーする最大デフォーカス量である。#100
5で等倍以上マクロレンズが装着されていなければ、#
1010〜#1.030でデフォーカス量DFsを決め
る。#1010では、焦点距離の情報ZFZが40以下
であるかを判定し、ZFZ≦40であれば、#1020
でDFs=Oとしてリターンする。$1010でZFZ
>40であれば、#1030でレンズ初期位置Nsに対
応するデフォーカス量DFsを焦点距離の情報ZFZに
基づいて計算し、リターンする。
In #1005, the macro lens attachment signal LCP
Determine the presence or absence of R. If the macro lens of equal or larger magnification is attached in #1005, the defocus amount DFs for setting the lens initial position is set to DFm/2 in #1040, and the process returns to the step in which the subroutine was called. Here, DFa is the maximum defocus amount that covers the range from the closest position to the infinity position of the lens. #100
If a macro lens of 100% magnification or higher is not attached in 5, #
The defocus amount DFs is determined from 1010 to #1.030. In #1010, it is determined whether the focal length information ZFZ is 40 or less, and if ZFZ≦40, in #1020
Then, return with DFs=O. ZFZ for $1010
If >40, the defocus amount DFs corresponding to the lens initial position Ns is calculated based on the focal length information ZFZ in #1030, and the process returns.

ここで、#1010〜#1030に示したレンズ初期位
置決定のアルゴリズムの意味を説明する。
Here, the meaning of the algorithm for determining the initial lens position shown in #1010 to #1030 will be explained.

このアルゴリズムでは、焦点距離の情報ZFZの1次関
数で表される演算式 %式% (ただし、ZFZ>40) を用いて、無限遠位置からレンズ初期位置Nsまでのデ
フォーカス量DFs(μm〕を求めている。上記演算式
■を用いて、焦点距離fが24MIII乃至800+*
mの場合についてレンズ初期位置Nsにおけるデフォー
カス量DFsを演算し、撮影倍率β=DFs/fを計算
した結果を第14図に示す、この第14図から分かるよ
うに、上記0式は、良く使用される焦点距離f(35m
+m〜300 am)のレンズについて、良く使用され
る撮影倍率β(1/80〜1/40)が得られるように
、レンズ初期位置Nsのデフォーカス量DFsを決めて
いるものである。仮に、カメラボディ内で焦点圧1rが
ミリ単位で扱われていれば、単純に、DFs=β×r×
1000〔μ輪〕とすれば良いところであるが、実際に
はカメラボディ内では焦点距離「は上記0式により対数
圧縮された情報ZFZとして扱われている。この場合、
1/80≦β≦1/40の条件が満たされるように、焦
点距離の情報ZFZの1次関数として、デフォーカス量
DFs(μ鋤〕を求めることは容易ではないが、上記0
式はそれを実現したものである。上記0式を用いて撮影
倍率β(f)を演算すると、β([)oc tIn(f
) −Zn(6、25X 4 ))/rとなる。dβ/
df=0の条件より極大値を求めると、r−68畿輸の
ときに(1/β)=46となる。
In this algorithm, the defocus amount DFs (μm) from the infinity position to the initial lens position Ns is calculated using the calculation formula % (where ZFZ>40) expressed as a linear function of the focal length information ZFZ. Using the above formula (■), the focal length f is from 24MIII to 800+*
Figure 14 shows the results of calculating the defocus amount DFs at the initial lens position Ns and calculating the imaging magnification β = DFs/f for the case of m.As can be seen from Figure 14, the above equation 0 is The focal length used is f (35m
The defocus amount DFs at the initial lens position Ns is determined so that a frequently used photographic magnification β (1/80 to 1/40) can be obtained for a lens with an angle of +m to 300 am. If the focal pressure 1r is handled in millimeters within the camera body, then simply DFs=β×r×
It would be fine to set it to 1000 [μ ring], but in reality, within the camera body, the focal length "is treated as information ZFZ logarithmically compressed using the above formula 0. In this case,
Although it is not easy to obtain the defocus amount DFs (μ plow) as a linear function of the focal length information ZFZ so that the condition of 1/80≦β≦1/40 is satisfied, the above 0
The formula is the realization of this. When the imaging magnification β(f) is calculated using the above formula 0, β([)octIn(f
) -Zn(6,25X 4 ))/r. dβ/
If we find the maximum value from the condition of df=0, we get (1/β)=46 when r-68.

また、r=33mmの)ニーきニ<1713 )= 8
0.5、r−300+u+のときに(1/β)=81.
7となる。
In addition, r = 33 mm) knee < 1713 ) = 8
0.5, when r-300+u+, (1/β)=81.
It becomes 7.

しかも、上記0式では乗算係数が64=2’となってい
るので、焦点距離の情報ZFZから定数40を減算した
後、6回左シフトするだけで、レンズ初期位置Nsのデ
フォーカスl D F sを求めることができる。した
がって、レンズ回路(L E C)より読み込んだ焦点
距離の情報ZFZからレンズ初期位置Nsのデフォーカ
ス量DFsを容易に演算することができるものであり、
その演算時間を短縮できると共に、演算用プログラムの
記憶容量を減らすことができる。また、種々の焦点距離
fに応じてレンズ初期位WNsのデフォーカス量DFs
を予め記憶しておく方式に比べて、ROMの記憶容量を
減らすことができるものである。
Moreover, in the above formula 0, the multiplication coefficient is 64 = 2', so after subtracting the constant 40 from the focal length information ZFZ, the defocus of the lens initial position Ns can be obtained by simply shifting the lens six times to the left. s can be found. Therefore, the defocus amount DFs at the lens initial position Ns can be easily calculated from the focal length information ZFZ read from the lens circuit (LEC).
The calculation time can be shortened, and the storage capacity of the calculation program can be reduced. In addition, the defocus amount DFs of the lens initial position WNs is determined according to various focal lengths f.
Compared to a method in which the information is stored in advance, the storage capacity of the ROM can be reduced.

(以下余白) 第1表 ただし、上表において、 *は28〜135−一のズームレンズが135−にある
とき、tは70〜210請−のズームレンズが210m
5にあるとき、客は75〜300mmのズームレンズが
300mmにあるときのデータである。
(Left below) Table 1 However, in the above table, * means 28~135-1 when the zoom lens is at 135-, and t means 70-210~ when the zoom lens is at 210 m.
5, the data is when the customer's 75-300mm zoom lens is at 300mm.

第1表は、種々の焦点距離のレンズについて、良く使用
される撮影倍率βと、レンズの最大デフォーカス量DF
aを示している。焦点距離fが35mg+未満の広角レ
ンズでは最大デフォーカス量DFmが小さく、レンズ位
置が何処にあっても焦点検出可能であると考えられる。
Table 1 shows commonly used photographic magnification β and maximum defocus amount DF for lenses with various focal lengths.
It shows a. In a wide-angle lens with a focal length f of less than 35 mg+, the maximum defocus amount DFm is small, and it is considered that focus can be detected no matter where the lens position is.

したがって、常用される撮影倍率110oが得られるよ
うにレンズを無限遠位置に停止させれば良いと考えられ
る。そこで、本実施例では1624mm(ZFZ≦40
)の場合には、DFs=Oとしている。一方、良く使用
される焦点距離(35〜30C)+m)のレンズでは、
常用される撮影倍率は1/40〜1/60の範囲に分布
している。焦点検出が可能となる撮影倍率の範囲はこれ
よりも少し広いと考えられ、1/4o〜1/80の範囲
内の撮影倍率が得られるようにレンズの初期停止位置を
決めれば、焦点検出可能となる確率は高くなると考えら
れる。そこで、本実施例テハ、f>24mm(ZFZ>
40)+7)場合には、上記0式を用いて、1/80≦
β≦1/40となるようなレンズ初期位置Nsのデフォ
ーカス量DFsを演算しているものである。
Therefore, it is considered that the lens should be stopped at an infinity position so as to obtain the commonly used photographic magnification of 110o. Therefore, in this example, 1624 mm (ZFZ≦40
), DFs=O. On the other hand, lenses with a commonly used focal length (35-30C) + m),
The commonly used photographic magnifications range from 1/40 to 1/60. The range of photographic magnifications in which focus detection is possible is thought to be slightly wider than this, and focus detection is possible if the initial stop position of the lens is determined so that a photographic magnification within the range of 1/4o to 1/80 is obtained. It is thought that the probability that this will occur will be high. Therefore, in this embodiment, f>24 mm (ZFZ>
40)+7), using the above formula 0, 1/80≦
The defocus amount DFs of the lens initial position Ns such that β≦1/40 is calculated.

第10図はω繰り込みのサブルーチンの内容を示すフロ
ーチャートである。このサブルーチンがコールされると
、#1100でレンズ条件判定のサブルーチンを実行す
る。ここで、レンズ条件判定のサブルーチンを、第12
図(a) 、 (b)に例示し説明する。
FIG. 10 is a flowchart showing the contents of the ω renormalization subroutine. When this subroutine is called, a subroutine for lens condition determination is executed in #1100. Here, the lens condition determination subroutine is
An example will be explained in FIGS. (a) and (b).

第12図(a)では、まず、#2000でレンズ装着信
号ICPの有無を判定する。#2000でレンズ装着信
号が有れば、#2010でレンズの開放絞り値A V 
oが所定値AFAVよりも小さいかを判定する。ここで
、所定値AFAVは焦点検出用光束が通過するAF瞳の
大きさを絞り値で示したものである。開放絞り値A V
 oが所定値AFAVよりも小さければ、AF@を通過
する焦点検出用の光束がレンズによってケラレることは
ない。
In FIG. 12(a), first, in #2000, the presence or absence of the lens attachment signal ICP is determined. If there is a lens attachment signal in #2000, the open aperture value of the lens is determined in #2010.
It is determined whether o is smaller than a predetermined value AFAV. Here, the predetermined value AFAV is the size of the AF pupil through which the focus detection light beam passes, expressed as an aperture value. Open aperture value AV
If o is smaller than the predetermined value AFAV, the focus detection light beam passing through AF@ will not be eclipsed by the lens.

#2010でAVo<AFAVであれば、#2020で
AF可箭信号AFEの有無を判定する。#2020でA
F可能信号AFEが有れば、焦点検出可能なレンズが装
着されていると判定され、#2030でレンズ条件フラ
グLOKFを1としてリターンする。#2000でレン
ズ装着信号が無い場合には、レンズ繰り込みができない
ので、#2040でレンズ条件フラグLOKF’を0と
してリターンする。#2010でAVo≧AFAVであ
る場合には、AF瞳を通過する焦点検出用の光束がレン
ズによってケラレるので、正確な焦点検出ができないと
判定し、#2040でレンズ条件フラグLOKFをOと
してリターンする。#2020でAF可能信号AFEが
無い場合には、反射望遠レンズやシフトレンズのような
焦点検出不可能なレンズが装着されていると判定され、
#2040でレンズ条件フラグLOKFを0としてリタ
ーンする。
If AVo<AFAV in #2010, the presence or absence of the AF enable signal AFE is determined in #2020. #A in 2020
If the F enable signal AFE is present, it is determined that a focus detectable lens is attached, and the process returns with the lens condition flag LOKF set to 1 in #2030. If there is no lens attachment signal in #2000, lens renormalization cannot be performed, so the process returns with the lens condition flag LOKF' set to 0 in #2040. If AVo≧AFAV in #2010, the focus detection light flux passing through the AF pupil is vignetted by the lens, so it is determined that accurate focus detection cannot be performed, and the process returns with the lens condition flag LOKF set to O in #2040. do. If there is no AF enable signal AFE in #2020, it is determined that a lens that cannot detect focus, such as a reflective telephoto lens or a shift lens, is attached.
In #2040, the lens condition flag LOKF is set to 0 and the process returns.

第12rI!I(b)はレンズ条件判定の別の例であり
、#2000でICP装着信号の有無を判定した後、I
CP装着信号が有る場合には、#2025でAFカプラ
ー信号AFCPの有無を判定している。
12th rI! I(b) is another example of lens condition determination, and after determining the presence or absence of the ICP attachment signal in #2000, I
If there is a CP attachment signal, the presence or absence of the AF coupler signal AFCP is determined in #2025.

#2025でAFカプラー信号AFCPが有れば、AF
カプラーを備えるレンズ、つまりカメラボディのモータ
によりフォーカシング駆動が可能なレンズが装着されて
いると判定され、#2030でレンズ条件フラグLOK
Fを1としてリターンする。
If AF coupler signal AFCP is present in #2025, AF
It is determined that a lens equipped with a coupler, that is, a lens that can be driven for focusing by the motor of the camera body, is attached, and the lens condition flag is set at #2030.
Return with F set to 1.

#2025でAFカプラー信号AFCPが無ければ、A
Fカプラーを持たないし、ンズが装着されていると判定
され、#2040でレンズ条件フラグLOKFを0とし
てリターンする。
If there is no AF coupler signal AFCP in #2025, A
It is determined that the lens does not have an F coupler and a lens is attached, and the process returns with the lens condition flag LOKF set to 0 in #2040.

第12図(、)又は(b)に示すようなレンズ条件が満
たされていれば、レンズ条件フラグLOKFは1となり
、レンズ条件が満たされていなければ、レンズ条件フラ
グLOKFは0となる。第10図のフローに戻って、#
1102ではレンズ条件フラグLOKFを判定する。$
1102でLOKF−〇であれば、#1104〜#11
15のステップをスキップしてリターンする。#110
2でLOKF=1であれば、#1104でレンズ繰り込
みを開始する。#1104でレンズ駆動を開始した後、
#1105で無限遠位置検出スイッチ(S■)がONで
あるかを判定する。 # 1.105でスイッチ(S■
)がONでなければ、スイッチ(Sω)がONになるま
で#1105の判定動作を繰り返す、#1105でレン
ズが無限遠位置まで繰り込まれてスイッチ(SCO)が
ONとなれば、#1110でレンズ繰り込みを停止し、
#1115でレンズ位置カウンタNLをリセットし、サ
ブルーチンがコールされたステップにリターンする。
If the lens conditions shown in FIG. 12 (,) or (b) are satisfied, the lens condition flag LOKF becomes 1, and if the lens conditions are not satisfied, the lens condition flag LOKF becomes 0. Returning to the flow in Figure 10, #
In step 1102, the lens condition flag LOKF is determined. $
If 1102 is LOKF-〇, #1104 to #11
Skip step 15 and return. #110
If LOKF=1 in 2, lens renormalization is started in #1104. After starting lens drive in #1104,
In #1105, it is determined whether the infinite position detection switch (S■) is ON. # 1. Switch at 105 (S■
) is not ON, the judgment operation in #1105 is repeated until the switch (Sω) is turned ON. If the lens is retracted to the infinity position in #1105 and the switch (SCO) is turned ON, then in #1110 Stop lens renormalization,
In #1115, the lens position counter NL is reset and the subroutine returns to the called step.

第11図はレンズ初期位置セットのサブルーチンの内容
を示すフローチャートである。このサブルーチンがコー
ルされると、#1200でレンズ条件判定のサブルーチ
ンを実行し、#1202でレンズ条件フラグLOKFを
判定する。#1202でLOKF=O”l’あれば、#
1204〜#1215のステップをスキップしてリター
ンする。#1202でLOKF=1であれば、#120
4でレンズ初期位置セット用のデフォーカス量DFsに
変換係数Kを乗算して、無限遠位置からのレンズ駆動量
ΔN=DFsXKを算出し、#1205でレンズ繰り出
しを開始する。#1210では、レンズ駆動量がΔNに
達したかを判定する。#1210でレンズ駆動量がΔN
に達していなければ、レンズ駆動量がΔNに達するまで
#1210の判定動作を繰り退す、#1210でレンズ
駆動量がΔNに達すれば、#1215でレンズ駆動を停
止し、サブルーチンがコールされたステップにリターン
する。
FIG. 11 is a flowchart showing the contents of the subroutine for setting the lens initial position. When this subroutine is called, the lens condition determination subroutine is executed in #1200, and the lens condition flag LOKF is determined in #1202. If LOKF=O"l' in #1202, #
Skip steps 1204 to #1215 and return. If LOKF=1 in #1202, #120
In step 4, the defocus amount DFs for setting the lens initial position is multiplied by the conversion coefficient K to calculate the lens drive amount ΔN=DFsXK from the infinity position, and in step #1205, lens extension is started. In #1210, it is determined whether the lens drive amount has reached ΔN. Lens drive amount is ΔN with #1210
If the lens drive amount has not reached ΔN, the determination operation in #1210 is repeated until the lens drive amount reaches ΔN. If the lens drive amount reaches ΔN in #1210, the lens drive is stopped in #1215, and the subroutine is called. Return to step.

第4図のフローに戻って、#45では、AFモードスイ
ッチ(SAF)がONであるかを判定する。
Returning to the flow of FIG. 4, in #45, it is determined whether the AF mode switch (SAF) is ON.

#45でAFモードスイッチ(SAF)がONでなけれ
ば、#50でマニュアルフォーカスモードであることを
示すフラグMFを1として、#80に進む、#45でA
Pモードスイッチ(SAF)がONであれば、#55で
フラグMFが1であるかを判定する。#55でMP=1
であれば、スイッチ(SAF)がONされた直後という
ことであり、#60でフラグMFを0として#65に進
む、#65〜#75では、上述のレンズ初期位置演算、
■繰り込み、レンズ初期位置セットの各サブルーチンを
実行して、レンズ初期位置セットを行い、その後、#1
45に進む、#55でMP=1でなければ、以前からス
イッチ(SAF)がONであったということであり、#
80に進む。
If the AF mode switch (SAF) is not ON in #45, set the flag MF indicating manual focus mode to 1 in #50, and proceed to #80.
If the P mode switch (SAF) is ON, it is determined in #55 whether the flag MF is 1. #55 MP=1
If so, it means that the switch (SAF) has just been turned on, and in #60, set the flag MF to 0 and proceed to #65. In #65 to #75, the above-mentioned lens initial position calculation,
■Execute each subroutine of renormalization and lens initial position setting to set the lens initial position, and then #1
Proceed to #45. If MP = 1 in #55, it means that the switch (SAF) has been ON before, #
Proceed to 80.

#80では、レンズ装着信号ICPの有無を判定する。In #80, the presence or absence of the lens attachment signal ICP is determined.

#80でレンズが装着されていなければ、#100でレ
ンズが未装着であることを示すフラグLENOFを1と
し、# 1054.:進tr、#80で撮影レンズが装
着されていれば、#90でフラグLENOPが1である
かを判定する。#90でLENOF=1であれば、レン
ズが装着された直後ということであり、#95でフラグ
LENOFを0とし、#96で500+5seeの時間
が経過するまで待ち、#65〜#75のレンズ初期位置
セットを行った後、#145に進む、#90でLENO
F=1でなければ、以前からレンズが装着されていたと
いうことであり、#105に進む。
If the lens is not attached in #80, the flag LENOF indicating that the lens is not attached is set to 1 in #100, and #1054. : Progress tr, if the photographing lens is attached at #80, it is determined whether the flag LENOP is 1 at #90. If LENOF = 1 in #90, it means that the lens has just been attached, so in #95 the flag LENOF is set to 0, in #96 wait until the time of 500+5see has passed, and in #65 to #75 the lens initial After setting the position, proceed to #145, LENO at #90
If F=1, it means that the lens has been attached before, and the process proceeds to #105.

#105では、マクロゾーンスイッチ(SMZ)がON
であるかを、即ち、ズームレンズがマクロゾーンにない
かを判定する。#105でマクロゾーンスイッチ(SM
Z)がONでなければ、即ち、マクロゾーンにあれば、
#110でマクロゾーンスイッチ(SMZ)がOFFで
あることを示すフラグSMZOFFを1とし、#125
に進む、#105でマクロゾーンスイッチ(SI4z)
がONであれば、#115でフラグSMZOFFが1で
あるかを判定する。#115でSMZOFF=1であれ
ば、マクロゾーンスイッチ(SMZ)がONされた直後
ということであり、#120で7ラグSMZOFFを0
とし、#65〜#75のレンズ初期位置セットを行った
後、#145に進む、 # 115t’SMZOFF=
1でなければ、以前からマクロゾーンスイッチ(SM2
)がONされていたということであり、#125に進む
At #105, the macro zone switch (SMZ) is turned on.
In other words, it is determined whether the zoom lens is in the macro zone. Macro zone switch (SM) with #105
Z) is not ON, that is, if it is in the macro zone,
In #110, the flag SMZOFF indicating that the macro zone switch (SMZ) is OFF is set to 1, and in #125
Proceed to #105, macro zone switch (SI4z)
If it is ON, it is determined in #115 whether the flag SMZOFF is 1. If SMZOFF=1 in #115, it means that the macro zone switch (SMZ) has just been turned on, and the 7-lag SMZOFF is set to 0 in #120.
After setting the lens initial position in #65 to #75, proceed to #145. #115t'SMZOFF=
If it is not 1, the macro zone switch (SM2
) has been turned on, and the process advances to #125.

#125では、リセットスイッチ(SR)がONである
かを判定する。#125でリセットスイッチ(SR)が
ONでなければ、#130でリセットスイッチ(SR)
がOFFであることを示すフラグ5ROFFを1とし、
#145に進む、#125でリセットスイッチ(SR)
がONであれば、#135でフラグ5ROFFが1であ
るかを判定する。
In #125, it is determined whether the reset switch (SR) is ON. If the reset switch (SR) is not ON in #125, the reset switch (SR) is turned on in #130.
The flag 5ROFF indicating that is OFF is set to 1,
Proceed to #145, reset switch (SR) at #125
If it is ON, it is determined in #135 whether the flag 5ROFF is 1.

#135で5ROFF=1であれば、リセットスイッチ
(SR)がONされた直後ということであり、#140
でフラグ5ROFFをOとし、#65〜#75のレンズ
初期位置セットを行った後、#145に進む、#135
で5ROFF=1でなければ、以前からリセットスイッ
チ(SR)はONされていたということであり、既にレ
ンズは初期位置にセットされているので、#65〜#7
5のレンズ初期位置セットは行わずに、#145に進む
If 5ROFF=1 in #135, it means that the reset switch (SR) has just been turned on, and #140
After setting flag 5ROFF to O and setting the lens initial position in #65 to #75, proceed to #145, #135
If 5ROFF = 1, it means that the reset switch (SR) has been turned on before, and the lens has already been set to the initial position, so #65 to #7
The process proceeds to #145 without performing the lens initial position setting in step 5.

したがって、メインスイッチ(SR)の投入直後にレン
ズ初期位置セット(#15〜#25)を行った後は、A
Fモードスイッチ(SAF)がONされた直後か、レン
ズが装着された直後か、マクロゾーンスイッチ(SMZ
)がONされた直後か、又は、リセットスイッチ(SR
)がONされた直後、若しくは、後述のローコンスキャ
ンを行ってもなお焦点検出不能であった場合(# 25
2参照)にのみ、レンズ初期位置セットが行われ、それ
以外の場合にはレンズ初期位置セットは行われない、し
たがって、似たような場面を撮影する場合や、複数コマ
の写真を連写する場合のような前回のレンズ位置付近で
合焦する確率が高い場合には、レンズ初期位置セットは
行われず、焦点検出の度にレンズ初期位置セットが行わ
れる場合に比べ、電力消費量が少なくなり、かつ、焦点
調節に必要な時間が短くなる。
Therefore, after setting the lens initial position (#15 to #25) immediately after turning on the main switch (SR),
Immediately after the F mode switch (SAF) is turned on, immediately after the lens is attached, or the macro zone switch (SMZ)
) is turned on, or the reset switch (SR
) is turned ON, or when the focus cannot be detected even after performing the low contrast scan described below (#25).
The lens initial position is set only in cases (see 2); in other cases, the lens initial position is not set. Therefore, when shooting similar scenes or when shooting multiple pictures in succession When the probability of focusing near the previous lens position is high, as in the case of the previous lens position, the initial lens position is not set, and power consumption is lower than when the lens initial position is set every time the focus is detected. , and the time required for focus adjustment is shortened.

#145では、撮影準備スイッチ(Sl)がONである
かを判定する。撮影準備スイッチ(Sl)がONされて
いないときは、#40で全表示を消して、#30に戻る
。以下、#30、#45、#80、#105、#125
、#145を通るルーズを巡りながら、メインスイッチ
(SM)、AFモードスイッチ(SAF)、レンズ装着
信号ICP、マクロゾーンスイッチ(SMZ)、リセッ
トスイッチ(SR)、撮影準備スイッチ(Sl)の状態
をモニターする。
In #145, it is determined whether the photographing preparation switch (Sl) is ON. If the photographing preparation switch (Sl) is not turned on, the entire display is turned off in #40 and the process returns to #30. Below, #30, #45, #80, #105, #125
, and #145, check the status of the main switch (SM), AF mode switch (SAF), lens attachment signal ICP, macro zone switch (SMZ), reset switch (SR), and shooting preparation switch (Sl). Monitor.

このループの途中で、メインスイッチ(SM)がOFF
されたときには、上述のように、■繰り込み(#35)
を行って、再び#2〜#10のループを巡りながら、レ
ンズが装着されるか、又はメインスイッチ(SM)がO
Nされるまで待機する。また、#30〜#145のルー
プの途中で、スイッチ(sAF)、(SMZ)、(SR
)のいずれかがONされるが、又は、レンズが装着され
たときは、その都度、レンズ初期位置セット(#65〜
#75)を行う、このようにして、カメラは撮影準備ス
イッチ(Sl)がONされるのを待っているが、#14
5で撮影準備スイッチ(Sl)がONとなれば、焦点検
出を開始するべく、#175(第5図)に進む。
In the middle of this loop, the main switch (SM) is turned off.
When it is, as mentioned above, ■ Renormalization (#35)
and go through the loop #2 to #10 again until the lens is attached or the main switch (SM) is turned on.
Wait until N. Also, in the middle of the loop from #30 to #145, switches (sAF), (SMZ), (SR
) is turned on, or when a lens is attached, the lens initial position set (#65~
#75) In this way, the camera is waiting for the shooting preparation switch (Sl) to be turned on, but #14
If the photographing preparation switch (Sl) is turned ON in step 5, the process proceeds to #175 (FIG. 5) to start focus detection.

#175では焦点検出を行い、#180で焦点検出不能
であるかを判定する。#180で焦点検出不能でなけれ
ば、合焦判定を行うべく、#290(第7図)に進む、
#180で焦点検出不能であれば、#185で低輝度で
あるかを判定する。#185で低輝度であれば、補助光
を発光すべく、#330(第8図)に進む、#185で
低輝度でなければ、コントラストが得られるレンズ位置
を探すために、$190(第6図)に進んでローコンス
キャンを行うが、ローコンスキャンの範囲を可能な限り
狭い範囲に限定して行うことにより、ローコンスキャン
に要する時間を短縮するように工夫している。すなわち
、焦点検出装置においては焦点検出が可能な範囲が決ま
っており、現在のレンズ位置から後ビン側に+DFa、
前ピン側に−DFaのデフォーカス量の範囲内であれば
焦点検出が可能であるとすると、現在のレンズ位置から
±DFaの範囲については、レンズ位置を変えるまでも
なく焦点検出が可能な範囲内である。そこで、#190
(第6図)では、繰り出し方向のスキャン量をΔN=N
max−NL−DFaXKとして算出する。これは、最
大繰り出し位置N waxまで繰り出さなくても、DF
aXKだけ手前の位置まで繰り出せば、最大繰り出し位
置Nmaxも焦点検出可能範囲2DFa内に入るからで
ある0次に、スキャンの方向を知るために、#200で
フラグFOWFが1であるかを判定する。このフラグF
OWFは、繰り出しくFOWarcl)方向のスキャン
を行うことを示すフラグである。初めてローコンスキャ
ンを行うときには、フラグFOWFはリセットされてい
るので、FOWF=1ではない、したが゛って、最初は
#205に進み、#205でFOWF−1として、#2
20に進む、#220ではレンズ駆動(繰り出し方向)
を行うべくレンズ駆動回路(LDC)に信号を出力し、
#225で焦点検出を行った後、#230で焦点検出不
能であるかを判定する。#230で焦点検出不能でなけ
れば、#233でフラグFOWFをリセットし、合焦判
定を行うべく、#290(第7図)に進む、#230で
焦点検出不能であれば、#235でレンズ駆動量がΔN
に達したかを判定する。#235でレンズ駆動量がΔN
に達していなければ、#225に戻って、繰り出し方向
のレンズ駆動を続けながら、焦点検出不能であるかを判
定する。#235でレンズ駆動量がΔNに達していれば
、#240でレンズ駆動を停止し、#245でフラグF
OWFが1であるかを判定する。#245でF’0WF
=1であれば、これは繰り出し方向のスキャンを行った
が焦点検出可能なレンズ位置が見付からなかったという
ことであるから、今度は繰り込み方向のスキャンを行う
べく、#200に戻る。$200でFOWF=1であれ
ば、既に繰り出し方向のスキャンは済ませたということ
であるから、#210で繰り込み方向のスキャン量をΔ
N=N翔axとする。これは、終端まで繰り込んでカウ
ンタをリセッ°卜するためである。#215では、繰り
込み方向のスキャンであることを示すべく、フラグFO
WFを0とし、#220に進む、#220ではレンズ駆
動(繰り込み方向)を行うべくレンズ駆動回路(L D
 C)に信号を出力し、#225〜#240を経て、再
び#245に至る。今度は、FOWF=1ではないので
、#200に戻ることはなく、#250に進む、つまり
、#245でFOWF=1でない場合とは、繰り出し方
向のスキャンも繰り込み方向のスキャンも共に行ったが
、焦点検出可能なレンズ位置は見付からなかったという
ことであるから、次回の焦点検出に備えて、#250で
レンズ初期位置演算のサブルーチンを実行し、#252
でレンズ初期位置セットのサブルーチンを実行した後、
#255(第7図)で焦点検出不能表示を行うものであ
る。なお、縁り込み方向のスキャン中、#230で焦点
検出可能になった場合には、#233でフラグFOWF
をリセットし、合焦判定を行うべく#290(第7図)
へ進む。
Focus detection is performed in #175, and it is determined in #180 whether focus detection is impossible. If focus cannot be detected in #180, proceed to #290 (Figure 7) to perform focus determination.
If the focus cannot be detected in #180, it is determined in #185 whether the brightness is low. If the brightness is low in #185, proceed to #330 (Fig. 8) to emit the auxiliary light. If the brightness is not low in #185, proceed to $190 (Fig. 8) to find a lens position where contrast can be obtained. Proceeding to Fig. 6), a low-contrast scan is performed, but by limiting the range of the low-contrast scan to the narrowest possible range, an effort is made to shorten the time required for the low-contrast scan. In other words, in the focus detection device, the range in which focus detection is possible is determined, and from the current lens position to the rear bin side +DFa,
Assuming that focus detection is possible within the defocus amount range of -DFa on the front focus side, focus detection is possible within the range of ±DFa from the current lens position without changing the lens position. It is within. Therefore, #190
(Fig. 6), the scanning amount in the feeding direction is ΔN=N
Calculate as max-NL-DFaXK. This allows the DF to be extended even if it is not extended to the maximum extension position N wax.
This is because if the aXK is extended to the front position, the maximum extended position Nmax will also be within the focus detectable range 2DFa.0 Next, in order to know the scan direction, it is determined in #200 whether the flag FOWF is 1. . This flag F
OWF is a flag indicating that scanning is to be performed in the forward (FOWarcl) direction. When performing a low contrast scan for the first time, the flag FOWF has been reset, so FOWF is not 1. Therefore, first, proceed to #205, set FOWF-1 at #205, and set #2 to #2.
Proceed to #20, lens drive (feeding direction) in #220
Outputs a signal to the lens drive circuit (LDC) to perform
After focus detection is performed in #225, it is determined in #230 whether focus detection is impossible. If the focus cannot be detected in #230, the flag FOWF is reset in #233, and the process proceeds to #290 (Fig. 7) to determine focus. If the focus cannot be detected in #230, the lens is adjusted in #235. Drive amount is ΔN
Determine whether it has been reached. Lens drive amount is ΔN in #235
If the focus has not been reached, the process returns to #225, and it is determined whether the focus cannot be detected while continuing to drive the lens in the extending direction. If the lens drive amount has reached ΔN in #235, the lens drive is stopped in #240, and the flag F is set in #245.
Determine whether OWF is 1. F'0WF with #245
If =1, this means that a lens position where the focus can be detected was not found even though scanning was performed in the extending direction, so the process returns to #200 to perform scanning in the extending direction. If FOWF=1 at $200, it means that the scanning in the feeding direction has already been completed, so in #210, the scanning amount in the feeding direction is changed to Δ
Let N=Nshoax. This is to reset the counter by carrying it out to the end. In #215, the flag FO is set to indicate that the scan is in the renormalization direction.
Set WF to 0 and proceed to #220. In #220, the lens drive circuit (L D
A signal is output to C), and the process returns to #245 via #225 to #240. This time, since FOWF = 1, it does not return to #200 and proceeds to #250. In other words, when FOWF = 1 in #245, both the scanning in the feeding direction and the scanning in the renormalization direction are performed. , it means that no lens position where the focus can be detected was found, so in preparation for the next focus detection, a subroutine for calculating the initial lens position is executed in #250, and in #252
After executing the lens initial position set subroutine,
In step #255 (FIG. 7), a focus detection failure display is performed. If focus detection becomes possible in #230 during scanning in the border direction, flag FOWF is set in #233.
#290 (Figure 7) to reset and perform focus judgment
Proceed to.

#255(第7図)で焦点検出不能表示を行うと、#2
60でローコンスキャンエンドフラグLSENDFを1
とする。このフラグは、ローコンスキャンを行ったが焦
点検出可能なレンズ位置は見付からなかったことを示す
ためのフラグである0次に、#265でスキャン方向を
示すフラグFOWFを0に戻した後、#270で撮影準
備スイッチ(Sl)がONであるかを判定する。#27
0で撮影準備スイッチ(Sl)がONでなければ、#4
0で全表示を消して、#30に戻る。#270で撮影準
備スイッチ(Sl)がONであれば、#275で焦点検
出を行い、#280で焦点検出不能であるかを判定する
。#280で焦点検出不能であれば、#270に戻る。
When displaying focus detection failure in #255 (Fig. 7), #2
At 60, set the low contrast scan end flag LSENDF to 1
shall be. This flag is a flag to indicate that a lens position where the focus can be detected was not found even though low contrast scanning was performed.Next, after returning the flag FOWF indicating the scan direction to 0 in #265, # At step 270, it is determined whether the photographing preparation switch (Sl) is ON. #27
If the shooting preparation switch (Sl) is not ON at 0, #4
Clear all display with 0 and return to #30. If the photographing preparation switch (Sl) is ON in #270, focus detection is performed in #275, and it is determined in #280 whether focus cannot be detected. If the focus cannot be detected in #280, the process returns to #270.

#280で焦点検出不能でなければ、#290でローコ
ンスキャンエンドフラグLSENDFを0とし、#29
5で合焦であるかを判定する。#295で合焦状層でな
いと判定すると、#300に進んで合焦及び焦点検出不
能表示を消して、#305でデフォーカス量DFに基づ
いてレンズ駆動量ΔN=DFXKを演算し、#310で
レンズ駆動を開始する。#311では、レンズ駆動量が
ΔNに達したかを判定する。#311でレンズ駆動量が
ΔNに達していなければ、レンズ駆動量がΔNに達する
まで#311の判定動作を繰り返す、#311でレンズ
駆動量がΔNに達すれば、#312でレンズ駆動を停止
し、#270に戻る。#270で撮影準備スイッチ(S
l)がONのままであれば、#275で焦点検出を行い
、#280〜#290を経て、再び#295で合焦判定
を行う、上述の#305及び#310のステップでレン
ズが合焦位置に向けて駆動されているので、ここでは合
焦となる可能性が高い。
If the focus is not detectable in #280, the low contrast scan end flag LSENDF is set to 0 in #290, and #29
5 to determine whether the image is in focus. If it is determined in #295 that the layer is not in focus, the process proceeds to #300, where the in-focus and focus detection failure indications are erased, and in #305, the lens drive amount ΔN=DFXK is calculated based on the defocus amount DF, and in #310 to start driving the lens. In #311, it is determined whether the lens drive amount has reached ΔN. If the lens drive amount has not reached ΔN in #311, the determination operation in #311 is repeated until the lens drive amount reaches ΔN. If the lens drive amount reaches ΔN in #311, the lens drive is stopped in #312. , return to #270. Press #270 to turn on the shooting preparation switch (S
If l) remains ON, focus is detected in #275, followed by steps #280 to #290, and again in #295 to determine focus.The lens is focused in steps #305 and #310 described above. Since the lens is being driven toward a certain position, there is a high possibility that it will be in focus here.

#295で合焦であれば、#315で合焦表示を行い、
#320で撮影準備スイッチ(Sl)がONであるかを
判定する。#320で撮影準備スイッチ(Sl)がON
であれば、撮影準備スイッチ(Sl)がONでなくなる
まで、#320の判定動作を繰り返し、いわゆるフォー
カスロック状態となる。なお、本発明とは無関係である
が、フォーカス優先モードのカメラにあっては、このフ
ォーカスロック状態でレリーズが許可され、レリーズ釦
(図示せず)が第2ストロークまで押し込まれると、カ
メラはレリーズ動作を行うものである。#320で撮影
準備スイッチ(Sl)がONでなくなれば、#40で表
示を消して、#3oに戻る。つまり。
If it is in focus at #295, the focus is displayed at #315,
In #320, it is determined whether the photographing preparation switch (Sl) is ON. At #320, the shooting preparation switch (Sl) is turned on.
If so, the determination operation of #320 is repeated until the photographing preparation switch (Sl) is no longer ON, and a so-called focus lock state is established. Although unrelated to the present invention, in a camera in focus priority mode, release is permitted in this focus lock state, and when the release button (not shown) is pushed to the second stroke, the camera releases. It is something that performs an action. If the photographing preparation switch (Sl) is no longer ON in #320, the display is turned off in #40 and the process returns to #3o. In other words.

撮影準備スイッチ(Sl)をOFFにすれば、上述のフ
ォーカスロック状態は解除される。
When the photographing preparation switch (Sl) is turned off, the focus lock state described above is released.

次に、第8図の#330を通る場合には、#185及び
#180(第5図)において、低輝度で且つ焦点検出不
能であると判定されているので、補助光発光が必要であ
るが、補助光を発光しても無駄な場合もあるので、#3
30及び#335で、その判定を行う、ここで、第2図
に示す補助光発光装置(ILM)は、通常、カメラの撮
影レンズよりも上方に外部から装着された、あるいはカ
メラ本体前面に設けられた発光ダイオードと投光用の光
字系とを含む、一方、焦点検出回路(A F C”)は
、TTL位相差検出方式の焦点検出用光学系を含み、そ
の光軸は撮影レンズの光軸と一致する。したがって、補
助光投光用の光学系の光束域と焦点検出用の光束域とは
パララックスを有し、撮影レンズの前方の所定の距離(
画角によって変化する)から向こうでは、焦点検出用の
光束域が補助光投光用の光学系の光束域に完全に含まれ
てしまう、この距離が補助光により焦点検出を可能とす
べく被写体を照射できる範囲の下限であり、これよりも
近い被写体に対しては、補助光発光を行っても無駄であ
る。また、カメラに長焦点レンズを装着した場合には、
補助光がレンズの鏡胴によりケラレるので、被写体に補
助光が当たらず、補助光を発光しても無駄になる場合が
ある。なお、補助光により焦点検出を可能とすべく被写
体を照射できる範囲の下限は、TTL方式の補助光シス
テムの採用により小さくできるが、補助光照射により焦
点検出が可能どなる範囲の上限を大きくすることは、補
助光の到達距離がせいぜい10+程度であるので、余り
期待できない、そこで、#330ではレンズの焦点距離
fが2501以上であるかを判定し、#330でf≧2
50であれば、レンズ長が長い或いはレンズ径が太いた
めに補助光がクラレる場合があると判断して、補助光を
発光せずに、#190(第6図)に進んで、ローコンス
キャンを行う。
Next, when passing through #330 in Figure 8, it is determined that the brightness is low and focus cannot be detected in #185 and #180 (Figure 5), so auxiliary light emission is necessary. However, there are cases where it is useless to emit the auxiliary light, so #3
The determination is made in steps 30 and #335. Here, the auxiliary light emitting device (ILM) shown in FIG. On the other hand, the focus detection circuit (AFC") includes a focus detection optical system using a TTL phase difference detection method, and its optical axis is aligned with the photographic lens. Coincides with the optical axis.Therefore, there is a parallax between the light flux range of the optical system for auxiliary light projection and the light flux range for focus detection, and the light flux range is
(changes depending on the angle of view), the light flux range for focus detection is completely included in the light flux range of the optical system for flashing the filler light. This is the lower limit of the range that can be illuminated, and it is useless to emit filler light for objects closer than this. Also, if a long focal length lens is attached to the camera,
Since the auxiliary light is vignetted by the lens barrel, the auxiliary light does not illuminate the subject, and even if the auxiliary light is emitted, it may be wasted. Note that the lower limit of the range in which the subject can be illuminated to enable focus detection with fill-in light can be reduced by adopting a TTL fill-in light system, but the upper limit of the range in which focus detection is possible with fill-in light irradiation can be made larger. Since the reach distance of the auxiliary light is about 10+ at most, we cannot expect much.Therefore, in #330, it is determined whether the focal length f of the lens is 2501 or more, and in #330, f≧2.
If it is 50, it is determined that the auxiliary light may be blurry due to the long lens length or large lens diameter, so proceed to #190 (Figure 6) without emitting the auxiliary light, and set the low control light. Perform a scan.

なお、長焦点レンズを用いた撮影では、補助光が届かな
い遠距離撮影が多いので、補助光発光を禁止してもあま
り問題はない、#330でf≧250でなければ、#3
35で等倍以上マクロレンズ装着信号LCPRの有無を
判定する。#335で等倍以上マクロレンズが装着され
ていれば、補助光照射により焦点検出が可能となる範囲
の下限よりも近い至近距離の撮影であると判断して、補
助光を発光せずに、#190(第6図)に進んで、ロー
コンスキャンを行う、#335で等倍以上マクロレンズ
が装着されていなければ、#340で補助光を発光させ
、#345で焦点検出を行い、#350で焦点検出不能
であるかを判定する。補助光は1回の焦点検出毎に所定
時間のみ発光する。
In addition, when shooting with a long focal length lens, there are many long-distance shots where the auxiliary light does not reach, so there is not much problem with disabling the auxiliary light.If it is #330 and f≧250, then #3
At step 35, it is determined whether there is a macro lens attachment signal LCPR of equal or greater magnification. If a macro lens of equal or larger magnification is attached in #335, it is determined that the shooting is at close range, which is closer than the lower limit of the range where focus detection is possible with auxiliary light irradiation, and the auxiliary light is not emitted. Proceed to #190 (Fig. 6) and perform a low-contrast scan.If a macro lens of 100% magnification or higher is not attached in #335, emit an auxiliary light in #340, perform focus detection in #345, and # At 350, it is determined whether focus detection is impossible. The auxiliary light is emitted only for a predetermined period of time for each focus detection.

#350で焦点検出不能でなければ、#395に進む、
#350で焦点検出不能であれば、カウンタをリセット
するために、#355で■繰り込みを行う、そして、#
370で補助光発光を行い、#375で焦点検出を行い
、#380で焦点検出不能であるかを判定する。#38
0で焦点検出不能でなければ、#395に進む、#38
0で焦点検出不能であれば、#381でレンズが初期位
置にあるかどうかの判定を行い、レンズが初期位置にな
ければ、#382でレンズ初期位置セットを行い、#3
83でレンズが初期位置にあることを示すフラグをセッ
トし、#390へ進む0次回の焦点検出でも焦点検出が
不可能であれば、#381から#385へ進んで焦点検
出不能表示を行い、#390で撮影準備スイッチ(Sl
)がONであるかを判定する。#390で撮影準備スイ
ッチ(Sl)がONであれば、#375に戻る。#39
0で撮影準備スイッチ(Sl)がONでなければ、#4
0で表示を消して、#30に戻る。
If the focus is not detected in #350, proceed to #395.
If focus cannot be detected in #350, perform ■ renormalization in #355 to reset the counter, and #
At 370, auxiliary light is emitted, at #375 focus detection is performed, and at #380 it is determined whether focus detection is impossible. #38
If the focus is not detected at 0, proceed to #395, #38
If the focus cannot be detected with 0, it is determined whether the lens is at the initial position in #381, and if the lens is not in the initial position, the lens initial position is set in #382, and #3
In step 83, a flag indicating that the lens is at the initial position is set, and if focus detection is not possible even in the 0th focus detection, the process proceeds to #390, and the process proceeds from #381 to #385 to display a focus detection failure display. Press #390 to turn on the shooting preparation switch (Sl).
) is ON. If the photographing preparation switch (Sl) is ON in #390, the process returns to #375. #39
If the shooting preparation switch (Sl) is not ON at 0, #4
Clear the display with 0 and return to #30.

#395では焦点検出不能表示を消し、#400では合
焦であるかを判定する。#400で合焦であれば、#4
20で合焦表示を行い、#425で撮影準備スイッチ(
Sl)がONであるかを判定する。#425で撮影準備
スイッチ(Sl)がONであれば、撮影準備スイッチ(
Sl)がONでなくなるまで、#425の判定を繰り返
す、#425で撮影準備スイッチ(Sl)がONでなく
なれば、#40で表示を消して、#30に戻る。#40
0で合焦でなければ、#405でデフォーカス量DFか
らレンズ駆動量ΔN=DFXKを演算し、#410でレ
ンズ駆動を開始する。#412では、レンズ駆動量がΔ
Nに達したかを判定する。#412でレンズ駆動量がΔ
Nに達していなければ、レンズ駆動量がΔNに達するま
で#412の判定動作を縁り返す、#412でレンズ駆
動量がΔNに達すれば、#413でレンズ駆動を停止し
、#415で撮影準備スイッチ(Sl)がONであるか
を判定する。#415で撮影準備スイッチ(Sl)がO
Nであれば#370に戻り、ONでなければ#40で表
示を消して、#30に戻る。
In #395, the focus detection failure display is erased, and in #400, it is determined whether focus is achieved. If the focus is #400, #4
20 indicates the focus, and #425 sets the shooting preparation switch (
SL) is ON. If the shooting preparation switch (Sl) is ON in #425, the shooting preparation switch (Sl) is turned on.
The determination in #425 is repeated until the photographing preparation switch (Sl) is no longer ON in #425, the display is turned off in #40, and the process returns to #30. #40
If the value is 0 and the focus is not in focus, the lens drive amount ΔN=DFXK is calculated from the defocus amount DF in #405, and lens drive is started in #410. In #412, the lens drive amount is Δ
Determine whether N has been reached. With #412, the lens drive amount is Δ
If the lens drive amount has not reached ΔN, the determination operation in #412 is repeated until the lens drive amount reaches ΔN. If the lens drive amount reaches ΔN in #412, the lens drive is stopped in #413, and the photograph is taken in #415. It is determined whether the preparation switch (Sl) is ON. At #415, the shooting preparation switch (Sl) is set to O.
If it is N, the process returns to #370, and if it is not ON, the display is turned off in #40 and the process returns to #30.

驚肪鮭 上述のレンズ位置演算のサブルーチン(第9図)におけ
るデフォーカス量DFsの決定(# 1010〜#10
30)のアルゴリズムにおいては、焦点距離の情報ZF
Zに応じて、レンズ初期位置Nsのデフォーカス量DF
sを演算している。
Determination of defocus amount DFs (#1010 to #10) in the lens position calculation subroutine (Fig. 9) described above
In the algorithm 30), focal length information ZF
Depending on Z, the defocus amount DF of the lens initial position Ns
s is being calculated.

第13図はこのアルゴリズムの変形例を示すフローチャ
ートであり、#1010〜$1030のステップの代わ
りに用いることができるものである。#1500では、
焦点距離fが28−以下(ZFZ≦a)であるかを判定
する。#1500で「≦28−鴎であれば、#1510
で撮影倍率βとして0を設定し、#1570に進む、#
1500でr〉28I@lIテアレバ、$1520で焦
点距離rが210mm以下(Z F Z≦b)であるか
を判定する。#1520でf≦210mmであれば、#
1530で撮影倍率βとして(1/40)を設定し、#
1570に進む、#1520でr>210−一であれば
、#1540で焦点圧1rが600s+m以下(Z F
 Z≦C)であるかを判定する。#1540でf≦60
01であれば、#1550で撮影倍真βとして(1/6
0)を設定し、#1570に進む、#1540テf> 
600m+テあれば、#1560で撮影倍率βとして(
1/100)を設定し、#1570に進む、#1570
では、撮影倍率βに焦点距離の情報ZFZを乗じて、無
限遠位置からレンズ位置Nbまでのレンズ繰り出し量D
Fsを算出する。この第13図に示すアルゴリズムでは
、焦点距離rが例えば35輪乃至105懺−の場合には
、焦点距離fに撮影倍率β=(1/40)を乗じたデフ
ォーカス量DFsが選択される。つまり、常に(1/4
0)の撮影倍率が得られる位置にレンズが初期設定され
ることになる。
FIG. 13 is a flowchart showing a modification of this algorithm, which can be used in place of steps #1010 to $1030. In #1500,
It is determined whether the focal length f is 28- or less (ZFZ≦a). If #1500 is “≦28-seagull, then #1510
Set 0 as the shooting magnification β in , and proceed to #1570.
At $1500, it is determined whether r>28I@lI tear lever, and at $1520, it is determined whether the focal length r is 210 mm or less (Z F Z ≦b). #1520, if f≦210mm, #
Set (1/40) as the imaging magnification β at 1530, and #
Proceed to 1570. If r>210-1 in #1520, focus pressure 1r is 600s+m or less (Z F
It is determined whether Z≦C). #1540 and f≦60
If it is 01, use #1550 as the shooting double true β (1/6
0) and proceed to #1570, #1540
If you have 600m + Te, set the photographing magnification β to #1560 (
1/100) and proceed to #1570, #1570
Now, by multiplying the photographic magnification β by the focal length information ZFZ, we can obtain the lens extension amount D from the infinity position to the lens position Nb.
Calculate Fs. In the algorithm shown in FIG. 13, when the focal length r is, for example, 35 rings to 105 rings, the defocus amount DFs, which is the focal length f multiplied by the imaging magnification β=(1/40), is selected. In other words, always (1/4
The lens is initially set at a position where an imaging magnification of 0) can be obtained.

[発明の効果] 本発明は上述のように、ローコンスキャン後のレンズ位
置を所定の停止位置に設定できるようにしたから、この
所定の停止位置をレンズが通常良く使用される位置に設
定しておくことにより、焦点検出可能となる確率が高く
なると共に、焦点検出後、合焦までのレンズ駆動時間に
要する時間が短くなるという効果がある。
[Effects of the Invention] As described above, the present invention makes it possible to set the lens position after low contrast scanning to a predetermined stop position. This has the effect of increasing the probability that focus can be detected and shortening the time required for driving the lens from focus detection to in-focus.

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

第1図は本発明の基本構成を示すブロック図、第2図は
本発明の一実施例のブロック回路図、第3図乃至第13
図は同上の動作を示すフローチャート、第14図は同上
の動作説明図である。 (1)はレンズ、(2)は焦点検出手段、(3)はレン
ズ駆動手段、(4)は焦点検出不能判定手段、(5)は
レンズ走査制御手段、(6)はレンズ位置決定手段、(
7)は制御手段である。
FIG. 1 is a block diagram showing the basic configuration of the present invention, FIG. 2 is a block circuit diagram of an embodiment of the present invention, and FIGS.
The figure is a flowchart showing the same operation as above, and FIG. 14 is an explanatory diagram of the same operation. (1) is a lens, (2) is a focus detection means, (3) is a lens drive means, (4) is a focus detection impossible determination means, (5) is a lens scanning control means, (6) is a lens position determination means, (
7) is a control means.

Claims (1)

【特許請求の範囲】[Claims] (1)撮影用のレンズと、レンズの焦点状態を検出する
焦点検出手段と、レンズを駆動するレンズ駆動手段と、
焦点検出手段による焦点検出が不能か否かを判定する焦
点検出不能判定手段と、焦点検出不能判定手段により焦
点検出不能と判定されたときに、レンズ駆動手段により
レンズを駆動すると共に焦点検出手段により焦点検出動
作を行わせるレンズ走査制御手段と、レンズの所定の停
止位置を決定するレンズ位置決定手段と、レンズ走査制
御手段によるレンズ走査によっても焦点検出可能なレン
ズ位置が見付からない場合に、レンズ位置決定手段にて
決定された所定の停止位置にレンズを駆動するようにレ
ンズ駆動手段を制御する制御手段とを備えて成ることを
特徴とする焦点検出装置。
(1) A photographic lens, a focus detection means for detecting the focus state of the lens, and a lens drive means for driving the lens;
a focus detectability determining means for determining whether focus detection by the focus detecting means is impossible; and a lens driving means to drive the lens and a focus detecting means to A lens scanning control means for performing a focus detection operation, a lens position determining means for determining a predetermined stopping position of the lens, and a lens position determining means for determining the lens position when a lens position where the focus can be detected cannot be found by the lens scanning by the lens scanning control means. 1. A focus detection device comprising: control means for controlling a lens drive means to drive the lens to a predetermined stop position determined by the determination means.
JP11732888A 1988-01-21 1988-05-14 Focus detecting device Pending JPH01287511A (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
JP11732888A JPH01287511A (en) 1988-05-14 1988-05-14 Focus detecting device
US07/299,656 US4935765A (en) 1988-01-21 1989-01-23 Automatic focus detecting apparatus
US07/299,646 US4952965A (en) 1988-01-21 1989-01-23 Automatic focus detecting apparatus
US07/462,478 US5053800A (en) 1988-01-21 1990-01-09 Automatic focus detecting apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11732888A JPH01287511A (en) 1988-05-14 1988-05-14 Focus detecting device

Publications (1)

Publication Number Publication Date
JPH01287511A true JPH01287511A (en) 1989-11-20

Family

ID=14709020

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11732888A Pending JPH01287511A (en) 1988-01-21 1988-05-14 Focus detecting device

Country Status (1)

Country Link
JP (1) JPH01287511A (en)

Similar Documents

Publication Publication Date Title
JP2001125173A (en) Digital camera
JP2000075352A (en) Camera
JP2008203428A (en) Imaging apparatus
JPS58132205A (en) Lens driving system for auto-focus system
US4952965A (en) Automatic focus detecting apparatus
JPH01287511A (en) Focus detecting device
JPH01187521A (en) Focus detector
US5053800A (en) Automatic focus detecting apparatus
JP2005024843A (en) Digital single lens reflex camera
JP2847703B2 (en) Focus detection device
JPH01287508A (en) Focus detecting device
JP2007011070A (en) Digital single-lens reflex camera
JPH01287510A (en) Interchangeable lens camera
JPH01187519A (en) Focus detector
JP2003043344A (en) Camera, and camera system
JPH07311331A (en) Camera provided with line-of-sight detection device
JPH01187520A (en) Focus detector
JP3248586B2 (en) Camera system and camera
JPH01287509A (en) Interchangeable lens camera
JPH01287513A (en) Interchangeable lens type automatic focus adjusting device and its interchangeable lens
JP2644252B2 (en) Auto focus camera
EP0361523B1 (en) Autofocusing system for a camera
JP2650375B2 (en) Camera that can drive lens during exposure
US6047137A (en) Camera
JP2713870B2 (en) Automatic focusing device