JPS63172248A - Camera with auto-focusing device - Google Patents

Camera with auto-focusing device

Info

Publication number
JPS63172248A
JPS63172248A JP62004569A JP456987A JPS63172248A JP S63172248 A JPS63172248 A JP S63172248A JP 62004569 A JP62004569 A JP 62004569A JP 456987 A JP456987 A JP 456987A JP S63172248 A JPS63172248 A JP S63172248A
Authority
JP
Japan
Prior art keywords
lens
value
focus
amount
signal
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
JP62004569A
Other languages
Japanese (ja)
Inventor
Akira Akashi
明石 彰
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 JP62004569A priority Critical patent/JPS63172248A/en
Publication of JPS63172248A publication Critical patent/JPS63172248A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To absorbe an error included in an arithmetic stop and to photograph two always different objects under respectively focused states by offsetting the arithmetic stop to the stop side by a fixed value. CONSTITUTION:Since a lens is moved to a lens position capable of focusing an object A, a defocused value from an object B is calculated and the lens is moved up to an intermediate position of the defocused value, a focus detecting error in focus detecting operation for detecting defocusing and a position control error in a lens driving mechanism for moving the lens to the intermediate position exert influence upon stopping operation. Thereby, a computer PRS calculates a stop value obtained by offsetting an arithmetic stop value to the stopping side by a fixed value and executes practical stop control by using the offset stop value. Consequently, the error is absorbed and the focused states of both the objects are always guaranteed.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は異なる位置に位置する2つの被写体ともにピン
トが合った状態で撮影を行わせる自動焦点調節装置を有
するカメラに関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a camera having an automatic focus adjustment device that allows photographing two subjects located at different positions to be in focus.

(従来技術) 異なる位置に被写体A、Bが位置する場合、被写体Aに
対して合焦とするレンズ位置と、被写体Bに対して合焦
とするレンズ位置の中間位置を求め、この中間位置にレ
ンズを移動させると共に被写体A、Bに対するそれぞれ
のレンズ位置間のデフォーカス量を最小錯乱円で割るこ
とにて絞りを求め、この絞りにて上記被写体A。
(Prior art) When subjects A and B are located at different positions, find the intermediate position between the lens position that focuses on subject A and the lens position that focuses on subject B, and set the lens position to this intermediate position. While moving the lens, the aperture is determined by dividing the amount of defocus between the lens positions for subjects A and B by the circle of least confusion, and the aperture is used to capture the subject A.

Bを共にその深度内となし、異なる位置の被写体A、B
共にピントが合った状態を保証させた自動焦点調節装置
を有するカメラを本願出願人が特願昭61−23684
1号として提案している。
Subjects A and B at different positions, with B both within the same depth.
The applicant of the present application filed Japanese Patent Application No. 61-23684 for a camera with an automatic focus adjustment device that guarantees that both objects are in focus.
We are proposing this as number 1.

該提案によれば本来上記の如くに求められた絞り値にて
両板写体A、Bともにピントを合った状態とすることが
出来るものではあるが、一方上記方法で得られた絞り値
は被写体A、Bにて、それぞれ合焦状態となすレンズ位
置間のデフォーカス量の精度に犬ぎく左右され、このデ
フォーカス量そのものに誤差か含まれている場合には算
出絞りも正確なものではなく、両板写体A、  Bをと
もにピントが合った状態で撮影を行わせることが出来な
くなる。
According to this proposal, both objects A and B can be brought into focus with the aperture value obtained as above, but on the other hand, the aperture value obtained by the above method is Subjects A and B are highly dependent on the accuracy of the amount of defocus between the lens positions that are in focus, and if this amount of defocus itself contains an error, the calculated aperture may not be accurate. Therefore, it becomes impossible to shoot with both plates A and B in focus.

一方、レンズを上記中間位置へ移行させるに際し、オー
トフォーカス装置にて被写体Aに対して合焦状態とする
レンズ位置にレンズを移行させ、この状態で被写体Bに
対するデフォーカス量を求め、このデフォーカス量と内
分する中間位置までレンズを移動させており、上記デフ
ォーカス検知における焦点検知動作における焦点検出誤
差並びにレンズを中間位置に移行させるレンズ駆動機構
における位置制御誤差が、上記の絞り演算に影響する。
On the other hand, when moving the lens to the intermediate position, move the lens to the lens position where the autofocus device focuses on subject A, calculate the defocus amount for subject B in this state, and calculate the defocus amount for subject B. The lens is moved to an intermediate position that is internally divided by the amount, and the focus detection error in the focus detection operation in the defocus detection described above and the position control error in the lens drive mechanism that moves the lens to the intermediate position affect the aperture calculation described above. do.

〔目的〕〔the purpose〕

本発明は上述の事項に鑑みなされたもので、上記絞り演
算に際し、演算絞り値に対して一定量絞り込み側へオフ
セットした絞り値を求め、このオフセット絞り値を用い
て実際の絞り制御を行わせ、このオフセット量で上記誤
差を吸収し、常に両板写体ともにピントか合った状態を
保証せんとするものである。
The present invention has been made in view of the above-mentioned matters, and when performing the above-mentioned aperture calculation, an aperture value that is offset by a certain amount toward the aperture side from the calculated aperture value is obtained, and this offset aperture value is used to perform actual aperture control. This offset amount is used to absorb the above-mentioned error and ensure that both objects are always in focus.

〔実施例〕〔Example〕

第1図は本発明に係るオートフォーカス装置を備えたカ
メラの実施例を示す回路図である。
FIG. 1 is a circuit diagram showing an embodiment of a camera equipped with an autofocus device according to the present invention.

図においてPR3はカメラの制御装置で、例えば、内部
にROM、RAM、A/D変換機能を持つ1チツプのマ
イクロ・コンピュータであり、ROMに格納された後述
のプログラムに従って、自動露出制御機能、自動焦点検
出機能、フィルムの巻き上げ・巻戻し等のカメラの動作
を行っている。
In the figure, PR3 is a camera control device, for example, a one-chip microcomputer with internal ROM, RAM, and A/D conversion functions. Performs camera operations such as focus detection function and film winding/rewinding.

マイクロ・コンピューターPR3は通信用信号So、S
r、5CLKを用いて、周辺回路およびレンズと通信し
、各々の回路やレンズの動作を制御する。
Microcomputer PR3 has communication signals So, S
r, 5CLK is used to communicate with peripheral circuits and lenses, and to control the operation of each circuit and lens.

SoはPR5から出力されるデータ信号、SIはPR3
に入力されるデータ信号、5CLKは信号so、srの
同期信号である。
So is the data signal output from PR5, SI is PR3
The data signal 5CLK input to is a synchronization signal of the signals so and sr.

LCMはレンズ通信バッファ回路であり、カメラか動作
中のときはレンズ用電源V’Lをレンズに与え、マイク
ロ・コンピューターPR3からの信号CLCMが高電位
レベル(以下、H″ と略し、低電位はL゛ と略して
記す)のときは、カメラとレンズ間通信のバッファとな
る。
LCM is a lens communication buffer circuit, and when the camera is in operation, the lens power supply V'L is applied to the lens, and the signal CLCM from the microcomputer PR3 is at a high potential level (hereinafter abbreviated as H''; low potential is (abbreviated as L), it serves as a buffer for communication between the camera and the lens.

マイクロ・コンピューターPR3が信号CLCMをH°
にして、5CLK信号に同期して所定のデータをSO傷
信号して送出すると、回路LCMが指定されカメラ・レ
ンズ間接点を介して、5CLK信号、SO信号の各々の
バッファ信号LCK、DCLをレンズへ出力する。
Microcomputer PR3 sets signal CLCM to H°
When the predetermined data is sent as an SO scratch signal in synchronization with the 5CLK signal, the circuit LCM is designated and the buffer signals LCK and DCL of the 5CLK signal and SO signal are sent to the lens through the camera-lens interface. Output to.

それと同時にレンズ(一点鎖線で囲まれた部分)からの
信号DLCのバッファ信号をSl信号として出力し、コ
ンピューターPR5は5CLK信号に同期してSl信号
としてのレンズのデータを人力する。
At the same time, the buffered signal of the signal DLC from the lens (the part surrounded by the one-dot chain line) is output as the Sl signal, and the computer PR5 manually inputs the lens data as the Sl signal in synchronization with the 5CLK signal.

SDRは焦点検出用のラインセンサ装置SNSの駆動回
路であり、コンピューターPR3からの信号C3DRが
H゛のとき遷択されて、SO。
SDR is a drive circuit for the line sensor device SNS for focus detection, and is selected when the signal C3DR from the computer PR3 is H', and is switched to SO.

Sr、SC’LK信号によりコンピューターPR3にて
制御される。
It is controlled by computer PR3 by Sr and SC'LK signals.

SNSは例えば一対のCCDラインセンサCCD、、C
CD2を含むセンサ装置である。
The SNS is, for example, a pair of CCD line sensors CCD, C
This is a sensor device including CD2.

φ1.φ2はコンピューターPR3からのクロックCK
を受け、駆動回路SDRにて生成されるCCD駆動用の
クロック、SHはラインセンサCCD + 、 CCD
2に蓄積された電荷を転送部に転送させる信号、CLR
はラインセンサCCD + 、  CCD2の蓄積電荷
をクリアさせるクリア信号でありこれらの各信号はコン
ピューターPR3にて制御される駆動回路SDRにて形
成される。
φ1. φ2 is clock CK from computer PR3
CCD drive clock generated by the drive circuit SDR, SH is line sensor CCD +, CCD
CLR, a signal that transfers the charges accumulated in 2 to the transfer section
is a clear signal for clearing the accumulated charges in the line sensors CCD + and CCD2, and each of these signals is formed by a drive circuit SDR controlled by a computer PR3.

センサ装置SNSの出力信号O3はクロックφ1.φ2
に同期して時系列で出力されるセンサCCD 1. C
CD2の各絵素に蓄積された像信号であり、CCD、、
CCD2に各ビットごとに出力され回路SDR内の増幅
回路て増幅された後、AO3信号としてコンピューター
PR3に人力される。コンピューターPR3はAO3信
号をアナログ入力端子から入力し、CK信号に同期して
、内部のA/D変換機能でA/D変換後RAMの所定の
アドレスに順次格納する。
The output signal O3 of the sensor device SNS is clock φ1. φ2
Sensor CCD that outputs in time series in synchronization with 1. C
It is an image signal accumulated in each picture element of CD2, and CCD,...
Each bit is output to the CCD 2, amplified by the amplifier circuit in the circuit SDR, and then manually inputted to the computer PR3 as an AO3 signal. The computer PR3 inputs the AO3 signal from the analog input terminal, and in synchronization with the CK signal, performs A/D conversion using its internal A/D conversion function, and sequentially stores it at a predetermined address in the RAM.

同じ<SNSの出力信号であるAGC侶号信号装置SN
S内の蓄積制御用センサの出力であり、回路SDRに人
力されて、センサCCD、。
AGC signal device SN which is the same <SNS output signal
This is the output of the storage control sensor in the S, and is manually input to the circuit SDR to the sensor CCD.

C0D2の蓄積時間制御に用いられる。    SPC
は撮影レンズを介して光を受光する測光センサてあり、
その出力5spcはコンピューターPR3のアナログ入
力端子に人力され、A/D変換後、自動露出制御(AE
)に用いられる。
Used for C0D2 accumulation time control. SPC
has a photometric sensor that receives light through the photographic lens.
The output 5spc is input manually to the analog input terminal of computer PR3, and after A/D conversion, automatic exposure control (AE
) used for

DDRはスイッチ・センスおよび表示用回路であり、コ
ンピューターPR3からの信号CDDRかH°のとき選
択されて、So、SI、5CLKの各信号によりコンピ
ューターPR3との通信制御かなされる。即ち、コンピ
ューターPR3から送られてくるデータに基づいてカメ
ラの表示を切り替えたり、レリーズボタンに連動するス
イッチsw、、sw2をはじめ各種操作部材に連動して
オン・オフするスイッチ群SWSの・スイッチ状態をコ
ンピューターPR3に連絡する。
DDR is a switch sense and display circuit, which is selected when the signal CDDR from the computer PR3 is H°, and communication with the computer PR3 is controlled by the So, SI, and 5CLK signals. That is, the switch status of the switch group SWS that switches the camera display based on data sent from the computer PR3, and that is turned on and off in conjunction with various operating members including switches sw, , and sw2 that are linked to the release button. to computer PR3.

MDRI、MDR2はフィルム給送及びシャッターチャ
ージ用モーターMTRI、MTR2の駆動回路で、信号
MIF、MIR,M2F。
MDRI and MDR2 are drive circuits for film feeding and shutter charging motors MTRI and MTR2, and signals MIF, MIR, and M2F.

M2Rでモーターの正転・逆転を実行する。Execute forward/reverse rotation of the motor with M2R.

MGI、MG2は各々シャッター先幕・後幕走行開始用
マグネットで、信号SMGI、5MG2、増幅トランジ
スタTRI、TR2で通電され、コンピューターPR3
によりシャッター制御が行われる。
MGI and MG2 are magnets for starting the movement of the shutter front curtain and rear curtain, respectively, and are energized by the signals SMGI and 5MG2, and the amplification transistors TRI and TR2, and are connected to the computer PR3.
Shutter control is performed by.

尚、スイッチ・センスおよび表示用回路DDR,モータ
ー駆動回路MDR1,MDR2゜シャッター制御は、本
発明と直接間わりがないので、詳しい説明は省略する。
Note that the switch sense and display circuit DDR, the motor drive circuits MDR1 and MDR2, and the shutter control are not directly related to the present invention, so detailed explanations thereof will be omitted.

同期信号LCKに同期してレンズ内制御回路LPR3に
人力される信号DCLは、カメラからレンズに対する命
令のデータであり、命令に対するレンズの動作が予め決
められている。
The signal DCL that is manually input to the in-lens control circuit LPR3 in synchronization with the synchronization signal LCK is data of a command from the camera to the lens, and the operation of the lens in response to the command is determined in advance.

制御回路LPRSは、所定の手続きに従って入力命令を
解析し、焦点調節や絞り制御の動作や、出力DLCから
のレンズの各種パラメータ(開放Fナンバー、焦点距離
、デフォーカス量対繰り出し量の係数等)の出力を行う
The control circuit LPRS analyzes the input command according to a predetermined procedure, and performs focus adjustment and aperture control operations, as well as various lens parameters from the output DLC (open F number, focal length, coefficient of defocus amount vs. extension amount, etc.) Outputs.

実施例では、全体繰り出しの単レンズの例を示しており
、カメラから焦点調節の命令が送られた場合には、同時
に送られてくる駆動量・方向に従って、焦点調節用モー
ターLMTRに対して信号LMF、LMRを送出し、モ
ーターLMT Rを駆動して、光学系を光軸方向移動さ
せて焦点調節を行う。光学系の移動量はエンコーダー回
路ENCの信号5ENCでモニターして、所定の移動が
完了した時点で、信号LMF、LMRをL′にしてモー
ターLMTRを制動する。
The example shows an example of a single lens that is fully extended, and when a focus adjustment command is sent from the camera, a signal is sent to the focus adjustment motor LMTR according to the drive amount and direction sent at the same time. The LMF and LMR are sent out and the motor LMT R is driven to move the optical system in the optical axis direction and perform focus adjustment. The amount of movement of the optical system is monitored by the signal 5ENC of the encoder circuit ENC, and when the predetermined movement is completed, the signals LMF and LMR are set to L' to brake the motor LMTR.

カメラから絞り制御の命令か送られた場合には、同時に
送られてくる絞り段数に従って、絞り機構に連動する公
知のステッピング・モーターDMTRを駆動する。尚、
ステッピング・モーターはオープン制御が可能なため、
動作をモニターするためのエンコーダーを必要としない
When an aperture control command is sent from the camera, a known stepping motor DMTR linked to the aperture mechanism is driven in accordance with the number of aperture stages sent at the same time. still,
Stepping motors can be controlled open, so
Does not require an encoder to monitor operation.

尚、上記回路LPR3にはレンズの焦点距11!tf情
報(ズームレンズの場合にはズーム状態に応じた焦点距
離情報)等の上記バロメーターを所定のアドレスに格納
しているメモリーか設けられている。又、該回路LPR
3には上記モニター信号5ENCとしてのパルスをカウ
ントするカウンターが設けられ、更に後述のレンズ駆動
に際しデフォーカス量に応じた値に対応するパルス数を
カウント、そのカウント値がレンズ駆動前のカウント値
から上記デフォーカス量に応じた信号だけ上記パルス数
のカウントにて変化した時、即ちレンズ駆動により変化
したカウント値がデフォーカス量に応じた値と一致した
時に信号LMF、LMRをLとなしモーターLMTRを
停止させる制御回路を有している。又該回路は上記の如
くモーター制御が上記カウント値の一致にて停止した時
にレンズ停止信号を形成し、又レンズ駆動によるカウン
ト値の変化分がデフォーカス量に応じた値となる以前に
レンズか駆動を停止した状態となったことを検知して、
この際にレンズ駆動不能信号を形成する信号形成回路が
更に設けられている。上記レンズ駆動不能信号は例えば
上記カウント値の変化分がデフォーカス量に応じた値と
なっていない状態でモニター信号5ENCが所定時間以
上形成されていないか否かを判定し、上記モニター信号
が斯様な条件下で所定時間以上形成されていない時にレ
ンズ駆動不能信号を形成する。
Note that the circuit LPR3 has a lens focal length of 11! A memory is provided in which the above-mentioned barometers such as tf information (in the case of a zoom lens, focal length information according to the zoom state) are stored at predetermined addresses. Moreover, the circuit LPR
3 is provided with a counter that counts the pulses as the monitor signal 5ENC, and further counts the number of pulses corresponding to the defocus amount when driving the lens, which will be described later, and the count value is calculated from the count value before driving the lens. When the signal corresponding to the defocus amount changes by counting the number of pulses, that is, when the count value changed by lens driving matches the value corresponding to the defocus amount, the signals LMF and LMR are set to L and the motor LMTR It has a control circuit that stops the operation. Furthermore, as described above, this circuit generates a lens stop signal when the motor control stops when the count values match, and also generates a lens stop signal before the change in the count value due to lens driving reaches a value corresponding to the defocus amount. Detects that the drive has stopped,
At this time, a signal forming circuit for forming a lens drive disabling signal is further provided. The lens drive failure signal is generated by determining whether or not the monitor signal 5ENC has not been generated for a predetermined period of time or longer in a state where the change in the count value does not correspond to the defocus amount. A lens drive disabling signal is generated when the lens is not generated for a predetermined period of time under various conditions.

又、上記表示器は合焦及び焦点検出不能表示用又はNG
表示用LDE、更には後述のDEP+ 。
In addition, the above display is for displaying focus and focus detection failure or NG.
LDE for display, and furthermore DEP+ which will be described later.

DEP2表示を行うクセグメント等の表示素子を有して
いるものとする。
It is assumed that the device has a display element such as a segment that performs DEP2 display.

以上のような構成によるカメラの動作について第2図を
用いて説明する。
The operation of the camera configured as above will be explained using FIG. 2.

不図示の電源スィッチをオンとするとマイクロ・コンピ
ューターPR5への給電がなされ、コンピューターPR
5は格納プログラムを実行する。
When the power switch (not shown) is turned on, power is supplied to the microcomputer PR5, and the computer PR
5 executes the stored program.

第2図(a)は上記プログラムの全体ブローを示すフロ
ーチャートである。格納プログラムの実行が開始される
とステップ1から順次各ステップが実行される。
FIG. 2(a) is a flowchart showing the entire flow of the above program. When execution of the stored program is started, each step is executed sequentially from step 1.

ステップ1:デイブスモードか否か判定される。Step 1: It is determined whether it is Dave's mode or not.

該判定はコンピューターPRSから信号CDDRをHと
なし、回路DDRを指定し、人力スイッチ群SWSに設
けられているモード選択スイッチの設定状態をSI傷信
号してコンピューターPR5に人力し、モード選択スイ
ッチの設定状態を判別することにて行われる。
This judgment is made by setting the signal CDDR to H from the computer PRS, designating the circuit DDR, sending an SI signal indicating the setting state of the mode selection switch provided in the manual switch group SWS, and inputting the setting state of the mode selection switch provided in the manual switch group SWS to the computer PR5. This is done by determining the setting state.

モードが通常モードに設定されている時にはステップ2
へ移行する。
If the mode is set to normal mode, step 2
Move to.

ステップ2:シャッターボタンの第1段隔操作にてオン
となるスイッチSW1の状態検知を行う。
Step 2: The state of the switch SW1, which is turned on by operating the shutter button at the first step, is detected.

該スイッチS W +の状態判別動作はスイッチ群SW
Sと同様にして行われる。
The state determination operation of the switch SW+ is performed by the switch group SW
This is done in the same manner as S.

スイッチSW1がオンの時にはステップ3.4を実行後
、再度ステップ1に戻り、又スイッチS W +かオフ
の時にはステップ5にて全フラッグを0となし、ステッ
プ6にてレンズ停止命令を出した後再度ステップ1へ移
行する。
When switch SW1 is on, step 3.4 is executed and then the process returns to step 1. When switch SW1 is on, all flags are set to 0 in step 5, and a lens stop command is issued in step 6. After that, go to step 1 again.

従って、モードが通常モードに設定され、かつシャッタ
ーボタンが操作されていない状態ではステップ1→2→
5→6を繰り返すこととなる。
Therefore, if the mode is set to normal mode and the shutter button is not operated, steps 1 → 2 →
5 → 6 will be repeated.

今、シャッターボタンが操作されていない状態でモード
がデイプスモードに設定されたとする。
Suppose now that the mode is set to depth mode with the shutter button not being operated.

この場合には上記ステップ1→2→5→6の繰り返し中
のステップ1にてモードがデイブスへ移行したことが検
知されるのでステップは7へ8行する。
In this case, during the repetition of steps 1→2→5→6, it is detected in step 1 that the mode has shifted to Dave's, so the process goes to step 7 for eight lines.

ステップ7:レリーズ動作を禁止する。Step 7: Prohibit release operation.

ステップ8:フラッグDEP、を除く全フラッグを0に
セットしフラッグDEPIを1にセットする。
Step 8: Set all flags except flag DEP to 0 and set flag DEPI to 1.

ステップ9;スイッチS W 1の状態を判定し、スイ
ッチSW、がオフの時にはステップ10以後へ、又スイ
ッチS W lがオンの時にはステップ17へ移行する
Step 9: Determine the state of the switch SW1, and if the switch SW1 is off, proceed to step 10 and subsequent steps, and if the switch SW1 is on, proceed to step 17.

今スイッチSW1がオフであったとする。Assume that switch SW1 is now off.

この場合にはステップ10にてレンズ停止指令を出し、
ステップ12にてフラッグDEPDNの設定状態を判定
する。
In this case, a lens stop command is issued in step 10,
In step 12, the setting state of the flag DEPDN is determined.

ステップ8にてフラッグDEP、以外のフラッグは0に
設定されているため、ステップ13へ移行し、フラッグ
DEPJF、DEPOKを0にセットしステップ14に
て再度設定モートか判定され、デイブスモードのまま保
持されていれはステップ15へ又デイプスモードが解除
されていれはステップ16へ移行する。ステップ15で
は内部タイマーの経過時間が所定値を越えたか否かの判
定がなされる。尚このタイマーはデイブスモードの設定
がなされてから計時動作を開始するものとする。
Since the flags other than the flag DEP are set to 0 in step 8, the process moves to step 13, and the flags DEPJF and DEPOK are set to 0. In step 14, it is determined whether the setting mode is set again, and the mode remains in Dave's mode. If the depth mode is held, the process moves to step 15, and if the depth mode is canceled, the process moves to step 16. In step 15, it is determined whether the elapsed time of the internal timer exceeds a predetermined value. It is assumed that this timer starts its timekeeping operation after the Dave's mode is set.

タイマーの計時が所定時間を越えていない時には再度ス
テップ9へ移行し、又所定時間を越えた時にはステップ
16へ移行する。
If the time measured by the timer has not exceeded the predetermined time, the process goes to step 9 again, and if the time has exceeded the predetermined time, the process goes to step 16.

上記ステップ9〜16までにて一度デイプスモートが設
定されてから所定時間か経過しない限り、ステップ9〜
15が繰り返えし行われることとなり、この所定時間内
にスイッチSW1かオンとなるとステップは17へ移行
する。又、上記所定時間以内にスイッチSW1をオンと
しない場合又は、デイブスモートを解除した場合にはス
テップ16へ移行し全フラッグを0にセットした後再度
ステップは1へ戻る。
Unless a predetermined period of time has elapsed after the depth mode is set in steps 9 to 16 above, steps 9 to 16
Step 15 is repeated, and if switch SW1 is turned on within this predetermined time, the step moves to step 17. If the switch SW1 is not turned on within the predetermined time, or if Dave Smote is canceled, the process proceeds to step 16, where all flags are set to 0, and the process returns to step 1 again.

従って、一度デイブスモードを設定しても所定時間内に
シャッターボタンを操作しない場合にはデイブスモード
が解除され通常モートへ復帰することとなる。
Therefore, even if the Dave's mode is set once, if the shutter button is not operated within a predetermined time, the Dave's mode is canceled and the mode returns to the normal mode.

今、デイブスモードが設定されてから所定時間以内にシ
ャッターボタンの第1段隔操作がなされたものとする。
Now, it is assumed that the shutter button is operated at the first step within a predetermined time after the Dave's mode is set.

、この場合には上述の如くステップは17へ移行し測光
サブルーチンが実行される。
In this case, as described above, the process moves to step 17 and the photometry subroutine is executed.

該測光サブルーチンては撮影レンズを介して光を測光す
る測光センサSPCの出力5spcをコンピューターP
R5に入力し、内部のA/D変換機能にてデジタル化し
、該デジタル値をメモリーに記憶する。
In this photometry subroutine, the output 5spc of the photometry sensor SPC that measures light through the photographic lens is sent to the computer P.
The signal is input to R5, digitized by the internal A/D conversion function, and the digital value is stored in memory.

該測光サブルーチンが行われた後ステップは18以後へ
移行する。
After the photometry subroutine is performed, the process moves to steps 18 and subsequent steps.

ステップ18.上記タイマーをリセットし、初期状態か
ら計時動作を再開する。
Step 18. The above timer is reset and the timing operation is restarted from the initial state.

ステップ19:フラッグDEPJFのセット状態を検知
する。
Step 19: Detect the set state of flag DEPJF.

今、ステップ8にてフラッグDEP、以外は0にセット
されているためステップ20へ移行する。
Now, in step 8, flags other than the flag DEP are set to 0, so the process moves to step 20.

該ステップ20のAF制御サブルーチンは第2図(b)
のステップ100以後に記載されている。
The AF control subroutine of step 20 is shown in FIG. 2(b).
It is described after step 100.

以下該AF制御サブルーチンについてデイジスモード下
の初回の動作について説明する。
The first operation of the AF control subroutine in the digis mode will be described below.

ステップ200:フラッグPRMVのセット状態を検知
する。該フラッグも0にセットされているため、ステッ
プ201へ移行する。
Step 200: Detect the set state of flag PRMV. Since this flag is also set to 0, the process moves to step 201.

ステップ201:フラッグDEPMVのセット状態を検
知する。このフラッグもOにセットされており、ステッ
プは204へ移行し、デイブスモードか否かの判別がな
される。今上記の如くデイブスモードであるため、ステ
ップは205へ移行する。
Step 201: Detect the set state of the flag DEPMV. This flag is also set to O, and the step moves to 204, where it is determined whether the mode is Dave's mode or not. Since the current mode is Dave's mode as described above, the step moves to 205.

ステップ205・フラッグDEP、のセット状態を検知
する。該フラッグDEP、はステップ8にて1にセット
されているため、ステップは206へ移行する。
Step 205: Detect the set state of the flag DEP. Since the flag DEP was set to 1 in step 8, the step moves to 206.

ステップ206は焦点検出サブルーチンであり、該サブ
ルーチンは第2図(Q)に示したステップ300以下に
記載されている。次に該サブルーチンにつき述べる。
Step 206 is a focus detection subroutine, which is described after step 300 shown in FIG. 2(Q). Next, this subroutine will be described.

ステップ300:像信号人力サブルーチンを実行する。Step 300: Execute the image signal manual subroutine.

該像信号入力サブルーチンではまずコンピューターPR
5にてC3DRをHとなし駆動回路SDRを選択し、S
O倍信を該駆動回路SDRに伝える。この時のSO倍信
は蓄積開始命令であり、この命令に応して駆動回路SD
RはCLR信号をラインセンサ装置SNSに伝えCCD
ラインセンサの像蓄積信号をクリアし、その後像に対す
る蓄積動作を行わせる。ラインセンサ装置SNSのCC
DラインセンサCCD + 、  CCD2には撮影レ
ンズを介して入射する像光束がそれぞれ入射しており各
センサCCD+ 、CCD2上の像位置が焦点状態に応
じて決定される。
In the image signal input subroutine, first the computer PR
In step 5, set C3DR to H, select the drive circuit SDR, and set S
The O double signal is transmitted to the drive circuit SDR. The SO double signal at this time is an accumulation start command, and in response to this command, the drive circuit SD
R transmits the CLR signal to the line sensor device SNS and the CCD
The image accumulation signal of the line sensor is cleared, and then an accumulation operation is performed on the image. CC of line sensor device SNS
Image light beams incident through the photographing lenses are incident on the D line sensors CCD + and CCD2, respectively, and the image position on each sensor CCD+ and CCD2 is determined according to the focal state.

詳述すると、被写体に対して合焦状態ては各センサCC
DI とCCD2上の同一位置に同一像パターンが投射
され、前ビン又は後ビン状態てはCCD + とCCD
2上の像パターンがそのピントずれ方向及びずれ量に応
して対称的にずれた位置に投射される。従って、上記C
CD、とCCD2上の像パターン間の位置ずれ量及び方
向を検知することにてピントずれ方向及びずれ量が検知
される。
To explain in detail, each sensor CC determines the in-focus state for the subject.
The same image pattern is projected at the same position on DI and CCD2, and in the front bin or rear bin state, CCD + and CCD
The image pattern on 2 is projected at symmetrically shifted positions depending on the direction and amount of focus shift. Therefore, the above C
By detecting the amount and direction of positional deviation between the image patterns on the CD and the CCD 2, the direction and amount of out-of-focus are detected.

上記の如くして焦点状態に応じた位置に投射された像パ
ターンを上記像信号クリア後各CCD + 、 CCD
2にて所定時間蓄積し、その後、駆動回路SDRから信
号SH及びクロックφ1.φ2かセンサ装置SNSに供
給される。
After clearing the image signal, the image pattern projected to the position according to the focus state as described above is transferred to each CCD +, CCD.
2 for a predetermined period of time, and then the signal SH and clock φ1. φ2 is supplied to the sensor device SNS.

尚、上記像パターンの蓄積時間はSNS内の蓄積制御用
センサの出力AGCに基づいて決定されるものである。
Note that the accumulation time of the image pattern is determined based on the output AGC of the accumulation control sensor within the SNS.

上記の如くしてセンサ装置SNSへ信号SH及びクロッ
クφ1.φ2が供給されると、センサ装置SNS、出力
端から各センサCCD、。
As described above, the signal SH and the clock φ1. When φ2 is supplied, each sensor CCD from the sensor device SNS and the output end.

CCD2の各絵素に蓄積された像信号か出力O3として
順次時系列にて送出され、駆動回路SDR内の増巾回路
で増巾され信号AO3としてコンピューターPR3に順
次人力する。コンピューターPR3は上記信号AO3を
内部のA/D変換機能−て順次デジタル値に変換し所定
のRAMに格納する。
The image signals accumulated in each picture element of the CCD 2 are sequentially sent out in time series as an output O3, amplified by an amplification circuit in the drive circuit SDR, and sequentially input to the computer PR3 as a signal AO3. The computer PR3 sequentially converts the signal AO3 into digital values using an internal A/D conversion function and stores them in a predetermined RAM.

以上の動作にてセンサCCI)+ 、CCD2 上の像
パターンに応した各センサごとの像信号がデジタル値と
してRAMに記憶され像信号人力サブルーチンを終了し
ステップ301へ移行する。
With the above operations, the image signal for each sensor corresponding to the image pattern on the sensor CCI)+ and CCD2 is stored in the RAM as a digital value, and the image signal manual subroutine is ended and the process moves to step 301.

ステップ301.デフォーカス量計算サブルーチンを実
行する。このサブルーチンでは上記像信号人力サブルー
チンにて求められたセンサCCD+ とCCD2上の像
パターンに応じたデジタル値を基に合焦まてのずれ量並
びにずれ方向をデフォーカス1DEFとして算出する。
Step 301. Executes the defocus amount calculation subroutine. In this subroutine, the amount and direction of deviation in focus are calculated as defocus 1DEF based on the digital values corresponding to the image patterns on the sensor CCD+ and CCD2 obtained in the image signal manual subroutine.

該デフォーカス量の具体的な算出方法は本願と直接関係
がないので、その詳細な説明は省略するが、上記の如く
センサCCDIとCCD、の像パターンの一致度が焦点
状態によって決定されるので、該パターンに対応した上
記各センサのデジタル値を比較処理し、そのデーターの
一致度を求め合焦状態からのずれ量及び方向、即ちデフ
ォーカス量DEFを求めるものである。
Since the specific method of calculating the defocus amount is not directly related to the present application, a detailed explanation thereof will be omitted, but as mentioned above, the degree of coincidence between the image patterns of the sensors CCDI and CCD is determined by the focus state. The digital values of the respective sensors corresponding to the pattern are compared and processed, and the degree of coincidence of the data is determined to determine the amount and direction of deviation from the in-focus state, that is, the defocus amount DEF.

又、このサブルーチンではセンサCCD、。Also, in this subroutine, the sensor CCD.

CCD2の像パターンに応じたデジタル値からコントラ
ストCNTをも求めており、このコントラスト検知も公
知である。その詳細な説明は省略する。
The contrast CNT is also determined from the digital value corresponding to the image pattern of the CCD 2, and this contrast detection is also known. A detailed explanation thereof will be omitted.

ステップ302:フラッグJF及びAFNGに0セツト
する。
Step 302: Set flags JF and AFNG to 0.

ステップ303:コントラストCNTと一定値LCLV
Cを比較し、CNT<LCLVCの時、即ち、低コント
ラストの時にはステップ304にてフラッグAFNGに
1をセットし、焦点検出サブルーチンを終了してステッ
プ207へ移行する。
Step 303: Contrast CNT and constant value LCLV
When CNT<LCLVC, that is, when the contrast is low, the flag AFNG is set to 1 in step 304, the focus detection subroutine is ended, and the process proceeds to step 207.

又、CNT>LCLVCの時、即ちコントラストが十分
にあった時にはステップ305へ移行し、算出デフォー
カス量DEFが合焦と見做せる一定デフォーカス量JF
FLD以内か否かの判定かなされ、DEF<JFFLD
の時にはステップ306にてフラッグJFを1にセット
し焦点検出サブルーチンを終了してステップ207へ移
行する。又、上記の判定にてDEF>JFFLDの時に
はフラッグJFを1にセットすることなしに焦点検出サ
ブルーチンを終了してステップ207へ移行する。
Further, when CNT>LCLVC, that is, when the contrast is sufficient, the process moves to step 305, and the calculated defocus amount DEF is a constant defocus amount JF that can be regarded as in-focus.
It is determined whether or not it is within FLD, and DEF<JFFLD
In this case, the flag JF is set to 1 in step 306, the focus detection subroutine is ended, and the process proceeds to step 207. Further, when the above judgment shows that DEF>JFFLD, the focus detection subroutine is ended without setting the flag JF to 1, and the process proceeds to step 207.

以上の焦点検出サブルーチンではコントラストが低い時
にはフラッグAFNGを1にセットし、又コントラスト
が十分な時でデフォーカス量が合焦と見做せる時にはフ
ラッグJFを1にセットし、又デフォーカス量が合焦と
見做せる範囲よりも大の時にはフラッグJFを1にセッ
トすることなしにリターンする。
In the above focus detection subroutine, the flag AFNG is set to 1 when the contrast is low, and the flag JF is set to 1 when the contrast is sufficient and the amount of defocus is considered to be in focus. If the value is larger than the range that can be considered as a fire, return without setting the flag JF to 1.

上記焦点検出サブルーチンにて焦点状態の検出及び判定
かなされた後ステップ207にて表示すブルーチンが実
行される。腰裏示すブルーチンではフラッグAFNGが
1にセットされている時にはコンピューターPR3にて
CDDR信号をHとなし、回路DDRを指定し、又SO
倍信としての表示信号を回路DDRに伝え、表示器DS
Pに設けられた焦点検出不能表示用LEDを点灯させる
。又フラッグJFが1にセットされている時には同様に
して合焦表示用LEDを点灯させる。
After the focus state is detected and determined in the focus detection subroutine, a flow routine to be displayed in step 207 is executed. In the blue routine shown below, when the flag AFNG is set to 1, the computer PR3 sets the CDDR signal to H, designates the circuit DDR, and sets the SO
A display signal as a double signal is transmitted to the circuit DDR, and the display signal DS
The LED provided at P for indicating that focus cannot be detected is turned on. Further, when the flag JF is set to 1, the focus display LED is lit in the same manner.

表示すブルーチンにて焦点状態の表示を行った後ステッ
プは208へ移行する。
After the focus state is displayed in the display blue routine, the step moves to 208.

ステップ208・フラッグJFのセット状態を判別する
Step 208: Determine whether flag JF is set.

フラッグJFが1にセットされている時にはステップ2
09にてフラッグDEP、のセット状態が判定される。
Step 2 when flag JF is set to 1
At 09, the set state of the flag DEP is determined.

今DEP、は1にセットされているため、ステップ21
0を行いフラッグDEPJFを1にセットした後にリタ
ーンし、再度ステップ9へ移行する。
Now DEP, is set to 1, so step 21
0 and sets the flag DEPJF to 1, then returns and moves to step 9 again.

又、フラッグJFがOの時にはステップ211にてフラ
ッグAFNGのセット状態が判定されAFNGが1にセ
ットされている時にはリターンし再度ステップ9へ移行
する。
Further, when the flag JF is O, the set state of the flag AFNG is determined in step 211, and when AFNG is set to 1, the process returns to step 9 again.

又、フラッグJF及びAFNGが共にOの時にはステッ
プ212以後のステップが実行される。
Further, when both flags JF and AFNG are O, steps after step 212 are executed.

ステップ212.レンズ駆動量計算サブルーチンを(F
P計算サブルーチンと称す。)実行する。該サブルーチ
ンは第2図(d)に示されるステップ400以後に記載
される。
Step 212. Lens drive amount calculation subroutine (F
This is called the P calculation subroutine. )Execute. This subroutine is described after step 400 shown in FIG. 2(d).

ステップ400:レンズから「デフォーカス量対くり出
し量の係数S」を入力する。この人力動作はコンピュー
ターPR3にて信号CLCMをHとなし回路LCMを指
定し、該回路LCMを介してレンズ内の回路LPRSを
指定する。
Step 400: Input the "coefficient S of defocus amount vs. projection amount" from the lens. This manual operation sets the signal CLCM to H in the computer PR3, designates the circuit LCM, and designates the circuit LPRS in the lens via the circuit LCM.

又、信号SDを上記回路LCMを介してDCLとして回
路LPR3に伝える。この際の信号SOは係数Sを読み
出す命令であり、回路LPR5は該信号SOにより内部
のRAMに格納されていた上記係数Sを信号DLCとし
て回路LCMに伝え、該回路LCMは上記信号DLCを
sr信号としてコンピューターPR3に人力し、係数S
がコンピューターに人力される。
Further, the signal SD is transmitted to the circuit LPR3 as DCL via the circuit LCM. The signal SO at this time is a command to read the coefficient S, and the circuit LPR5 transmits the coefficient S stored in the internal RAM as a signal DLC to the circuit LCM by the signal SO, and the circuit LCM reads the signal DLC from sr. Human input to computer PR3 as a signal, coefficient S
is human-powered by a computer.

ステップ401:レンズから「エンコーダー1パルス当
たりのくり出し量PTMJを人力する。該PTHの人力
動作は上記係数Sと同様にして行われる。
Step 401: Manually determine the amount of output PTMJ per encoder pulse from the lens. The manual operation of the PTH is performed in the same manner as the coefficient S above.

ステップ402:上記各読み出し動作にて入力された係
数S及びPTHと算出デフォーカス量DEFとの演算D
 E F * S/F P Hを行う。
Step 402: Calculation D of the coefficient S and PTH input in each of the above reading operations and the calculated defocus amount DEF
Perform E F * S/F P H.

上記の如<FPHはエンコーダー1パルス当たりのくり
出し量であり、該エンコーダーENCはレンズLNSの
移動量を検知して、単位あたりの移動量ごとに1パルス
を出力する、例えばパルス板にて構成されている。
As mentioned above, FPH is the amount of output per encoder pulse, and the encoder ENC is composed of, for example, a pulse plate that detects the amount of movement of the lens LNS and outputs one pulse for each unit of movement. ing.

又係数Sはデフォーカス量対くり出し量の係数であり、
DEF>ksはデフォーカス量に応じたくり出し量、即
ちデフォーカスに応したレンズの移動量を示す。従って
、DEF)kS/FPHはデフォーカス量に応じた上記
エンコーダーENCからのパルス数を示すこととなり、
このパルス数FP分だけレンズが移動することにて算出
デフォーカス分のレンズが駆動されることとなる。
Further, the coefficient S is a coefficient of the amount of defocus versus the amount of projection,
DEF>ks indicates the amount of extension according to the amount of defocus, that is, the amount of movement of the lens according to the amount of defocus. Therefore, DEF)kS/FPH indicates the number of pulses from the encoder ENC according to the defocus amount,
By moving the lens by the number of pulses FP, the lens is driven by the calculated defocus amount.

上記FP計算サブルーチンにてデフォーカス量に応じた
パルス数FPを求めた後ステップは213へ移行する。
After determining the number of pulses FP according to the defocus amount in the FP calculation subroutine, the process moves to step 213.

該ステップ213にてレンズ駆動サブルーチンが実行さ
れる。該サブルーチンではコンピューターPR3にてC
LCM信号をHとなし、上記の如くして回路LPR5を
指定すると共に上記パルス数FPを信号Soとして回路
LPR3に伝える。回路LPR3では上記FPに応じて
信号LMF又はLMRをHとなし、モーターLMTRを
駆動する。
In step 213, a lens drive subroutine is executed. In this subroutine, C
The LCM signal is set to H, the circuit LPR5 is designated as described above, and the pulse number FP is transmitted to the circuit LPR3 as a signal So. In the circuit LPR3, the signal LMF or LMR is set to H according to the above-mentioned FP, and the motor LMTR is driven.

尚、上記FPはデフォーカス量に応じて決定されており
、その合焦まてのずれ方向、即ちレンズの駆動方向情報
も含んでおり、この駆動方向情報に応じて信号LMF又
はLMRがHにセットされレンズが合焦方向へ駆動され
る。
Note that the above FP is determined according to the amount of defocus, and also includes information on the direction of deviation until focusing, that is, the driving direction of the lens, and the signal LMF or LMR changes to H according to this driving direction information. The lens is set and driven in the focusing direction.

該ステップ213にてレンズの駆動を開始した後ステッ
プは214へ8行しフラッグPRMVを1にセットした
後AFサブルーチンを終了しリターンしステップ9へ戻
る。
After starting the driving of the lens in step 213, the step goes to 214 for eight lines, sets the flag PRMV to 1, ends the AF subroutine, and returns to step 9.

今、ディジスモード時の初回のスイッチSW1のオン動
作時における上記初回のAF制御サブルーチンにて上記
合焦判定がなされると、上記の如くして合焦表示がなさ
れた後にステップ9へ戻ることとなる。この状態でスイ
ッチSW、かオンに保持されていれば、再度ステップ1
7に測光サブルーチンが行われ、ステップ18にてタイ
マーのリセットステップ19にてフラッグDEPJFの
セット状態の判定がなされる。
Now, when the above-mentioned focus judgment is made in the above-mentioned first AF control subroutine when the switch SW1 is turned on for the first time in the Digis mode, the process returns to step 9 after the focus is displayed as described above. . In this state, if the switch SW is kept on, step 1 is performed again.
In step 7, a photometry subroutine is performed, and in step 18, the timer is reset, and in step 19, it is determined whether the flag DEPJF is set.

この時フラッグDEPJFは1にセットされているため
、ステップは21へ移行しフラッグDEPOKのセット
状態か判別される。該フラッグDEPOKは初期状態で
はOにセットされているためステップは22以後へ進む
At this time, the flag DEPJF is set to 1, so the step moves to 21 and it is determined whether the flag DEPOK is set. Since the flag DEPOK is set to O in the initial state, the process proceeds to step 22 and subsequent steps.

従って、デイプスモードの初回のスイッチS W 1の
オン動作におけるAF制御サブルーチンにて、いきなり
合焦判定がなされた時には合焦表示がなされた後ステッ
プ22へ移行する。
Therefore, when a focus is suddenly determined in the AF control subroutine during the first turning-on operation of the switch SW1 in the depth mode, the focus is displayed and then the process moves to step 22.

又、デイブスモードの初回のスイッチSW1のオンにて
焦点検出不能と判定がなされた時にはステップ9→17
→18→19→20がスイッチSWlのオンの限り繰り
返し実行され、焦点検出動作が繰り返される。
Also, if it is determined that focus cannot be detected when switch SW1 is turned on for the first time in Dave's mode, step 9→17
→18 →19 →20 are repeatedly executed as long as the switch SWl is on, and the focus detection operation is repeated.

又、デイプスモードの初回のスイッチSW1のオン時の
AF制御サブルーチンにて合焦までのデフォーカス量に
基づくレンズ駆動指示がなされた場合にも初回のAF制
御サブルーチンが実行された後スイッチSW1がオンに
保持されていれは再度ステップ9→17→18→19→
20が繰り返される。上記ステップの繰り返し中でのス
テップ20におけるAF制御サブルーチンてはステップ
200のフラッグP RMV検知にて1が検知されるの
で、ステップ202が実行されレンズが停止したか否か
の判定がなされる。
Further, even if a lens drive instruction is given based on the amount of defocus until focusing in the AF control subroutine when the switch SW1 is turned on for the first time in the depth mode, the switch SW1 is turned on after the first AF control subroutine is executed. If it is held, repeat steps 9 → 17 → 18 → 19 →
20 is repeated. In the AF control subroutine in step 20 during the repetition of the above steps, since 1 is detected in the flag PRMV detection in step 200, step 202 is executed and it is determined whether or not the lens has stopped.

このレンズ停止の判定動作について述べる。The operation for determining whether the lens has stopped will be described.

本実施例ではレンズ駆動に際し、上記の如くレンズの移
動量を表わすパルス数FPが回路LPR3に入力され、
かつレンズLMSの移動に応じてエンコーダーENCか
らパルスが送出され、このエンコーダーからのパルス数
が回路LPRS内のカウンターにてカウントされ、上記
人力パルス数FPと一致した時に回路LPR3は信号L
MF、LMRをLとなしモーターLHTRを停止させる
種制御している。
In this embodiment, when driving the lens, the number of pulses FP representing the amount of movement of the lens is input to the circuit LPR3 as described above.
In addition, pulses are sent from the encoder ENC in accordance with the movement of the lens LMS, and the number of pulses from the encoder is counted by a counter in the circuit LPRS, and when it matches the number of manual pulses FP, the circuit LPR3 outputs the signal L.
Control is performed by setting MF and LMR to L and stopping motor LHTR.

尚上記エンコーダーからのパルスのカウントはそのレン
ズの駆動方向に応じてアップ又はダウンしカウントされ
るものとする。この様にしてレンズ駆動制御がなされる
ので上記人力パルス数FPとエンコーダーからのパルス
か一致してモーターLHTRに対して停止動作が行われ
たことが回路LPR3内で判定出来、この回路では上述
のレンズ駆動制御がなされない時にレンズ停止信号を形
成している。
It is assumed that the pulses from the encoder are counted up or down depending on the driving direction of the lens. Since the lens drive control is performed in this way, it can be determined in the circuit LPR3 that the number of human pulses FP and the pulses from the encoder match, and that the motor LHTR has been stopped, and in this circuit, the above-mentioned A lens stop signal is generated when lens drive control is not performed.

よって、コンピューターPRSは上記の如くして回路L
PR3を指定し、このレンズ停止信号を読み出すことに
てステップ202にてレンズが停止したか否かの判定を
行っている。
Therefore, the computer PRS connects the circuit L as described above.
By specifying PR3 and reading out this lens stop signal, it is determined in step 202 whether or not the lens has stopped.

尚、レンズ駆動中にレンズが例えば無限端位買に突き当
って停止した場合には上記カウンターにてカウントされ
たエンコーダーENCからのパルス数が上記パルス数F
Pと一致することなく、レンズが停止状態とな゛る。従
って、この様な場合にはカウンターとパルス数FPが一
致していない状態であってもエンコーダーENCからの
パルスが発生しなくなり、回路LPR3ては上記状態下
でエンコーダーENCからパルスが所定時間以上発生し
ていないことを検知すると信号LMF、LMRをLとな
しモーターを停止させると共にレンズ駆動不能信号を形
成し回路内部のRAMに該信号を格納する様構成されて
おり、正常動作時と異常動作時のレンズ停止を判別させ
ているものである。
In addition, if the lens hits an infinite point and stops while driving the lens, the number of pulses from the encoder ENC counted by the counter above will be the number of pulses F.
P does not match, and the lens comes to a halt. Therefore, in such a case, even if the counter and the number of pulses FP do not match, the encoder ENC will not generate pulses, and the circuit LPR3 will not generate pulses from the encoder ENC for more than a predetermined time under the above conditions. When it detects that the lens is not in operation, it sets the signals LMF and LMR to L, stops the motor, forms a lens drive disabling signal, and stores this signal in the RAM inside the circuit. During normal operation and abnormal operation. This is used to determine whether the lens has stopped.

上記ステップ202にてレンズ停止信号が検知出来ない
時、即ちレンズがまだ駆動、中であると判定された時に
は直ちにAF制御サブルーチンを終了し再度ステップ9
へ戻る。
If the lens stop signal cannot be detected in step 202, that is, if it is determined that the lens is still in operation, the AF control subroutine is immediately terminated and step 9 is performed again.
Return to

よって、デフォーカス量に応じてレンズか駆動されてい
る途中では、上記の繰り返しステップとしてはステップ
9→17→18→19→20(200→202)が繰り
返されることとなる。
Therefore, while the lens is being driven in accordance with the defocus amount, steps 9→17→18→19→20 (200→202) are repeated as the above-mentioned repeating steps.

上記の如くしてレンズ駆動がなされている過程にてレン
ズの駆動量、即ちエンコーダーENCからのパルス数が
上記FP計算サブルーチンにて求められたパルス数FP
と一致した時には、これらのパルス数の一致検知を行っ
ている回路LPR3にて出力LMF及びLMRがLにさ
れ、モーターLMTRが停止しレンズがデフォーカス量
だけ駆動されることとなる。従って上記ステップの繰り
返し中にレンズがデフォーカス量たけ駆動されるとステ
ップ202にてレンズが停止したと判定されるため、ス
テップ203にてフラッグPRMVに0かセットされ以
後前述と同様にステップ204→205→206か実行
される。
In the process of lens driving as described above, the lens driving amount, that is, the number of pulses from the encoder ENC is the number of pulses FP calculated in the above FP calculation subroutine.
When they match, the outputs LMF and LMR are set to L in the circuit LPR3 which detects the coincidence of these pulse numbers, the motor LMTR is stopped, and the lens is driven by the defocus amount. Therefore, when the lens is driven by the amount of defocus while repeating the above steps, it is determined in step 202 that the lens has stopped, so the flag PRMV is set to 0 in step 203, and thereafter, in the same manner as described above, step 204→ 205→206 is executed.

この時、上述の如くレンズはデフォーカス量分駆動され
ているため、上記ステップ206にて焦点検出動作がな
されると合焦と判定されることとなり、以後ステップ2
08→209→210へ移行する。
At this time, since the lens has been driven by the amount of defocus as described above, when the focus detection operation is performed in step 206, it is determined that the focus is in focus, and henceforth step 2
Transition from 08 → 209 → 210.

従って、デイブスモードで初回のスイッチSW1のオン
動作にてレンズ駆動がなされた時にはレンズか被写体に
対して合焦となるまで移行し、一度合点となると、上記
の合焦判定がなされた時の動作と同様にしてステップ2
2へ移行する。
Therefore, when the lens is driven by turning on the switch SW1 for the first time in Dave's mode, the lens will move until the lens or subject is in focus, and once it is in focus, the above focus judgment will be made. Step 2 in the same way as the operation
Move to 2.

又、上記の焦点検出不能時も上記の如<AF制御サブル
ーチンが繰り返されるので、焦点検出不能状態を脱した
場合にはレンズが合焦位置まで駆動され、その後ステッ
プは22へ進むこととなる。
Furthermore, since the AF control subroutine described above is repeated even when the focus cannot be detected, when the focus is no longer detected, the lens is driven to the in-focus position, and the process then proceeds to step 22.

以上、デイブスモードで初回のスイッチSW。Above is the first switch SW in Dave's mode.

のオン時のデイブス処理動作をまとめると被写体に対し
て一度合焦状態となし合焦後ステップ22へ移行する。
To summarize the Dave's processing operation when turned on, the subject is once brought into focus, and after the subject is brought out of focus, the process moves to step 22.

以上の如くして被写体に対して合焦状態とした後ステッ
プ22へ移行すると、該ステップにてフラッグDEP+
のセット状態が判定される。
After bringing the subject into focus as described above, the process moves to step 22, and in this step the flag DEP+
The set state of is determined.

フラッグDEP、は前述の如く1にセットされているに
で、ステップは23に6行する。
Since the flag DEP is set to 1 as described above, step 23 goes to 6 lines.

ステップ23:DEP+表示を行う。Step 23: Display DEP+.

この表示はコンピューターPR5にて信号CDDRをH
となし、回路DDRを指定し、SO倍信号してのDEP
+表示信号を回路DDRに伝え、該回路DDRにて表示
器DSP内のクセグメントにてDEP、表示を行わせる
。これにて撮影者は1回目のデイプス処理が終了したこ
とを知らせしめることとなる。
This display is displayed when the signal CDDR is set to H on the computer PR5.
, specify the circuit DDR, and DEP as SO multiplied signal.
+The display signal is transmitted to the circuit DDR, and the circuit DDR causes the DEP and display to be performed in the segment in the display device DSP. This will notify the photographer that the first depth process has been completed.

この後ステップは24へ移行し、フラッグDEP、に0
をセットし、DEP2に1をセットし、その後ステップ
25にてフラッグDEPOKを1にセットし、再度ステ
ップ9へ移行する。
After this, the step moves to 24, and the flag DEP is set to 0.
is set, and DEP2 is set to 1. Thereafter, in step 25, the flag DEPOK is set to 1, and the process returns to step 9.

この後スイッチSW1がオン状態に保持されていればス
テップは17→18→19→21へ移行する。この時フ
ラッグDEPOKはステップ25にて1にセットされて
いるので、ステップ21の後再度ステップ9へ移行する
。従って1回目のデイプス処理終了後スイッチS W 
+がオンの限りステップ9→17→18→19→21か
繰り返され、レンズは最初に合焦した位置に保持され続
ける。この状態からシャッタボタンの操作を解除してス
イッチSW1をオフとすると、上記ステップ9→17→
18→19→21の繰り返しに変えてステップは12以
後へ移行する。ステップ12以後のIA埋は上述の如く
フラッグDEPJF、DEPOKに0をセットすると共
にモードがデイブスに保持されているか、又は1回目の
デイブス処理終了後スイッチSW。
After this, if the switch SW1 is kept in the on state, the steps shift from 17 to 18 to 19 to 21. At this time, the flag DEPOK has been set to 1 in step 25, so after step 21, the process returns to step 9. Therefore, after the first depth processing is completed, switch SW
As long as + is on, steps 9→17→18→19→21 are repeated, and the lens continues to be held at the initially focused position. From this state, if you release the shutter button and turn off switch SW1, step 9 → 17 →
Instead of repeating steps 18→19→21, the steps move to steps 12 and thereafter. For IA filling after step 12, set the flags DEPJF and DEPOK to 0 as described above, and check if the mode is held in Dave's or switch SW after the first Dave's processing is completed.

がオフとなってから所定時間経過したかの判別かなされ
、モードが通常モードに戻された場合又は所定時間経過
するまでスイッチSW1をオフのままにした場合にはス
テップ16を介してステツプ1へ戻り、デイブスモート
がキャンセルされる。
It is determined whether a predetermined time has elapsed since the switch was turned off, and if the mode is returned to the normal mode or if the switch SW1 remains off until the predetermined time elapses, the process proceeds to step 1 via step 16. Back, Dave Smote is canceled.

又、モードをディブスに保持し、かつ上記時間以内に再
度レリーズボタンが操作されスイッチSW、がオンとな
るとステップは再度17へ移行し2回目のデイブス処理
が開始される。
If the mode is held in dibs and the release button is operated again within the above-mentioned time and the switch SW is turned on, the step shifts to 17 again and the second dibs process is started.

以下2回目のデイブス処理について説明する。The second Daves process will be explained below.

上記の如くしてステップ17へ移行し、測光サブルーチ
ンが実行され、ステップ18にてタイマーかりセットさ
れ時間計時を再開し、ステップ19へ移行する。この時
点では上記スイッチSW1のオフの間のステップ13に
てフラッグDEPJFが0にセットされているため、ス
テップ19に次いでステップ20のAF制御サブルーチ
ンが実行される。
As described above, the process moves to step 17, where the photometry subroutine is executed, and at step 18, the timer is set to restart time measurement, and the process moves to step 19. At this point, since the flag DEPJF has been set to 0 in step 13 while the switch SW1 is off, the AF control subroutine in step 20 is executed following step 19.

該AFサブルーチンでは上述の如くステップ200か行
われる。
In the AF subroutine, step 200 is performed as described above.

この時点てはフラッグPRMVはOにセットされており
、ステップは200から201へ移行する。この時フラ
ッグDEPMVも0にセットされているので、ステップ
は204へ移行し、モートがデイプスか否かの判定がな
され、今モードはデイブスに設定されているので、ステ
ップは205へ移行する。2回目のデイブス処理開始以
前にフラッグDEP、は上述の如くステップ24にて0
にセットされているため、ステップは215へ移行する
At this point, the flag PRMV is set to O, and the step moves from 200 to 201. At this time, since the flag DEPMV is also set to 0, the step moves to 204, where it is determined whether the mote is deep or not, and since the mode is currently set to Dave's, the step moves to 205. Before starting the second Daves process, the flag DEP is set to 0 in step 24 as described above.
is set, the step moves to 215.

ステップ215 フラッグDEP2のセット状態を判別
する。この時フラッグDEP2は上記ステップ24にて
1にセットされているため、ステップは第2図(e)の
ステップ216へ移行し、上述の焦点検出サブルーチン
を実行しデイブスモードにおける2回目のスイ・ンヂS
Wlのオン時点での被写体に対する焦点状態を判定する
Step 215: Determine whether flag DEP2 is set. At this time, since the flag DEP2 was set to 1 in step 24, the step moves to step 216 in FIG. Nji S
The focus state for the subject at the time when Wl is turned on is determined.

この焦点状態の判定結果としてフラッグAFNGか1に
セットされている時、即ちコントラストが低く焦点検出
不能の時にはステップ217にてこれか検知されステッ
プ218へ才多行する。
When the flag AFNG is set to 1 as a result of this focus state determination, that is, when the contrast is low and focus cannot be detected, this is detected in step 217 and the process proceeds to step 218.

ステップ21B:NG表示すブルーチンを実行する。こ
のサブルーチンは上記表示ルーチンと同様にして焦点検
出不能表示用LEDを点灯させた後AF制御サブルーチ
ンを終了する。
Step 21B: Execute a blue routine to display NG. In this subroutine, the AF control subroutine is ended after the LED for indicating that focus detection is not possible is turned on in the same manner as the display routine described above.

又、上記ステップ216での焦点検出サブルーチンにて
フラッグAFNGが1にセットされない場合、即ちコン
トラストが十分あると判定された時にはステップ217
に次いでステップ219へ進む。
Further, if the flag AFNG is not set to 1 in the focus detection subroutine in step 216, that is, if it is determined that there is sufficient contrast, step 217 is performed.
Next, the process advances to step 219.

ステップ219:上記焦点検出サブルーチンにて求めら
れたデフォーカス量DEFが一定値dcよりも犬か否か
の判定を行う。この判定結果としてIDEFI>dcの
時には、上記ステップ218へ移行し焦点検出不能表示
がなされAF制御サブルーチンを終了する。
Step 219: It is determined whether the defocus amount DEF obtained in the focus detection subroutine is greater than the constant value dc. If IDEFI>dc as a result of this determination, the process moves to step 218, a focus detection failure display is displayed, and the AF control subroutine ends.

従って、2回目のディブス処理において、コントラスト
が低いことの検知又はデフォーカス量が大であることが
検知された時には直ちにAF制御サブルーチンを終了し
再度ステップ9へ移行する。
Therefore, in the second dibs process, when it is detected that the contrast is low or that the amount of defocus is large, the AF control subroutine is immediately terminated and the process returns to step 9.

3 に の状態でスイッチSWIがオンのまま保持されていれは
、ステップは再度9→17→18→19→20へ移行し
以後上記の焦点検出結果が異なる結果となるまで、この
ステップを繰り返され、焦点検出サブルーチンにてコン
トラストが十分高いこと及びデフォーカス量がl DE
F 1<dcであることの判別がなされるとステップ2
20へ移行する。
If the switch SWI is kept on in the state of 3, the steps will again shift from 9 to 17 to 18 to 19 to 20, and this step will be repeated until the above focus detection results are different. , in the focus detection subroutine, the contrast is sufficiently high and the amount of defocus is l DE
When it is determined that F 1 < dc, step 2
Move to 20.

尚、初回のステップ216時における焦点検出結果がコ
ントラストか十分であり、かつIDEFI<dCである
と判定された時には上記の焦点検出動作を繰り返すこと
なく直ちにステップ220へ移行させる。
Incidentally, when it is determined that the focus detection result at the first step 216 is sufficient in contrast and IDEFI<dC, the process immediately proceeds to step 220 without repeating the above focus detection operation.

尚、2回目のデイプス処理において、デフォーカス量が
所定値よりも犬の時にデイブス処理を進ませない理由は
、第1回目のデイプス処理における被写体と2回目の処
理における被写体が極めて離れている場合、両液写体共
に合焦状態となる様なデイブス処理自体精度良く行われ
ず、実質上デイブスモードでの処理が不可能であるため
である。
In addition, in the second depth processing, the reason why Daves processing does not proceed when the defocus amount is more than a predetermined value is when the subject in the first depth processing and the subject in the second processing are extremely far apart. This is because the Daves mode process itself, which brings both liquid objects into focus, is not performed with high accuracy, making processing in Daves mode virtually impossible.

上記の如くしてステップ220へ移行するとステップ2
20にてレンズの焦点距離情報かメモリーLSTFLに
人力される。
When the process moves to step 220 as described above, step 2
At step 20, the focal length information of the lens is manually entered into the memory LSTFL.

この焦点距離情報の入力処理としてはコンピューターP
R3にて信号CLCMをHとなし、上述の如く回路LC
Mを介して回路LPR3を指定し、該回路内に格納され
ている焦点距離情報を読み出すことにて実行される。
The computer P inputs this focal length information.
The signal CLCM is set to H at R3, and the circuit LC is activated as described above.
This is executed by specifying the circuit LPR3 via M and reading the focal length information stored in the circuit.

尚、レンズがズームレンズの場合にはその設定ズーム状
態に応じた焦点距離情報が読み出されることとなる。
Note that if the lens is a zoom lens, focal length information corresponding to its set zoom state will be read out.

この様にしてステップ220にて焦点距離情報を読み出
した後ステップ221へ移行する。
After reading the focal length information in step 220 in this manner, the process moves to step 221.

ステップ221・算出されたデフォーカス量から1回目
及び2回目のデイブス処理が行われた時の内被写体を共
にピントが合った状態とする絞り値を求める。
Step 221: From the calculated defocus amount, determine the aperture value that brings both the inner subjects into focus when the first and second Dave's processing is performed.

即ち、第3図の如く、1回目のデイブス処理における被
写体Aに対してレンズをDEP、に位置させた時合焦状
態とすることが出来たとすると、1回目のデイプス処理
にてレンズはDEP+の位置へ移行している。
In other words, as shown in Figure 3, if the lens can be brought into focus when the lens is positioned at DEP for subject A in the first Dave's processing, then in the first depth processing the lens will be in focus at DEP+. moving into position.

この状態でレンズをDEP2の位置へ移行させた時に合
焦状態となる被写体Bに対して上記2回目のデイブス処
理を実行すると2回目のデイプスIA埋時の被写体Bに
対するレンズ位置DEP、からのデフォーカスDEFが
上記焦点検出動作にて検知され、このデフォーカス量か
レンズ位置DEP、とDEP2間のデフォーカス量とな
る。
In this state, when the second Dave's process is executed for subject B, which will be in focus when the lens is moved to the DEP2 position, the lens position DEP for subject B at the second depth IA filling will be changed. Focus DEF is detected in the focus detection operation, and this defocus amount becomes the defocus amount between lens position DEP and DEP2.

本発明でのデイブス処理は上記の如く2つの異なる被写
体間のデフォーカス舒を−に至近側に内分する位置DE
P3にレンズを8動させ、この位置て、DEP3 とD
EP2間のデフォーカス量、即ち’ DEP1x7を最
小錯乱円0.03’5mmで割った値を制御絞りとして
採用している。
As mentioned above, the Daves processing in the present invention is a position DE that internally divides the defocus distance between two different subjects to the - closest side.
Move the lens 8 to P3, and at this position, DEP3 and D
The value obtained by dividing the defocus amount between EP2, ie, 'DEP1x7' by the circle of least confusion 0.03'5 mm, is adopted as the control aperture.

詳述すると一般的に上記の様にレンズをDEP。To explain in detail, the lens is generally DEP as described above.

に位置させた時、合点となる被写体AとレンズなりEP
2に位置させた時合焦となる被写体Bが存在する場合、
位置DEP、とDEP、を内分する位置D E P 3
にレンズを移行させ、レンズ移行後のレンズ位置DEP
3と一方の被写体に対する本来の合焦位置DEP、又は
DEP2との間のデフォーカス量DFF’ を最小錯乱
円で割ることにて、レンズをDEP3に位置させたまま
、本来位置DEP+及びDEP2で合焦となる2つの被
写体A、B共にピントを合った状態とする被写体深度を
満足する絞り値が得られる。
When positioned at , the subject A and lens become the matching point
If there is a subject B that will be in focus when positioned at 2,
Position DEP, and position DEP 3 that internally divides DEP.
Shift the lens to DEP
By dividing the defocus amount DFF' between 3 and the original focus position DEP for one subject, or DEP2 by the circle of least confusion, the lens can be focused at the original positions DEP+ and DEP2 while keeping it at DEP3. It is possible to obtain an aperture value that satisfies the depth of field so that the two subjects A and B are both in focus.

従って、本願では、この原理を利用して上記レンズを上
記D E P 3に移行した時至近側の被写体DEP2
を十分にピント合った状態とする絞りを求めている。尚
、この時の絞りは無限側の位置DEP、に対しては深度
内にカバーしていないか、通常レンズの特性を考慮する
と、無限側の被写体に対しては上記深度か本来カバーし
ていなくとも十分にピントが合った状態となるため、本
願では内分点(DEP3)を至近側に□の位置として設
定している。
Therefore, in the present application, utilizing this principle, when the lens is shifted to the D E P 3, the closest object DEP2
We are looking for an aperture that will bring the subject into sufficient focus. In addition, the aperture at this time does not cover the depth within the depth for the position DEP on the infinity side, or considering the characteristics of a normal lens, the aperture does not cover the above depth or originally for the subject on the infinity side. In this application, the internal division point (DEP3) is set at the position of □ on the close side.

この様にして内被写体を共にピントが合った状態とする
絞り値1DEFlx−x− 170,035 をステップ221に求め、これをメモリーLSTFNO
に記憶させステップ222へ移行する。
In this way, the aperture value 1DEFlx-x- 170,035 that brings both the inner subjects into focus is determined in step 221, and this is stored in the memory LSTFNO.
The process moves to step 222.

ステップ222:上記ステップ216での焦点検出サブ
ルーチン結果としてフラッグJFが1にセットされてい
るか否かを判別する。
Step 222: It is determined whether flag JF is set to 1 as a result of the focus detection subroutine in step 216 above.

この結果フラッグJFが1にセットされている場合には
ステップ223へ移行しフラッグDEPJF、DEP2
JFに1をセットし、AF制御サブルーチンを終了する
As a result, if the flag JF is set to 1, the process moves to step 223, and the flags DEPJF and DEP2 are set to 1.
Set JF to 1 and end the AF control subroutine.

このステップ222.223にて2回目のデイプス処理
でフラッグJFの1のセットが検知される様な被写体は
デイプスの1回目の被写体とばば同一位置にある被写体
を2回目のデイプス処理の被写体とした場合であり、そ
の以外の場合はステップ223へ移行する。
In steps 222 and 223, a subject whose flag JF is set to 1 is detected in the second depth processing is set to the same position as the first depth processing subject, and a subject in the same position is used as the subject of the second depth processing. In other cases, the process moves to step 223.

今、第1回目と2回目の被写体位置か異なっており、ス
テップ223へ移行したものとする。
It is now assumed that the subject positions in the first and second shots are different, and the process moves to step 223.

このステップ223は上記EP計計算サブルーシン実行
させるもので、これにより2回目のデイブス処理におけ
る被写体までのデフォーカス量に応じたパルス数FPが
求められステップは224以後へ移行する。
This step 223 executes the EP calculation subroutine, whereby the number of pulses FP corresponding to the amount of defocus up to the subject in the second Dave's process is determined, and the process moves to steps 224 and subsequent steps.

ステップ224:フラッグDEPMVに1をセットする
Step 224: Set flag DEPMV to 1.

ステップ225:レンズの現在位置を表わすカウント値
FCNTを入力する。
Step 225: Input count value FCNT representing the current position of the lens.

上述の如く回路LPR3にはエンコーターENCからの
レンズ駆動量を表わすパルスを人力しており、レンズの
駆動制御にあたっては、このパルスをカウントし、上記
の如くデフォーカス量に応じたパルス数FPと一致した
か否かの検知を行っている。よって、上記エンコーター
ENCからのパルスは回路LPR3にてカウントされ、
所定の値を示しており、このカウント値がコンピュータ
ーPR5に現在のレンズ位置を表わすカウント値FCN
Tとして人力される。
As mentioned above, the circuit LPR3 is manually supplied with pulses representing the amount of lens drive from the encoder ENC, and when controlling the drive of the lens, these pulses are counted and matched with the number of pulses FP corresponding to the amount of defocus as described above. We are detecting whether or not it has been done. Therefore, the pulses from the encoder ENC are counted by the circuit LPR3,
This count value is sent to the computer PR5 as a count value FCN representing the current lens position.
Man-powered as T.

又、この回路LPR3の上記カウント値はコンピュータ
ーPR3にて信号CLCMをHとなずことにて上述した
動作で回路LPR3が指定され、この時のSD信号とし
て上記カウント値か要求され、該カウント値か信号Sl
としてコンピューターに入力されるものである。
Further, the above count value of this circuit LPR3 is specified by the above operation by setting the signal CLCM to H in the computer PR3, and the above count value is requested as the SD signal at this time, and the count value is or signal SL
This is what is input into the computer as.

ステップ226.上記デフォーカス量に基づいて上述の
レンズ駆動サブルーチンと同様にしてレンズか合焦方向
に駆動される。即ち、1回目のデイブス処理てのレンズ
位置から、2回目のデイブス処理で求められたデフォー
カス分レンズ駆動される。
Step 226. Based on the defocus amount, the lens is driven in the focusing direction in the same manner as in the lens driving subroutine described above. That is, the lens is driven from the lens position determined by the first Daves process by the amount of defocus determined by the second Daves process.

ステップ227:上記ステップ223にて求められた上
記デフォーカス量に応じたパルス数FPをメモリーDE
PFPに人力する。
Step 227: The number of pulses FP corresponding to the defocus amount obtained in step 223 is stored in the memory DE.
Manpower PFP.

ステップ228・レンズ駆動前に人力されたレンズの現
在のカウント値FCNTと上記メモリーに入力されたデ
フォーカス量に応したパルス数FPとを加算しメモリー
5TLPO3に入力する。
Step 228: Add the current count value FCNT of the lens manually inputted before lens driving and the number of pulses FP corresponding to the defocus amount input to the memory, and input the result to the memory 5TLPO3.

これにてメモリー5TLPO3にはレンズの移動すべき
位置情報が設定される。
With this, the position information to which the lens should be moved is set in the memory 5TLPO3.

即ち、第3図の如く、1回目のデイブス処理にてレンズ
がDEP、の位置にあり、この時のカウント値がN1で
あったとする。そして、2回目のデイプス処理にてレン
ズを位置DEP2に移行させることにて2回目のデイブ
ス処理における被写体に対して合焦とすることが出来る
様な場合、DEP+からD E P 2までのレンズ駆
動量FPが上記のステップ223にて求められ、このパ
ルス数FPとしてN2が得られたとする。
That is, as shown in FIG. 3, it is assumed that the lens is at the position DEP in the first Dave's process, and the count value at this time is N1. Then, in the case where it is possible to focus on the subject in the second depth processing by moving the lens to position DEP2 in the second depth processing, the lens is driven from DEP+ to DEP2. Assume that the quantity FP is obtained in step 223 above, and N2 is obtained as the number of pulses FP.

この場合、上記メモリー5TLPOSにはN2十N、が
記憶される。この値N、 十N2はレンズがDEP+ 
にある時の上記カウンター値N1に対してレンズがDE
P、からDEP2へ移行した時のカウント値を示し、レ
ンズの移動すべき目的位置でのカウント値となる。
In this case, N20N is stored in the memory 5TLPOS. This value N, 10N2 means that the lens is DEP+
When the lens is DE for the above counter value N1 when
It shows the count value when moving from P to DEP2, and is the count value at the target position to which the lens should be moved.

以上のステップ228を実行数AF制御サブルーチンを
終了しステップ9へ戻る。
The above step 228 ends the execution number AF control subroutine and returns to step 9.

この状態でスイッチSW1がオンのまま保持されていれ
ばステップ9に次いで17.18゜19が行われる。こ
の時上記2圓目のデイジス処理時のAF制御サブルーチ
ンでの合焦判定がなされていないとするとステップは2
0へ移行し、AF制御サブルーチンが再度実行される。
If the switch SW1 is kept on in this state, steps 17.18°19 are performed following step 9. At this time, assuming that focus has not been determined in the AF control subroutine during the second circle digit processing, step 2
0, and the AF control subroutine is executed again.

この再度のAF制御サブルーチンにあたってはフラッグ
PRMVが0にセットされ、かつ前回のAF制御サブル
ーチンのステップ224にてフラッグDEPMVが1に
セットされているため、ステップは200→201→2
29へ移行し上述のステップ202と同様にしてレンズ
が停止したか否かの判定がなされレンズが停止していな
い時にはリターンする。
In this AF control subroutine again, the flag PRMV is set to 0, and the flag DEPMV is set to 1 in step 224 of the previous AF control subroutine, so the steps are 200 → 201 → 2.
The process moves to step 29, where it is determined whether the lens has stopped or not in the same manner as step 202 described above, and if the lens has not stopped, the process returns.

従って、レンズが停止していない限り、上記ステップ9
→17→18→19→20 (200→201→229
)が繰り返されレンズの停止が確認されることにてステ
ップは230へ移行する。
Therefore, unless the lens is stopped, step 9 above
→17→18→19→20 (200→201→229
) is repeated to confirm that the lens has stopped, and the step moves to 230.

ステップ230:該ステップは上記ステップ225と同
様であり、2回目のデイブス処理後レンズが停止した状
態でのカウント値FCNTを入力する。
Step 230: This step is the same as step 225 above, and inputs the count value FCNT when the lens is stopped after the second Dave's process.

従って、今、2回目のデイブス処理でのステップ223
にて求めたパルス数FPがN2てあったとすると、本来
、エンコーダーENCからN2個のパルスが送られるま
でレンズが駆動されることとなるので、この状態でのカ
ウント値はレンズ駆動前の1回目のデイブス処理終了時
のレンズ位置DEP+  (第3図)でのカウンターの
カラントイ直をN1とするとN、 十N2となる。この
ステップ後ステップは231へ移行する。
Therefore, step 223 in the second Daves process is now
If the number of pulses FP found in is N2, the lens will normally be driven until N2 pulses are sent from the encoder ENC, so the count value in this state is the first time before the lens is driven. If the counter's curvature at the lens position DEP+ (Fig. 3) at the end of Dave's processing is N1, then it becomes N, 10N2. After this step, the step moves to 231.

ステップ231.ステップ228で求めたメモリー5T
LPO3に格納された値に対してステップ230で得ら
れた現在のレンズ位置を表わすカウント値を引く。上述
の如くメモリー5TLPOSの値は1回目のデイブス処
理終了後に2回目のデイブス処理にて求めたデフォーカ
ス分レンズを駆動した時の予定のレンズ位置を表わして
おり、上記の如く1回目のデイブス処理終了時のカウン
ト値をN1とし、その位置からのデフォーカス量に相応
するパルスがN2てあった時にはN、+N、となってい
る。よって、上記減算結果としては本来上記デフォーカ
ス量分レンズ駆動かなされるとゼロとなる。
Step 231. Memory 5T found in step 228
The count value representing the current lens position obtained in step 230 is subtracted from the value stored in LPO3. As mentioned above, the value of the memory 5TLPOS represents the scheduled lens position when driving the lens by the defocus amount obtained in the second Dave's process after the first Dave's process, and The count value at the end is N1, and when the pulse corresponding to the amount of defocus from that position is N2, it becomes N, +N. Therefore, the subtraction result becomes zero when the lens is driven by the defocus amount.

ステップ232:上記レンズ駆動不能信号の検知を行う
。この検知動作は上述のレンズ停止信号の検知動作と同
様に行われる。
Step 232: Detect the lens drive failure signal. This detection operation is performed in the same manner as the lens stop signal detection operation described above.

今、ステップ232にてレンズが駆動不能で停止したの
ではないと判定されたとするとステップは233へ移行
する。
Now, if it is determined in step 232 that the lens is not stopped because it cannot be driven, then the step moves to 233.

ステップ233:上記ステップ231にて求めた演算結
果の絶対値が4以上であるか否かの判定を行う。上述の
如くレンズが正確に2回目のディブス処理で求められた
デフォーカス分駆動されていれば、ステップ231での
演算結果はゼロとなるが、上記デフォーカス分駆動され
ていない時、又はデフォーカス分駆動後モーターか停止
してもイナシャー等にてレンズがオーバーランした時、
その駆動量か予定量よりも少なければ少ない程、又はオ
ーバーラン量が大きけれは大きな程上記演算結果が大と
なる。
Step 233: It is determined whether the absolute value of the calculation result obtained in step 231 is 4 or more. As described above, if the lens is driven by the defocus amount determined in the second dibs process, the calculation result in step 231 will be zero, but if the lens is not driven by the defocus amount, or if the lens is not driven by the defocus amount, If the lens overruns due to inertia, etc. even if the motor stops after driving for a minute,
The smaller the drive amount is than the planned amount, or the larger the overrun amount, the larger the above calculation result becomes.

従って、このステップでは上記演算結果が4以下の時に
はデフォーカス量駆動され、ステップ228にて求めた
予定のレンズ位置までレンズが駆動されたものと見做し
、ステップ234゜235にてフラッグDEPMVに0
を、又DEPJFに1をセットしAF制御サブルーチン
を終了する。
Therefore, in this step, when the above calculation result is 4 or less, it is assumed that the defocus amount is driven and the lens has been driven to the scheduled lens position determined in step 228, and the flag DEPMV is set in steps 234 and 235. 0
and sets DEPJF to 1 and ends the AF control subroutine.

又、上記ステップ233にてステップ231での演算結
果が4以上の時には上記レンズ駆動にて、いまだ予定の
レンズ位置まで移行していないと見做しステップ236
にて再度レンズ駆動指示を行わせ、レンズを駆動した後
リターンしAF制御サブルーチンを終了する。
Further, in step 233, if the calculation result in step 231 is 4 or more, it is assumed that the lens drive has not yet moved to the scheduled lens position, and step 236
The lens drive instruction is issued again at , and after driving the lens, the process returns to end the AF control subroutine.

今上記ステップ233にて、いまだに予定のレンズ位置
までレンズが駆動されていないと判定され、ステップ2
36にてレンズの再駆動がなされた後AF制御サブルー
チンを終了、ステップ9へ移行したものとする。
Now, in step 233, it is determined that the lens has not been driven to the expected lens position, and step 2
It is assumed that after the lens is driven again in step 36, the AF control subroutine ends and the process moves to step 9.

この時スイッチSWIがオン状態に保持されているとす
ると再度ステップ17→18→19→20 (200→
201→229)がレンズが停止するまで実行され、レ
ンズ停止が確認されると上記ステップ230→231→
232→233か再度実行される。従フて、再駆動の結
果ステップ233にてステップ231での演算結果が4
以下となり、ステップ228にて求めた予定位置までレ
ンズが移行していると判定された時にはステップ234
,235が実行され、それ以外の場合は上記の動作がス
テップ233にてレンズがステップ228にて求めた予
定位置まで6動したとの判定がなされるまで繰り返し実
行される。従って、これらのステップ200→201→
 229 → 230 → 231 → 232 → 
233−236にてレンズを確実に2回目のデイブス処
理にて求めた予定のレンズ移行位置まて移行させること
が保証されることとなる。上記の動作はレンズがステッ
プ232にて駆動不能状態となっていないと判定された
場合の動作であるが、ステップ232にてレンズが例え
ば無限位置等の限界位百に移行してレンズ駆動が不能状
態となっていると判定された場合にはステップ232に
次いでステップ237が実行される。
Assuming that the switch SWI is kept in the on state at this time, steps 17→18→19→20 (200→
Steps 201→229) are executed until the lens stops, and when the lens stops, the steps 230→231→
232→233 is executed again. Therefore, as a result of re-driving, in step 233, the calculation result in step 231 is 4.
If it is determined that the lens has moved to the scheduled position determined in step 228, step 234
, 235 are executed, and in other cases, the above operations are repeatedly executed until it is determined in step 233 that the lens has moved six times to the expected position determined in step 228. Therefore, these steps 200→201→
229 → 230 → 231 → 232 →
In steps 233-236, it is guaranteed that the lens will be reliably moved to the scheduled lens transfer position determined in the second Dave's process. The above operation is an operation when it is determined in step 232 that the lens is not in a drive-incapable state, but in step 232, the lens moves to a limit position such as an infinite position, and the lens cannot be driven. If it is determined that the state is present, step 237 is executed following step 232.

ステップ237:このステップではレンズが無限端位置
に突き当たってレンズ駆動不能となったか否かを判定す
るステップである。
Step 237: In this step, it is determined whether the lens has hit the infinite end position and the lens cannot be driven.

上記判定方法としては、上記の如くデフォーカス量DE
Fはレンズの駆動方向情報をも含んているため、DEF
に基づいて算出される上記パルス数FPにもその駆動方
向を表わす情報として例えば正負の符号が付されており
、この符号を該ステップで検知することにてレンズが無
限側へ駆動中であったか否かの判定を行っている。
The above judgment method is based on the defocus amount DE as described above.
Since F also includes lens driving direction information, DEF
For example, a positive or negative sign is attached to the pulse number FP calculated based on the driving direction as information representing the driving direction, and by detecting this sign in this step, it can be determined whether or not the lens is being driven toward infinity. A judgment is being made.

このステップにてレンズが無限方向に駆動中駆動不能状
態となった時、即無限端に突き当ってレンズが停止した
と判定された時にはステップは234へ移行、以後上記
レンズ駆動が正しく行われた場合と同様に処理される。
In this step, when the lens becomes undriveable while being driven in the infinity direction, when it is determined that the lens immediately hits the infinity end and stops, the step moves to 234, and from then on the above lens drive is performed correctly. It is treated as if

又、ステップ237にてレンズ駆動方向が至近側であっ
たと判定された時、即ちレンズか至近端で停止している
と判定された時にはステップ238にてフラッグDEP
、に1をDEF2゜DEF3 、DEPDNに0をセッ
トし、ステップ239にて表示器DSPにてNG表示を
行わせた後AFサブルーヂンを終了する。
Further, when it is determined in step 237 that the lens driving direction is on the close side, that is, when it is determined that the lens is stopped at the close end, the flag DEP is set in step 238.
, DEF2°DEF3 and DEPDN are set to 0, and in step 239, NG is displayed on the display device DSP, and then the AF subroutine is ended.

従って、2回目のデイブス処理中てのレンズ駆動でレン
ズか至近端に突き当たりレンズ駆動が不能となった時に
は、即ち、デイプス処理を行っても所望の撮影が行われ
ない時にはそれ以上のデイプス処理を行わせず上記NG
表示にて撮影者にデイプス処理が不能であることを知ら
せしめ撮影者にディプス処理を初回からやり直すことを
指示する。
Therefore, if the lens hits the close end while driving the lens during the second Daves processing and the lens cannot be driven, that is, if the desired image cannot be taken even after depth processing, further depth processing is necessary. Do not do the above NG
The display notifies the photographer that depth processing is not possible, and instructs the photographer to redo depth processing from the beginning.

尚、無限端てレンズが停止した状態において、2回目の
デイプス処理てのレンズ駆動が正常に行われたと見做す
理由としては、レンズにとっては無限端以上の無限状態
は存在せず、デイブス処理を中止して、再度ディブス処
理をやり直させてもそれ以上の改善は望めないので、こ
の場合にはレンズの無限端での位置で合焦となる被写体
か2回目のデイブス処理時点での被写体と見做し、以後
のデイプス処理を続行させるためである。
The reason why it is assumed that the lens is driven normally during the second depth processing when the lens is stopped at the infinity end is that there is no infinite state beyond the infinity end for the lens; Even if you cancel the Daves processing and redo the Daves processing again, no further improvement can be expected. This is to allow the subsequent depth processing to continue.

又、以上の2回目のディプス処理におけるレンズ駆動に
際して、レンズを予定位置までサーボ(クローズループ
)で制御する理由としては、本願のデイプスモートでは
、2回目のデイブス処理にて求められたレンズ位置へ移
行させた後この位置から2回目のデイブス処理にて求め
られたデフォーカス量を−又は−に内分する位置を求め
、レンズを上記内分位置へ移行させる処理を行っている
ため2回目のディプス処理でのレンズ位置を正確に上記
デフォーカス量たけ駆動しなければならないためである
In addition, the reason why the lens is controlled by servo (close loop) to the scheduled position when driving the lens in the second depth processing is that in the depth mode of this application, the lens is moved to the lens position determined in the second Daves processing. After that, the position where the defocus amount obtained in the second Daves process is internally divided into - or - is calculated from this position, and the lens is moved to the above internally divided position, so the second depth This is because the lens position during processing must be accurately driven by the above defocus amount.

又、この様に2回目のディプス処理にてレンズをサーボ
制御しているので2回目のディブス処理にてレンズを駆
動中にスイッチSW1がオフとなっても、常に正しいレ
ンズ位置へレンズを移行させることが出来る。即ち、2
回目のディプス処理におけるレンズ駆動中にスイッチs
W1かオフとなるとステップか9から10へ移行し、そ
の時点てレンズが停止する。又、この後スイッチSW1
がオフの間ステップは9〜15を繰り返し、再度スイッ
チSW1をオンとするとステップは7→17→18→1
9→20へ移行する。
Also, since the lens is servo-controlled in the second depth process, even if switch SW1 is turned off while the lens is being driven in the second depth process, the lens will always be moved to the correct lens position. I can do it. That is, 2
switch s while driving the lens in the second depth processing.
When W1 turns off, the process moves from step 9 to step 10, at which point the lens stops. Also, after this switch SW1
While it is off, steps 9 to 15 are repeated, and when switch SW1 is turned on again, steps are 7 → 17 → 18 → 1.
Transition from 9 to 20.

この時フラッグDEPMVは1にセットされたまま保持
されるのて、再度のスイッチSW1のオンにてステップ
20へ移行し、AF制御サブルーチンが実行された時に
はステップ200→201→229→230へ8行し上
述の処理か再開される。尚、ステップ10のレンズ停止
命令によるレンズ停止がなされた時にもレンズ停止信号
が形成されるものとする。よって、スイッチSW1の再
度のオン後のステップ230に進みこのステップにてン
レンズの位置(SW、オフ時でのレンズ停止位置)を表
わすカウント値かFCNTとして入力され、その位置と
ステップ228にて求めた予定位置との差分だけ上記の
如くしてレンズ移動がなされる。よって、2回目のデイ
ブス処理でのレンズ移動中に誤ってスイッヂSW1をオ
フとしても再度スイッチSW1をオンとなせば、予定位
置まてのレンズ駆動処理が再開され、常に正しいレンズ
位置にレンズが移行することとなる。
At this time, the flag DEPMV is kept set to 1, and when the switch SW1 is turned on again, the process moves to step 20. When the AF control subroutine is executed, the process goes to steps 200→201→229→230 in 8 lines. Then the above process is restarted. It is assumed that the lens stop signal is also generated when the lens is stopped by the lens stop command in step 10. Therefore, the process proceeds to step 230 after the switch SW1 is turned on again, and in this step a count value representing the lens position (SW, lens stop position when off) is input as FCNT, and that position and step 228 are calculated. The lens is moved as described above by the difference from the scheduled position. Therefore, even if switch SW1 is accidentally turned off while moving the lens during the second Dave's process, if switch SW1 is turned on again, the lens drive process to the scheduled position will be restarted, and the lens will always move to the correct lens position. I will do it.

以上の動作にてレンズが予定位置まて移行すると上記の
如くステップ234,235を行った後AFサブルーチ
ンを終了し、ステップ9へ移行する。
When the lens moves to the scheduled position through the above operations, steps 234 and 235 are performed as described above, the AF subroutine is ended, and the process moves to step 9.

この状態でスイッチS W +がオンとなっているとス
テップは9→17→18→19へ移行する。
If the switch S W + is on in this state, the steps shift from 9 to 17 to 18 to 19.

この時ステップ235にてフラッグDEPJFに1がセ
ットされているため、ステップは19−21へ進み、又
この時フラッグDEPOKは0にセットされているので
、ステップは21から22へ進む。又、この時フラッグ
DEP+及びDEP2は2回目のデイブス処理B行時に
上述のステップ24にてDEP、=O,DEP2=1に
セットされているので、ステップは22→26→27→
28へ進み、表示器DSPにて2回目のデイプス処理が
終了したことを示すDEP2表示を行い、フラッグDE
P2に0を、又DEP3に1をセットし、ステップ25
にてフラッグDEPOKに1をセット、再度ステップ9
へ移行する。
At this time, since the flag DEPJF is set to 1 in step 235, the step proceeds to 19-21, and since the flag DEPOK is set to 0 at this time, the step proceeds from 21 to 22. Also, at this time, the flags DEP+ and DEP2 were set to DEP, = O, DEP2 = 1 in the above-mentioned step 24 during the second Dave's processing B line, so the steps are 22 → 26 → 27 →
28, the display device DSP displays DEP2 indicating that the second depth processing has been completed, and the flag DE
Set P2 to 0 and DEP3 to 1, step 25
Set flag DEPOK to 1 at step 9 again.
Move to.

この状態でスイッチS W +がオンのまま保持されて
いれば以後ステップ9→17→18→19→21→9が
繰り返されることとなり、レンズは2回目のデイブス処
理にて求められた位置に保持され、以上により2回目の
デイブス処理を終了する。
If the switch S W + is kept on in this state, steps 9 → 17 → 18 → 19 → 21 → 9 will be repeated, and the lens will be held at the position determined by the second Daves process. Thus, the second Daves process is completed.

この後スイッチSWIをオフ後再度スイッチS W +
をオンとするとステップは9→17→18−19へ移行
する。この時上記の如くスイッチSW1のオフか行われ
ているのでステップ13での処理かなされており、フラ
ッグDEDJF。
After this, turn off the switch SWI and turn the switch SW + again.
When turned on, the steps shift from 9 to 17 to 18-19. At this time, the switch SW1 has been turned off as described above, so the processing in step 13 has been carried out, and the flag DEDJF is set.

DEDOKはOにセットされている。従って、ステップ
は19→20へ8行し、再度AF制制御サブルーシン実
行する。
DEDOK is set to O. Therefore, the process goes from step 19 to line 20 for eight lines, and executes the AF system control subroutine again.

尚、この時点では上記ステップ234にてフラッグDE
PMVに0がセットされているのでAFF御サブルーチ
ンではステップ200→201→204→205へ移行
する、又上記ステップ24.28にてフラッグDEP、
=0゜D E P 2 = O、D E P 3= 1
に設定されているため、ステップ205に次いでステッ
プ205→240へ移行し、ステップ240を実行する
Incidentally, at this point, the flag DE is set in step 234 above.
Since PMV is set to 0, the AFF control subroutine moves to steps 200 → 201 → 204 → 205, and the flag DEP is set at step 24.28 above.
=0゜DEP2=O,DEP3=1
Since it is set to , the process moves from step 205 to step 240 after step 205, and step 240 is executed.

ステップ240:フラッグDEP2JFの状態を判定す
る。このフラッグは上記2回目のデイプス処理中にステ
ップ223が実行された時、即ち1回目と2回目のデイ
ラス処理時の被写体かほぼ同一位置にある時のみ1にセ
ットされるものである。
Step 240: Determine the state of flag DEP2JF. This flag is set to 1 only when step 223 is executed during the second depth processing, that is, when the subjects are at approximately the same position during the first and second depth processing.

従って異なる位置の被写体に対する1回目と2回目のデ
イブス処理がなされた場合にはス、テップ241へ移行
する。
Therefore, if the first and second Dave's processes have been performed on subjects at different positions, the process moves to step 241.

今、ステップは241へ移行したものとする。It is assumed that the step has now moved to 241.

ステップ241ニステツプ227にてメモリーDEPF
Pに人力されたパルス数FP、即ち、2回目のデイラス
処理時に求めたレンズ移行位置まてのデフォーカス量に
応じたパルス数と、上記ステップ233〜235にてレ
ンズを予定位置まで駆動した時のステップ231で求め
られたパルス数との減算を行う。即ち、例えば第3図の
如く1回目のデイプス処理時のレンズ位置DEP、を表
わすカウント値をN1として2回目のデイラス処理時の
デフォーカス量に応じたパルス数FPをN2とすると、
上記ステップ228にて求められた2回目のデイプス処
理で予定されるレンズ移行位置DEP2を表わすカウン
ト値はN、+N2となる。
At step 241 and step 227, the memory DEPF is
The number of pulses FP manually applied to P, that is, the number of pulses corresponding to the amount of defocus up to the lens transition position obtained during the second deiras process, and the number of pulses when the lens is driven to the planned position in steps 233 to 235 above. The pulse number obtained in step 231 is subtracted. That is, for example, as shown in FIG. 3, if the count value representing the lens position DEP during the first depth processing is N1, and the number of pulses FP corresponding to the defocus amount during the second depth processing is N2, then
The count value representing the lens transition position DEP2 scheduled for the second depth processing determined in step 228 is N, +N2.

又、ステップ230〜236では上記の如く該予定レン
ズ位置とレンズの現在位置とが4パルス以内となるまで
駆動されるので、2回目のデイブス処理にて実際移行し
たレンズ位置DEP2を表わすカウント値は第4図の如
<Nl+N2±α、4≧α≧−4となり、予定レンズ位
置と±α内の誤差を有する。
Also, in steps 230 to 236, as described above, the lens is driven until the scheduled lens position and the current position of the lens are within 4 pulses, so the count value representing the lens position DEP2 actually shifted in the second Daves process is As shown in FIG. 4, <Nl+N2±α, 4≧α≧−4, and there is an error within ±α from the planned lens position.

そして、上記ステップ231では予定位置(Nl 十N
2 )−レンズ移行位置(N、 十N2±α)を行って
おり、この±αが求められる。
Then, in the above step 231, the planned position (Nl + N
2)-Lens transition position (N, 10N2±α) is performed, and this ±α is found.

よって、このステップ241では1回目のデイブス処理
にて求めたデフォーカス量に応じたパルス数N2と上記
±αとの引き算を行っているのて、1回目のデイブス処
理後のレンズ位置DEP+から2回目のデイブス処理後
の実際のレンズ位置との間の実際のレンズ署多動量N2
±αが求められ、これがメモリーDEP2FPに人力さ
れる。
Therefore, in this step 241, the number of pulses N2 corresponding to the defocus amount obtained in the first Daves process is subtracted from the above ±α, so that the lens position DEP+ after the first Daves process is 2 Actual lens position hypermotion amount N2 between the actual lens position after the second Daves processing
±α is determined and manually entered into the memory DEP2FP.

この様に実際のレンズ位置DEP、とDEP2間の間隔
を求めているため、上記の如く無限端てレンズが停止さ
れている様な場合でも正確に実際のレンズ位置DEP、
とDEP2間の移動量検知が出来ることとなる。
Since the distance between the actual lens positions DEP and DEP2 is calculated in this way, even when the lens is stopped at the infinite end as described above, the actual lens position DEP and DEP2 can be accurately determined.
This means that the amount of movement between DEP2 and DEP2 can be detected.

該ステップ241にてDEP、とDEP2のレンズ位置
の移動量を求めた後にステップ242にて2回目デイプ
ス処理において求めたDEP。
After the amount of movement of the lens position of DEP and DEP2 is determined in step 241, the DEP determined in the second depth processing is determined in step 242.

からDEP2までのデフォーカス量DEFの符号判定を
行う。上記の如くデフォーカス量DEFはその駆動方向
を表わす情報も含んでおり、上記DEFの符号を判定す
ることに位置DEP、から位置DEP2へ移行する方向
の判定がなされる。尚、本実施例では正を至近側への駆
動方向を示す符号とし負を無限側への駆動方向を示す符
号とする。
The sign of the defocus amount DEF from to DEP2 is determined. As described above, the defocus amount DEF also includes information representing its driving direction, and by determining the sign of the defocus amount DEF, the direction of movement from position DEP to position DEP2 is determined. In this embodiment, a positive sign indicates the driving direction toward the closest side, and a negative sign indicates the driving direction toward the infinite side.

今しンズ位置か第4図に示した関係にあるとすると、レ
ンズはDEP、からDEP2への8動時至近方向に駆動
されるので、デフォーカス量DEFが正を示しており、
この時にはステップ243へ移行する。
Assuming that the current lens position is in the relationship shown in Figure 4, the lens is driven in the close-up direction when moving from DEP to DEP2, so the defocus amount DEF is positive.
At this time, the process moves to step 243.

ステップ243:上記ステップ241にて求めたDEP
、とDEP2間の移動量を表わすパルス数をm−に内分
するパルス数を求める。
Step 243: DEP obtained in step 241 above
, and DEP2 is divided internally into m-.

これにて第4図の如<DEP2からDEP3まて移動量
に相当するパルス数が求められる。
As a result, the number of pulses corresponding to the amount of movement from DEP2 to DEP3 is determined as shown in FIG.

又、ステップ242にて無限方向への駆動であったこと
が検知された時はステップ243に代わってステップ2
44が実行される。
Further, when it is detected in step 242 that the drive is in the infinite direction, step 2 is executed instead of step 243.
44 is executed.

斯様な状態ではDEp、とDEP2の関係は第5図の通
っである。
In such a state, the relationship between DEp and DEP2 is as shown in FIG.

従ってステップ244ではDEP、とDEP2の間を−
に内分するパルス数を求め、このパルス数がDEP2か
らDEP3までのレンズ移動量を表わすパルス数となる
Therefore, in step 244, between DEP and DEP2 -
The number of pulses divided internally into DEP2 and DEP3 is calculated, and this number of pulses becomes the number of pulses representing the amount of lens movement from DEP2 to DEP3.

この様にすることにてレンズの2回目のディブス処理に
て至近又は無限のいずれの方向に駆動された場合でも至
近側を7とし無限側を10に内分するレンズ位置DEP
3へのDEP2から移動パルス数を求めることが出来、
上述の本願のレンズ位置DEP3への移行が可能となる
By doing this, the lens position DEP is divided into 7 on the near side and 10 on the infinity side even if the lens is driven in either the near or infinity direction during the second dibs process.
The number of moving pulses can be found from DEP2 to 3,
It becomes possible to shift to the lens position DEP3 of the present application described above.

この様にステップ243.又は244にて位置DEP2
からDEP3へ移行させるまでに必要なエンコーダーか
らのパルス数を求めた後ステップは224以後へ進む。
In this way, step 243. Or at position DEP2 at 244
After determining the number of pulses from the encoder necessary to shift from to DEP3, the process proceeds to 224 and subsequent steps.

従って、この後、上記2回目のディラス処理時のレンズ
駆動と同様にしてレンズが上記ステップ243.244
にて求められたパルス数たけDEP2の位置から6勤し
上記位置DEP3へ移行するとステップ234,235
にてフラッグDEPMVに0が又D E P J F 
ニ1 h< セ’:/ トサhる。
Therefore, after this, the lens is driven in steps 243 and 244 in the same way as the lens driving during the second dilas process.
Steps 234 and 235 move from the position DEP2 to the position DEP3 by the number of pulses determined in step 234 and 235.
Then the flag DEPMV is 0 again D E P J F
ni1 h<se':/ Tosa hru.

即ち、該第3回目のディブス処理において実行されるス
テップ227ではメモリーDEPFPに上記ステップ2
43,244にて求められた位置DEP2からDEP3
までの移動量パルス数てあり、ステップ228ではDE
P3のレンズ位置を表わすカウント値がメモリー5TL
PO3に記憶されることとなる。
That is, in step 227 executed in the third dibs process, the above step 2 is stored in the memory DEPFP.
43,244 from position DEP2 to DEP3
In step 228, DE
The count value representing the lens position of P3 is stored in memory 5TL.
It will be stored in PO3.

従って、上記ステップ244又は243を行った後上記
の各ステップ224〜228を実行し、ステップ9へ移
行し、以後スイッチSW1がオンに保持されている限り
、上記2回目のディブス処理のレンズ駆動と同様のステ
ップ9→17→18→19→20 (200→201→
229)又は20 (200→201→229→230
→231→232→233→236)又は20 (20
0→201→229→230→231→232→237
)が繰り返し実行されメモリー5TLPO3に記憶され
たカウント値(DEP3の位置)に対して±4以内のカ
ウント位置となるまでレンズが駆動され上記DEP3に
対して±4パルス範囲内の位置までレンズが移行すると
上記の如くステップ234,235にてフラッグDEP
MVが0に又D E P J F Mlにセットされ3
回目のデイブス処理でのレンズ駆動を終了する。
Therefore, after performing step 244 or 243, the steps 224 to 228 described above are executed, and the process proceeds to step 9. From then on, as long as the switch SW1 is kept on, the lens drive for the second dibs process is performed. Similar steps 9→17→18→19→20 (200→201→
229) or 20 (200→201→229→230
→231→232→233→236) or 20 (20
0→201→229→230→231→232→237
) is repeatedly executed and the lens is driven until it reaches a count position within ±4 of the count value (position of DEP3) stored in the memory 5TLPO3, and the lens moves to a position within the range of ±4 pulses with respect to DEP3. Then, the flag DEP is set in steps 234 and 235 as described above.
MV is set to 0 and D E P J F Ml is set to 3.
Lens driving in the third Daves process is completed.

尚、該3回目のデイジス処理時のレンズ駆動にあっても
予定レンズ位置までのサーボ(クローズ)制御であり、
レンズ駆動中にスイッチSW1を一度オフとしても、予
定位置まてレンズは駆動゛されると共にレンズが至近側
の限界位置まで移行して駆動不能となった時には以後に
デイプス処理を進ませずにNG表示を行わせ、又、レン
ズか無限位置で停止した時にはレンズをその位置に保持
させて以後のデイブス処理を行わせるものである。
It should be noted that even when driving the lens during the third digit processing, servo (close) control is used to reach the scheduled lens position.
Even if switch SW1 is turned off once while the lens is being driven, the lens will be driven to the planned position, and if the lens moves to the closest limit position and cannot be driven, depth processing will not proceed and the process will be rejected. Display is performed, and when the lens stops at an infinite position, the lens is held at that position and subsequent Daves processing is performed.

この様にして3回目のデイブス処理でのレンズ駆動を終
了した後ステップは9→17→18→19と進み、19
にて上記フラッグDEPJFの1が検知されステップは
21以後に進み、フラッグDEPOK、DEP、、DE
P2゜DEF3のセット状態が検知される。この時点で
はフラッグDEPOK、DEP、、DEP2.は0にセ
ットされDEP、が1にセットされているため、ステッ
プ21→22→26→29→30に進む。ステップ30
ではフラッグDEP3に0をセットし、DEPDNに1
をセットし、その後ステップ31へ進み第2図(f)に
示したDAV計算サブルーチンを実行する。
After completing the lens drive in the third Daves process in this way, the steps progress from 9 to 17 to 18 to 19, and 19
1 of the flag DEPJF is detected and the step proceeds to step 21 and thereafter, and the flags DEPOK, DEP, DE
The set state of P2°DEF3 is detected. At this point, the flags DEPOK, DEP, , DEP2 . Since DEP is set to 0 and DEP is set to 1, the process advances to steps 21→22→26→29→30. Step 30
Then set flag DEP3 to 0 and set DEPDN to 1.
is set, and then the program proceeds to step 31 to execute the DAV calculation subroutine shown in FIG. 2(f).

該DAV計算サブルーチンではまずステップ500を実
行する。
In the DAV calculation subroutine, step 500 is first executed.

ステップ500:レンズの焦点距離情報かメモリーNW
FLに人力される。この焦点距離情報の検出は上述のス
テップ220と同様にして行われる。
Step 500: Lens focal length information or memory NW
Manpower will be provided to FL. Detection of this focal length information is performed in the same manner as step 220 described above.

ステップ501ニステツプ221にて求めた1回目デイ
ブス処理時にレンズをDEP、へ移行することにより合
焦状態となる被写体へ及び2回目のデイジス処理時にレ
ンズなりEP2へ8行することにて合焦状態となる被写
体B共にピントが合った状態とするための深度を保証す
る絞り値、即ち、ステップ221にてメモリーLSTF
NOに人力されている絞り値(LSTFNOAVと称す
。)と上記メモリーLSTFLに記憶されている焦点距
離情報(f+ と称す。)とメモリーNWFLに記憶さ
れている焦点距離情報(f、と称す。)との演算LST
FNOAVとする。
During the first Daves processing determined in Step 501 and Step 221, the lens is moved to DEP to bring the subject into focus, and during the second Daisy processing, the lens is moved to EP2 for 8 lines to bring it into focus. The aperture value that guarantees the depth of focus for both subject B, that is, the memory LSTF in step 221.
The aperture value manually entered in NO (referred to as LSTFNOAV), the focal length information stored in the memory LSTFL (referred to as f+), and the focal length information stored in the memory NWFL (referred to as f). Operation LST with
FNOAV.

この演算は上記デイブス処理中にレンズのズーム比を可
変し焦点距離情報が変化しても両液写体共にピントが合
った状態とする深度の絞りを供給出来る様にするためで
ある。
This calculation is performed in order to be able to supply an aperture depth that keeps both liquid photographic objects in focus even if the zoom ratio of the lens is varied during the Daves process and the focal length information changes.

上記絞り値LSTFNOAVは焦点距離がf、の時のデ
フォーカス量に基づいて求めた値である一方、デフォー
カス量は焦点距離との関係て焦点距離が2倍となると4
倍変化する特性を有する。
The above aperture value LSTFNOAV is a value obtained based on the amount of defocus when the focal length is f, while the amount of defocus is 4 when the focal length is doubled due to the relationship with the focal length.
It has the characteristic of fold change.

即ち焦点距1!l1ff+の状態てレンズ位置DEP。That is, the focal length is 1! Lens position DEP in l1ff+ state.

で焦点検出した時のデフォーカス量がDEFたとすると
、この同一被写体を焦点距離2f、の状態て検出した時
のデフォーカス量としている4DEFとなり、上記絞り
値LSTFNOAVも焦点距離が2倍変化すると4倍変
化する。
If the defocus amount when the focus is detected is DEF, then it becomes 4DEF, which is the defocus amount when the same subject is detected at a focal length of 2 f, and the above aperture value LSTFNOAV also becomes 4 when the focal length changes twice. Change twice.

従って、上記絞り値LSTFNOAVを求めた時の焦点
距離と撮影時の焦点距離がズーム操作等によって変化し
た時に、上記絞り値LSTFNOAVで絞り制御を行っ
ても両液写体ともにピントか合った状態での深度を保証
出来なくなる。
Therefore, when the focal length at which the aperture value LSTFNOAV was calculated and the focal length at the time of shooting change due to zoom operation, etc., even if the aperture is controlled using the aperture value LSTFNOAV, both liquid objects will remain in focus. depth cannot be guaranteed.

を制御絞り値AVdepとなし、焦点距離がLSTFN
OAVを求めた時に比して2倍変化した時にその絞りを
4倍変化させ、ズーム操作によらず常に両液写体共にピ
ントが合った状態を保証する絞り値を求めている。
Control aperture value AVdep and no, focal length is LSTFN
When the aperture changes twice compared to when the OAV was determined, the aperture is changed four times, and an aperture value that guarantees that both liquid photographic objects are always in focus is determined regardless of zoom operations.

このステップ501に次いでステップは502へ進む。Following this step 501, the step proceeds to 502.

ステップ502:このステップではカメラに装着してい
るレンズがズームレンズか固定焦点のレンズかの判別を
行う。
Step 502: In this step, it is determined whether the lens attached to the camera is a zoom lens or a fixed focus lens.

この判別動作は上述の焦点距離情報のレンズからカメラ
への伝達と同様にコンピューターPR3にて回路LPR
3を指定し、該回路内のRAMに記憶されているズーム
レンズ情報又は固定焦点レンズ情報を読み出しコンピュ
ーターPR3に人力しこの人力情報に基づいて上記の判
定かなされる。尚、上記ズームレンズ又は固定焦点レン
ズ情報はレンズごとに決めるため、ズームレンズには上
記ズームレンズ情報か、又固定焦点レンズには固定焦点
レンズ情報かレンズのRAMに記憶されている。
This discrimination operation is carried out by the computer PR3 using the circuit LPR in the same way as the above-mentioned transmission of the focal length information from the lens to the camera.
3, the zoom lens information or fixed focus lens information stored in the RAM in the circuit is read out and manually inputted to the computer PR3, and the above judgment is made based on this manually inputted information. Note that since the zoom lens or fixed focus lens information is determined for each lens, the zoom lens information for the zoom lens and the fixed focus lens information for the fixed focus lens are stored in the RAM of the lens.

このステップにて装着レンズがズームレンズであると判
定された場合にはステップ503が実行され上記絞り値
AVdepに対して一定値AV7Mか加算され補正制御
絞り値AVdep’ か求められる。この一定値AV2
Mを加算することにて絞り値としては上記算出絞り値A
Vdepよりもずこし絞り込み側の絞り値、即ちより深
度の深い絞り値となる。
If it is determined in this step that the attached lens is a zoom lens, step 503 is executed and a constant value AV7M is added to the aperture value AVdep to determine a correction control aperture value AVdep'. This constant value AV2
By adding M, the aperture value is the above calculated aperture value A.
The aperture value is a little closer to the stop-down side than Vdep, that is, the aperture value is deeper.

この加算処理は上記算出絞り値AVdepに対する誤差
を吸収させるためである。即ち、上記AVdepを求め
るにあたり、種々な誤差要因があったとしても実際の制
御絞りをより深度の深い絞り値とすることにて上記誤差
分の補正を行っている。
This addition process is for absorbing the error with respect to the calculated aperture value AVdep. That is, in determining the above-mentioned AVdep, even if there are various error factors, the above-mentioned error is corrected by setting the actual control aperture to a deeper aperture value.

又、ステップ502にて固定焦点レンズが装着されてい
ると判定された場合にはステップ503に代わってステ
ップ504か実行される。
Further, if it is determined in step 502 that a fixed focus lens is attached, step 504 is executed instead of step 503.

このステップ504では上記絞り値AVdepに対して
一定値AVSNGを加算し補正制御絞り値AVdep′
を求めている。この加算処理も上記ズームレンズと同様
な誤差補正が目的である。
In this step 504, a constant value AVSNG is added to the aperture value AVdep, and the correction control aperture value AVdep' is
I'm looking for. This addition process also has the purpose of error correction similar to that of the zoom lens described above.

尚、一定値はA VSNG <A VZMの関係となっ
ておる。この関係にAVSNG及びAV2Mを設定した
理由はズームレンズの方か固定焦点レンズよりも多く誤
差要因を含むため、その補正量を大とするためである。
Note that the constant value has a relationship of A VSNG <A VZM. The reason why AVSNG and AV2M are set in this relationship is to increase the amount of correction for zoom lenses because they include more error factors than fixed focus lenses.

上記のステップにて補正制御絞りAVdep′を求めた
後にステップは505へ移行する。
After determining the correction control aperture AVdep' in the above step, the step moves to 505.

ステツプ505: を満足する整数Jを求める。Step 505: Find an integer J that satisfies.

Jはアペックス値の2倍の値であり、このJをクス絞り
値が得られる。
J is twice the apex value, and this J can be used to obtain the aperture value.

即ち、上記(1)式は を変形した式てあり、かつAVdep’ に正確に対応
したJを求めるためには (2;i )’ =AVdep’         ・
= (3)にてJを求めれば良い。この場合Jは整数の
みでなく少数まても含んだ値となり、上記(2)式に基
づいて式(1)にてJを求めれば上記(3)式で求めた
Jの少数部は切り上げられる。
That is, the above formula (1) is a modified formula, and in order to find J that exactly corresponds to AVdep', (2;i)' = AVdep' ・
= J can be found using (3). In this case, J is a value that includes not only integers but also decimals, and if J is calculated using equation (1) based on equation (2) above, the decimal part of J obtained using equation (3) above will be rounded up. .

従って、式(1)にて求めた絞り値JはAV精度て切り
上げられた値となり、より絞り込み側の絞り値を示し、
このステップ処理で更に誤差吸収用の補正がなされる。
Therefore, the aperture value J obtained using formula (1) is a value that is rounded up according to the AV accuracy, indicating an aperture value on the narrower side,
This step process further performs correction for error absorption.

この後ステップは506へ移行しステップ506で求め
たJに絞り値の実数に変換される。
Thereafter, the process moves to step 506, where J obtained in step 506 is converted into a real number of aperture value.

尚ステップ505での処理は上記の誤差吸収の目的の他
にカメラの絞りの機械的な制御段数に合わせるためであ
り、アペックスの一段の絞り値を求めているのでカメラ
の該機械的な制御段数用可能となる。
In addition to the above-mentioned purpose of error absorption, the process in step 505 is to match the mechanical control stage number of the aperture of the camera, and since the aperture value of one stage of the apex is obtained, the mechanical control stage number of the camera is determined. It becomes possible to use it.

上述の如くしてDAV計算サブルーチンを終了するとス
テップは32へ移行しDAV表示すブルーチンを行なう
。このサブルーチンは表示器DSPにて上記DAV計算
サブルーチンにて求めた絞りの実数を表示するルーチン
であり、その表示動作は上述の如く表示動作と同様に行
われる。
When the DAV calculation subroutine is completed as described above, the process moves to step 32, where a DAV display routine is executed. This subroutine is a routine for displaying the real number of apertures obtained in the DAV calculation subroutine on the display device DSP, and its display operation is performed in the same manner as described above.

又、ステップ32が行われるとステップ33へ移行しレ
リーズ動作を許容し、ステップ25へ移行しフラグDE
POKに1をセットしステップ9へ戻る。従って、この
状態てスイッチSW1がオンのまま保持されていれは、
以後ステップは9→17→18→19−21を繰り返す
。又、この状態でスイッチSW1がオフとなってもステ
ップは9→10→12→14→15を繰り返えし、再度
スイッチSW、がオンとなっても上記ステップ9→17
→18→19→21か繰り返えされる。従って全てのデ
イブス処理か終了した後にスイッチSW1か誤まってオ
フとなってもデイブス処理結果はそのまま維持されるこ
ととなる。
Moreover, when step 32 is performed, the process moves to step 33 to allow the release operation, and the process moves to step 25 to set the flag DE.
Set POK to 1 and return to step 9. Therefore, if switch SW1 is kept on in this state,
Thereafter, steps 9→17→18→19-21 are repeated. Also, even if the switch SW1 is turned off in this state, the steps 9→10→12→14→15 are repeated, and even if the switch SW1 is turned on again, the steps 9→17 are repeated.
→ 18 → 19 → 21 is repeated. Therefore, even if the switch SW1 is accidentally turned off after all Daves processing is completed, the Daves processing results will be maintained as they are.

この状態でシャッターボタンの第2段操作を行うと、割
込み処理にてステップ3のAE制制御サブルーシンおけ
るレリーズ動作処理かなされ、絞りが上記演算にて求め
た絞り値Jに応した信号がコンピューターPR3のSO
倍信号して回路LCMを介して回路LPR3に伝わり、
ステップモーターDMTRを駆動し、該モーターに連動
する絞りが上記Jに応じて絞り込まれかつシャッターレ
リーズ動作がなされ、その際のシャッター秒時がステッ
プ17での測光値と上記Jで決定される絞り値に基づき
決定されたシャッター値にて制御されることとなる。
When the second step of the shutter button is operated in this state, the release operation processing in the AE control subroutine of step 3 is performed in the interrupt processing, and a signal corresponding to the aperture value J obtained by the above calculation is sent to the computer PR3. S.O.
The doubled signal is transmitted to the circuit LPR3 via the circuit LCM,
The step motor DMTR is driven, the aperture linked to the motor is narrowed down according to the above J, and the shutter release operation is performed, and the shutter time at that time is the photometric value in step 17 and the aperture value determined by the above J. The shutter value is determined based on the shutter value.

以上の動作にてデイプスモートでは異なる位置にある被
写体間を至近側に7.無限側に10に内分するピント位
置にレンズを合わせ、かつその絞りとして両波写体とも
にピントが合った状態を保証する深度の絞りにて撮影が
なされることとなる。
With the above operation, depth mode moves subjects at different positions to the close side.7. The lens is set at a focus position that is divided into 10 points on the infinity side, and the aperture is set to a depth that ensures that both wave objects are in focus.

尚、上記2回目及び3回目のデイブス処理にあっては2
回目のデイブス処理で求めたデフォーカス量に応して決
定されるパルス数に基づきレンズの実駆動量を求め、こ
の実駆動量のよってレンズを駆動しているので、ディジ
ス中にズーム比を変化させても、又レンズか無限端に突
き当った場合でも、上述の如く両波写体の−の内分点に
レンズを正確にB行させることが出来ることとなる。
In addition, in the second and third Daves processing mentioned above, 2
The actual driving amount of the lens is determined based on the number of pulses determined according to the defocus amount determined in the second Daves processing, and the lens is driven by this actual driving amount, so the zoom ratio is changed during the digis. Even if the lens hits the infinite end, the lens can be accurately moved to the B line at the - internal dividing point of the double-wave object as described above.

又、デイブスモートでは3回目のデイブス処理が終了す
るまでスイッチSW2のオンによる7ル リーズ動作への移行が禁止されており、これにてディジ
スモード中に誤まってレリーズボタンの第2段操作を行
っても以後のデイブス処理を実行することが出来、デイ
ブスモードが終了するまでシャッターボタンを誤操作し
ても、そのモードの維持がなされるものである。
In addition, in Dave Smote, transition to 7 release operation by turning on switch SW2 is prohibited until the third Dave process is completed, so even if you accidentally operate the second release button during Digis mode, it will not work. Subsequent Dave's processing can be executed, and even if the shutter button is erroneously operated until the Dave's mode ends, the mode is maintained.

又、実施例ではエンコーダーENCからのパルスをカウ
ントするカウンターは入カバルスをアップ、ダウンカウ
ントし常にレンズ駆動後のレンズ位置を表わす値を示し
、更にデフォーカス量のレンズ駆動に際しては、レンズ
駆動前のカウント値からのカウント値の変化分がデフォ
ーカス量に応じた値となったか否かの判定を行ってレン
ズ駆動量をデフォーカス量となる種制御を行っているが
、その他の方法にてレンズ駆動量制御を行っても良い。
In addition, in the embodiment, the counter that counts the pulses from the encoder ENC counts up and down the input pulse, and always shows a value that represents the lens position after the lens is driven.Furthermore, when driving the lens for the defocus amount, Although the lens drive amount is controlled to become the defocus amount by determining whether the change in the count value from the count value has become a value corresponding to the defocus amount, there are other ways to control the lens drive amount. Drive amount control may also be performed.

又、レンズの無限端又は至近端位置への突き当りを検知
する方法として各限界端にリミットスイッチを設のでも
良い。
Further, a limit switch may be provided at each limit end as a method of detecting when the lens hits the infinite end or the closest end position.

又、2回目のデフォーカス量に基づいてレンズを駆動し
た際にレンズの限界端に突き当るか否かの判定方法とし
ては算出デフォーカス量と現在のレンズ位置とレンズの
限界端までの距離との比較を行っても良い、この場合に
はレンズの現在位置情報として絶対値情報がレンズから
検知される様にする必要がある。
Also, a method for determining whether or not the lens will hit the limit edge when the lens is driven based on the second defocus amount is to use the calculated defocus amount, the current lens position, and the distance to the lens limit edge. In this case, it is necessary to detect absolute value information from the lens as the current position information of the lens.

〔効果〕〔effect〕

以上の如く本発明にあっては演算絞りAVdepに対し
て一定量(A V!ING 、 A VZN)絞り込み
側へオフセットしているので、上記演算絞りに含まれる
誤差を上記オフセットにて吸収出来、常に異なる2つの
被写体に対してピントが合った状態での撮影を可能とす
るものである。
As described above, in the present invention, since the calculation aperture AVdep is offset by a certain amount (AV!ING, AVZN) toward the aperture, the error included in the calculation aperture can be absorbed by the offset. This allows photographing with two different subjects always in focus.

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

第1図は本発明のカメラの一実施例を示す回路図、 第2図(a)〜第2図(f)は第1図実施例のコンピュ
ーターPR3に内蔵されるプログラムを示す説明図、 第3図、第4図、第5図は第1図実施例の動作を説明す
るための説明図である。 P R5−−−−−−−−−−コンピューターL RR
S  −一−−−−−−制御回路L CM−−−−−一
−−−−バッファー回路D M T R−−−−−一−
−絞り制御用モーター特許出願人  キャノン株式会社 あ←−−−−−−−−−−□−+ N2
1 is a circuit diagram showing an embodiment of the camera of the present invention; FIGS. 2(a) to 2(f) are explanatory diagrams showing programs built in the computer PR3 of the embodiment of FIG. 1; 3, 4, and 5 are explanatory diagrams for explaining the operation of the embodiment shown in FIG. 1. PR5-----------Computer L RR
S -1---Control circuit L CM------1---Buffer circuit D M T R------1-
-Aperture control motor patent applicant Canon Co., Ltd.←−−−−−−−−−−□−+ N2

Claims (2)

【特許請求の範囲】[Claims] (1)第1の位置にレンズが停止している状態で被写体
に対するデフォーカス量を焦点検出回路にて求め、該デ
フォーカス量と最小錯乱円にて決定される絞り値を算出
し、該絞り値に絞り制御を行わせ、更に上記デフォーカ
ス量に基づき該デフォーカス量を内分する位置にレンズ
を移動させ第1の位置にレンズが停止している状態にて
合焦となる被写体と第1の位置からレンズを上記デフォ
ーカス量駆動した際に合焦となる被写体とを、ともにピ
ントが合った状態となす自動焦点調節装置を有するカメ
ラにおいて、前記算出絞り値に対して所定のオフセット
量絞り込み側の値へシフトさせる補正手段を設け、該補
正手段にてシフトされた絞り値に基づき上記絞り制御を
行うことを特徴とする自動焦点調節装置を有するカメラ
(1) With the lens stopped at the first position, the focus detection circuit determines the defocus amount for the subject, calculates the aperture value determined by the defocus amount and the circle of least confusion, and Aperture control is performed based on the value, and the lens is moved to a position that internally divides the defocus amount based on the defocus amount. With the lens stopped at the first position, the subject to be in focus and the second In a camera having an automatic focus adjustment device that brings a subject into focus when the lens is driven by the above defocus amount from position 1, a predetermined offset amount with respect to the calculated aperture value. A camera having an automatic focus adjustment device, characterized in that a correction means for shifting the aperture value to a value on the aperture side is provided, and the aperture control is performed based on the aperture value shifted by the correction means.
(2)前記カメラは装着されたレンズがズームレンズか
固定焦点レンズか否かを判別する判別手段と、該判別手
段にてズームレンズであるとの判定がなされた際に上記
オフセット量として第1の値を前記補正手段に供給し、
又固定焦点レンズであると判定がなされた際に上記第1
の値よりも小さな第2の値を前記オフセット量として前
記補正手段に供給するオフセット量供給手段を有する特
許請求の範囲第(1)項に記載の自動焦点調節装置を有
するカメラ。
(2) The camera includes a determining means for determining whether the attached lens is a zoom lens or a fixed focus lens, and a first offset amount when the determining means determines that the lens is a zoom lens. supplying the value of to the correction means,
In addition, when it is determined that the lens is a fixed focus lens, the first
A camera having an automatic focus adjustment device according to claim 1, further comprising an offset amount supplying means for supplying a second value smaller than the value of , as the offset amount to the correction means.
JP62004569A 1987-01-12 1987-01-12 Camera with auto-focusing device Pending JPS63172248A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62004569A JPS63172248A (en) 1987-01-12 1987-01-12 Camera with auto-focusing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62004569A JPS63172248A (en) 1987-01-12 1987-01-12 Camera with auto-focusing device

Publications (1)

Publication Number Publication Date
JPS63172248A true JPS63172248A (en) 1988-07-15

Family

ID=11587671

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62004569A Pending JPS63172248A (en) 1987-01-12 1987-01-12 Camera with auto-focusing device

Country Status (1)

Country Link
JP (1) JPS63172248A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5532782A (en) * 1994-02-17 1996-07-02 Nikon Corporation Camera having a depth priority operation mode

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5532782A (en) * 1994-02-17 1996-07-02 Nikon Corporation Camera having a depth priority operation mode

Similar Documents

Publication Publication Date Title
JPH01285908A (en) Automatic focusing device for camera
US4801962A (en) Camera incorporating automatic focusing apparatus
JPH0617935B2 (en) Automatic focus adjustment device
JPS63172239A (en) Auto-focusing device
US5489963A (en) Auto-focusing device
JPS63172248A (en) Camera with auto-focusing device
US4825238A (en) Focus detecting device
US5053799A (en) Camera having auto-focusing device
JPS63172231A (en) Auto-focusing device
JPH05346536A (en) Focal point detecting device
JP2974637B2 (en) Automatic focusing device
JPS63172250A (en) Camera with focusing device
JPS63172249A (en) Camera with focusing device
JPS63172228A (en) Camera with focusing device
JPH0478832A (en) Focus detecting device
JPS63172258A (en) Camera having focusing device
JPH01288816A (en) Automatic focus adjustor
JPS63172224A (en) Auto-focusing device
JPS63172235A (en) Auto-focusing device
JP2756333B2 (en) Automatic focusing device
JPS63172232A (en) Auto-focusing device
JPS63172227A (en) Auto-focusing device
JPS63172238A (en) Auto-focusing device
JPS63172226A (en) Auto-focusing device
JPS63172212A (en) Focused state deciding device