JPS63172250A - Camera with focusing device - Google Patents

Camera with focusing device

Info

Publication number
JPS63172250A
JPS63172250A JP62004573A JP457387A JPS63172250A JP S63172250 A JPS63172250 A JP S63172250A JP 62004573 A JP62004573 A JP 62004573A JP 457387 A JP457387 A JP 457387A JP S63172250 A JPS63172250 A JP S63172250A
Authority
JP
Japan
Prior art keywords
lens
value
aperture
focus
control
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
JP62004573A
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 JP62004573A priority Critical patent/JPS63172250A/en
Publication of JPS63172250A publication Critical patent/JPS63172250A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To always photograph both objects under respectively focused states by executing round-up processing when a calculated stop value indiates a value between the unit number of stages and the multiple of integer. CONSTITUTION:A microcomputer PRS converts a calculated stop value into a value at every unit of stages corresponding to the multiple of integer of the minimum accuracy unit of a diaphragm control mechanism, and when the stop value indicates a value between the unit of stages and the multiple of integer, executes the round-up processing and shifts the stop value to the diaphragm side. At the time of executing practical diaphragm control based upon the calculated stop value, an error is absorbed by the round-up processing and the generation of a trouble setting up a practical control stop to the open side from the calculated stop by the accuracy of the number of control stages in a diaphragm control mechanism and disabling required photographing can be prevented.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は異なる位置に位置する2つの被写体ともにピン
トが合った状態で撮影を行わせる自動焦点調節装置を有
するカメラに関する。
DETAILED DESCRIPTION OF THE INVENTION (Industrial Application Field) 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.

〔従来技術〕[Prior art]

異なる位置に被写体A、Bが位置する場合、被写体Aに
対して合焦とするレンズ位置と、被写体Bに対して合焦
とするレンズ位置の中間位置を求め、この中間位置にレ
ンズを移動させると共に被写体A、Bに対するそれぞれ
のレンズ位置間のデフォーカス量を最小錯乱円で割るこ
とにて絞りを求め、この絞りにて上記被写体A、 Bを
共にその深度内となし、異なる位置の被写体A、B共に
ピントが合った状態を保証させた自動焦点調節装置を有
するカメラを本願出願人が特願昭61−236841号
として提案している。
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 move the lens to this intermediate position. At the same time, the aperture is determined by dividing the amount of defocus between each lens position for subjects A and B by the circle of least confusion, and with this aperture, both subjects A and B are within that depth, and subject A at a different position is determined. The applicant of the present application has proposed a camera having an automatic focus adjustment device that guarantees that both .

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

一方、レンズを上記中間位置へ移行させるに際し、オー
トフォーカス装置にて被写体Aに対して合焦状態とする
レンズ位置にレンズを移行させ、この状態で被写体Bに
対するデフォーカス量を求め、このデフォーカス量を内
分中間する位置までレンズを6動させており、上記デフ
ォーカス検知における焦点検知動作におりる焦点検出誤
差並びレンズ中間位置に移行させるレンズ駆動機構にお
りる位置制御誤差が上記の絞り演算に影響する。
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 6 times to a position where the amount is internally divided, 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 are the above aperture. Affects calculations.

又、更にレンズを上記内分中間信号位置まて上記のデフ
ォーカス量及び位置制御誤差なく正確に6動させたとし
ても絞り制御機構の絞り制御最小段数との関係で絞り制
御機構により実際に制御される絞り値と上記算出絞り値
との間に差か生じ、この差異によって両波写体をともに
a境内とする絞り値が得られなくなるおそれか生しる。
Furthermore, even if the lens is moved exactly 6 times to the internal intermediate signal position without the above defocus amount and position control error, the diaphragm control mechanism will not be able to actually control it due to the relationship with the minimum number of aperture control stages of the diaphragm control mechanism. There will be a difference between the aperture value calculated and the aperture value calculated above, and this difference may cause the possibility that it will not be possible to obtain an aperture value that makes both wave objects fall within the a range.

即ち、絞り制御機構の精度が例えばアペックス絞り制御
機構では1又は1−の絞りのいずれかにしか制御するこ
とが出来ず、絞りを1として制御した場合には所望の深
度よりも浅くなり、上記撮影目的を達成し得なくなる。
That is, the accuracy of the aperture control mechanism is such that, for example, in the apex aperture control mechanism, the aperture can only be controlled to either 1 or 1-, and if the aperture is controlled to 1, the depth will be shallower than the desired depth, and the depth described above will be shallower than the desired depth. It becomes impossible to achieve the purpose of shooting.

〔目的〕〔the purpose〕

本発明は上記事項に鑑みなされたもので、上記算出絞り
値を絞り制御機構の最小精度単位の整数倍の段数単位ご
との値に変換すると共に絞り値が該整数倍の段数単位間
の値を示している時には切上げ処理を行い絞り値を絞り
込み側の値にシフトし算出絞り値に基づく実際の絞り制
御時において、上記切上げ処理にて上述の誤差を吸収す
ると共に絞り制御機構の制御段数の精度によって算出絞
りよりも実際の制御絞りが開放側の値となってしまい所
望の撮影が達成されなくなってしまうことを防止するも
のである。
The present invention has been made in view of the above-mentioned matters, and it converts the calculated aperture value into a value for each stage unit that is an integral multiple of the minimum accuracy unit of the aperture control mechanism, and also converts the aperture value into a value between stages that are an integral multiple of the minimum precision unit of the aperture control mechanism. When indicated, round-up processing is performed to shift the aperture value to a value on the aperture side. During actual aperture control based on the calculated aperture value, the above-mentioned round-up processing absorbs the above-mentioned error and improves the accuracy of the control stage number of the aperture control mechanism. This prevents the actual control aperture from becoming a value on the open side than the calculated aperture, which prevents the desired photographing from being achieved.

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

図においてPRSはカメラの制御装置で、例えば、内部
にROM、RAM、A/D変換機能を持つ1チツプのマ
イクロ・コンピュータであり、ROMに格納された後述
のプログラムに従って、自動露出制御機能、自動焦点検
出機能、フィルムの巻き上げ・巻戻し等のカメラの動作
を行っている。
In the figure, PRS 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
I、5CLKを用いて、周辺回路およびレンズと通信し
、各々の回路やレンズの動作を制御する。
Microcomputer PR3 has communication signals So, S
I, 5CLK is used to communicate with peripheral circuits and lenses, and to control the operation of each circuit and lens.

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

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

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

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

SDRは焦点検出用のラインセンサ装置SNSの駆動回
路であり、コンピューターPR5からの信号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 PR5 is H°, and the SO.

Sl、5CLK信号によりコンピューターPR3にて制
御される。
It is controlled by the computer PR3 by the Sl and 5CLK 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にて生成されるCOD駆動用の
クロック、SHはラインセンサCCDI 、CCD2に
蓄積された電荷を転送部に転送させる信号、CLRはラ
インセンサCCD、、CCD2の蓄積電荷をクリアさせ
るクリア信号でありこれらの各信号はコンピューターP
RSにて制御される駆動回路SDRにて形成される。
φ1. φ2 is clock CK from computer PR3
SH is a signal for transferring the charges accumulated in the line sensors CCDI and CCD2 to the transfer section, and CLR clears the accumulated charges in the line sensors CCD and CCD2. These signals are clear signals for computer P.
It is formed by a drive circuit SDR controlled by RS.

センサ装置SNSの出力信号O8はクロックφ1.φ2
に同期して時系列で出力されるセンサCCDI 、CC
D2の各絵素に蓄積された像信号てあり、CCDI 、
CCD2に各ビットごとに出力され回路SDR内の増幅
回路で増幅された後、AO3信号としてコンピューター
PR3に人力される。コンピューターPR3はAO3信
号をアナログ入力端子から入力し、CK信信号同期して
、内部のA/D変換機能でA/D変換後RAMの所定の
アドレスに順次格納する。
The output signal O8 of the sensor device SNS is clock φ1. φ2
Sensors CCDI and CC output in chronological order in synchronization with
There are image signals accumulated in each picture element of D2, CCDI,
Each bit is output to the CCD2, 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, synchronizes with the CK signal, and uses its internal A/D conversion function to sequentially store it at a predetermined address in the RAM after A/D conversion.

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

CCD2の蓄積時間制御に用いられる。It is used to control the accumulation time of CCD2.

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

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

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,モータ
ー駆動回路MDRI、MDR2゜シャッター制御は、本
発明と直接間わりかないので、詳しい説明は省略する。
Note that the switch sense and display circuit DDR, motor drive circuit MDRI, and MDR2° shutter control are not directly related to the present invention, so detailed explanations thereof will be omitted.

同期信号LCKに同期してレンズ内制御回路LPRSに
入力される信号DCLは、カメラからレンズに対する命
令のデータであり、命令に対するレンズの動作が予め決
められている。
A signal DCL input to the in-lens control circuit LPRS 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.

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

実施例では、全体繰り出しの単レンズの例を示しており
、カメラから焦点調節の命令が送られた場合には、同時
に送られてくる駆動量・方向に従って、焦点調節用モー
ターLMTRに対して信号LMF、LMRを送出し、モ
ーターLMTRを駆動して、光学系を光軸方向移動させ
て焦点調節を行う。光学系の移動量はエンコーダー回路
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 LMTR 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 controlled by the signal 5ENC from 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,
Stepper motors can be oven controlled, so
Does not require an encoder to monitor operation.

尚、上記回路LPRSにはレンズの焦点距離情報(ズー
ムレンズの場合にはズーム状態に応じた焦点距離情報)
等の上記バロメーターを所定のアドレスに格納している
メモリーが設けられている。又、該回路LPR3には上
記モニター信号5ENCとしてのパルスをカウントする
カウンターが設けられ、更に後述のレンズ駆動に際しデ
フォーカス量に応じた値に対応するパルス数をカウント
、そのカウント値がレンズ駆動前のカウント値から上記
デフォーカス量に応じた信号だけ上記パルス数のカウン
トにて変化した時、即ちレンズ駆動により変化したカウ
ント値がデフォーカス量に応じた値と一致した時に信号
LMF、LMRをLとなしモーターLMTRを停止させ
る制御回路を有している。又該回路は上記の如くモータ
ー制御が上記カウント値の一致にて停止した時にレンズ
停止信号を形成し、又レンズ駆動によるカウント値の変
化分がデフォーカス量に応じた値となる以前にレンズが
駆動を停止した状態となったことを検知して、この際に
レンズ駆動不能信号を形成する信号形成回路が更に設け
られている。上記レンズ駆動不能信号は例えば上記カウ
ント値の変化分がデフォーカス量に応じた値となってい
ない状態でモニター信号5ENCが所定時間以上形成さ
れていないか否かを判定し、上記モニター信号が斯様な
条件下で所定時間以上形成されていない時にレンズ駆動
不能信号を形成する。
Note that the circuit LPRS has focal length information of the lens (in the case of a zoom lens, focal length information according to the zoom state).
A memory is provided which stores the above-mentioned barometers such as, etc., at a predetermined address. Further, the circuit LPR3 is provided with a counter that counts pulses as the monitor signal 5ENC, and further counts the number of pulses corresponding to a value according to the amount of defocus when driving the lens, which will be described later. When the count value changes by a signal corresponding to the defocus amount 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. It has a control circuit that stops the motor LMTR. In addition, the circuit generates a lens stop signal when the motor control stops when the count values match, as described above, and also generates a lens stop signal before the change in the count value due to lens driving reaches a value corresponding to the amount of defocus. A signal forming circuit is further provided that detects that the driving is stopped and forms a lens drive disabling signal at this time. 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.
A display LDE, and further a 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.

不図示の電源スィッチをオンとするとマイクロ・コンピ
ューターPR3への給電がなされ、コンピューターPR
3は格納プログラムを実行する。
When the power switch (not shown) is turned on, power is supplied to the microcomputer PR3, and the computer PR
3 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 depth mode.

該判定はコンピューターPR5から信号CDDRをHと
なし、回路DDRを指定し、入力スイッチ群SWSに設
けられているモード選択スイッチの設定状態をSI傷信
号してコンピューターPR3に入力し、モード選択スイ
ッチの設定状態を判別することにて行われる。
This determination is made by setting the signal CDDR to H from the computer PR5, designating the circuit DDR, inputting the setting state of the mode selection switch provided in the input switch group SWS as an SI signal to the computer PR3, and inputting the setting state of the mode selection switch provided in the input switch group SWS to the computer PR3. 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: Detect the state of the switch SW1, which is turned on when the shutter button is pressed in the first stage.

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

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

従って、モードが通常モードに設定され、かつシャッタ
ーボタンが操作されていない状態ではステップ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 Dave's mode with the shutter button not being operated.

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

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

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

ステップ9:スイッチSW1の状態を判定し、スイッチ
SW、がオフの時にはステップ10以後へ、又スイッチ
SWlがオンの時にはステップ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、以外のフラッグはOに
設定されているため、ステップ13へ移行し、フラッグ
DEPJF、DEPOKを0にセットしステップ14に
て再度設定モードが判定され、デイブスモードのまま保
持されていればステップ15へ又デイブスモートが解除
されていればステップ16へ移行する。ステップ15で
は内部タイマーの経過時間が所定値を越えたか否かの判
定がなされる。尚このタイマーはデイブスモードの設定
がなされてから計時動作を開始するものとする。
Since the flags other than the flag DEP are set to O in step 8, the process moves to step 13, and the flags DEPJF and DEPOK are set to 0. In step 14, the setting mode is determined again, and the mode remains in Dave's mode. If it is held, the process goes to step 15, and if Dave Smoot is released, the process goes 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へ移行し全フラッグなOにセットした後再度
ステップは1へ戻る。
Unless the predetermined 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 the 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 the depth mode is canceled, the process proceeds to step 16, where all flags are set to O, and the process returns to step 1 again.

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

今、デイブスモードが設定されてから所定時間以内にシ
ャッターボタンの第1段型繰作がなされたものとする。
Assume that the shutter button is pressed in 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
R3に入力し、内部の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 R3, 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 182: Reset the above-mentioned timer and restart the timing operation 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 under Dave's mode will be described below.

ステップ200:フラッグPRMVのセット状態を検知
する。該フラッグもOにセットされているため、ステッ
プ201へ移行する。
Step 200: Detect the set state of flag PRMV. Since this flag is also set to O, 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図(c)に示したステップ300以下に
記載されている。次に該サブルーチンにつぎ述べる。
Step 206 is a focus detection subroutine, which is described after step 300 shown in FIG. 2(c). Next, the subroutine will be described.

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

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

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

上記の如くして焦点状態に応じた位置に投射された像パ
ターンを上記像信号クリア後各CCDI 、CCD2に
て所定時間蓄積し、その後、駆動回路SDRから信号S
H及びクロックφ1.φ2がセンサ装置SNSに供給さ
れる。
After clearing the image signal, the image pattern projected at a position according to the focus state as described above is accumulated in each CCDI and CCD2 for a predetermined time, and then a signal S is sent from the drive circuit SDR.
H 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+ is output from the sensor device SNS and the output end.

CCD2の各絵素に蓄積された像信号が出力OSとして
順次時系列にて送出され、駆動回路SDR内の増巾回路
で増巾され信号AOSとしてコンピューターPR5に順
次人力する。コンピューターPRSは上記信号AOSを
内部の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 OS, amplified by an amplification circuit in the drive circuit SDR, and sequentially input to the computer PR5 as a signal AOS. The computer PRS sequentially converts the signal AOS into digital values using an internal A/D conversion function and stores them in a predetermined RAM.

以上の動作にてセンサCCD、、CCD2上の像パター
ンに応じた各センサごとの像信号かデジタル値としてR
AMに記憶され像信号入力サブルーチンを終了しステッ
プ301へ移行する。
With the above operation, the image signal or digital value of each sensor according to the image pattern on the sensor CCD, CCD2 is
The image signal input subroutine is stored in AM and the process moves to step 301.

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

該デフォーカス量の具体的な算出方法は本願と直接関係
がないので、その詳細な説明は省略するが、上記の如く
センサCCD、とCCD2の像パターンの一致度が焦点
状態によって決定されるので、該パターンに対応した上
記各センサのデジタル値を比較処理し、そのデーターの
一致度を求め合焦状態からのずれ量及び方向、即ちデフ
ォーカス量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 sensor CCD and CCD 2 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, and the flag JF is set to 1 when the amount of defocus is considered to be in focus. If it is a dog in a range that can be considered to be hot, return without setting flag JF to 1.

上記焦点検出サブルーチンにて焦点状態の検出及び判定
がなされた後ステップ207にて表示すブルーチンが実
行される。語表示すブルーチンではフラッグAFNGが
1にセットされている時にはコンピューターPR3にて
CDDR侶号を信号なし、回路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. When flag AFNG is set to 1 in the word display blue routine, computer PR3 specifies CDDR without signal, circuit DDR is specified, and SO
The display signal as a flaw signal is transmitted to the circuit DDR, and the display device 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 the set state of flag JF.

フラッグ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.

今D E P 1は1にセットされているため、ステッ
プ210を行いフラッグDEPJFを1にセットした後
にリターンし、再度ステップ9へ移行する。
Since D E P 1 is now set to 1, the program executes step 210, sets the flag DEPJF to 1, 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が共に0の時にはステッ
プ212以後のステップが実行される。
Further, when flags JF and AFNG are both 0, 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を介してレンズ内の回路LPR3を
指定する。
Step 400: Manually calculate "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 LPR3 in the lens via the circuit LCM.

又、信号SDを上記回路LCMを介してDCLとして回
路LPRSに伝える。この際の信号SOは係数Sを読み
出す命令であり、回路LPR3は該信号SOにより内部
のRAMに格納されていた上記係数Sを信号DLCとし
て回路LCMに伝え、該回路LCMは上記信号DLCを
SI他信号してコンピューターPRSに人力し、係数S
がコンピューターに入力される。
Further, the signal SD is transmitted to the circuit LPRS as DCL via the circuit LCM. The signal SO at this time is a command to read the coefficient S, and the circuit LPR3 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 transmits the signal DLC to the SI. Other signals are input manually to the computer PRS, and the coefficient S
is entered into the computer.

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

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

上記の如<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*Sはデフォーカス量に応じたくり出し量、即ち
デフォーカスに応じたレンズの移動量を示す。従って、
DEF*S/FPHはデフォーカス量に応じた上記エン
コーダーENCからのパルス数を示すこととなり、この
パルス数FP分たけレンズが移動することにて算出デフ
ォーカス分のレンズが駆動されることとなる。
Further, the coefficient S is a coefficient of the amount of defocus versus the amount of projection,
DEF*S indicates the amount of protrusion depending on the amount of defocus, that is, the amount of movement of the lens depending on the amount of defocus. Therefore,
DEF*S/FPH indicates the number of pulses from the encoder ENC according to the amount of defocus, and by moving the lens by the number of pulses FP, the lens is driven by the amount of the calculated defocus. .

上記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となし、上記の如くして回路L P R
’ Sを指定すると共に上記パルス数FPを信号SOと
して回路LPR3に伝える。回路LPR3では上記FP
に応じて信号LMF又はLMRをHとなし、モーターL
MTRを駆動する。
In step 213, a lens drive subroutine is executed. In this subroutine, C
The LCM signal is set to H, and the circuit L P R is set as above.
' S is specified and the number of pulses FP is transmitted to the circuit LPR3 as a signal SO. In circuit LPR3, the above FP
Accordingly, the signal LMF or LMR is set to H, and the motor L
Drive MTR.

尚、上記FPはデフォーカス量に応じて決定されており
、その合焦までのずれ方向、即ちレンズの駆動方向情報
も含んでおり、この駆動方向情報に応じて信号LMF又
はL M Rh< 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 depending on this driving direction information, the signal LMF or L M Rh<H is set and the lens is driven in the focusing direction.

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

今、デイジスモード時の初回のスイッチSWlのオン動
作時における上記初回のAF制御サブルーチンにて上記
合焦判定がなされると、上記の如くして合焦表示がなさ
れた後にステップ9へ戻ることとなる。この状態でスイ
ッチSW1がオンに保持されていれば、再度ステップ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 SWl is turned on for the first time in the daisy mode, the process returns to step 9 after the focus is displayed as described above. . If switch SW1 is kept on in this state, 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, since the flag DEPJF is set to 1, the step moves to 21 and the set state of the flag DEPOK is determined. Since the flag DEPOK is set to O in the initial state, the process proceeds to step 22 and subsequent steps.

従って、ディプスモートの初回のスイッチSW1のオン
動作におけるAF制御サブルーチンにて、いきなり合焦
判定がなされた時には合焦表示がなされた後ステップ2
2へ移行する。
Therefore, when the focus is suddenly determined in the AF control subroutine during the initial ON operation of the depth mode switch SW1, the focus display is displayed and then step 2 is performed.
Move to 2.

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

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

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

本実施例ではレンズ駆動に際し、上記の如くレンズの移
動量を表わすパルス数FPが回路LPRSに入力され、
かつレンズLMSの心動に応じてエンコーダーENCか
らパルスが送出され、このエンコーダーからのパルス数
が回路LPR3内のカウンターにてカウントされ、上記
入力パルス数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 LPRS as described above,
In addition, pulses are sent from the encoder ENC according to the heart movement of the lens LMS, and the number of pulses from the encoder is counted by a counter in the circuit LPR3. When the number of pulses matches the input pulse number FP, the circuit LPR3 outputs the signal L.
Control is performed by setting MF and LMR to L and stopping motor LHTR.

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

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

尚、レンズ駆動中にレンズが例えば無限端位置に突き当
って停止した場合には上記カウンターにてカウントされ
たエンコーダーENCからのパルス数が上記パルス数F
Pと一致することなく、レンズが停止状態となる。従っ
て、この様な場合にはカウンターとパルス数FPが一致
していない状態であってもエンコーダーENCからのパ
ルスが発生しなくなり、回路LPRSでは上記状態下で
エンコーダーENCからパルスか所定時間以上発生して
いないことを検知すると信号LMF、LMRをLとなし
モーターを停止させると共にレンズ駆動不能信号を形成
し回路内部のRAMに該信号を格納する様構成されてお
り、正常動作時と異常動作時のレンズ停止を判別させて
いるものである。
If the lens hits the infinite end position and stops during lens driving, the number of pulses from the encoder ENC counted by the counter 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 LPRS 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 being driven, the signals LMF and LMR are set to L, the motor is stopped, and a lens drive disabling signal is generated, which is stored in the internal RAM of the circuit. 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 being driven, the AF control subroutine is immediately terminated and the process returns to step 9.

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

上記の如くしてレンズ駆動がなされている過程にてレン
ズの駆動量、即ちエンコーダーENCからのパルス数が
上記FP計算サブルーチンにて求められたパルス数FP
と一致した時には、これらのパルス数の一致検知を行っ
ている回路LPR3にて出力LMF及びLMRがLにさ
れ、モーターLMTRが停止しレンズがデフォーカス量
だけ駆動されることとなる。従って上記ステップの繰り
返し中にレンズがデフォーカス量たけ駆動されるとステ
ップ202にてレンズが停止したと判定されるため、ス
テップ203にてフラッグP RMVに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, if 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 from then on, in step 204 in the same manner as described above. →205→206 are 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.

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

又、上記の焦点検出不能時も上記の如<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.

以上、ディブスモードで初回のスイッチsw1のオン時
のディブス処理動作をまとめると被写体に対して一度合
焦状態となし合焦後ステップ22へ移行する。
To summarize the dibs processing operation when the switch sw1 is turned on for the first time in dibs mode, the subject is once brought into focus and then the process moves to step 22.

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

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

ステップ23 : DEP、表示を行う。Step 23: Perform DEP and display.

この表示はコンピューターPR3にて信号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 PR3.
, specify the circuit DDR, and DEP as a signal multiplied by sO.
, 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 dibs 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.

この後スイッチSWlがオン状態に保持されていればス
テップは17→18→19→21へ移行する。この時フ
ラッグDEPOKはステップ25にて1にセットされて
いるので、ステップ21の後再度ステップ9へ移行する
。従フて1回目のディブス処理終了後スイッチsw1が
オンの限りステップ9→17→18→19→21が繰り
返され、レンズは最初に合焦した位置に保持され続ける
。この状態からシャッタボタンの操作を解除してスイッ
チsw1をオフとすると、上記ステップ9→17→18
→19→21の縁り返しに変えてステップは12以後へ
移行する。ステップ12以後の処理は上述の如くフラッ
グDEPJF、DEPOKにOをセットずルト共にモー
ドがディプスに保持されているか、又は1回目のディブ
ス処理終了後スイッチSW。
After this, if the switch SWl is kept on, the steps proceed 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. After the first dibs process is completed, steps 9→17→18→19→21 are repeated as long as the switch sw1 is on, and the lens continues to be held at the initially focused position. When the shutter button is released from this state and the switch sw1 is turned off, steps 9→17→18
→19→21 The steps change to 12 and onwards. In the processing after step 12, as described above, the flags DEPJF and DEPOK are set to O, and the mode is held at deep, or after the first deep processing is completed, the switch SW is turned on.

がオフとなってから所定時間経過したかの判別がなされ
、モードが通常モードに戻された場合又は所定時間経過
するまでスイッチ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. Returns and Dibsmote is canceled.

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

以下2回目のディブス処理について説明する。The second dibs 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 reset 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 of step 20 is executed following step 19.

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

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

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

ステップ218:NG表示すブルーチンを実行する。こ
のサブルーチンは上記表示ルーチンと同様にして焦点検
出不能表示用LEDを点灯させた後AF制御サブルーチ
ンを終了する。
Step 218: Execute the NG display blue routine. 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よりも大か否か
の判定を行う。この判定結果としてIDEFl〉dCの
時には、上記ステップ218へ8行し焦点検出不能表示
がなされAF制御サブルーチンを終了する。
Step 219: It is determined whether the defocus amount DEF obtained in the focus detection subroutine is larger than a constant value dc. If the result of this determination is IDEFl>dC, the process goes to step 218 for 8 lines, a focus detection failure display is displayed, and the AF control subroutine is ended.

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

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

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

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

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

この焦点距離情報の入力処理としてはコンピューターP
R5にて信号CLCMをHとなし、上述の如く回路LC
Mを介して回路LPR3を指定し、該回路内に格納され
ている焦点距離情報を読み出すことにて実行される。
The computer P inputs this focal length information.
The signal CLCM is set to H at R5, 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, an aperture value that brings both wave objects into focus when the first and second Dave's processing is performed is determined.

即ち、第3図の如く、1回目のデイブス処理における被
写体Aに対してレンズをDEP、に位置させた時合焦状
態とすることが出来たとすると、1回目のデイプス処理
にてレンズはDEP、の位置ヘオ多行している。
That is, as shown in Fig. 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 the lens will be at DEP, DEP in the first depth processing. The location is heo multi-line.

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

本発明でのデイプス処理は上記の如く2つの異なる被写
体間のデフォーカス量を□に至近側に内分する位置DE
P3にレンズを8動させ、この位置で、DEP3とDE
P2間のデフォーカスmmで割った値を制御絞りとして
採用している。
As described above, depth processing in the present invention is performed at a position DE where the amount of defocus between two different subjects is internally divided into □ on the nearest side.
Move the lens 8 to P3 and at this position, DEP3 and DE
The value divided by the defocus mm between P2 is used as the control aperture.

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

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

従って、本願では、この原理を利用して上記演算にてl
 o E F I X −X□を行い、17   0.
035 レンズを上記D E P 3に移行した時至近側の被写
体DEP2を十分にピント合フた状態とする絞りを求め
ている。尚、この時の絞りは無限側の位置D E P 
+ に対しては深度内にカバーしていないが、通常レン
ズの特性を考慮すると、無限側の被写体に対しては上記
深度が本来カバーしていなくとも十分にピントが合った
状態となるため、本願では内分点(DEP3)を至近側
に□の位置として設定している。
Therefore, in this application, using this principle, in the above calculation, l
o EFIX-X□, 170.
035 We are looking for an aperture that brings the closest object DEP2 into sufficient focus when the lens is shifted to DEP3. In addition, the aperture at this time is at the infinity side position D E P
+ is not covered within the depth range, but considering the characteristics of normal lenses, objects on the infinity side will be fully in focus even if the above depth does not originally cover it. In this application, the internal division point (DEP3) is set at the position of □ on the nearest side.

この様にして両波写体を共にピントが合った状態とする
絞り値1DEFlx−x− 170,035 をステップ221に求め、これをメモリーLSTFNO
に記憶させステップ222へ移行する。
In this way, the aperture value 1DEFlx-x- 170,035 that brings both wave objects 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、DEP、
JPに1をセットし、AF制御サブルーチンを終了する
As a result, if flag JF is set to 1, the process moves to step 223 and flags DEPJF, DEP,
JP is set to 1 and the AF control subroutine is ended.

このステ1ンブ222,223にて2回目のデイプス処
理でフラッグJFの1のセットが検知される様な被写体
はデイプスの1回目の被写体とほぼ同一位置にある被写
体を2回目のデイブス処理の被写体とした場合であり、
その以外の場合はステップ223へ移行する。
In step 1 blocks 222 and 223, the object for which flag JF is set to 1 is detected in the second depth processing is the object that is at almost the same position as the object in the first depth processing. In this case,
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 depth processing 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: Manually input a count value FCNT representing the current position of the lens.

上述の如く回路LPRSにはエンコーダーENCからの
レンズ駆動量を表わすパルスを入力しており、レンズの
駆動制御にあたっては、このパルスをカウントし、上記
の如くデフォーカス量に応じたパルス数FPと一致した
か否かの検知を行っている。よって、上記エンコーダー
ENCからのパルスは回路LPR5にてカウントされ、
所定の値を示しており、このカウント値がコンピュータ
ーPR3に現在のレンズ位置を表わすカウント値FCN
Tとして人力される。
As mentioned above, pulses representing the lens drive amount from the encoder ENC are input to the circuit LPRS, and when controlling the lens drive, these pulses are counted and matched with the pulse number FP according to the defocus amount 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 LPR5,
This count value is sent to the computer PR3 as a count value FCN representing the current lens position.
Man-powered as T.

又、この回路LPR3の上記カウント値はコンピュータ
ーPR3にて信号CLCMをHとなすことにて上述した
動作で回路LPR3が指定され、この時のSD倍信号し
て上記カウント値か要求され、該カウント値が信号SI
としてコンピューターに人力されるものである。
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 at this time, the above count value is requested by the SD multiplication signal, and the above count value is requested. value is signal SI
It is manually operated by a computer.

ステップ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 by the amount of defocus determined in the second depth process from the lens position in the first depth 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 inputted to the memory, and manually input it to the memory 5TLPO3.

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

即ち、第3図の如く、1回目のデイブスIA理にてレン
ズがDEP、の位置にあり、この時のカウント値がN!
であったとする。そして、2回目のデイプス処理にてレ
ンズを位置DEP2に移行させることにて2回目のデイ
ブス処理におりる被写体に対して合焦とすることが出来
る様な場合、DEP、からDEP2まてのレンズ駆動J
iFPか上記のステップ223にて求められ、このパル
ス数FPとしてN2が得られたとずる。
That is, as shown in Fig. 3, the lens is at the position DEP during the first Dave's IA operation, and the count value at this time is N!
Suppose it was. If the subject in the second depth processing can be brought into focus by moving the lens to position DEP2 in the second depth processing, the lens from DEP to DEP2 Drive J
It is assumed that iFP is determined in step 223 above, and that N2 is obtained as the number of pulses FP.

この場合、上記メモリー5TLPO3にはN2+N、が
記憶される。この値N、+N2はレンズがDEPIにあ
る時の上記カウンター値N1に対してレンズがDEP、
からDEP2へ移行した時のカウント値を示し、レンズ
の8動すべき目的位置でのカウント値となる。
In this case, N2+N is stored in the memory 5TLPO3. These values N, +N2 are the counter value N1 when the lens is at DEPI, and the lens is at DEP.
It shows the count value at the time of transition from to DEP2, and is the count value at the target position where the lens should move eight times.

以上のステップ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 and 19 are performed following step 9. At this time, assuming that the focus judgment has not been made in the AF control subroutine during the second concave digit processing, step 2 is performed.
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.
29, 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 whether 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 the count value FCNT in the state where the lens is stopped after the second dibs process is input.

従って、今、2回目のディプス処理でのステップ223
にて求めたパルス数FPがN2てあったとすると、本来
、エンコーダーENCからN2個のパルスが送られるま
でレンズが駆動されることとなるので、この状態でのカ
ウント値はレンズ駆動前の1回目のデイプス処理終了時
のレンズ位fiD E P +  (第3図)でのカウ
ンターのカウント値をN1とするとN、+N2となる。
Therefore, step 223 in the second depth processing is now performed.
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 count value of the counter at the lens position fiD E P + (FIG. 3) at the end of the depth processing is N1, it becomes N, +N2.

このステップ後ステップは231へ移行する。After this step, the step moves to 231.

ステップ231ニステツプ228で求めたメモリー5T
LPO3に格納された値に対してステップ230て得ら
れた現在のレンズ位置を表わすカウント値を引く。上述
の如くメモリー5TLPO3の値は1回目のディブス処
理終了後に2回目のデイブス処理にて求めたデフォーカ
ス分レンズを駆動した時の予定のレンズ位置を表わして
おり、上記の如く1回目のディブス処理終了時のカウン
ト値をN1とし、その位置からのデフォーカス量に相応
するパルスがN2であった時にはN、 十N2となって
いる。よって、上記減算結果としては本来上記デフォー
カス量分レンズ駆動がなされるとゼロとなる。
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 5TLPO3 represents the scheduled lens position when driving the lens by the defocus amount obtained in the second Daves process after the first Dibs 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 is N, 10N2. 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 mentioned above, if the lens is driven by the defocus amount determined in the second Daves 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にo
を、又DEPJFに1をセットしAF制御サブルーチン
を終了する。
Therefore, in this step, when the above calculation result is 4 or less, it is assumed that the lens has been driven by the defocus amount and has been driven to the scheduled lens position determined in step 228, and the flag DEPMv is set in steps 234 and 235. o
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.

この時スイッチSW1がオン状態に保持されているとす
ると再度ステップ17→18→19→20 (200→
201→229)がレンズが停止するまで実行され、レ
ンズ停止が確認されると上記ステップ230→231→
232→233が再度実行される。従って、再駆動の結
果ステップ233にてステップ231での演算結果が4
以下となり、ステップ228にて求めた予定位置までレ
ンズが移行していると判定された時にはステップ234
,235が実行され、それ以外の場合は上記の動作がス
テップ233にてレンズがステップ228にて求めた予
定位置まで8動したとの判定がなされるまで繰り返し実
行される。従って、これらのステップ200→201→
229→230→231→232→233→236にて
レンズを確実に2回目のデイプス処理にて求めた予定の
レンズ移行位置まで移行させることが保証されることと
なる。上記の動作はレンズがステップ232にて駆動不
能状態となっていないと判定された場合の動作であるが
、ステップ232にてレンズが例えば無限位置等の限界
位置に移行してレンズ駆動が不能状態となっていると判
定された場合にはステップ232に次いでステップ23
7が実行される。
At this time, if switch SW1 is kept in the on state, 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 eight times to the expected position determined in step 228. Therefore, these steps 200→201→
229→230→231→232→233→236, it is guaranteed that the lens will be reliably moved to the scheduled lens shift position determined in the second depth 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 drive becomes disabled. If it is determined that , step 232 is followed by step 23
7 is executed.

ステップ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
The number of pulses FP calculated based on is also given a positive or negative sign as information representing the driving direction, and by detecting this sign in this step, it can be determined whether the lens is being driven toward infinity. We are making a determination as to whether or not.

このステップにてレンズか無限方向に駆動中駆動不能状
態となった時、即無限端に突き当ってレンズが停止した
と判定された時にはステップは234へ移行、以後上記
レンズ駆動か正しく行われた場合と同様に処理される。
In this step, when the lens becomes unable to be driven 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 driving 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.
, 1 to DEF2°DEF3. After setting DEPDN to 0 and displaying NG on the display DSP in step 239, the AF subroutine is ended.

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

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

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

又、この様に2回目のデイブス処理にてレンズをサーボ
制御しているので2回目のデイブス処理にてレンズを駆
動中にスイッチSWlがオフとなっても、常に正しいレ
ンズ位置へレンズを移行させることが出来る。即ち、2
回目のディブス処理におけるレンズ駆動中にスイッチS
WIかオフとなるとステップが9から10へ移行し、そ
の時点でレンズが停止する。又、この後スイッチSW1
がオフの間ステップは9〜15を繰り返し、再度スイッ
チSW1をオンとするとステップは7−17−18−1
9−20へ移行する。
Also, since the lens is servo-controlled in the second Daves process, even if the switch SWl is turned off while the lens is being driven in the second Daves 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 dibs process.
When WI is turned off, the step shifts from 9 to 10, and the lens stops at that point. Also, after this switch SW1
Steps 9 to 15 are repeated while switch is off, and when switch SW1 is turned on again, steps are 7-17-18-1.
Move to 9-20.

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

以上の動作にてレンズが予定位置まで移行すると上記の
如くステップ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.

この状態てスイッチSW1がオンとなっているとステッ
プは9→17→18→19へ8行する。
In this state, if the switch SW1 is on, the steps are 8 lines from 9 to 17 to 18 to 19.

この時ステップ235にてフラッグDEPJFに1かセ
ットされているため、ステップは19→21へ進み、又
この時フラッグDEPOKは0にセットされているので
、ステップは21から22へ進む。又、この時フラッグ
DEP、及びDEP2は2回目のデイブス処理移行時に
上述のステップ24にてDEP、=0.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 from 19 to 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 are set to DEP,=0. Since DEP2 is set to 1, the steps are 22 → 26 → 27 →
28, the display device DSP displays DEP2 indicating that the second Daves process 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.

この状態でスイッチSW1がオンのまま保持されていれ
ば以後ステップ9→17→18→19→21→9が繰り
返されることとなり、レンズは2回目のディブス処理に
て求められた位置に保持され、以上により2回目のデイ
ブス処理を終了する。
If the switch SW1 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 found in the second dibs process. With the above, the second Daves process is completed.

この後スイッチSW1をオフ後再度スイッチSW1をオ
ンとするとステップは9→17→18→19へ移行する
。この時上記の如くスイッチSWlのオフが行われてい
るのでステップ13での処理がなされており、フラッグ
DEDJF。
Thereafter, when the switch SW1 is turned off and then turned on again, the steps shift from 9 to 17 to 18 to 19. At this time, since the switch SWl is turned off as described above, the process in step 13 is performed, and the flag DEDJF is set.

−DEDOKは0にセットされている。従って、ステッ
プは19−20へ移行し、再度AF制御サブルーチンを
実行する。
-DEDOK is set to 0. Therefore, the process moves to step 19-20, and the AF control subroutine is executed again.

尚、この時点では上記ステップ234にてフラッグDE
PMVに0がセットされているのでAF制御サブルーチ
ンではステップ200−201−204−205へ移行
する、又上記ステップ24.28にてフラッグDEP、
=0゜DEP2=0.DEP3=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 AF control subroutine moves to steps 200-201-204-205, and in step 24.28, the flag DEP,
=0°DEP2=0. Since DEP3=1 is set, 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 subject is 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にてメモリーDEPP
Pに人力されたパルス数FP、即ち、2回目のデイジス
処理時に求めたレンズ移行位置までのデフォーカス量に
応じたパルス数と、上記ステップ233〜235にてレ
ンズを予定位置まで駆動した時のステップ231で求め
られたパルス数との減算を行う。即ち、例えば第3図の
如く1回目のデイジス処理時のレンズ位置DEPIを表
わすカウント値をN1として2回目のデイジス処理時の
デフォーカス量に応じたパルス数FPをN2とすると、
上記ステップ228にて求められた2回目のデイブス処
理で予定されるレンズ移行位置DEP2を表わすカウン
ト値はN、+N2となる。
Step 241; At step 227, the memory DEPP is
The number of pulses FP manually applied to P, that is, the number of pulses corresponding to the defocus amount to the lens transition position obtained during the second digitization process, and the number of pulses when the lens is driven to the planned position in steps 233 to 235 above. Subtraction is performed with the number of pulses determined in step 231. That is, for example, as shown in FIG. 3, if the count value representing the lens position DEPI during the first digit processing is N1, and the number of pulses FP corresponding to the defocus amount during the second digit processing is N2, then
The count value representing the lens transition position DEP2 scheduled for the second Dave's process determined in step 228 is N, +N2.

又、ステップ230〜236では上記の如く該予定レン
ズ位置とレンズの現在位置とが4パルス以内となるまで
駆動されるので、2回目のデイプス処理にて実際移行し
たレンズ位置DEP2を表わすカウント値は第4図の如
<Nr 十N2±α、4≧α≧−4となり、予定レンズ
位置と±α内の誤差を有する。
In addition, 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 actual lens position DEP2 in the second depth processing is As shown in FIG. 4, <Nr +N2±α, 4≧α≧−4, and there is an error within ±α from the planned lens position.

そして、上記ステップ231では予定位置(Nl +N
2 ’)−レンズ移行位置(N、+N。
Then, in step 231 above, the planned position (Nl +N
2') - lens transition position (N, +N.

土α)を行っており、この±αが求められる。α) is performed, and this ±α is calculated.

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

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

該ステップ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への移動時至近方向に駆動
されるので、デフォーカス量DEFが正を示しており、
この時にはステップ243へ移行する。
Assuming that the lens positions are now in the relationship shown in FIG. 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間の移動量を表わすパルス数を一□に内分
するパルス数を求める。
Step 243: DEP obtained in step 241 above
The number of pulses that divides the number of pulses representing the amount of movement between , and DEP2 into one square is calculated.

これにて第4図の如< D E P 2からDEP。Now DEP from DEP2 as shown in Figure 4.

まで移動量に相当するパルス数が求められる。The number of pulses corresponding to the amount of movement is determined.

又、ステップ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, the number of pulses divided internally between DEP and DEP2 is determined, and this number of pulses becomes the number of pulses representing the amount of lens movement from DEP2 to DEP3.

この様にすることにてレンズの2回目のデイブス処理に
て至近又は無限のいずれの方向に駆動された場合でも至
近側を7とし無限側を10に内分するレンズ位置DEP
+への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 Daves process.
The number of moving pulses can be found from DEP2 to +,
It becomes possible to shift to the lens position DEP3 of the present application described above.

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

従って、この後、上記2回目のデイプス処理時のレンズ
駆動と同様にしてレンズが上記ステップ243.244
にて求められたパルス数だけDEP2の位置から移動し
上記位置DEP3へ移行するとステップ234,235
にてフラッグDEPMVに0が又DEPJFに1がセッ
トされる。
Therefore, after this, the lens is driven in steps 243 and 244 in the same manner as the lens driving during the second depth processing.
Steps 234 and 235 move from the position DEP2 by the number of pulses determined in Steps 234 and 235 to move to the position DEP3.
At this point, 0 is set to the flag DEPMV and 1 is set to DEPJF.

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

従って、上記ステップ244又は243を行った後上記
の各ステップ224〜228を実行し、ステップ9へ移
行し、以後スイツヂSWlがオンに保持されている限り
、上記2回目のデイブス処理のレンズ駆動と同様のステ
ップ9→17→18→19→20(200→201→2
29)又は20 (200→201−229→230→
231→232→233→236)又は20(200→
201→229→230→231→232→237)が
繰り返し実行されメモリー5TLPO5に記憶されたカ
ウント値(DEP、の位置)に対して±4以内のカウン
ト位置となるまでレンズが駆動され上記DEPsに対し
て±4パルス範囲内の位置までレンズが移行すると上記
の如くステップ234,235にてフラッグDEPMV
がOに又DEPJFが1にセットされ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 Daves process is performed. Similar steps 9 → 17 → 18 → 19 → 20 (200 → 201 → 2
29) or 20 (200→201-229→230→
231→232→233→236) or 20(200→
201 → 229 → 230 → 231 → 232 → 237) are repeatedly executed, and the lens is driven until it reaches a count position within ±4 with respect to the count value (position of DEP) stored in the memory 5TLPO5. When the lens moves to a position within the ±4 pulse range, the flag DEPMV is set at steps 234 and 235 as described above.
is set to O and DEPJF is set to 1, and lens driving in the third Daves process is completed.

尚、該3回目のデイラス処理時のレンズ駆動にあっても
予定レンズ位置までのサーボ(クローズ)制御であり、
レンズ駆動中にスイッチSWIを一度オフとしても、予
定位置までレンズは駆動されると共にレンズが至近側の
眼界位置まて移行して駆動不能となった時には以後にデ
イプス処理を進ませずにNG表示を行わせ、又、レンズ
が無限位置で停止した時にはレンズをその位置に保持さ
せて以後のディブス処理を行わせるものである。
It should be noted that even when driving the lens during the third Deira process, servo (close) control is performed to the scheduled lens position.
Even if the switch SWI 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 ocular position and becomes unable to be driven, depth processing will not proceed and an NG display will be displayed. Further, when the lens stops at an infinite position, the lens is held at that position and the subsequent dibs processing is performed.

この様にして3回目のデイブス処理でのレンズ駆動を終
了した後ステップは9→17→18→19と進み、19
にて上記フラッグDEPJFの1が検知されステップは
21以後に進み、フラッグD E P OK 、 D 
E P + 、 D E P 2 。
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 21 and thereafter, and the flags DEPJF and D are detected.
E P + , D E P 2 .

D E P 3のセット状態が検知される。この時点で
はフラッグD E P OK 、 D E P I、 
D E P 2 、は0にセットされD E P 3が
1にセットされているため、ステップ21−22→26
→29→30に進む。ステップ30ではフラッグDEP
3に0をセットし、DEPDNに1をセットし、その後
ステップ31へ進み第2図(f)に示したDAV計算サ
ブルーチンを実行する。
The set state of DEP3 is detected. At this point the flags DEP OK, DEP I,
Since D E P 2 is set to 0 and D E P 3 is set to 1, steps 21-22→26
→ Proceed to 29 → 30. In step 30, the flag DEP
3 is set to 0, DEPDN is set to 1, and the process then 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 is stored in 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+へ移行することにより合
焦状態となる被写体A及び2回目のデイプス処理時にレ
ンズをDEF2へ移行することにて合焦状態となる被写
体B共にピントが合った状態とするための深度を保証す
る絞り値、即ち、ステップ221にてメモリーLSTF
NOに入力されている絞り値(LSTFNOAVと称す
。)と上記メモリーLSTFLに記憶されている焦点距
離情報(r、と称す。)とメモリーNWFLに記憶され
ている焦点距離情報(fnと称す。)との演算LSTF
NOAV<f二)′を行い、これを制御絞りAVdep
とする。
Subject A that will be in focus by shifting the lens to DEP+ during the first Dave's processing determined in Step 501 and Step 221, and Subject A that will be in focus by shifting the lens to DEF2 during the second depth processing. The aperture value that guarantees the depth to bring both B and B into focus, that is, the memory LSTF in step 221.
The aperture value input to NO (referred to as LSTFNOAV), the focal length information (referred to as r) stored in the memory LSTFL, and the focal length information (referred to as fn) stored in the memory NWFL. Operation LSTF with
NOAV<f2)'
shall be.

この演算は上記デイブス処理中にレンズのズーム比を可
変し焦点距離情報が変化しても両波写体共にピントが合
った状態とする深度の絞りを供給出来る様にするためで
ある。
This calculation is performed in order to be able to supply an aperture depth that keeps both wave 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 calculated 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.

即ち焦点距離f1の状態でレンズ位置DEP+で焦点検
出した時のデフォーカス量がDEFだとすると、この同
一被写体を焦点距@2f、の状態で検出した時のデフォ
ーカス量としている4DEFとなり、上記絞り値LST
FNOAVも焦点距離が2倍変化すると4倍変化する。
In other words, if the defocus amount when the focus is detected at lens position DEP+ with the focal length f1 is DEF, then the defocus amount when this same subject is detected at the focal length @2f is 4DEF, and the above aperture value is LST
FNOAV also changes by a factor of 4 when the focal length changes by a factor of 2.

従って、上記絞り値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 waves will remain in focus. depth cannot be guaranteed.

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

このステップ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.

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

このステップにて装着レンズがズームレンズであると判
定された場合にはステップ503が実行され上記絞り値
AVdepに対して一定値AV2Mが加算され補正制御
絞り値AVdep’が求められる。この一定値AVzM
を加算することにて絞り値としては上記算出絞り値Av
depよりもすこし絞り込み側の絞り値、即ちより深度
の深い絞り値となる。
If it is determined in this step that the attached lens is a zoom lens, step 503 is executed and a constant value AV2M is added to the aperture value AVdep to obtain a correction control aperture value AVdep'. This constant value AVzM
By adding the aperture value, the above calculated aperture value Av
The aperture value is a little closer to the aperture value than dep, 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では上記絞り値AVd e pに対
して一定値A V SNGを加算し補正制御絞り値AV
dep’ を求めてぃ′る。この加算処理も上記ズーム
レンズと同様な誤差補正が目的である。
In this step 504, a constant value A V SNG is added to the aperture value AVd e p to obtain the correction control aperture value AV.
I'm looking for dep'. This addition process also has the purpose of error correction similar to that of the zoom lens described above.

尚、一定値はAVSNG<AVZMの関係となっておる
。この関係にAV、、。及びAV、Mを設定した理由は
ズームレンズの方が固定焦点レンズよりも多く誤差要因
を含むため、その補正量を犬とするためである。
Note that the constant value has a relationship of AVSNG<AVZM. AV in this relationship... The reason for setting AV and M is that since a zoom lens includes more error factors than a fixed focal length lens, the amount of correction thereof should be determined.

上記のステップにて補正制御絞り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 value of the apex value, and by determining this J, an apex aperture value that is one step more accurate than the apex value can be obtained.

即ち、上記(1)式は (2; ) J−1≦AVdep’ < (2: )J
    ++ (2)を変形した式であり、かつAVd
ep’ に正確に対応したJを求めるためには (2’i )’ =AVdep’          
 =−(3)にてJを求めれば良い。この場合Jは整数
のみでなく少数までも含んだ値となり、上記(2)式に
基づいて式(1)にてJを求めれば上記(3)式で求め
たJの少数部は切り上げられる。
That is, the above formula (1) is (2; ) J-1≦AVdep'< (2: )J
++ This is a modified formula of (2), and AVd
To find J that exactly corresponds to ep', (2'i)' = AVdep'
=-(3) to find J. 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 is rounded up.

従って、式(1)にて求めた絞り値JはAVdep’ 
のアペックス値の2倍の値で、かつ一段精度で切り上げ
られた値となり、より絞り込み側の絞り値を示し、この
ステップ処理で更に誤差吸収用の補正がなされる。この
後ステップは506へ移行しステップ506で求めたJ
に絞り値の実数に変換される。
Therefore, the aperture value J obtained using equation (1) is AVdep'
This value is twice the apex value of , and is rounded up with one level of accuracy, indicating an aperture value on the narrower side, and further correction for error absorption is performed in this step process. After this, the step moves to 506, and the J obtained in step 506
is converted into a real number of aperture value.

尚ステップ505での処理は上記の誤差吸収の目的の他
にカメラの絞りの機械的な制御段数に合わせるためであ
り、アペックスの一段の絞り値を求めているのでカメラ
の該機械的な制御段数としては8’  4’  3’等
の77段精度のものが使用可能となる。
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. For example, a 77 step precision such as 8'4'3' can be used.

上述の如くして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を繰り返えし、再度
スイッチSW1がオンとなっても上記ステップ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 depth processing is completed, the results of the Daves processing 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 process in the AE control subroutine in step 3 is performed in the interrupt process, and a signal corresponding to the aperture value J determined by the above calculation is sent to the computer PR3. S.O.
The 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, in Dave's mode, subjects at different positions are moved 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
回目のデイブス処理で求めたデフォーカス量に応して決
定されるパルス数に基づきレンズの実駆動量を求め、こ
の実駆動量のよってレンズを駆動しているので、デイジ
ス中にズーム比を変化させても、又レンズが無限端に突
き当った場合でも、上述の如く両波写体の□の内分点に
レンズを正確に移行させることが出来ることとなる。
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 defocusing process. Even if the lens reaches the infinite end, the lens can be accurately moved to the internal dividing point of the square of the double-wave object as described above.

又、デイブスモードでは3回目のデイブス処理が終了す
るまでスイッチSW2のオンによるレリーズ動作への8
行が禁止されており、これにてデイプスモード中に誤ま
ってレリーズボタンの第2段操作を行っても以後のデイ
ブス処理を実行することが出来、デイブスモードが終了
するまてシャッターボタンを誤操作しても、そのモート
の維持がなされるものである。
In addition, in the Dave's mode, the release operation by turning on the switch SW2 remains unchanged until the third Dave's processing is completed.
This means that even if you accidentally press the second release button during depths mode, you can still perform the subsequent Daves processing, and if you mistakenly press the shutter button until the Daves mode ends. However, the mote is maintained.

又、実施例ではエンコーダーENCからのパルスをカウ
ントするカウンターは人カバルスをアップ、ダウンカウ
ントし常にレンズ駆動後のレンズ位置を表わす値を示し
、更にデフォーカス量のレンズ駆動に際しては、レンズ
駆動前のカウント値からのカウント値の変化分がデフォ
ーカス量に応じた値となったか否かの判定を行ってレン
ズ駆動量をデフォーカス量となる様制御を行っているが
、その他の方法にてレンズ駆動量制御を行っても良い。
In addition, in the embodiment, the counter that counts the pulses from the encoder ENC counts up and down the human caballus, 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 match 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〕

以上の如く、本発明にあっては算出絞り値を絞り制御機
構の最小制御段数の整数倍の段数単位ごとの値に変換し
、かつこの変換処理において、上記絞り値が上記整数倍
の段数単位間の値を示している時には切上げ処理を行っ
たものであるので、制御絞りとしては算出絞りに対して
絞り込み側にオフセットされることとなり、上記絞り演
算に含まれる誤差を吸収すると共に絞り制御機構の制御
絞り段数により算出絞りよりも開放側の絞り値となるこ
とが防止し得、常に所望の撮影態様を満足させ、両波写
体ともにピントが合った状態での撮影が可能となるもの
である。
As described above, in the present invention, the calculated aperture value is converted into a value in steps of an integer multiple of the minimum control step number of the aperture control mechanism, and in this conversion process, the aperture value is converted into a value in steps of an integer multiple of the minimum control step number of the aperture control mechanism. When a value in between is rounded up, the control aperture is offset to the aperture side with respect to the calculated aperture, absorbing the error included in the aperture calculation, and improving the aperture control mechanism. By controlling the number of aperture stages, it is possible to prevent the aperture value from becoming more open than the calculated aperture, and it is possible to always satisfy the desired shooting mode and to shoot with both waves in focus. be.

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

第1図は本発明のカメラの一実施例を示す回路図、第2
図(a)〜第2図(f)は第1図実施例のコンピュータ
ーPR5に内蔵されるプログラムを示す説明図、第3図
、第4図。 第5図は第1図実施例の動作を説明するための説明図で
ある。 P R5−−−−−−−−コンピューターL RRS 
 −−−−−一制御回路 L CM −−−−−−m−バツファー回路D M T
 R−−−−−一絞り制御用モーターあ←−−−−−−
−−−−−−−−−−−−N2
FIG. 1 is a circuit diagram showing an embodiment of the camera of the present invention, and FIG.
2(a) to 2(f) are explanatory diagrams showing programs built in the computer PR5 of the embodiment in FIG. 1, FIG. 3, and FIG. 4. FIG. 5 is an explanatory diagram for explaining the operation of the embodiment shown in FIG. PR5---------Computer L RRS
-------Control circuit L CM -------M-Buffer circuit D MT
R------One stop control motor ←---------
−−−−−−−−−−−N2

Claims (1)

【特許請求の範囲】 異なる位置にある被写体間のデフォーカス量を焦点検出
演算手段にて求めると共に、該デフォーカス量を内分す
るレンズ位置及び上記デフォーカス量に基づく制御絞り
値を制御値演算手段にて求め、撮影に際しレンズを上記
内分レンズ位置へ移行させると共に絞りを制御絞り値と
なし、上記異なる位置にある被写体をともにピントが合
った状態での撮影を行う焦点調節装置を有するカメラに
おいて、 前記制御演算手段にて求められた制御絞り値を絞り制御
機構の最小制御段数の整数倍の絞り段数単位ごとの値に
変換すると共に上記制御絞り値が上記整数倍の絞り段数
単位内の値の時には切上げ処理を行う変換手段を設け、
該変換手段にて変換された上記絞り段数単位での絞り値
に基づいて前記絞り制御機構にて絞り調定を行わせるこ
とを特徴とする焦点調節装置を有するカメラ。
[Claims] The amount of defocus between subjects at different positions is determined by a focus detection calculation means, and the control value is calculated for a lens position that internally divides the amount of defocus and a control aperture value based on the amount of defocus. A camera having a focus adjustment device that moves the lens to the internal lens position and sets the aperture as a control aperture value when photographing, and photographs subjects at different positions as described above with both objects in focus. The control aperture value obtained by the control calculation means is converted into a value for each aperture stage unit that is an integral multiple of the minimum control stage number of the aperture control mechanism, and the control aperture value is converted into a value for each aperture stage unit that is an integral multiple of the minimum control stage number of the aperture control mechanism. Provide a conversion means that rounds up when it is a value,
A camera having a focus adjustment device, characterized in that the aperture control mechanism adjusts the aperture based on the aperture value in units of the number of aperture stages converted by the conversion means.
JP62004573A 1987-01-12 1987-01-12 Camera with focusing device Pending JPS63172250A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62004573A JPS63172250A (en) 1987-01-12 1987-01-12 Camera with focusing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62004573A JPS63172250A (en) 1987-01-12 1987-01-12 Camera with focusing device

Publications (1)

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

Family

ID=11587778

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62004573A Pending JPS63172250A (en) 1987-01-12 1987-01-12 Camera with focusing device

Country Status (1)

Country Link
JP (1) JPS63172250A (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
US4792819A (en) Camera having automatic focusing device
JPH0617935B2 (en) Automatic focus adjustment device
US4801962A (en) Camera incorporating automatic focusing apparatus
JPS63172239A (en) Auto-focusing device
US4845521A (en) Camera with automatic focusing apparatus
JPS63172250A (en) Camera with focusing device
US4825238A (en) Focus detecting device
JPS63172248A (en) Camera with auto-focusing device
JPS63172249A (en) Camera with focusing device
JPH05346536A (en) Focal point detecting device
US5053799A (en) Camera having auto-focusing device
JPS63172231A (en) Auto-focusing device
JP2974637B2 (en) Automatic focusing device
JPH0581006B2 (en)
JP2832006B2 (en) Automatic focusing device
JPS63172258A (en) Camera having focusing device
JPH0478832A (en) Focus detecting device
JPH03150536A (en) Lens driving device for optical equipment
JPS63172224A (en) Auto-focusing device
JP3486464B2 (en) Automatic focusing device
JPS63172212A (en) Focused state deciding device
JP2756333B2 (en) Automatic focusing device
JPS63172243A (en) Auto-focusing device
JPS63172232A (en) Auto-focusing device