JP2002131615A - Lens driving device and camera system - Google Patents

Lens driving device and camera system

Info

Publication number
JP2002131615A
JP2002131615A JP2001274264A JP2001274264A JP2002131615A JP 2002131615 A JP2002131615 A JP 2002131615A JP 2001274264 A JP2001274264 A JP 2001274264A JP 2001274264 A JP2001274264 A JP 2001274264A JP 2002131615 A JP2002131615 A JP 2002131615A
Authority
JP
Japan
Prior art keywords
lens
zoom
pulse
flag
processing
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
JP2001274264A
Other languages
Japanese (ja)
Inventor
Masahiro Kawasaki
雅博 川崎
Hiroyuki Takahashi
宏之 高橋
Yoshinari Tanimura
芳成 谷村
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.)
Pentax Corp
Original Assignee
Asahi Kogaku Kogyo Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Asahi Kogaku Kogyo Co Ltd filed Critical Asahi Kogaku Kogyo Co Ltd
Priority to JP2001274264A priority Critical patent/JP2002131615A/en
Publication of JP2002131615A publication Critical patent/JP2002131615A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide a lens driving device by which a lens is driven at constant speed without having fluctuation. SOLUTION: When PZ pulses outputted by linking with the rotation of a zooming motor 65 are not outputted by set time intervals by a zooming motor at a power zooming lens, the torque of the zooming motor 65 is set high and the rotational speed of it is raised by raising an electric conduction ratio by a specified unit (energizing time is changed long by a given time unit and also non-energizing time is changed short by the specified time unit) in the case that the PZ pulses are not outputted within the set time intervals, and the torque of the zooming motor 65 is set low and the rotational speed is lowered by reducing the electric conduction ratio by the specified unit (the energizing time is set short by the given time unit and also the non-energizing time is set long by the given time unit) in the case that the PZ pulses are outputted within set time, so that the PZ pulses are outputted with the set time intervals.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の技術分野】本発明は、パワーズームレンズなど
の電動レンズのレンズ駆動速度を定速制御するレンズ駆
動装置およびレンズ駆動装置を備えたカメラシステムに
関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a lens driving device for controlling a lens driving speed of an electric lens such as a power zoom lens at a constant speed, and a camera system having the lens driving device.

【0002】[0002]

【従来技術およびその問題点】近年、自動焦点装置およ
びモータによりズーミングするパワーズームレンズを備
えたカメラが各種開発されている。一眼レフカメラの自
動焦点装置は、焦点検出装置の検出結果に応じてフォー
カシングレンズ群をモータにより駆動し、パワーズーム
レンズはズームレンズ群をズームモータにより駆動する
構成である。このモータ駆動において、目標位置までで
きるだけ短時間で移動し、かつ目標位置を行き過ぎない
ようにするために、フォーカシングレンズ群を移動する
量が多いときには高速で駆動し、移動する量が減少する
にしたがって段階的に低速駆動に変更するものがある。
つまり、駆動量に応じて段階的に速度を変更していた。
2. Description of the Related Art In recent years, various types of cameras equipped with an automatic focusing device and a power zoom lens for zooming by a motor have been developed. The autofocus device of a single-lens reflex camera has a configuration in which a focusing lens group is driven by a motor according to a detection result of a focus detection device, and a power zoom lens is configured to drive a zoom lens group by a zoom motor. In this motor drive, in order to move to the target position in the shortest possible time and not to overshoot the target position, when the moving amount of the focusing lens group is large, it is driven at a high speed, and as the moving amount decreases, There is one that gradually changes to low-speed driving.
That is, the speed is changed stepwise according to the driving amount.

【0003】従来の上記速度制御方法は、モータの回転
に連動して出力されるパルスの間隔で制御スピードを決
定し、パルスが設定時間内に出力されないときにはモー
タに通電し、パルスが設定時間内に出力されたときには
モータへの通電を切る、という制御方法であった。しか
し、この制御方法では、通電時間および非通電時間が極
端に変化してしまうので速度変動が大きくなり、滑らか
に動作しなかった。つまり、パルス間隔より相当長い時
間における平均速度は一定なっても、短時間(1パルス
の時間ないし数パルスの時間内)におけるスピードは大
きく変化してしまい、滑らかな駆動ができない、という
問題があった。
In the conventional speed control method, the control speed is determined by an interval of a pulse output in conjunction with the rotation of the motor. When the pulse is not output within a set time, the motor is energized, and the pulse is output within the set time. When the power is output to the motor, the power supply to the motor is cut off. However, in this control method, the energizing time and the non-energizing time change extremely, so that the speed fluctuation becomes large and the operation does not operate smoothly. In other words, even if the average speed during a period considerably longer than the pulse interval is constant, the speed in a short period (within a period of one pulse or several pulses) greatly changes, and smooth driving cannot be performed. Was.

【0004】[0004]

【発明の目的】本発明は、変動の少ない定速でレンズ駆
動できるレンズ駆動装置を提供することを目的とする。
さらに本発明は、一眼レフカメラをパワーズーム化する
とともに、一定速でズーミング制御できるカメラシステ
ムを提供することを目的とする。
SUMMARY OF THE INVENTION It is an object of the present invention to provide a lens driving device capable of driving a lens at a constant speed with little fluctuation.
Still another object of the present invention is to provide a camera system capable of performing power zoom on a single-lens reflex camera and controlling zooming at a constant speed.

【0005】[0005]

【発明の概要】この目的を達成する本発明は、移動レン
ズ群およびこの移動レンズ群を光軸方向に移動可能に保
持するレンズ移動機構を備えた光学系において、上記レ
ンズ移動機構を駆動して上記移動レンズ群を光軸方向に
移動する電動手段;上記電動手段に間欠給電または連続
通電する給電手段;上記電動手段の動作に連動して所定
量動作毎に検出信号を出力する検出手段;上記電動手段
の動作速度を上記検出手段が検出信号を出力する時間間
隔で設定する速度設定手段;および、上記速度設定手段
により設定された時間間隔が経過しても上記検出信号が
出力されないときには上記通電手段の間欠給電の通電時
間を所定単位で伸長しかつ非通電時間を所定時間単位で
短縮し、上記時間間隔内に上記検出信号が出力されたと
きには上記通電手段の間欠給電の通電時間を所定単位で
短縮しかつ非通電時間を所定単位で伸長する通電制御手
段を備えたことに特徴を有する。上記通電制御手段は、
段階的に複数の異なる間欠給電の通電時間と非通電時間
の比を設定する設定機能を備え、上記通電開始時には最
も短い通電時間から間欠給電を開始することが望まし
い。上記間欠給電の通電比が変わっても通電時間と非通
電時間の和は一定であることが望ましい。
SUMMARY OF THE INVENTION In order to achieve the above object, the present invention provides an optical system having a moving lens group and a lens moving mechanism for holding the moving lens group movably in the optical axis direction, by driving the lens moving mechanism. An electric means for moving the movable lens group in the optical axis direction; an electric power supply means for intermittently or continuously energizing the electric means; a detecting means for outputting a detection signal every predetermined amount of operation in conjunction with the operation of the electric means; Speed setting means for setting the operation speed of the electric means at a time interval at which the detection means outputs a detection signal; and energizing when the detection signal is not output even after the time interval set by the speed setting means has elapsed. The energizing time of the intermittent power supply is extended in a predetermined unit and the non-energizing time is shortened in a predetermined time unit. When the detection signal is output within the time interval, the energizing operation is performed. The conduction time of the intermittent feeding shortening a predetermined unit and the characterized in that the non-energization time with a current supply control means extending in a predetermined unit. The energization control means includes:
It is desirable to provide a setting function for setting the ratio between the energizing time and the non-energizing time of a plurality of different intermittent power supply in stages, and to start the intermittent power supply from the shortest energizing time at the time of starting the energization. It is desirable that the sum of the energizing time and the non-energizing time is constant even if the energizing ratio of the intermittent power supply changes.

【0006】本発明は、カメラボディおよび該カメラボ
ディに着脱自在に形成されたズームレンズを含むカメラ
システムであって、上記ズームレンズをズーミングさせ
る電動手段;上記電動手段に間欠給電または連続通電す
る給電手段;上記電動手段の動作に連動して所定量動作
毎に検出信号を出力する検出手段;上記電動手段の動作
速度を上記検出手段の検出信号の出力間隔で設定する速
度設定手段;および、上記速度設定手段により設定され
た時間間隔経過前に上記検出信号が出力されたときには
上記通電手段の間欠給電の通電時間を所定単位で短縮し
かつ非通電時間を所定単位で伸長し、上記出力時間間隔
が経過しても上記検出信号が出力されないときには上記
通電手段の間欠給電の通電時間を所定単位で伸長しかつ
非通電時間を所定時間単位で短縮する通電制御手段を備
えたことに特徴を有する。
The present invention is directed to a camera system including a camera body and a zoom lens detachably formed on the camera body, wherein a motor means for zooming the zoom lens; a power supply for intermittent power supply or continuous power supply to the motor means Means for outputting a detection signal every predetermined amount of operation in conjunction with the operation of the electric means; speed setting means for setting the operation speed of the electric means at an output interval of the detection signal of the detection means; When the detection signal is output before the elapse of the time interval set by the speed setting means, the energization time of the intermittent power supply of the energization means is reduced by a predetermined unit and the non-energization time is extended by a predetermined unit, and the output time interval is If the detection signal is not output even after elapse, the energizing time of the intermittent power supply of the energizing means is extended in a predetermined unit and the non-energizing time is specified Characterized in that it comprises an energization control means for shortening between units.

【0007】[0007]

【発明の実施の形態】以下図示実施例に基づいて本発明
を説明する。図1は、本発明を適用した自動焦点(A
F)一眼レフカメラのボディ部の主要構成を示したブロ
ック図、図2は、同パワーズームレンズの主要構成を示
したブロック図、図3は、同パワーズームレンズの回路
ブロック図である。
DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be described below based on illustrated embodiments. FIG. 1 shows an autofocus (A) to which the present invention is applied.
F) A block diagram showing a main configuration of a body portion of the single-lens reflex camera, FIG. 2 is a block diagram showing a main configuration of the power zoom lens, and FIG. 3 is a circuit block diagram of the power zoom lens.

【0008】このAF一眼レフカメラは、カメラボディ
11と、このカメラボディ11に着脱可能な撮影レンズ
(パワーズームレンズ)51とを備えている。パワーズ
ームレンズ51のズーム光学系53からカメラボディ1
1内に入射した被写体光束は、大部分がメインミラー1
3によりファインダ光学系を構成するペンタプリズム1
5に向かって反射され、さらに反射光の一部が測光用I
C17の受光素子(図示せず)に入射する。一方、カメ
ラボディ11内に入射した被写体光束のうち、メインミ
ラー13のハーフミラー部14に入射した被写体光束の
一部はここを透過し、後方のサブミラー19で下方に反
射されて測距用CCDセンサユニット21に入射する。
The AF single-lens reflex camera includes a camera body 11 and a photographing lens (power zoom lens) 51 that is detachable from the camera body 11. Camera body 1 from zoom optical system 53 of power zoom lens 51
Most of the luminous flux of the subject incident into the main mirror 1
3 is a pentaprism 1 constituting a finder optical system
5 and a part of the reflected light is
The light enters a light receiving element (not shown) of C17. On the other hand, of the subject light beam that has entered the camera body 11, a part of the subject light beam that has entered the half mirror portion 14 of the main mirror 13 passes therethrough and is reflected downward by the rear sub-mirror 19 so that the distance measuring CCD is used. The light enters the sensor unit 21.

【0009】測光用IC17は、被写体光束を受光する
受光素子を備えていて、この受光素子が受光量に応じて
発生する電気信号を対数圧縮およびA/D変換し、周辺
部制御回路23を介して測光信号としてメイン(ボデ
ィ)CPU35に出力する。メインCPU35は、測光
信号およびフィルム感度情報に基づいて所定の演算を実
行し、露出用の適正シャッタ速度および絞り値を算出す
る。そして、これらのシャッタ速度および絞り値に基づ
いて露出機構(シャッタ機構)25および絞り機構27
を駆動する。
The photometric IC 17 includes a light receiving element for receiving the light beam of the subject. The light receiving element performs logarithmic compression and A / D conversion of an electric signal generated in accordance with the amount of received light, and transmits the signal through a peripheral control circuit 23. And outputs a photometric signal to the main (body) CPU 35. The main CPU 35 executes a predetermined calculation based on the photometric signal and the film sensitivity information, and calculates an appropriate exposure shutter speed and aperture value. The exposure mechanism (shutter mechanism) 25 and the aperture mechanism 27 are determined based on the shutter speed and the aperture value.
Drive.

【0010】測距用CCDセンサユニット21は、いわ
ゆる位相差方式の焦点検出手段であって、図示しない
が、被写体光束を二分割する分割光学系と、二分割され
た被写体光束をそれぞれ受光して積分(光電変換および
その電荷を蓄積)するCCDラインセンサを備えてい
る。そして測距用CCDセンサユニット21は、CCD
ラインセンサが積分した積分データを、制御手段として
のメインCPU35に出力する。なお、測距用CCDセ
ンサユニット21は、周辺部制御回路23により駆動制
御される。また、CCDセンサユニット21はモニタ素
子を備えていて、周辺部制御回路23は、このモニタ素
子を介して被写体輝度を検出し、その検出結果に応じて
積分時間を変更する。
The distance measuring CCD sensor unit 21 is a so-called phase difference type focus detecting means. Although not shown, a split optical system for splitting a subject light beam into two, and a light source for receiving the split subject light beam, respectively. It has a CCD line sensor for integration (photoelectric conversion and accumulation of its charge). The CCD sensor unit 21 for distance measurement includes a CCD
The integration data integrated by the line sensor is output to the main CPU 35 as control means. The driving of the distance measuring CCD sensor unit 21 is controlled by a peripheral control circuit 23. Further, the CCD sensor unit 21 has a monitor element, and the peripheral control circuit 23 detects the luminance of the subject via the monitor element, and changes the integration time according to the detection result.

【0011】周辺部制御回路23は、デジタル測光信号
およびフィルム感度情報に基づいて所定の露出演算を実
行し、露出用の適正シャッタ速度および絞り値を算出す
る。そして、これらのシャッタ速度および絞り値に基づ
いて、露光機構(シャッタ機構)25および絞り機構2
7を駆動して露光する。さらに周辺部制御回路23は、
レリーズに際して、モータドライブ回路(モータードラ
イブIC)29を介してミラーモータ31を駆動してメ
インミラー13のアップ/ダウン処理を行ない、露光終
了後には巻上モータ33を駆動してフィルムを巻上げ
る。
The peripheral control circuit 23 executes a predetermined exposure calculation based on the digital photometric signal and the film sensitivity information, and calculates an appropriate shutter speed and aperture value for exposure. Then, based on the shutter speed and the aperture value, the exposure mechanism (shutter mechanism) 25 and the aperture mechanism 2
7 is driven to perform exposure. Further, the peripheral control circuit 23
At the time of release, the mirror motor 31 is driven via a motor drive circuit (motor drive IC) 29 to perform up / down processing of the main mirror 13, and after the exposure is completed, the winding motor 33 is driven to wind the film.

【0012】さらにメインCPU35は、周辺部制御回
路23と、ボディマウント面に設けられた電気接点群B
Cと、パワーズームレンズ51のマウント面に設けられ
た電気接点群LCとの接続を介して、レンズCPU61
との間でデータ、コマンド等の通信を行なう。
Further, the main CPU 35 includes a peripheral control circuit 23 and an electric contact group B provided on the body mount surface.
C and a lens CPU 61 via a connection between an electrical contact group LC provided on the mount surface of the power zoom lens 51.
Communication of data, commands, etc. is performed with the device.

【0013】また、メインCPU35は、測距用CCD
センサユニット21から出力される積分データに基づい
て所定の演算(プレディクタ演算)によりデフォーカス
量を算出し、そのデフォーカス量に基づいて、AFモー
タ39の回転方向および回転数(エンコーダ41のパル
ス数)を算出する。そしてメインCPU35は、その回
転方向およびパルス数に基づき、AFモータドライブ回
路37を介してAFモータ39を駆動する。
The main CPU 35 is a CCD for distance measurement.
A defocus amount is calculated by a predetermined calculation (predictor calculation) based on the integration data output from the sensor unit 21, and based on the defocus amount, the rotation direction and the rotation speed of the AF motor 39 (the number of pulses of the encoder 41). ) Is calculated. Then, the main CPU 35 drives the AF motor 39 via the AF motor drive circuit 37 based on the rotation direction and the number of pulses.

【0014】さらにメインCPU35は、AFモータ3
9の回転に応じてエンコーダ41が出力するパルスを検
知し、カウントしてカウント値が上記パルス数に達した
らAFモータ39を停止させる。メインCPU35は、
このAFモータ39を、起動時にはDC駆動により一気
に加速してDC駆動を維持し、フォーカシングレンズ群
53Fが目標位置に接近したら停止前に徐々に減速して
停止させる。さらにメインCPU35は、エンコーダ4
1の出力パルスの間隔に基づいてAFモータ39を一定
速度制御する機能を有する。なお、AFモータ39の回
転は、カメラボディ11のマウント部に設けられたAF
ジョイント47とパワーズームレンズ51のマウント部
に設けられたAFジョイント57との接続を介してパワ
ーズームレンズ51のAF駆動機構55に伝達される。
そして、AF駆動機構55により、フォーカシングレン
ズ群53Fが駆動される。
Further, the main CPU 35 includes an AF motor 3
The pulse output from the encoder 41 is detected in accordance with the rotation of No. 9 and counted, and when the count value reaches the above-mentioned number of pulses, the AF motor 39 is stopped. The main CPU 35
When the AF motor 39 is started, the AF driving is accelerated by DC driving at a stretch to maintain DC driving, and when the focusing lens group 53F approaches the target position, the AF motor 39 is gradually decelerated and stopped before stopping. Further, the main CPU 35
It has a function of controlling the AF motor 39 at a constant speed based on the interval of one output pulse. Note that the rotation of the AF motor 39 is controlled by an AF provided on a mount portion of the camera body 11.
The power is transmitted to the AF drive mechanism 55 of the power zoom lens 51 via a connection between the joint 47 and an AF joint 57 provided on a mount portion of the power zoom lens 51.
Then, the focusing lens group 53F is driven by the AF driving mechanism 55.

【0015】またメインCPU35は、プログラムをメ
モリしたROM35a、所定のデータをメモリするRA
M35bを内蔵し、さらに外部メモリ手段としてE2PRO
M43が接続されている。このE2PROM43には、カメラ
ボディ11特有の各種定数のほかに、本発明のAF(オ
ートフォーカス)演算、PZ(パワーズーム)演算に必
要な各種関数、定数などがメモリされている。
The main CPU 35 has a ROM 35a storing a program and an RA 35 storing predetermined data.
Built-in M35b and E2PRO as external memory means
M43 is connected. In the E2PROM 43, in addition to various constants specific to the camera body 11, various functions, constants, and the like necessary for AF (autofocus) calculation and PZ (power zoom) calculation of the present invention are stored.

【0016】メインCPU35には、レリーズボタン
(図示せず)の半押しでオンする測光スイッチSWSお
よび同全押しでオンするレリーズスイッチSWR、自動
焦点スイッチSWAF、メインCPU35や周辺機器等
への電源をON/OFFするメインスイッチSWM、AFモー
ド、露出モードなどのモード、シャッタ速度などのパラ
メータ変更用のアップダウンスイッチSWUP/DOWNなど
が接続されている。
The main CPU 35 is provided with a photometric switch SWS which is turned on by half-pressing a release button (not shown), a release switch SWR which is turned on by fully pressing the release button, an auto-focus switch SWAF, and a power supply to the main CPU 35 and peripheral devices. A main switch SWM to be turned on / off, a mode such as an AF mode and an exposure mode, and an up / down switch SWUP / DOWN for changing a parameter such as a shutter speed are connected.

【0017】メインCPU35により設定されたAFモ
ード、露出モード、撮影モードなどのモード、シャッタ
速度、絞り値などの露出データは、メインCPU35に
より表示装置45に表示される。この表示装置45は、
通常、カメラボディ11の外面およびファインダ視野内
の2か所に設けられる。
Modes such as the AF mode, exposure mode, and photographing mode, exposure data such as shutter speed and aperture value set by the main CPU 35 are displayed on the display device 45 by the main CPU 35. This display device 45
Usually, it is provided at two places on the outer surface of the camera body 11 and in the viewfinder field.

【0018】カメラボディ11のマウント付近には、バ
ッテリ20の電力をパワーズームレンズ51(撮影レン
ズ)に供給するための一対の電源ピンBPCが設けられ
ている。一方、パワーズームレンズ51にも、装着時に
上記電源ピンBPCと電気的に接続される一対の電源ピ
ンLPCが設けられている。
Near the mount of the camera body 11, a pair of power pins BPC are provided for supplying the power of the battery 20 to the power zoom lens 51 (photographing lens). On the other hand, the power zoom lens 51 is also provided with a pair of power pins LPC that are electrically connected to the power pins BPC at the time of mounting.

【0019】パワーズームレンズ51は、撮影光学系と
してフォーカシングレンズ群53Fおよびズーミングレ
ンズ群53Zを備えたズーム光学系53を有している。
フォーカシングレンズ群53Fは、AF機構55により
駆動される。このAF機構55には、AFジョイント5
7、47を介してAFモータ39の駆動力が伝達され
る。フォーカシングレンズ群53Fの移動量は、AF機
構55の回転に応じてパルスを出力するAFパルサー5
9のAFパルスをレンズCPU61がカウントして測定
する。なお、レンズCPU61は、AFパルスをハード
的にカウントするAFパルスハードカウンタを含んでい
る。ズーミングレンズ群53Zは、PZ(パワーズー
ム)機構67により駆動される。このPZ機構67を駆
動するズームモータ65は、レンズCPU61によりモ
ータドライブIC63を介し制御される。また、ズーミ
ングレンズ群53Zの移動量は、ズームモータ65の回
転に連動してPZパルサー69が出力するPZパルスを
レンズCPU61がカウントして測定する。
The power zoom lens 51 has a zoom optical system 53 having a focusing lens group 53F and a zooming lens group 53Z as a photographing optical system.
The focusing lens group 53F is driven by the AF mechanism 55. The AF mechanism 55 includes an AF joint 5
The driving force of the AF motor 39 is transmitted via 7 and 47. The amount of movement of the focusing lens group 53F is determined by the AF pulser 5 that outputs a pulse according to the rotation of the AF mechanism 55.
The lens CPU 61 counts and measures 9 AF pulses. The lens CPU 61 includes an AF pulse hard counter that counts AF pulses in hardware. The zooming lens group 53Z is driven by a PZ (power zoom) mechanism 67. The zoom motor 65 that drives the PZ mechanism 67 is controlled by the lens CPU 61 via the motor drive IC 63. The movement amount of the zooming lens group 53 </ b> Z is measured by the lens CPU 61 counting PZ pulses output by the PZ pulser 69 in conjunction with the rotation of the zoom motor 65.

【0020】パルサー59、69は、例えば、円周方向
に等間隔で設けられた、半径方向に延びる複数のスリッ
トを有する回転円板と、この回転円板のスリットを挟ん
で対向するLEDおよびフォトダイオードを備えたフォ
トインタラプタにより構成されている。そして各パルサ
ー59、69の回転円板は、AF機構55、PZ機構6
7の回転に連動して回転する。また、各パルサー59、
69のLEDのON/OFFはレンズCPU61により制御さ
れ、フォトダイオードの出力(パルス)は、レンズCP
U61に入力される。
The pulsars 59 and 69 are composed of, for example, a rotating disk having a plurality of radially extending slits provided at equal intervals in a circumferential direction, and an LED and a photo opposed to each other with the slits of the rotating disk interposed therebetween. It is constituted by a photo interrupter having a diode. The rotating disks of the pulsars 59 and 69 are connected to the AF mechanism 55 and the PZ mechanism 6.
It rotates in conjunction with the rotation of 7. In addition, each pulsar 59,
The ON / OFF of the LED 69 is controlled by the lens CPU 61, and the output (pulse) of the photodiode is changed to the lens CP.
It is input to U61.

【0021】さらに、ズーミングレンズ群53Zの絶対
位置(焦点距離)およびフォーカシングレンズ群53F
の絶対位置(合焦被写体距離)はそれぞれ、ズームコー
ド板71、距離コード板81により検出される。図4お
よび図5にこれらのコード板71、81の展開図を示し
た。各コード板71、81のコード列71a〜71f、
81a〜81eにはそれぞれ、ブラシ73、85が摺接
する。
Further, the absolute position (focal length) of the zooming lens group 53Z and the focusing lens group 53F
Are detected by the zoom code plate 71 and the distance code plate 81, respectively. FIGS. 4 and 5 are exploded views of these code plates 71 and 81. FIG. Code rows 71a to 71f of each code plate 71, 81,
Brushes 73 and 85 are in sliding contact with 81a to 81e, respectively.

【0022】コード板71、81のうち各一列のコード
列71a、81aは接地され、複数のコード列71b〜
71e、81b〜81eは、レンズCPU61の入力ポ
ートに接続されている。ズームコード板71は、ズーミ
ングレンズ群53Zの全移動範囲を26分割して、各分
割領域を5ビットの絶対位置(焦点距離)情報で識別す
る。距離コード板81は、フォーカシングレンズ群53
Fの全移動範囲を8分割して、各分割領域を3ビットの
絶対位置(被写体距離)情報で識別する。各分割領域内
における相対位置は、それぞれパルサー69、59が出
力するパルスをカウントしてそのカウント値により検出
する。距離コード板81のコード列81eの指標83
は、各領域の中央位置を検出するためのものである。コ
ード板71の各領域の境界位置(切換わり点)72及び
コード板81のコード列81eの指標83は、それぞれ
パルサーのカウント値修正の基準として利用される。
One of the code lines 71a and 81a of the code plates 71 and 81 is grounded, and a plurality of code lines 71b to 71b.
Reference numerals 71e and 81b to 81e are connected to input ports of the lens CPU 61. The zoom code plate 71 divides the entire moving range of the zooming lens group 53Z into 26, and identifies each divided area with 5-bit absolute position (focal length) information. The distance code plate 81 includes the focusing lens group 53
The entire moving range of F is divided into eight, and each divided region is identified by 3-bit absolute position (subject distance) information. The relative position in each divided area is detected by counting the pulses output by the pulsers 69 and 59, respectively, and by detecting the count value. Index 83 of code sequence 81e of distance code plate 81
Is for detecting the center position of each area. The boundary position (switching point) 72 of each area of the code plate 71 and the index 83 of the code sequence 81e of the code plate 81 are used as a reference for correcting the count value of the pulsar.

【0023】パワーズームレンズ51は、操作スイッチ
類として、ズームスピード切替えスイッチ75およびズ
ームモード切替えスイッチ77を備えている。ズームス
ピード切替えスイッチ75は、パワーズームモードにお
いて、テレ方向ズームとワイド方向ズーム、および各ズ
ーム方向におけるズーミングスピードをそれぞれ3段階
調整するスイッチ(詳細は図示せず)を備えている。ズ
ームモード切替えスイッチ77は、パワーズームとマニ
ュアル駆動ズームとを切り替えるスイッチ(D/M)、
マニュアルパワーズームモード、一定の制御下で実行す
る複数のパワーズームモードを切替えるPAスイッチ、
制御パワーズームモード(像倍率一定パワーズームモー
ド)のときに、現焦点距離等をメモリするSLスイッチ
等を備えている。SLスイッチは、プリセットズームセ
ットモードが設定されているときは焦点距離をメモリさ
せ、プリセットズームモードが設定されているときはメ
モリした焦点距離までパワーズームさせるプリセットス
イッチとして機能する。なお、ズームスピード切り替え
スイッチ75は、図示しないが、レンズ鏡筒に対して回
動自在および光軸方向に移動可能に嵌められ、常時回転
方向中立位置に付勢されたズーム操作リングに連動す
る。なお、ズーム操作リングは、パワーズームとマニュ
アルズームとを機械的に切替える機構も備えている。
The power zoom lens 51 includes a zoom speed switch 75 and a zoom mode switch 77 as operation switches. The zoom speed changeover switch 75 includes a switch (not shown in detail) for adjusting the telescopic zoom and the wide direction zoom and the zooming speed in each zoom direction in three steps in the power zoom mode. A zoom mode switch 77 is a switch (D / M) for switching between power zoom and manual drive zoom.
Manual power zoom mode, PA switch to switch between multiple power zoom modes executed under constant control,
In the control power zoom mode (constant image magnification power zoom mode), an SL switch and the like for storing the current focal length and the like are provided. The SL switch functions as a preset switch for storing the focal length when the preset zoom set mode is set, and for power zooming to the stored focal length when the preset zoom mode is set. Although not shown, the zoom speed switch 75 is rotatably fitted to the lens barrel and movably in the optical axis direction, and is interlocked with a zoom operation ring constantly biased to a neutral position in the rotation direction. The zoom operation ring also includes a mechanism for mechanically switching between a power zoom and a manual zoom.

【0024】以上のズームスピード切替えスイッチ75
およびズームモード切替えスイッチ77の各接点はレン
ズCPU61に接続されている。レンズCPU61は、
これらのスイッチ操作を受けてパワーズームに関する制
御処理を行なう。
The above zoom speed changeover switch 75
Each contact of the zoom mode changeover switch 77 is connected to the lens CPU 61. The lens CPU 61
In response to these switch operations, a control process relating to the power zoom is performed.

【0025】レンズCPU61は、インターフェース6
2、通信接点LC、BCおよびカメラボディの周辺部制
御回路23を介してメインCPU35と接続され、メイ
ンCPU35との間で双方向通信により所定のデータ通
信を実行する。レンズCPU61からメインCPU35
に伝達されるデータとしては、開放絞り値AVMIN、
最大絞り値AVMAX、最小、最大焦点距離、現焦点距
離、現被写体距離、Kバリュー情報などのほかに、AF
パルス数、PZパルス数などがある。なおKバリュー情
報とは、ズーム光学系53により結像された像面を単位
距離(例えば1mm)移動させるために必要なエンコーダ
41(AFパルサー59)のパルス数データである。
The lens CPU 61 has an interface 6
2. It is connected to the main CPU 35 via the communication contacts LC and BC and the peripheral control circuit 23 of the camera body, and executes predetermined data communication with the main CPU 35 by bidirectional communication. Lens CPU 61 to main CPU 35
The data transmitted to the camera include the open aperture value AVMIN,
In addition to the maximum aperture value AVMAX, minimum, maximum focal length, current focal length, current subject distance, K value information, etc.
There are a pulse number, a PZ pulse number, and the like. Note that the K value information is pulse number data of the encoder 41 (AF pulser 59) necessary to move the image plane formed by the zoom optical system 53 by a unit distance (for example, 1 mm).

【0026】図3には、パワーズームレンズ51のより
詳細な回路をブロックで示してある。電気接点群LC
は、インターフェース62に接続されたCONT端子、RES
端子、(反転)SCK端子、DATA端子およびGND端子の5個
の端子を備えている。こららの端子の内、CONT端子およ
びGND端子を介して、レンズCPU61等の動作に必要
な電源電圧がカメラボディ11から供給され、残りのRE
S端子、(反転)SCK端子およびDATA端子を介して通信が
行なわれる。RES端子は主にリセット信号、(反転)SCK
端子はクロック、DATA端子は所定の情報、コマンドなど
のデータの通信に供せられる。なお本明細書では、記
号"(反転)"は、トップバーを意味し、この記号"(反
転)"が前に付された記号は、アクティブロー、または
反転信号であることを表わす。電源ピンLPCは、VBAT
T端子およびPGND端子からなる。これらのVBATT、PGND端
子を介して、ズームモータ65の駆動に必要な電力が、
カメラボディ11のバッテリ20から供給される。電力
の供給は、周辺部制御回路23を介してCPU35によ
りコントロールされる。なお、図中91はクロック発生
回路である。また、VBATT端子は、モータドライブIC
63、および抵抗R4を介してレンズCPU61の電圧
モニタ用のポートP12にそれぞれ接続されている。
FIG. 3 is a block diagram showing a more detailed circuit of the power zoom lens 51. Electrical contact group LC
Is the CONT terminal connected to the interface 62, RES
It has five terminals: a terminal, an (inverted) SCK terminal, a DATA terminal, and a GND terminal. Among these terminals, a power supply voltage necessary for the operation of the lens CPU 61 and the like is supplied from the camera body 11 via the CONT terminal and the GND terminal, and the remaining REs are supplied.
Communication is performed via the S terminal, the (inverted) SCK terminal, and the DATA terminal. The RES pin is mainly used for reset signals, (inverted) SCK
The terminal is used for communication of a clock, and the DATA terminal is used for communication of data such as predetermined information and commands. In this specification, the symbol “(inverted)” means a top bar, and the symbol preceded by the symbol “(inverted)” indicates that it is an active low signal or an inverted signal. The power supply pin LPC is connected to VBAT
It consists of a T terminal and a PGND terminal. The power required to drive the zoom motor 65 via these VBATT and PGND terminals is
It is supplied from the battery 20 of the camera body 11. The supply of power is controlled by the CPU 35 via the peripheral control circuit 23. In the figure, reference numeral 91 denotes a clock generation circuit. Also, the VBATT terminal is a motor drive IC
63 and a port R12 for voltage monitoring of the lens CPU 61 via the resistor R4.

【0027】『レンズCPUのメイン処理』図6および
図7を参照して、レンズCPU61のメイン処理につい
て説明する。また、インストラクションコマンドを表
1、2に、カメラボディから種々のボディ側のデータを
レンズ側に送るためのコマンド(データ)を表3に、レ
ンズから種々のレンズ側のデータを送るためのコマンド
を表4に、レンズCPU61のRAM61bのメモリマ
ップを表5〜表11に示してある。
[Main Processing of Lens CPU] The main processing of the lens CPU 61 will be described with reference to FIGS. Tables 1 and 2 show instruction commands, Table 3 shows commands (data) for transmitting various body-side data from the camera body to the lens side, and Table 3 shows commands for transmitting various lens-side data from the lens. Tables 5 to 11 show memory maps of the RAM 61b of the lens CPU 61 in Table 4.

【表1】 [Table 1]

【表2】 [Table 2]

【表3】 [Table 3]

【表4】 [Table 4]

【表5】 [Table 5]

【表6】 [Table 6]

【表7】 [Table 7]

【表8】 [Table 8]

【表9】 [Table 9]

【表10】 [Table 10]

【表11】 [Table 11]

【0028】メインルーチンでは、先ずレンズCPU6
1は、高速作動モードのセット、割込みの禁止、スタッ
クアドレスのセット、ポートPの初期化を行ない、ズー
ムコード板71から現在の絶対ズームコードを入力する
(S101〜S109)。そして、ズームコードに基づ
いて演算したデータをRAM61bにメモリし、カメラ
ボディ11のクロック信号による通信(旧通信)により
RAM61bにメモリしたデータ群(表5の LC0〜
LC15)をカメラボディ11に送信する(S11
1)。そして、送信が終了したら3msタイマーをスター
トさせる(S113)。
In the main routine, first, the lens CPU 6
1 sets a high-speed operation mode, inhibits an interrupt, sets a stack address, initializes a port P, and inputs the current absolute zoom code from the zoom code plate 71 (S101 to S109). Then, the data calculated based on the zoom code is stored in the RAM 61b, and the data group (LC0 to LC0 in Table 5) stored in the RAM 61b by communication (old communication) using the clock signal of the camera body 11 (old communication).
LC15) to the camera body 11 (S11)
1). When the transmission is completed, a 3 ms timer is started (S113).

【0029】その後、旧通信が正常に終了すると、イン
ターフェース62からKAFEND信号(“L”レベル)が出
力されるので、それを3msタイマーがタイムアップする
まで待つ(S115、S117)。3msタイマーがタイ
ムアップする前に旧通信終了信号(KAFEND信号)が出力
されなかったときには、旧通信が正常に終了しなかった
ことになるので、ストップ処理(クロック91の停止)
を行なって処理を停止する(S115、S117、S1
19)。タイムアップ前にKAFEND信号が出力されたとき
には正常動作なので、カメラボディ11から通信により
コマンドを受信するが、それが新通信可能なカメラであ
ることを識別する新通信コマンドでなければ、新通信可
能なボディではない場合があるので、ストップ処理を行
なう(S121、S123、S119)。新通信とは、
カメラボディと撮影レンズとの間において、撮影レンズ
のクロックに同期して双方向にコマンド、データの送受
が可能な通信である。
After that, when the old communication ends normally, a KAFEND signal ("L" level) is output from the interface 62, and the KAFEND signal is waited until the 3 ms timer expires (S115, S117). If the old communication end signal (KAFEND signal) is not output before the 3 ms timer expires, it means that the old communication did not end normally, so the stop processing (stop of the clock 91).
To stop the processing (S115, S117, S1
19). When the KAFEND signal is output before the time-up, the operation is normal, so a command is received by communication from the camera body 11, but if it is not a new communication command for identifying a camera capable of new communication, new communication is possible. Since there is a case where the body is not a proper body, a stop process is performed (S121, S123, S119). What is new communication?
This communication allows bidirectional transmission and reception of commands and data between the camera body and the photographic lens in synchronization with the clock of the photographic lens.

【0030】新通信コマンドを受信したときには、コマ
ンド受信完了信号をカメラボディ11に出力し、2msタ
イマ割込みの許可および2msタイマをスタートさせ、さ
らに、新通信の割込みを許可し、他の割込みも許可する
(S123、S125、S127、S128、S12
9)。これ以降、2msタイマ割込み処理及び新通信の割
込みが可能になる。以上の処理は、カメラボディ11の
メインスイッチがオンされ、ボディ11から電力が供給
されたとき最初に実行される。その後は、メインスイッ
チがオンされている間は以下の処理が繰り返される。
When a new communication command is received, a command reception completion signal is output to the camera body 11, a 2 ms timer interrupt is enabled, a 2 ms timer is started, a new communication interrupt is allowed, and other interrupts are also allowed. (S123, S125, S127, S128, S12
9). Thereafter, 2 ms timer interrupt processing and interruption of new communication become possible. The above processing is executed first when the main switch of the camera body 11 is turned on and power is supplied from the body 11. Thereafter, the following processing is repeated while the main switch is on.

【0031】ズームコード板71からズームコードを入
力する(S131)。ズームコードが前回と異なれば、
距離コードデータを入力して、これを含むレンズコード
データLC2をRAM61bにメモリし(表5参照)、
ズームコードのデータに基づいて演算を行ない、算出し
たデータをLC0〜17及びLB4、LBBデータとし
てレンズRAM61bにメモリする(S133、S13
5、S137)。ズームコードが前回と同一であれば、
カメラボディ11から距離コードデータを入力してこれ
を含むレンズコードデータ(LC2)をレンズRAM6
1bの所定のアドレスにメモリする(S133、S13
9、S141)。
A zoom code is input from the zoom code board 71 (S131). If the zoom code is different from the previous one,
The distance code data is input, and the lens code data LC2 including the distance code data is stored in the RAM 61b (see Table 5).
An operation is performed based on the zoom code data, and the calculated data is stored in the lens RAM 61b as LC0 to LC17 and LB4 and LBB data (S133, S13)
5, S137). If the zoom code is the same as last time,
Distance code data is input from the camera body 11 and lens code data (LC2) including the distance code data is stored in the lens RAM 6.
1b at a predetermined address (S133, S13
9, S141).

【0032】次に、カメラボディからの通信割込みで、
ストップ要求があったかどうか(フラグF_STNDBYがセッ
トされているかどうか)、2msタイマ割込み内で電力要
求があったかどうか(フラグF_LBATREQがセットされて
いるかどうか)をチェックし、ストップの要求がないと
き、または電力要求があるときには像倍率一定ズーム処
理(ISZ処理)を行なってからNIOST処理、つま
りメインルーチンのS131に戻って上記処理を繰り返
す(S143、S145、S147)。なお、電力要求
とは、カメラボディ11の電源(バッテリ20の電力)
をズームモーター65駆動用に、電源ピンBPC、LP
Cを介してパワーズームレンズ51に供給することをカ
メラボディ11(ボディCPU35)に要求することを
いう。
Next, upon a communication interrupt from the camera body,
Checks whether a stop request has been made (whether the flag F_STNDBY has been set) and whether a power request has been made within the 2 ms timer interrupt (whether the flag F_LBATREQ has been set). If there is, the image magnification constant zoom processing (ISZ processing) is performed, and then the NIOST processing, that is, the processing returns to S131 of the main routine, and the above processing is repeated (S143, S145, S147). Note that the power request is the power of the camera body 11 (the power of the battery 20).
Power pins BPC, LP for driving the zoom motor 65
This means requesting the camera body 11 (body CPU 35) to supply the power to the power zoom lens 51 via C.

【0033】ストップの要求がありかつバッテリの要求
がないときには、ストップ準備(2msタイマ割込み禁
止、ストップ解除の準備)の後にストップ処理を行なう
(S143、S145、S149、S151)。つま
り、レンズCPU61は、クロック91を止めて低消費
電力(スタンバイ)モードに入る。このストップ状態
(低消費電力モード)は、例えば、カメラボディからの
通信割込みにより解除され、通常動作(クロック91作
動)に戻る。通常動作に戻ると、通信割込みルーチン終
了後にS153に復帰し、通信割込みにて、ストップ要
求が無くなるかまたは電力要求があったときに、2msタ
イマ割込みの許可および2msタイマスタート処理を行な
ってS131に戻るが、それ以外のときにはS149に
戻って再びストップ状態(省電力モード)に入る(S1
53、S155、S157)。
When there is a request for stop and no request for battery, stop processing is performed after preparation for stop (prohibition of interruption of 2 ms timer, preparation for release of stop) (S143, S145, S149, S151). That is, the lens CPU 61 stops the clock 91 and enters the low power consumption (standby) mode. This stop state (low power consumption mode) is released, for example, by a communication interrupt from the camera body, and returns to the normal operation (clock 91 operation). When returning to the normal operation, the process returns to S153 after the end of the communication interrupt routine. When the stop request is eliminated or the power is requested by the communication interrupt, the 2 ms timer interrupt is permitted and the 2 ms timer start process is performed. At other times, the process returns to S149 and enters the stop state (power saving mode) again (S1).
53, S155, S157).

【0034】『INTI処理』レンズCPU61により
実行される、図8に示した通信割込み(INT1)処理
について説明する。INT1処理は、通信割込みを行な
う処理であって、通信により受信したコマンド及びデー
タ等に基づいた処理を行なう。なお、このINT1処理
は、レンズCPU61のポートPINTIにインターフェー
ス62からの割込み信号が入力されたときに開始され
る。
"INTI Process" The communication interrupt (INT1) process shown in FIG. 8 executed by the lens CPU 61 will be described. The INT1 process is a process for performing a communication interrupt, and performs a process based on a command and data received through communication. The INT1 processing is started when an interrupt signal is input from the interface 62 to the port PINTI of the lens CPU 61.

【0035】通信割込みに入ると、先ず、通信割込みを
禁止し、ストップフラグ(F_STNDBY)およびNGフラグ
(F_SCKNG、F_CMDNG)をクリアした後にカメラボディ11
からコマンドを入力する(S201、S203、S20
5)。そして、入力したコマンドの上位4ビットをチェ
ックして、その上位ビットに応じたサブルーチンに進む
(S207〜S229)。さらに各サブルーチンにおい
て、下位ビットに応じた処理を行なう。本実施例では、
上位ビット(4ビット)により識別するサブルーチンと
して、LBコマンドサブルーチン、BLコマンドサブル
ーチン、インストラクションコードサブルーチン、16
byteデータ、前半8byteデータ、後半8byt
eデータサブルーチン、1バイト毎データサブルーチ
ン、テストモードサブルーチンが設けられている(S2
09、S213、S217、S221、S225、S2
29)。
When entering a communication interrupt, first, the communication interrupt is prohibited, and a stop flag (F_STNDBY) and an NG flag are set.
Camera body 11 after clearing (F_SCKNG, F_CMDNG)
(S201, S203, S20)
5). Then, the upper 4 bits of the input command are checked, and the process proceeds to a subroutine corresponding to the upper bits (S207 to S229). Further, in each subroutine, a process corresponding to the lower bit is performed. In this embodiment,
As subroutines identified by the upper bits (4 bits), LB command subroutine, BL command subroutine, instruction code subroutine, 16
byte data, first half 8 byte data, second half 8 byte
e subroutine, data subroutine for each byte, and test mode subroutine are provided (S2
09, S213, S217, S221, S225, S2
29).

【0036】上記4ビットが上記の設定されたビットで
なければ、コマンドNGフラグF_CMNDNGをセッ
トし、通信割込みを許可してメインルーチンに復帰する
(S227、S231、S233)。
If the above 4 bits are not the above set bits, the command NG flag F_CMNDNG is set, the communication interrupt is permitted, and the process returns to the main routine (S227, S231, S233).

【0037】『2msタイマ割込み処理』図9に示した2
msタイマ割込みフローチャートを参照して、2msタイマ
により割込みが入ったときのレンズCPU61の処理に
ついて説明する。2msタイマは、2ms経過する毎に割込
み信号を出力する、レンズCPU61の内蔵ハードタイ
マであり、2msタイマ割込みは、2msタイマがタイムア
ップする毎に、割込みが許可されていることを条件に割
込み処理を行なう定期的なインターバル処理である。
"2 ms timer interrupt processing"
With reference to the ms timer interrupt flowchart, the processing of the lens CPU 61 when the 2 ms timer interrupts will be described. The 2 ms timer is a built-in hardware timer of the lens CPU 61 that outputs an interrupt signal every time 2 ms elapses. The 2 ms timer interrupt is performed every time the 2 ms timer expires, on condition that the interrupt is enabled. This is a periodic interval process for performing

【0038】2msタイマ割込み処理に入ると、先ず、他
の割込みを禁止する(S301)。次に、AFパルスカ
ウンタから現在値を入力してレンズRAM61bにメモ
リし、距離コード板81から現在の距離コードデータを
入力してレンズRAM61bにメモリする(S303、
S305)。そして、必要に応じて、AFパルス数を補
正し、現在の距離コードを次回の2msタイマ割込み処理
のために前回の距離コードとしてレンズRAM61bの
別のアドレスにメモリする(S307、S309)。
When the 2 ms timer interrupt process starts, other interrupts are first prohibited (S301). Next, the current value is input from the AF pulse counter and stored in the lens RAM 61b, and the current distance code data is input from the distance code plate 81 and stored in the lens RAM 61b (S303,
S305). Then, if necessary, the number of AF pulses is corrected, and the current distance code is stored at another address of the lens RAM 61b as the previous distance code for the next 2 ms timer interrupt process (S307, S309).

【0039】次に、ズームコード板71から現在のズー
ムコードを読み込んで現在のズームコードとしてレンズ
RAM61bにメモリし、ズームモード切換えスイッチ
77の切換え状態とズームスピード切替えスイッチ75
の切替え状態を入力する(S311、S313)。そし
て、パワーズームモードであればDZ処理に進み、マニ
ュアルズームモードであればMZ処理に進む(S31
5)。
Next, the current zoom code is read from the zoom code plate 71, stored as the current zoom code in the lens RAM 61b, the switching state of the zoom mode switch 77 and the zoom speed switch 75.
Is input (S311, S313). If the mode is the power zoom mode, the process proceeds to the DZ process. If the mode is the manual zoom mode, the process proceeds to the MZ process (S31).
5).

【0040】『DZ処理』図10に示したDZ、MZ処
理は、それぞれ電動(パワー)ズームおよびマニュアル
(手動)ズーム処理に関するフローチャートである。こ
れらの処理は、レンズCPU61により実行される。パ
ワーズーム(DZ)処理では、先ず、ズーミングレンズ
群53Zが端点に達しているかどうかを検出する端点検
出処理(端点検出サブルーチン)を実行する(S35
1)。
[DZ Process] The DZ and MZ processes shown in FIG. 10 are flowcharts relating to electric (power) zoom and manual (manual) zoom processes, respectively. These processes are executed by the lens CPU 61. In the power zoom (DZ) process, first, an end point detection process (end point detection subroutine) for detecting whether or not the zooming lens group 53Z has reached the end point is executed (S35).
1).

【0041】次に、ズームスピード切替えスイッチ75
及びフラグF_MOVTRG、F_MOV等の制御用フラグに基づい
て、モータを制御するためのフラグ等をセットし、PZ
パルスおよび焦点距離の現在値の入力及びRAM61b
へのメモリ、必要に応じてPZパルスの補正を行ない、
また、ズーミングレンズ群53Zの現在位置が不明のと
きは、ズーミングレンズ群53Zに関するポジションイ
ニシャライズ(PZ‐INITPOS)処理を行なっ
て、次回の2msタイマ割込み処理のために前回のズーム
コードとしてズームコードを別のアドレスにメモリする
(S353、S355、S357)。
Next, a zoom speed switch 75
Based on the control flags such as F_MOVTRG and F_MOV, a flag for controlling the motor is set, and PZ
Input of current value of pulse and focal length and RAM 61b
To the memory, if necessary, correct the PZ pulse,
If the current position of the zooming lens group 53Z is unknown, a position initialization (PZ-INITPOS) process for the zooming lens group 53Z is performed, and a different zoom code is used as the previous zoom code for the next 2 ms timer interrupt process. (S353, S355, S357).

【0042】像倍率一定ズームモード(ISZ処理)で
像倍率メモリフラF_ISM=1あれば、ISZメモリ処理
を行ない、次回の2msタイマ割込み処理用に、ズームス
イッチ75、77の状態を保存する(S357〜S36
1)。そして、S353においてセットしたフラグに応
じてズームモータ65の駆動制御、割込みビット・フラ
グの設定、PWM制御用のデューティー比アップ処理お
よびPWM制御時にはPWMタイマーのスタートなどを
行なう(S363)。そして、割込みを許可してリター
ンする(S395)。
If the image magnification memory flag F_ISM = 1 in the constant image magnification zoom mode (ISZ processing), the ISZ memory processing is performed, and the state of the zoom switches 75 and 77 is saved for the next 2 ms timer interrupt processing (S357 to S357). S36
1). Then, in accordance with the flag set in S353, drive control of the zoom motor 65, setting of an interrupt bit / flag, processing for increasing the duty ratio for PWM control, and start of a PWM timer for PWM control are performed (S363). Then, the interrupt is permitted and the process returns (S395).

【0043】マニュアルズーム(MZ)サブルーチンで
は、先ずズームモータ65をストップし、PZパルサー
69のLEDをオフし、バッテリリクエスト(電力要
求)フラグ(F_LBATREQ)をクリアし、PZレンズステ
ートPZ_LSTデータの各ビットをクリアする(S371、
S373、S375、S379)。
In the manual zoom (MZ) subroutine, first, the zoom motor 65 is stopped, the LED of the PZ pulser 69 is turned off, the battery request (power request) flag (F_LBATREQ) is cleared, and each bit of the PZ lens state PZ_LST data is cleared. Is cleared (S371,
S373, S375, S379).

【0044】次に、PZコントロールに関するデータを
レンズRAM61bの所定アドレスからクリアし、次回
の2msタイマ割込み処理用にズームコードを保存(メモ
リ)する(S381、S383)。そして、ズームコー
ドより粗検出したPZパルス数を、PZパルス現在値
(PZPX)、およびPZパルススタート値(PZPS
TART)としてレンズRAM61bにメモリし、PZ
パルスカウンタ(PZPCNT)をクリアする。また、
粗検出したPZパルスの現在値を現在の焦点距離(粗デ
ータ)に変換してメモリする(S383、S385、S
387)。
Next, the data relating to the PZ control is cleared from a predetermined address of the lens RAM 61b, and the zoom code is stored (memory) for the next 2 ms timer interrupt processing (S381, S383). Then, the number of PZ pulses roughly detected from the zoom code is represented by a PZ pulse current value (PZPX) and a PZ pulse start value (PZPS).
TART) is stored in the lens RAM 61b, and PZ
Clear the pulse counter (PZPCNT). Also,
The current value of the coarsely detected PZ pulse is converted to the current focal length (coarse data) and stored (S383, S385, S385).
387).

【0045】そして、ズームスイッチ75、77の状態
を次回の2msタイマ割込み処理用に保存し、2msタイマ
ーをスタートし、2msタイマ割込みを許可し、INT3
(PZパルスカウント)割込みおよびINT2(PW
M)割込みを禁止する(S389〜S393)。そし
て、他の割込みを許可してリターンする(S395)。
Then, the states of the zoom switches 75 and 77 are saved for the next 2 ms timer interrupt processing, the 2 ms timer is started, the 2 ms timer interrupt is permitted, and INT3
(PZ pulse count) interrupt and INT2 (PW
M) Interrupt is prohibited (S389 to S393). Then, another interrupt is permitted and the process returns (S395).

【0046】『PWMの制御方法』PWM制御方法につ
いて、図11ないし図13に示したフローチャートに基
づいて説明する。図11は、図9及び図10に示す2ms
タイマ割込みルーチンのPWM制御に関する部分を抜粋
したものである。また、図12は、図96および図図9
7に示す、PZパルスカウント割込みルーチンのPWM
制御に関する部分を抜粋したものである。図13は、P
WM制御時のPWM割込みルーチン(ブレーキ処理)で
ある。なお、PWM制御は間欠通電の一種であって、通
電時間と非通電時間の比(デューティー比)を調整する
制御である。
[PWM Control Method] The PWM control method will be described with reference to the flowcharts shown in FIGS. FIG. 11 shows the 2 ms shown in FIG. 9 and FIG.
This is an extract of a part related to PWM control of the timer interrupt routine. 12 and FIG. 96 and FIG.
PWM of the PZ pulse count interrupt routine shown in FIG.
This is an excerpt from the control section. FIG.
This is a PWM interrupt routine (brake processing) during WM control. The PWM control is a type of intermittent energization, and is a control for adjusting a ratio (duty ratio) between an energization time and a non-energization time.

【0047】ここで、図6のメインフローと各種割込み
ルーチンとの関係について説明する。図6のメインフロ
ーチャートのS127〜S131、S131〜S157
のルーチン中では、通信割込み、2msタイマー割込み、
PZパルスカウント割込み、PWM割込みのいずれかに
よる割込みが可能である。また、通信割込みルーチンに
おいては、2msタイマ割込み、PZパルスカウント割込
み、PWM割込みのいずれかによる割込みが可能となっ
ている。
Here, the relationship between the main flow of FIG. 6 and various interrupt routines will be described. S127 to S131, S131 to S157 of the main flowchart of FIG.
In the routine, the communication interrupt, 2ms timer interrupt,
Interruption by either a PZ pulse count interrupt or a PWM interrupt is possible. Further, in the communication interrupt routine, an interrupt by any of a 2 ms timer interrupt, a PZ pulse count interrupt, and a PWM interrupt is possible.

【0048】PWM制御は、通電時間と非通電時間の比
(PWMデューティー比T_PWMBRK)を増減することにより
速度を制御している。つまり、本実施例では、設定時間
内にPZパルスが来なければPWMデューティー比T_PW
MBRKをアップしてズームモータ65への通電時間を長く
することにより高速化し、PZパルスが規定時間内に来
ればPWMデューティー比(T_PWMBRK)をダウンしてズ
ームモータ65への通電時間を短くすることにより低速
化する、という制御により一定速度制御を実現している
(図14参照)。
In the PWM control, the speed is controlled by increasing / decreasing a ratio between a conduction time and a non-conduction time (PWM duty ratio T_PWMBRK). That is, in this embodiment, if the PZ pulse does not come within the set time, the PWM duty ratio T_PW
Increase the MBRK to increase the energizing time to the zoom motor 65 to increase the speed. If the PZ pulse comes within the specified time, reduce the PWM duty ratio (T_PWMBRK) to shorten the energizing time to the zoom motor 65. The constant speed control is realized by the control of reducing the speed (see FIG. 14).

【0049】また、本実施例では、起動時(モータが停
止状態またはブレーキ状態から動作状態になった時)に
はデューティー比を最小(通電時間を最短)にセットし
てからズームモータ65への通電を開始し、PZパルサ
ー69が出力するパルスをカウントする。そして、設定
時間内にパルスが出力されないときにはデューティー比
を徐々に上げる一方、設定時間内にパルスが出力された
ときにはデューティー比を下げることにより、設定時間
周期でパルスが出力されるようにズームモータ65の加
速制御および一定速制御をしている。
In this embodiment, at the time of startup (when the motor is changed from the stop state or the brake state to the operation state), the duty ratio is set to the minimum (the energization time is the shortest), and then the zoom motor 65 is turned on. The energization is started, and the pulses output from the PZ pulser 69 are counted. When the pulse is not output within the set time, the duty ratio is gradually increased, and when the pulse is output within the set time, the duty ratio is reduced, so that the pulse is output at the set time period. Acceleration control and constant speed control.

【0050】先ず、ズームモータ65が起動かどうか
(フラグF_STARTがセットされているか)をチェックす
る(S401)。起動であれば、最低速で起動するため
に、PWMタイマT_PWMをクリアし、PWMデューティ
ー比T_PWMBRKを最小値にセット(最低速)してS405
に進み、起動でなければ、なにもせずにS405に進む
(S401、S403)。また、モータ起動時デューテ
ィー比を最小に設定することで、撮影者による微細な駆
動操作を可能にすることができるとともに、自然なズー
ミング動作が得られる。
First, it is checked whether the zoom motor 65 is started (whether the flag F_START is set) (S401). If so, the PWM timer T_PWM is cleared, and the PWM duty ratio T_PWMBRK is set to the minimum value (lowest speed) in order to start at the lowest speed.
If not, the process proceeds to S405 without doing anything (S401, S403). Further, by setting the duty ratio at the time of starting the motor to a minimum, a fine driving operation by the photographer can be enabled, and a natural zooming operation can be obtained.

【0051】S405では、ズームスピード切替スイッ
チ75等により設定された速度に応じたパルス間隔(パ
ルス周期T_PWMPLS)をセットして、ズームモータ65に
通電する(S405、S407)。つまり、パルス間隔
T_PWMPLSでPZパルスが出力されるようにズーム速度を
制御することを意味する。
In S405, a pulse interval (pulse period T_PWMPLS) corresponding to the speed set by the zoom speed changeover switch 75 or the like is set, and power is supplied to the zoom motor 65 (S405, S407). That is, the pulse interval
This means that the zoom speed is controlled so that the PZ pulse is output by T_PWMPLS.

【0052】次に、速度に応じたPWM駆動か、DC駆
動かをチェックし、PWM駆動であればS411に進む
が、DC駆動であればそのままリターンする(S40
9)。S411では、PWMタイマT_PWMを1インクリ
メントする。そして、そのインクリメントした値がパル
ス周期T_PWMPLSの値を超えたかどうかをチェックし、超
えていればPWMデューティー比(T_PWMBRK)をアップ
し、超えていなければなにもしない(S413、S41
5)。つまり、設定時間(パルス周期T_PWMPLS)内にP
Zパルスが来なければPWMデューティー比(T_PWMBR
K)をアップして通電時間を長くして設定速度まで高速
化を図るのである。
Next, it is checked whether the drive is the PWM drive or the DC drive according to the speed. If the drive is the PWM drive, the process proceeds to S411. If the drive is the DC drive, the process returns (S40).
9). In S411, the PWM timer T_PWM is incremented by one. Then, it is checked whether or not the incremented value exceeds the value of the pulse period T_PWMPLS. If the value exceeds the value, the PWM duty ratio (T_PWMBRK) is increased, and if not, no action is taken (S413, S41).
5). That is, P within the set time (pulse period T_PWMPLS)
If the Z pulse does not come, the PWM duty ratio (T_PWMBR
K) is increased to increase the energization time to increase the speed up to the set speed.

【0053】そして、PWMデューティー比(T_PWMBR
K)をセットし、PWM用タイマ(T_PWM)をスタートさ
せ、2msタイマ割込みを許可して終了する(S417、
S419)。なお、S407〜S419部分が図14の
(A)、(C)、(D)時刻に相当する。
Then, the PWM duty ratio (T_PWMBR)
K) is set, the PWM timer (T_PWM) is started, the 2 ms timer interrupt is enabled, and the process is ended (S417,
S419). S407 to S419 are shown in FIG.
(A), (C), and (D) correspond to time.

【0054】また、PZパルサー69からPZパルスが
出力されると、図12のPZパルスカウント割込み処理
に入る。PZパルスカウント割込み処理では、先ずパル
ス周期T_PWMPLSとPWMタイマT_PWMとを比較し、パル
ス周期T_PWMPLSの方が大きければ、パルス周期T_PWMPLS
内にパルスが出力されたのでPWMデューティー比T_PW
MBRKを下げてからPWMタイマT_PWMをクリアし、パル
ス周期T_PWMPLSの方が小さければ、1パルス周期T_PWMP
LS経過後にパルスが出力されたのでPWMタイマT_PWM
をクリアして終了する(S421、S423、S42
5)。
When the PZ pulse is output from the PZ pulser 69, the process enters the PZ pulse count interruption process of FIG. In the PZ pulse count interrupt processing, first, the pulse cycle T_PWMPLS is compared with the PWM timer T_PWM, and if the pulse cycle T_PWMPLS is larger, the pulse cycle T_PWMPLS
PWM duty ratio T_PW
After lowering the MBRK, clear the PWM timer T_PWM. If the pulse period T_PWMPLS is smaller, one pulse period T_PWMP
Since the pulse was output after the elapse of LS, the PWM timer T_PWM
And ends (S421, S423, S42
5).

【0055】図13のPWM割込みルーチンでは、割込
みを禁止し、ズームモータ65にブレーキをかけて、I
NT2(PWM)割込みを禁止し、他の割込みを許可し
てリターンする(S431〜S437)。この部分の処
理は、図14の(B)時刻に相当する。
In the PWM interrupt routine of FIG. 13, the interrupt is prohibited, the brake is
The NT2 (PWM) interrupt is prohibited, other interrupts are permitted, and the process returns (S431 to S437). The processing in this part corresponds to the time (B) in FIG.

【0056】本実施例のPWM制御では、パルス周期T_
PWMPLSを、ズームスピード切替えスイッチ75等によっ
て指定された速度に応じて、低速は8、中速は4、高速
は3の3段階に設定する。また、PWMタイマT_PWMは
モータ起動時及びPZパルサー69からPZパルスが出
力され、PZパルスカウント割込み処理に移ったときに
クリアされ、その後PZパルスが出力されるまで2msタ
イマ割込みルーチンのS411にてカウントアップされ
る。従って、PWMタイマT_PWMは、前回のPZパルス
が出力されてからの経過時間の倍数をほぼ表わすことに
なる。ただし、PZパルスの出力間隔は、高速時でも2
msタイマ割込みの周期より大きいものとする。
In the PWM control of this embodiment, the pulse cycle T_
The PWMPLS is set to three levels of 8 for the low speed, 4 for the medium speed, and 3 for the high speed according to the speed specified by the zoom speed switch 75 or the like. In addition, the PWM timer T_PWM is cleared when the motor is started and when the PZ pulse is output from the PZ pulser 69 and the process proceeds to the PZ pulse count interrupt processing, and thereafter counted in S411 of the 2 ms timer interrupt routine until the PZ pulse is output. Will be up. Therefore, the PWM timer T_PWM substantially represents a multiple of the elapsed time since the previous PZ pulse was output. However, the output interval of the PZ pulse is 2 even at high speed.
It shall be larger than the cycle of the ms timer interrupt.

【0057】例えば、高速3のとき(パルス周期T_PWMP
LS=3)の前回PZパルス出力がされてからの経過時間
は、2ms×3=6msとなる。低速8のときには、パルス
周期T_PWMPLS=8になる。この低速のときの処理を、図
11および図12に示したフローチャートを参照して説
明する。2msタイマ割込みのS413において、パルス
周期T_PWMPLSがPWMタイマT_PWMよりも小さいと判断
したとき、すなわち前回PZパルスが出力されてから2
ms×8=16msよりも長い時間が経過しているときに
は、PWMデューティー比を上げる処理(S415)に
進む。
For example, at high speed 3 (pulse period T_PWMP
The elapsed time from the previous output of the PZ pulse (LS = 3) is 2 ms × 3 = 6 ms. At low speed 8, the pulse period T_PWMPLS = 8. The processing at a low speed will be described with reference to the flowcharts shown in FIGS. In S413 of the 2 ms timer interrupt, when it is determined that the pulse period T_PWMPLS is smaller than the PWM timer T_PWM, that is, two times since the previous PZ pulse was output,
If the time longer than ms × 8 = 16 ms has elapsed, the process proceeds to the process of increasing the PWM duty ratio (S415).

【0058】また、逆に、PZパルスカウント割込み処
理内では、S421のチェックにおいて、パルス周期T_
PWMPLSがPWMタイマT_PWMよりも大きいときは、すな
わち前回PZパルスが出力されてから2ms×8=16ms
経過前にPZパルスが出力されたことになるので、PW
Mデューティー比を下げる(S423)。
Conversely, in the PZ pulse count interrupt processing, the pulse period T_
When PWMPLS is greater than the PWM timer T_PWM, that is, 2 ms × 8 = 16 ms since the last time the PZ pulse was output
Since the PZ pulse is output before the lapse, the PW
The M duty ratio is reduced (S423).

【0059】以上のように、設定されたパルス周期T_PW
MPLSでPZパルスが出力されるようにPWMのデューテ
ィー比(T_PWMBRK)を上げ下げすることによって、PZ
パルスの出力間隔が一定になる一定速度制御を実現して
いる。また、設定するパルス周期T_PWMPLSを変えること
により、PZパルスの出力間隔、すなわち制御速度を変
えることができる。
As described above, the set pulse period T_PW
By raising and lowering the duty ratio (T_PWMBRK) of PWM so that a PZ pulse is output by MPLS, PZ
Constant speed control in which the pulse output interval is constant is realized. Further, by changing the set pulse period T_PWMPLS, the output interval of the PZ pulse, that is, the control speed can be changed.

【0060】『像倍率一定ズーム』次に像倍率一定ズー
ム(ISZ)について説明する。像倍率一定ズームと
は、像倍率(撮影倍率)をm、被写体距離をD、焦点距
離をfとしたときに、m=f/Dで表わされる像倍率m
が被写体距離Dの変動にかかわらず一定になるように焦
点距離fを制御することである。
[Constant Image Magnification Zoom] Next, the constant image magnification zoom (ISZ) will be described. The constant image magnification zoom is defined as m = f / D, where m is the image magnification (imaging magnification), D is the object distance, and f is the focal length.
Is to control the focal length f so as to be constant irrespective of the variation of the subject distance D.

【0061】先ず、像倍率一定ズームの原理について説
明する。説明を簡単にするため、前群および後群の2群
で構成されているズームレンズに基づいて説明する。こ
のズームレンズの像倍率mは、下記式により表わされ
る。 m=x/f=f/f m =m・m=x・f/f … ただし、m :像倍率 m:前群の倍率 m:後群の倍率 f:前群の焦点距離 f :合成焦点距離 x :∞端からの前群レンズ繰出し量(移動量)
First, the principle of the constant image magnification zoom will be described. For simplicity, the description will be made based on a zoom lens composed of two groups, a front group and a rear group. The image magnification m of this zoom lens is represented by the following equation. m 1 = x / f 1 m 2 = f / f 1 m = m 1 · m 2 = x · f / f 1 2 where m: image magnification m 1 : magnification of front group m 2 : magnification of rear group f 1 : focal length of the front group f: combined focal length x: extension amount (movement amount) of the front group lens from the ∞ end

【0062】像倍率設定時の繰出し量をx、焦点距離
をfとすると、像倍率mは、 m=x・f/f …となる。
[0062] magnification set feed amount x 0 at, when the focal length f 0, the image magnification m 0 is, m 0 = x 0 · f 0 / f 1 2 ... become.

【0063】ここで、合焦処理によりレンズがxまで移
動したときに、像倍率mが下記式を満足する焦点距
離fを求めれば、像倍率を一定にできる。 m=x・f/f … 上記および式より、 x・f/f =x・f/f となる。したがって、求める焦点距離fは、 f=x・f/x … となる。
[0063] Here, when the lens by focusing process is moved to the x, by obtaining the focal length f of the image magnification m 0 satisfies the following expression, it can be the image magnification constant. m 0 = from x · f / f 1 2 ... above and wherein the x 0 · f 0 / f 1 2 = x · f / f 1 2. Therefore, determining the focal length f becomes f = x 0 · f 0 / x ....

【0064】また、AF測距により、レンズ繰出し量x
のときにディフォーカス量Δxが得られたとすると、 f=x・f/(x+Δx) … 式により目標となる焦点距離fが求まる。
Further, the lens extension amount x is determined by AF distance measurement.
Assuming that the defocus amount Δx is obtained at the time, the target focal length f is obtained by the following equation: f = x 0 · f 0 / (x + Δx)

【0065】以上は像倍率一定ズームの原理であるが、
実際の制御においては、レンズ繰出し量はコード板、A
Fパルサー等によって管理される。なお、AFパルサー
は、繰り出し量とほぼリニアな関係になるように構成さ
れる。したがって、の式の繰出し量x及びxは、
∞端からのAFパルス数に、デフォーカス量はデフォー
カスパルス数にそれぞれ置き換えて考えることができ
る。
The principle of the constant image magnification zoom has been described above.
In actual control, the lens extension amount is the code plate, A
It is managed by an F pulsar or the like. Note that the AF pulser is configured to have a substantially linear relationship with the feeding amount. Therefore, the movement amount x and x 0 of the formula,
The number of AF pulses from the ∞ end can be replaced by the number of defocus pulses, and the defocus amount can be replaced by the number of defocus pulses.

【0066】次に、本実施例における実際の演算方法に
ついて説明する。本実施例では、レンズCPU61によ
り像倍率一定ズーム(制御ズーミング)動作がなされ
る。また、その演算も、カメラボディ11から送られた
像倍率に基づいて演算する場合と、ある時点における被
写体距離および焦点距離に基づいて演算する場合とがあ
る。
Next, the actual calculation method in this embodiment will be described. In this embodiment, the lens CPU 61 performs a constant image magnification zoom (control zooming) operation. The calculation may be performed based on the image magnification transmitted from the camera body 11, or may be performed based on the subject distance and the focal length at a certain point in time.

【0067】(1)ボディから像倍率mが送られてき
た場合 (i) mより、仮の設定値、繰出しパルス数xおよ
び焦点距離fを求める。先ず、 f=|f| …とする。ここで、
に対応する繰出し量をXとおくと、式により m=X・f/f … となる。レンズ繰出し量1mm当たりの繰出しAFパルス
数をkとすると、 x=X・k …となる。 以上の式におよび式を代入することにより、目的
の繰出しパルス数xが下記式のように求まる。 x=m・|f|・k …
(1) When the image magnification m 0 is sent from the body (i) From m 0 , a temporary set value, the number of delivered pulses x 0 and the focal length f 0 are obtained. First, it is assumed that f 0 = | f 1 | here,
Placing the feeding amount corresponding to x 0 and X, m 0 = X · f 0 / f 1 2 ... become the equation. When the feeding AF pulse number per lens extension amount 1mm and k, the x 0 = X · k .... By substituting and expression of the above formula, feeding pulse number x 0 of interest is determined in the following equation. x 0 = m 0 · | f 1 | · k ...

【0068】(ii) 次に、および式からx・f
を演算し、その結果をxとおく。 x=x・f …(10)
(Ii) Next, from the following equation, x 0 · f 0
And the result is set to x 0 f 0 . x 0 f 0 = x 0 · f 0 (10)

【0069】(iii)目標焦点距離fを求める。現在位置
(現在の繰出しパルス数)xに基づいて演算する場合
は、下記式により求まる。 f=x/x …(11) デフォーカスパルス数Δxに基づいて求める場合は、下
記式により求まる。 f=x/(x+Δx) …(12)
(Iii) Obtain the target focal length f. When the calculation is performed based on the current position (current number of delivery pulses) x, it is obtained by the following equation. f = x 0 f 0 / x (11) When it is determined based on the number of defocus pulses Δx, it is determined by the following equation. f = x 0 f 0 / (x + Δx) (12)

【0070】(2)レンズRAM61bにメモリした繰
出しパルス数xおよび焦点距離fに基づいて求める
場合 (i) x・fは、メモリした繰出しパルス数x
よび焦点距離fにより、前記(10)式と同様に求め、演
算結果をxとおく。 x=x・f
[0070] (2) if obtained based on feeding pulse number x 0 and the focal length f 0 of the memory in the lens RAM61b (i) x 0 · f 0 is the feeding pulse number x 0 and the focal length f 0 of the memory, calculated similarly to the equation (10), put the operation result as x 0 f 0. x 0 f 0 = x 0 · f 0

【0071】(ii) 倍率m0は、前記、および(10)
式により、下記式のように求まる。 m=x/(f ・k) …(13) (iii)目標焦点距離fを求める。目標焦点距離fは、先
の(1)の(iii)と同様にして、求まる。なお、前群の
焦点距離fはレンズ固有のデータであり、レンズRO
M61aにメモリされている。
(Ii) The magnification m0 is as described above and (10)
According to the equation, it is obtained as in the following equation. m 0 = x 0 f 0 / (f 1 2 · k) (13) (iii) Obtain the target focal length f. The target focal length f is obtained in the same manner as in the above (1) (iii). Incidentally, the focal length f 1 of the front group is a lens-specific data, the lens RO
It is stored in M61a.

【0072】『ISZ処理』次に、上記原理に基づいた
本実施例の像倍率一定(イメージサイズ指定)ズーム
(ISZ)に関する演算処理について、図15および図
16に示したフローチャートに基づいてより詳細に説明
する。この処理は、レンズCPU61により実行され
る。なお、像倍率の設定は、ズームスピード切替えスイ
ッチ75またはセットスイッチ(SLスイッチ)により
行なわれる。詳細は、図91を参照して後述する。IS
Z演算は、設定された像倍率の算出および設定像倍率を
維持するための焦点距離の算出に関する。焦点距離の演
算は、合焦を条件とする場合としない場合、撮影レンズ
で演算する場合とカメラボディで演算する場合がある。
合焦を条件にする場合は、合焦時のレンズ繰出し量に基
づいて像倍率および目標レンズ繰出し量を算出する。合
焦を条件としない場合は、デフォーカス量および現焦点
距離に基づいて像倍率および目標レンズ繰出し量を算出
する。
[ISZ Processing] Next, the arithmetic processing relating to the fixed image magnification (specified image size) zoom (ISZ) of the present embodiment based on the above principle will be described in more detail with reference to the flowcharts shown in FIGS. Will be described. This process is executed by the lens CPU 61. The setting of the image magnification is performed by a zoom speed switch 75 or a set switch (SL switch). Details will be described later with reference to FIG. IS
The Z calculation relates to calculation of a set image magnification and calculation of a focal length for maintaining the set image magnification. The calculation of the focal length may be performed with or without the condition of focusing, may be performed with the taking lens, or may be performed with the camera body.
When focusing is set as a condition, the image magnification and the target lens extension are calculated based on the lens extension at the time of focusing. When focusing is not a condition, the image magnification and the target lens extension amount are calculated based on the defocus amount and the current focal length.

【0073】先ず、通信割込みを禁止(SEI)し、カ
メラボディ11から転送された通信情報に基づいてどの
ようにISZの演算を行うかを、フラグ(F_STIS、F_IS
ZM、F_ISZFOM、F_ISZXOM)によりチェックする(S45
1、S453、S465、S477、S479)。これ
らのフラグは、カメラボディ11との間でISZに関す
る通信が行なわれたことを示し、各々の通信が行なわれ
たときにRAM61bにセット(メモリ)する。そし
て、これらのフラグに基づいて必要な演算を行なう。F_
STISは、ボディから転送されるデータ使用を指示するフ
ラグ、F_ISZMは撮影レンズのデータ使用を指示するフラ
グ、F_ISZFOMは、ボディからの焦点距離fデータ使用を
指示するフラグ、F_ISZXOMは、ボディからの被写体距離
xデータ使用を指示するフラグである。
First, the communication interrupt is prohibited (SEI), and the flag (F_STIS, F_IS) indicates how the ISZ calculation is performed based on the communication information transferred from the camera body 11.
Check by ZM, F_ISZFOM, F_ISZXOM (S45)
1, S453, S465, S477, S479). These flags indicate that communication relating to ISZ has been performed with the camera body 11, and is set (memory) in the RAM 61b when each communication is performed. Then, necessary calculations are performed based on these flags. F_
STIS is a flag for instructing use of data transferred from the body, F_ISZM is a flag for instructing use of data of the photographing lens, F_ISZFOM is a flag for instructing use of focal length f data from the body, and F_ISZXOM is a subject from the body. This is a flag for instructing use of the distance x data.

【0074】カメラボディ11から送られた像倍率によ
り像倍率一定ズームを行なうとき(F_STIS=1のとき)
には、通信割込を許可し(CLI)、前記、および
(10)式によりxを求めてRAM61bの所定のア
ドレスにメモリし、割込みを禁止してフラグF_STISをク
リアする(S455〜S463)。
When performing constant image magnification zoom based on the image magnification transmitted from camera body 11 (when F_STIS = 1)
Allow communication interrupts (CLI), and
(10) memory to a predetermined address of RAM61b seeking x 0 f 0 by equation clears the flag F_STIS to disable interrupts (S455~S463).

【0075】像倍率のメモリ処理が行なわれ、すでにメ
モリされている焦点距離および被写体距離により像倍率
一定ズームを行なうとき(F_STIS=0、F_ISZM=1のと
き)には、割込みを許可し、前記被写体距離(繰出しパ
ルス数)xおよび焦点距離fからxを算出
し、前記(13)式により像倍率mを求めてこれらをRA
M61bの所定のアドレスにメモリし、通信割込みを禁
止してフラグF_ISZMをクリアする(S465〜S47
5)。
When memory processing of the image magnification is performed and constant image magnification zoom is performed based on the stored focal length and object distance (when F_STIS = 0 and F_ISZM = 1), an interrupt is permitted. X 0 f 0 is calculated from the subject distance (number of feeding pulses) x 0 and the focal length f 0, and the image magnification m 0 is obtained by the above equation (13).
The memory is stored at a predetermined address of M61b, the communication interrupt is prohibited, and the flag F_ISZM is cleared (S465 to S47).
5).

【0076】カメラボディ11から送られた焦点距離f
および被写体距離(繰出しパルス数)xにより像倍
率一定ズームを行なう場合(F_STIS=0、F_ISZM=0か
つF_ISZFOM=1、F_ISZXOM=1)には、先ず、受信した
焦点距離fおよび被写体距離xに基づいてx
を求めてメモリし、さらに(13)式により像倍率mを求
め、割込みを禁止し、フラグF_ISZFOM、F_ISZXOMをクリ
アする(S477〜S489)。以上のいずれでもなけ
れば、カメラボディ11との間でISZの演算に関する
通信は行なわれていないのでなにもしない。
The focal length f sent from the camera body 11
In the case of performing a constant image magnification zoom with 0 and the subject distance (number of pulses to be extended) x 0 (F_STIS = 0, F_ISZM = 0 and F_ISZFOM = 1, F_ISZXOM = 1), first, the received focal length f 0 and the subject distance based on the x 0 x 0 f 0
The seeking and memory, and (13) determine the image magnification m 0 by equation disable interrupts, flags F_ISZFOM, clearing F_ISZXOM (S477~S489). If none of the above, communication regarding the ISZ calculation with the camera body 11 is not performed, so nothing is performed.

【0077】次に、カメラボディ11からすでに送られ
てきたデフォーカス量Δxが有効かどうかをフラグF_FP
REOKの状態によりチェックし、有効であればフラグF_FP
REをセットするが、有効でなければフラグF_FPREをセッ
トしない(S491、S493)。
Next, a flag F_FP indicates whether the defocus amount Δx already sent from the camera body 11 is valid.
Check according to REOK status, and if valid, flag F_FP
The RE is set, but if not valid, the flag F_FPRE is not set (S491, S493).

【0078】そして、ISZズームモードであるかどう
かをチェックし、ISZズームモードであれば現在のフ
ォーカシングレンズ53Fの位置(被写体距離)が分か
っている(F_AFPOS=1)かどうかをチェックし、分か
っていれば(F_AFPOS=1)、プレディクタ演算結果を
使用して制御するFPRE‐OP処理に進み、分かって
いなければ(F_AFPOS=0)ISZ処理を抜ける(S4
95、S497)。
Then, it is checked whether or not the current mode is the ISZ zoom mode. If the current mode is the ISZ zoom mode, it is checked whether or not the current position (subject distance) of the focusing lens 53F is known (F_AFPOS = 1). If (F_AFPOS = 1), the process proceeds to the FPRE-OP process in which control is performed using the predictor operation result, and if unknown (F_AFPOS = 0), the process exits the ISZ process (S4).
95, S497).

【0079】制御ズーム(ISZ)モードでなければ、
フラグF_FPREOK、F_FPRE、F_ISOKをそれぞれクリアし、
さらに、所定アドレス(LNS_INF1)の各ビットデータと
ビット「00000111B」の各ビットの論理和をとったデー
タを、所定アドレス(LNS_INF1)にメモリしてISZ処
理を抜ける(S495、S498、S499)。
If it is not the control zoom (ISZ) mode,
Clear the flags F_FPREOK, F_FPRE, F_ISOK respectively,
Further, data obtained by calculating the logical sum of each bit data of the predetermined address (LNS_INF1) and each bit of the bit “00000111B” is stored in the predetermined address (LNS_INF1), and the process exits the ISZ process (S495, S498, S499).

【0080】『FPRE‐OP処理』S501〜S51
3に示した、プレディクタ演算結果(デフォーカス量)
に基づいて目標焦点距離fを求める(FPRE‐OP)
処理について、図17のフローチャートを参照して説明
する。これはレンズCPU61により実行される処理で
あって、カメラボディ11との通信によりデフォーカス
量がカメラボディ11より送られてきたとき(この通信
中にフラグF_FPREがRAM61bにセット(メモリ)さ
れる)、及びカメラボディ11とのISZに関する通信
により、S453〜S463、S465〜S475、あ
るいはS477〜S489が実行されてxの値が
変更され、かつS491〜S493によりフラグF_FPRE
がセットされた場合に実行される。このフラグF_FPRE
は、デフォーカス量による目標焦点距離fを求める演
算、f=x・f/(x+Δx)を実行するかしない
かを決めるフラグである。
"FPRE-OP processing" S501 to S51
Predictor calculation result (defocus amount) shown in 3
Of target focal length f based on FPRE (FPRE-OP)
The processing will be described with reference to the flowchart in FIG. This is a process executed by the lens CPU 61. When the defocus amount is transmitted from the camera body 11 by communication with the camera body 11, the flag F_FPRE is set (memory) in the RAM 61b during this communication. , and the communication related to ISZ of the camera body 11, S453~S463, S465~S475, or S477~S489 is changed value of being executed x 0 f 0 is, and the flag by S491~S493 F_FPRE
Is executed when is set. This flag F_FPRE
Is a flag that determines whether or not to perform calculation for obtaining the target focal length f by the defocus amount, f = x 0 · f 0 / a (x + Δx).

【0081】この処理に入ると、フラグF_FPREがセット
されているかどうかをチェックしてプレディクタ量によ
る演算処理を行なうかどうかを判断する(S501)。
フラグF_FPREがセットされていなければS515に飛
び、セットされていれば以下の処理を行なう。
In this process, it is checked whether or not the flag F_FPRE is set, and it is determined whether or not to perform an arithmetic process based on the predictor amount (S501).
If the flag F_FPRE has not been set, the process jumps to S515, and if it has been set, the following processing is performed.

【0082】先ず、フラグF_FPREをクリアし、通信割込
みを禁止し、プレディクタ量を利用した式(12)により目
標焦点距離fを求めて通信割込みを禁止する(S503
〜S509)。次に、目標焦点距離fを、WIDE端か
らの目標PZパルス数に変換してRAM61bの所定の
アドレス(PZPFPRE)にメモリし、プレディクタ量によ
る演算が有効であることを示すフラグF_FPREOKをセット
してS515に進む(S511、S513)。
First, the flag F_FPRE is cleared to prohibit the communication interruption, and the communication interruption is prohibited by obtaining the target focal length f by the equation (12) using the predictor amount (S503).
To S509). Next, the target focal length f is converted into a target PZ pulse number from the WIDE end, stored in a predetermined address (PZPFPRE) of the RAM 61b, and a flag F_FPREOK indicating that the calculation based on the predictor amount is valid is set. The process proceeds to S515 (S511, S513).

【0083】S515〜S521は、現在のAFパルス
(繰出しパルス数)による目標焦点距離fを求める処理
である。S515では、割り込み許可(CLI)処理を
行ない、(11)式により目標焦点距離fを演算してRAM
61bの所定のアドレス(ISZ_FL、H)にメモリし、割込
み禁止(SEI)処理を行なう(S515、S51
7)。さらに演算した目標焦点距離fをWIDE端から
の目標PZパルスに変換してそのパルス変換値をRAM
61bの所定のアドレス(PZPF)にメモリする(S51
9、S521)。
Steps S515 to S521 are processes for obtaining a target focal length f based on the current AF pulse (number of pulses to be sent out). In step S515, an interrupt permission (CLI) process is performed, and a target focal length f is calculated by the equation (11), and RAM
The memory is stored in a predetermined address (ISZ_FL, H) of the memory 61b, and an interrupt disable (SEI) process is performed (S515, S51).
7). Further, the calculated target focal length f is converted into a target PZ pulse from the WIDE end, and the converted pulse value is stored in the RAM.
61b at a predetermined address (PZPF) (S51)
9, S521).

【0084】ここで、S529で演算されるLNS_I
NF1のbit3〜7の内容について説明する。LNS
_INF1の情報(表4参照)は、カメラボディとの通
信により、定期的にレンズからボディへ送られる情報で
ある。そのうち、bit3〜7がISZモ‐ドに関する
情報である。
Here, LNS_I calculated in S529
The contents of bits 3 to 7 of NF1 will be described. LNS
The information of _INF1 (see Table 4) is information that is periodically transmitted from the lens to the body through communication with the camera body. Bits 3 to 7 are information on the ISZ mode.

【0085】bit6、7は、ISZ演算によって求め
られた目標のPZパルス(PZPFPREあるいはPZ
PF)が、現在位置のPZパルスと比べ、WIDE側に
あるか、TELE側にあるかを示すフラグである。WI
DE側にあればbit7がセットされ、TELE側にあ
ればbit6がセットされ、また一致していれば、bi
t6、7はともにセットされない。
Bits 6 and 7 are the target PZ pulses (PZPFPRE or PZPFPRE) determined by the ISZ calculation.
PF) is a flag indicating whether the pulse is on the WIDE side or on the TELE side compared to the PZ pulse at the current position. WI
If it is on the DE side, bit7 is set; if it is on the TELE side, bit6 is set.
Both t6 and 7 are not set.

【0086】bit3〜5は、目標PZパルス数と現在
位置のPZパルス数の差、すなわち、現在位置から目標
位置まで移動するのに要するPZパルス数を、PZの総
パルス数(WIDE端からTELE端まで移動させるの
に要するPZパルス数)で割ったおよその値を0〜7/
8の範囲で1/8単位で表す。重みづけはbit3が1
/8、bit4が1/4、bit5が1/2である。現
在位置と目標位置とが一致した場合は上記値は0なの
で、bit3〜5はすべて“0”にクリアされ、現在位
置がWIDE端で目標位置がTELE端またはその逆の
場合は7/8になるので、bit3〜5はすべて“1”
にセットされる。
Bits 3 to 5 represent the difference between the target number of PZ pulses and the number of PZ pulses at the current position, that is, the number of PZ pulses required to move from the current position to the target position, based on the total number of PZ pulses (from the WIDE end to TELE). Approximate value divided by the number of PZ pulses required to move to the end) is 0 to 7 /
It is expressed in 1/8 units in the range of 8. Weight is 1 for bit3
/ 8, bit4 is 1/4, and bit5 is 1/2. When the current position coincides with the target position, the above value is 0, so that bits 3 to 5 are all cleared to "0", and when the current position is the WIDE end and the target position is the TELE end or vice versa, it becomes 7/8. Therefore, bits 3 to 5 are all “1”
Is set to

【0087】このように、ISZモ‐ドにおいてカメラ
ボディ11は、パワーズームレンズ51からLNS_I
NF1情報を定期的あるいは必要時に受信することによ
り、パワーズームレンズ51に対して適切なISZ制御
情報を送信することができる。
As described above, in the ISZ mode, the camera body 11 moves from the power zoom lens 51 to the LNS_I
By receiving the NF1 information regularly or when necessary, it is possible to transmit appropriate ISZ control information to the power zoom lens 51.

【0088】次に、プレディクタ演算結果が有効(F_FP
REOK=1)かどうかをチェックし、有効であればプレディ
クタ演算を使用して求めた目標PZパルス数(PZPFPR
E)をアキュムレータ(ACC)にメモリし、有効でなけれ
ば現在のAFパルス数に基づいて求めた目標PZパルス
数(PZPF)をアキュムレータにメモリする(S523、
S525、S527)。次に、アキュムレータに入れた
目標PZパルス数に基づいてLNS_INF1のbit3〜7の値
を演算し、RAM61bの所定のアドレス(LNS_INF1の
bit3〜7)にメモリして割込み禁止(SEI)処理を
行なう(S529、S531)。
Next, the predictor operation result is valid (F_FP
REOK = 1), and if valid, the target PZ pulse number (PZPFPR
E) is stored in the accumulator (ACC), and if not valid, the target PZ pulse number (PZPF) obtained based on the current AF pulse number is stored in the accumulator (S523,
S525, S527). Next, the values of bits 3 to 7 of LNS_INF1 are calculated based on the target number of PZ pulses input to the accumulator, and a predetermined address (RAM of LNS_INF1) of RAM 61b is calculated.
The memory is stored in bits 3 to 7 and interrupt prohibition (SEI) processing is performed (S529, S531).

【0089】そして、像倍率一定ズームモードが選択さ
れていること、現在のズーミングレンズ群53Zの位置
(焦点距離)が得られていること(フラグF_PZPOS=
1)、および像倍率一定ズーム中であること(フラグF_
ISOK=1)を条件に以下の処理を行なうが、上記条件が
一つでも欠けていればS551に飛ぶ(S533〜S5
37)。
Then, the constant image magnification zoom mode is selected, and the current position (focal length) of the zooming lens group 53Z is obtained (flag F_PZPOS =
1) and that the image magnification constant zoom is being performed (flag F_
The following processing is performed under the condition that ISOK = 1). If at least one of the above conditions is missing, the process jumps to S551 (S533 to S5).
37).

【0090】プレディクタ演算結果による目標焦点距離
(PZパルス数)の演算が有効であり(フラグF_FPREOK
=1)、かつISZの制御フラグがセットされていれば
(フラグF_ISZD=1)、プレディクタ演算結果を利用し
て求めたPZパルス数((11)式による)を目標パルス数
としてRAM61bの所定のアドレス(PZPTRGT)にメ
モリする(S539、S541、S543)。しかし、
プレディクタ演算結果による目標焦点距離の演算が無効
(F_FPREOK=0)か、ISZ制御フラグがクリアされて
いれば、現在位置のAFパルス(繰出しパルス数)に基
づいて(12)式により求めたPZパルス数を上記所定のア
ドレス(PZPTRGT)にメモリする(S539、S54
1、S545)。なお、フラグF_ISZDは、ボディ11か
ら通信によって送られ、RAM61bにメモリされたデ
ータであり、F_ISZD=1でプレディクタ演算結果による
演算値でISZ制御を実行し、F_ISZD=0でAFパルス
の現在位置による演算値でISZ制御を実行する。
The calculation of the target focal length (PZ pulse number) based on the predictor calculation result is effective (flag F_FPREOK).
= 1) and if the control flag of ISZ is set (flag F_ISZD = 1), the number of PZ pulses (according to equation (11)) obtained by using the predictor calculation result is set as a predetermined number of pulses in the RAM 61b. The data is stored in the address (PZPTRGT) (S539, S541, S543). But,
If the calculation of the target focal length based on the result of the predictor calculation is invalid (F_FPREOK = 0) or the ISZ control flag is cleared, the PZ pulse obtained by the equation (12) based on the AF pulse (number of feeding pulses) at the current position. The number is stored in the predetermined address (PZPTRGT) (S539, S54
1, S545). The flag F_ISZD is data transmitted from the body 11 by communication and stored in the RAM 61b. The flag F_ISZD = 1 executes ISZ control with a calculated value based on the predictor calculation result, and F_ISZD = 0 sets the data based on the current position of the AF pulse. The ISZ control is executed using the calculated value.

【0091】そして、カメラボディ11から通信により
送られてきてRAM61bにメモリされているISZの
ズームスピードデータ(BD_ST1のbit6、7)をRAM61
bの所定のアドレス(SPDDRC2のbit2、3)にメモリし、
像倍率一定ズームフラグF_ISZをセットし、割り込みを
許可してリターンする(S547、S549、S55
1)。この像倍率一定ズームフラグF_ISZは、レンズC
PU61が目標焦点距離の算出およびズームモータ69
の駆動設定が完了し、ズームレンズ群53Zを駆動する
準備が完了したことを示すものである。このF_ISZがセ
ットされると、2msタイマ割込みルーチンにおいて像倍
率一定ズーム処理がなされる。また、PZPTRGT、SPDDRC
の値も2msタイマ割込みルーチンで利用される。
Then, the ISZ zoom speed data (bits 6 and 7 of BD_ST1) sent from the camera body 11 by communication and stored in the RAM 61b are stored in the RAM 61.
b at a predetermined address (bits 2 and 3 of SPDDRC2)
The image magnification constant zoom flag F_ISZ is set, the interruption is permitted, and the process returns (S547, S549, S55).
1). This constant image magnification zoom flag F_ISZ is
PU 61 calculates target focal length and zoom motor 69
Indicate that the preparation for driving the zoom lens group 53Z is completed. When this F_ISZ is set, a constant image magnification zoom process is performed in a 2 ms timer interrupt routine. Also, PZPTRGT, SPDDRC
Is also used in the 2 ms timer interrupt routine.

【0092】『インストラクション処理』次に、カメラ
ボディ11からインストラクションコード(コマンド)
を受信したときにパワーズームレンズ51において実行
されるインストラクション処理について、図19ないし
図26に示したフローチャートおよびインストラクショ
ンコードの内容を示した表1および表2を参照して説明
する。なお、これらのインストラクションコードは、図
8の通信割込みルーチンのS217の詳細である。コマ
ンドの下位の内容によって各インストラクション処理が
実行される。STANDBYコマンドは、レンズCPU
61をスリープ状態にさせるコマンドである。STAN
DBYコマンドを入力したときの処理に関するフローチ
ャートを図19に示してある。
[Instruction Processing] Next, an instruction code (command) is transmitted from the camera body 11.
Will be described with reference to the flowcharts shown in FIGS. 19 to 26 and Tables 1 and 2 showing the contents of the instruction code. Note that these instruction codes are the details of S217 of the communication interrupt routine of FIG. Each instruction process is executed according to the lower content of the command. The STANDBY command is the lens CPU
This is a command to make 61 a sleep state. STAN
FIG. 19 shows a flowchart relating to the processing when the DBY command is input.

【0093】レンズCPU61は、STANDBYコマ
ンドを受信すると、フラグF_STNDBYをセットし、コマン
ド受信完了信号をボディ11に送信し、通信割込みを許
可してリターンする(S601、S602、S60
3)。レンズCPU61は、フラグF_STNDBYをメインル
ーチンのS143においてチェックし、このフラグF_ST
NDBYが立っているときには、クロック91を停止させて
低消費電力状態(スタンバイモード)に移行する(図7
参照)。
When the lens CPU 61 receives the STANDBY command, it sets the flag F_STNDBY, transmits a command reception completion signal to the body 11, permits communication interruption, and returns (S601, S602, S60).
3). The lens CPU 61 checks the flag F_STNDBY in S143 of the main routine, and checks the flag F_STNDBY.
When the NDBY is standing, the clock 91 is stopped to shift to the low power consumption state (standby mode) (FIG. 7).
reference).

【0094】AF‐INTPOSコマンドは、カメラボ
ディ11がAFモータ39によりフォーカシングレンズ
53Fを∞端に移動させた後に送られるコマンドで、パ
ワーズームレンズ51のAFパルスカウンタをクリアさ
せるAFの初期化処理コマンドである。このAF‐IN
TPOSコマンドを入力したときのレンズCPU61の
処理に関するフローチャートを図20に示してある。
The AF-INTPOS command is a command sent after the camera body 11 has moved the focusing lens 53F to the ∞ end by the AF motor 39, and is an AF initialization processing command for clearing the AF pulse counter of the power zoom lens 51. It is. This AF-IN
FIG. 20 shows a flowchart regarding the processing of the lens CPU 61 when the TPOS command is input.

【0095】レンズCPU61は、AF‐INITPO
Sコマンドを入力すると、まず距離コード板81から距
離コードデータを入力する(S611)。距離コードデ
ータが∞端(ファー端)であれば、RAM61b内に設
けられているAFパルス現在位置データ(AFPXL,H)およ
びAFパルススタート位置データ(AFPSTRTL,H)をクリア
し、フォーカシングレンズ53Fの現在位置が判明して
いることを識別するフラグF_AFPOSをセットしてS61
5に進み、∞端でなければ、上記ステップをスキップし
てS615に進む(S612〜S614)。そして、コ
マンド受信完了信号をボディ11に出力し、通信割込み
を許可してリターンする(S615、S616)。
The lens CPU 61 has an AF-INITPO
When the S command is input, first, distance code data is input from the distance code plate 81 (S611). If the distance code data is the ∞ end (far end), the AF pulse current position data (AFPXL, H) and the AF pulse start position data (AFPSTRTL, H) provided in the RAM 61b are cleared, and the focusing lens 53F A flag F_AFPOS for identifying that the current position is known is set and S61
The process proceeds to S615, and if it is not the 上 記 end, the above steps are skipped and the process proceeds to S615 (S612 to S614). Then, a command reception completion signal is output to the body 11, the communication interrupt is permitted, and the process returns (S615, S616).

【0096】PZ‐INITPOSコマンドは、レンズ
CPU61がズーミングレンズの位置を知るために初期
化動作を行なわせるコマンドである。本実施例では、ズ
ームモータ65を起動してズームコード板71のコード
の境目72を検出したときに、そのコードに対応するP
Zパルス数をPZパルスカウンタにセットする。PZ‐
INITPOSコマンドを入力したときの処理に関する
フローチャートを図21に示してある。なお、PZパル
スのカウント等の処理は、後述の「POS‐NG処理」
(図87)において説明する。
The PZ-INITPOS command is a command for causing the lens CPU 61 to perform an initialization operation in order to know the position of the zooming lens. In the present embodiment, when the zoom motor 65 is activated and the boundary 72 of the code on the zoom code plate 71 is detected, the P corresponding to the code is detected.
The number of Z pulses is set in a PZ pulse counter. PZ-
FIG. 21 is a flowchart illustrating a process when the INITPOS command is input. Processing such as counting of PZ pulses is described in “POS-NG processing” described later.
(FIG. 87).

【0097】レンズCPU61は、PZINTPOSコ
ードを入力すると、フラグF_PZPOSをクリアし、各フラ
グF_BATREQ、F_IPZB、F_MOVをセットし、レンズRAM
61bのSPDDRC1に所定のデータ(スピード最低
速、方向TELE)をメモリし、現在位置からコードの境界
部までのPZパルスをカウントするPZパルスカウンタ
のPZPA2Bを0にする(S621〜S624)。そ
して、コマンド受信完了信号を出力し、通信割込みを許
可してリターンする(S625〜S626)。なお、こ
れらのセットされた値に基づいて、2msタイマ割込み処
理中にパワーズーム関係(PZ)の初期化動作が行なわ
れる。
Upon inputting the PZINTPOS code, the lens CPU 61 clears the flag F_PZPOS, sets the flags F_BATREQ, F_IPZB, F_MOV, and sets the lens RAM.
Predetermined data (minimum speed, direction TELE) is stored in SPDDRC1 of 61b, and PZPA2B of a PZ pulse counter for counting PZ pulses from the current position to a code boundary is set to 0 (S621 to S624). Then, a command reception completion signal is output, communication interruption is permitted, and the process returns (S625 to S626). In addition, based on these set values, the initialization operation of the power zoom relation (PZ) is performed during the 2 ms timer interrupt processing.

【0098】RETRACT‐PZコマンドは、カメラ
ボディのメインスイッチがオフされた場合などに、パワ
ーズームレンズ51の鏡筒長が最短状態になるようにパ
ワーズームさせるコマンドである。RETRACT‐P
Zコマンドを入力したときの処理に関するフローチャー
トが図22に示されている。
The RETRACT-PZ command is a command for power zooming such that the lens barrel of the power zoom lens 51 is in the shortest state when the main switch of the camera body is turned off. RETRACT-P
FIG. 22 is a flowchart showing a process when a Z command is input.

【0099】レンズCPU61は、このRETRACT
‐PZコマンドを受信すると、現在の焦点距離データを
レンズRAM61bの所定アドレス(RETPOSL,H)にメモ
リし、レンズ鏡筒長が最短となるPZパルスデータ(レ
ンズ固有のデータ)をレンズRAM61bの所定アドレ
ス(PZPTRGT)にセットし、SPDDRC2に所定のデータ(最高
速)をセットする(S631、S632、S632‐
2)。そして、各フラグF_BATREQ、F_IPZB及びフラグF_
MOVTRGをセットし、コマンド受信完了信号を送信し、通
信割込みを許可してリターンする(S634〜S63
6)。
The lens CPU 61 uses this RETRACT
When the PZ command is received, the current focal length data is stored in a predetermined address (RETPOSL, H) in the lens RAM 61b, and the PZ pulse data (lens-specific data) that minimizes the lens barrel length is stored in the predetermined address in the lens RAM 61b. (PZPTRGT) and predetermined data (highest speed) in SPDDRC2 (S631, S632, S632-
2). Then, each flag F_BATREQ, F_IPZB and flag F_
MOVTRG is set, a command reception completion signal is transmitted, communication interruption is permitted, and the process returns (S634 to S63).
6).

【0100】リトラクト(収納)前の焦点距離データ
は、別の通信コマンド(FOCALLEN‐Xコマン
ド)にてカメラボディ11に送信される。なお、フラグ
F_BATREQはパワーズームレンズ51にパワーズーミング
用の電力供給を要求するフラグであり、フラグF_IPZBは
レンズ内でズーミングの制御(ISZ、PZ‐INIT
POS等)を行なっていることを示すフラグであり、フ
ラグF_MOVTRGは、アドレスPZPTRGに設定された目標パル
ス位置までズーミングレンズ53Zを動かすように、2
msタイマ割込み処理において実行させるフラグである。
なお、これらの設定された値に基づいて2msタイマ割込
みルーチンにおいて、ズーミングレンズ53Zに関する
収納動作が行なわれる。
The focal length data before the retracting (housing) is transmitted to the camera body 11 by another communication command (FOCALLEN-X command). Note that the flag
F_BATREQ is a flag requesting the power zoom lens 51 to supply power for power zooming, and a flag F_IPZB is a zooming control (ISZ, PZ-INIT) in the lens.
The flag F_MOVTRG is a flag indicating that the zooming lens 53Z is moved to the target pulse position set in the address PZPTRG.
This flag is executed in the ms timer interrupt processing.
In addition, in the 2 ms timer interruption routine, the storing operation relating to the zooming lens 53Z is performed based on these set values.

【0101】RET‐PZPOSコマンドは、RETR
ACT‐PZコマンドによるズーミングレンズ群53Z
の収納状態から収納前の状態に復帰させるコマンドであ
る。つまり、カメラボディのメインスイッチSWMAINが
オンされた場合等に、ズーミングレンズ53Zを収納前
の状態に復帰(リトラクトパワーズーミングする前の焦
点距離位置まで復帰)させるコマンドである。このRE
T‐PZPOSコマンドを入力したときの処理に関する
フローチャートを図23に示してある。
[0101] The RET-PZPOS command is
Zooming lens group 53Z by ACT-PZ command
Is a command to return from the stored state to the state before storage. That is, when the main switch SWMAIN of the camera body is turned on, the command returns the zooming lens 53Z to the state before storage (returns to the focal length position before the retract power zooming). This RE
FIG. 23 is a flowchart showing a process when a T-PZPOS command is input.

【0102】レンズCPU61は、PET‐PZPOS
コマンドを受信すると、このコードに含まれる、リトラ
クトパワーズーム直前に送信したリトラクト前の焦点距
離データ(RETPOSL,H)をレンズRAM61bの所定ア
ドレス(FCLL、H)にセットする(S641)。なお、この
アドレスRETPOSL,Hには、別の通信コマンドにてカメラ
ボディ51より送られてきた収納前の焦点距離データが
メモリされている。そして、上記焦点距離データを目標
パルス数に変換し、目標パルス数PZPTRGとしてレ
ンズRAM61bの所定のアドレスにメモリし、SPDDRC
2に所定のPZスピードデータ(高速)をメモリし、フ
ラグF_BATREQ、F_IPZB、F_MOVTRGをセットし、コマンド
受信完了信号を送信し、通信割込みを許可してリターン
する(S642〜S646)。なお、この復帰処理も、
2msタイマ割込み処理において実行される。
The lens CPU 61 is a PET-PZPOS
When the command is received, the pre-retract focal length data (RETPOSL, H) transmitted immediately before the retract power zoom included in this code is set to a predetermined address (FCLL, H) of the lens RAM 61b (S641). The address RETPOSL, H stores the focal length data before storage sent from the camera body 51 by another communication command. Then, the focal length data is converted into a target pulse number, and stored as a target pulse number PZPTRG at a predetermined address of the lens RAM 61b.
2 is stored with predetermined PZ speed data (high speed), flags F_BATREQ, F_IPZB, and F_MOVTRG are set, a command reception completion signal is transmitted, communication interruption is permitted, and the process returns (S642 to S646). Note that this return processing also
This is executed in the 2 ms timer interrupt processing.

【0103】IPZ‐STOPコマンドは、パワーズー
ミング動作をストップさせるためのコマンドである。こ
のコマンドは、ISZ(像倍率一定)、PZ‐INIT
POS(復帰)、RETRACT‐PZ(収納)等の制
御パワーズーミングをストップさせるコマンドであり、
マニュアルパワーズームをストップさせるものではな
い。IPZ‐STOPコマンドを入力したときの処理に
関するフローチャートを図24に示してある。
[0103] The IPZ-STOP command is a command for stopping the power zooming operation. This command is used for ISZ (constant image magnification), PZ-INIT
This is a command to stop control power zooming such as POS (return) and RETRACT-PZ (storage).
It does not stop the manual power zoom. FIG. 24 is a flowchart showing a process when an IPZ-STOP command is input.

【0104】レンズCPU61は、IPZ‐STOPコ
マンドを入力すると、フラグF_ISOKをクリアし、さらに
パワーズーム動作の実行に関する所定のフラグ(F_MOVT
ARG、F_MOV、F_ISZ)をクリアする(S651、S65
2)。そして、コマンド受信完了信号を出力し、通信割
込みを許可してリターンする(S653、S654)。
これらのフラグがクリアされるため、2msタイマ割込み
処理内では、マニュアルパワーズーム以外の、例えばI
SZ等の制御パワーズーミングは行なわれなくなる。
Upon input of the IPZ-STOP command, the lens CPU 61 clears the flag F_ISOK, and furthermore, a predetermined flag (F_MOVT) related to execution of the power zoom operation.
Clear ARG, F_MOV, F_ISZ) (S651, S65)
2). Then, a command reception completion signal is output, communication interruption is permitted, and the process returns (S653, S654).
Since these flags are cleared, other than the manual power zoom, for example, I
Control power zooming such as SZ is not performed.

【0105】ISZ‐MEMORYコマンドは、像倍率
一定ズームを行なうために、AFパルスおよび焦点距離
の現在値を入力してメモリするためのコマンドである。
ISZ‐MEMORYコマンドを入力したときの処理に
関するフローチャートを図25に示してある。
The ISZ-MEMORY command is a command for inputting and storing the current values of the AF pulse and the focal length in order to perform a constant image magnification zoom.
FIG. 25 is a flowchart showing a process when an ISZ-MEMORY command is input.

【0106】レンズCPU61は、ISZ‐MEMOR
Yコマンドを入力すると、AFパルスカウンタの現在値
(AFPXL,H)をISZAFパルスメモリ(ISZ_AFPL,H)(レ
ンズRAM61bの所定アドレス)にメモリし、焦点距
離の現在値(FCLXL,H)をISZ焦点距離メモリ(ISZ_FCL
L,H)(レンズRAM61bの所定アドレス)にメモリす
る(S661、S662)。そして、フラグF_ISZMをセ
ットし、コマンド受信完了信号を出力し、通信割込みを
許可してからリターンする(S663〜S665)。こ
れらの値をもとに、図15のS465〜S475に示さ
れるISZの演算が行なわれる。
The lens CPU 61 is an ISZ-MEMOR
When the Y command is input, the current value of the AF pulse counter
(AFPXL, H) is stored in the ISZAF pulse memory (ISZ_AFPL, H) (a predetermined address of the lens RAM 61b), and the current focal length value (FCLXL, H) is stored in the ISZ focal length memory (ISZ_FCL).
(L, H) (predetermined address of the lens RAM 61b) (S661, S662). Then, the flag F_ISZM is set, a command reception completion signal is output, the communication interrupt is permitted, and the process returns (S663 to S665). Based on these values, the calculation of ISZ shown in S465 to S475 of FIG. 15 is performed.

【0107】ISZ‐STARTコマンドは、像倍率一
定ズームをスタートさせるコマンドである。ISZ‐S
TARTコマンドを入力したときの処理に関するフロー
チャートを図26に示してある。
The ISZ-START command is a command for starting a constant image magnification zoom. ISZ-S
FIG. 26 shows a flowchart relating to processing when a TART command is input.

【0108】レンズCPU61は、このISZ‐STA
RTコマンドを入力すると、各フラグF_BATREQ、F_IPZ
B、F_ISOKをセットし、データ送信完了信号を出力し、
通信割込みを許可してリターンする(S671〜S67
3)。これらのフラグに基づいて2msタイマ割込み処理
や、図18のS537以降の処理が行なわれる。
The lens CPU 61 uses the ISZ-STA
When the RT command is input, each flag F_BATREQ, F_IPZ
Set B, F_ISOK, output data transmission completion signal,
Allow communication interruption and return (S671-S67)
3). Based on these flags, the 2 ms timer interrupt processing and the processing after S537 in FIG. 18 are performed.

【0109】『BLコマンドサブルーチン』次に、カメ
ラボディ11からBLコマンドを受信したときのパワー
ズームレンズ51における動作について、図27〜図3
7および表3を参照して説明する。このBLコマンド通
信処理では、先ずコマンド受信完了信号を出力し、その
後にデータを入力し、入力完了信号を出力する点が、イ
ンストラクションコマンドサブルーチンのときと相違す
る。なお、これらBLコマンドは、図8の通信割込みル
ーチンにおけるS213処理の詳細である。コマンドの
下位の内容によって各コマンド処理が実行される。
[BL Command Subroutine] Next, the operation of the power zoom lens 51 when a BL command is received from the camera body 11 will be described with reference to FIGS.
7 and Table 3. This BL command communication process differs from the instruction command subroutine in that a command reception completion signal is output first, then data is input, and an input completion signal is output. Note that these BL commands are details of the S213 processing in the communication interrupt routine of FIG. Each command process is executed according to the lower contents of the command.

【0110】PZ‐BSTATEコマンド(20)は、
ISZ(像倍率一定ズーム制御)に必要なデータを送る
コマンドである。このコマンドにより送られるデータに
は、フォーカシングレンズ53Fがファー端(無限遠
端)(F_ENDF=1)にあるかニア端(最近距離端)(F_
ENDN=1)にあるか、ファームーブ(F_FARM=1)かニ
アムーブ(F_NEARM=1)か、オーバーラップ積分中(F
_OVAF=1)かどうか、動体予測モード(F_MOBJ=1)
かどうか、合焦状態(F_AFIF=1)かどうか、像倍率を
メモリするときにボディの命令(通信)によりメモリす
るか、レンズ自身(レンズCPU61)の判断でメモリ
するか(F_ISM=1)等に関するデータが含まれる。図2
7には、PZ‐BSTATEコマンドを受信したときの
処理に関するフローチャートを示してある。
The PZ-BSTATE command (20) is
This command sends data necessary for ISZ (constant image magnification zoom control). The data sent by this command includes whether the focusing lens 53F is at the far end (infinity end) (F_ENDF = 1) or the near end (closest end) (F_ENDF).
ENDN = 1), firm move (F_FARM = 1) or near move (F_NEARM = 1), or overlap integration (F
_OVAF = 1), moving object prediction mode (F_MOBJ = 1)
Whether or not the focus state (F_AFIF = 1), whether to store the image magnification by a command of the body (communication), or to store the memory according to the judgment of the lens itself (lens CPU 61) (F_ISM = 1), etc. Data about FIG.
FIG. 7 shows a flowchart relating to processing when a PZ-BSTATE command is received.

【0111】レンズCPU61は、PZ‐BSTATE
コマンドを入力すると、コマンド受信完了信号を送信
し、カメラボディ11から1バイトのPZ‐BSTAT
Eデータを入力し、AFパルスカウント処理に関するC
NTAFPサブルーチンを実行する(S701〜S70
3)。なお、CNTAFPサブルーチンの詳細は、図3
9〜図43に示してあり、後でこれらの図に基づいて説
明する。
The lens CPU 61 uses PZ-BSTATE
When a command is input, a command reception completion signal is transmitted, and a one-byte PZ-BSTAT is transmitted from the camera body 11.
E data is input, and C relating to AF pulse count processing is input.
Executing the NTAFP subroutine (S701 to S70)
3). The details of the CNTAFP subroutine are shown in FIG.
9 to 43, and will be described later with reference to these drawings.

【0112】そして、データ入力完了信号を出力し、通
信割込みを許可してからリターンする(S704、S7
05)。なお、本実施例のカメラはAF駆動源をボディ
11に搭載してあるので、パワーズームレンズ51内で
AFパルスをカウントするときには、AF駆動前及び駆
動方向変更時等に、必ずこのコマンドでAFの駆動方向
情報等をボディ11からパワーズームレンズ51に送
る。
Then, a data input completion signal is output, a communication interrupt is permitted, and the process returns (S704, S7).
05). Since the camera of this embodiment has an AF drive source mounted on the body 11, when counting the AF pulses in the power zoom lens 51, the AF command must be issued by this command before the AF drive and when the drive direction is changed. Is transmitted from the body 11 to the power zoom lens 51.

【0113】BODY‐STATE0コマンドは、ボデ
ィ状態に関するデータを撮影レンズに知らせるコマンド
で、撮影レンズとカメラボディ間の定期通信の際に送信
される。図28には、BODY‐STATE0コマンド
を受信したときの処理に関するフローチャートを示して
ある。
The BODY-STATE0 command is a command for informing the photographing lens of data relating to the body state, and is transmitted at the time of regular communication between the photographing lens and the camera body. FIG. 28 is a flowchart illustrating a process when a BODY-STATE0 command is received.

【0114】レンズCPU61は、このBODY‐ST
ATE0コマンドを入力すると、コマンド受信完了信号
を送信し、カメラボディ11から1バイトのボディ状態
に関するデータ(BODY‐STATE0)を入力し、
そのデータをレンズRAM61bのBD_ST0にスト
アする(S711〜S713)。そして、上記1バイト
データの上位5ビットをマスクしてレンズRAM61b
のZM_MODEにストアしたら、データ入力完了信号
を出力し、通信割込みを許可してリターンする(S71
4〜S716)。
The lens CPU 61 uses the BODY-ST
When the ATE0 command is input, a command reception completion signal is transmitted, and 1-byte data (BODY-STATE0) regarding the body state is input from the camera body 11;
The data is stored in BD_ST0 of the lens RAM 61b (S711 to S713). Then, the upper 5 bits of the 1-byte data are masked to form a lens RAM 61b.
Is stored in ZM_MODE, a data input completion signal is output, communication interruption is permitted, and the process returns (S71).
4-S716).

【0115】BODY‐STATE0データには、カメ
ラボディ11のパワーズームモードに関する情報とし
て、例えば、像倍率一定ズーム(ISZ)、露光間ズー
ム(EXZ)、マニュアルパワーズーム(MPZ)等の
情報が下位3ビットに含まれ、上位5ビットには、ボデ
ィ回路系の電源がオン(F_VDD=1)しているか、測光
スイッチがオン(F_SWS=0)しているか、ボディ11
からズームモータに電力が供給されているか(F_BATT=
1)、ボディ11のAF/MF切替えスイッチ(図示せ
ず)がAFかMFか(F_SWAF=1かどうか)、AFのモー
ドがシングルかコンティニュアスかの情報が入る。
In the BODY-STATE 0 data, information on the power zoom mode of the camera body 11, for example, information such as constant image magnification zoom (ISZ), zoom during exposure (EXZ), manual power zoom (MPZ), etc. The upper 5 bits include whether the power of the body circuit system is on (F_VDD = 1), whether the photometry switch is on (F_SWS = 0),
Power is supplied to the zoom motor from (F_BATT =
1) Information indicating whether the AF / MF switch (not shown) of the body 11 is AF or MF (whether F_SWAF = 1) and whether the AF mode is single or continuous.

【0116】フラグF_BATTは、カメラ側で(メインCP
U35)が、端子VBATTに電力を供給する際に立て
る。一方、レンズ側では、レンズCPU61は、ポート
P12を介して端子VBATTの電圧レベルをモニタし
ていて、電圧が供給されているときはフラグF_VDETを立
てる。そして、フラグF_BDETは、POFF‐STATE
通信によりカメラ側(メインCPU35)に取り込まれ
る。カメラ側は、フラグF_BDETがセットされていること
により、正常に電力供給が行なわれていることを把握す
る。フラグF_BATTをセットしているにもかかわらず、フ
ラグF_BDETがクリアされているときは何らかの異常が発
生したものと認識し、端子VBATTへの電力供給を中
止する。
The flag F_BATT is set on the camera side (main CP
U35) when power is supplied to the terminal VBATT. On the other hand, on the lens side, the lens CPU 61 monitors the voltage level of the terminal VBATT via the port P12, and sets a flag F_VDET when the voltage is supplied. Then, the flag F_BDET is set to POFF-STATE
The data is taken into the camera (main CPU 35) by communication. The camera recognizes that the power supply is normally performed by setting the flag F_BDET. If the flag F_BATT is cleared even though the flag F_BATT is set, it is recognized that some abnormality has occurred, and the power supply to the terminal VBATT is stopped.

【0117】BODY‐STATE1コマンドはBOD
Y‐STATE0コマンドと同様のカメラボディ11の
状態に関するデータ送信に関するコマンドであり、カメ
ラボディ11のシーケンス状態情報が含まれる。図29
には、BODY‐STATE1コマンドを受信したとき
の処理に関するフローチャートを示してある。
The BODY-STATE1 command is BOD
This is a command related to data transmission regarding the state of the camera body 11 similar to the Y-STATE0 command, and includes sequence state information of the camera body 11. FIG.
9 shows a flowchart regarding processing when a BODY-STATE1 command is received.

【0118】レンズCPU61は、BODY‐STAT
E1コマンドを受信すると、コマンド受信完了信号を送
信してカメラボディ11から1バイトのデータ(BOD
Y‐STATE1)を入力し、レンズRAM61bのB
D_ST1にストアする(S721〜S723)。そし
て、フラグF_IPZDがセットされていればフラグF_ISOKを
クリアしてさらにアドレスBD_ST1のフラグF_MOVT
RG、F_MOV、F_ISZをクリアするが、フラグF_IPZDがセッ
トされていなければ上記処理を行なわない(S724、
S725、S726)。そして、データ入力完了信号を
出力し、最後に通信割込みを許可してリターンする(S
724、S727、S728)。
The lens CPU 61 has a BODY-STAT
When the E1 command is received, a command reception completion signal is transmitted, and 1-byte data (BOD
Y-STATE1) is input, and B of the lens RAM 61b is input.
The data is stored in D_ST1 (S721 to S723). If the flag F_IPZD is set, the flag F_ISOK is cleared and the flag F_MOVT of the address BD_ST1 is further cleared.
RG, F_MOV, F_ISZ are cleared, but the above processing is not performed unless the flag F_IPZD is set (S724,
S725, S726). Then, a data input completion signal is output, and finally a communication interrupt is permitted and the process returns (S
724, S727, S728).

【0119】フラグF_IPZDがセットされている場合の動
作(S725〜S726)は、インストラクションコー
ド35のIPZ‐STOPコマンドと同様の処理であ
る。このコマンドはレンズCPU61に、ボディ側の情
報を受けさせると同時にIPZ‐STOPコマンドの実
行も兼ねさせる。本コマンドに関係するフラグについて
説明する。
The operation when the flag F_IPZD is set (S725 to S726) is the same processing as the IPZ-STOP command of the instruction code 35. This command causes the lens CPU 61 to receive information on the body side and at the same time to execute the IPZ-STOP command. The flags related to this command will be described.

【0120】F_IPZDは、上記のようにIPZ‐STOP
と同様の動作を行わせるかどうかを決めるフラグであ
る。F_MPZDは、マニュアルパワーズームを禁止するかど
うかを決めるフラグであり、F_MPZDがセットされている
ときにマニュアルパワーズームが禁止される。なお、こ
のフラグF_MPZDは2msタイマ割り込み処理において参照
される。F_ISZDは、ISZの制御を現在位置(合焦時)
のAFパルス数に基づいて求めた焦点距離で行うか、プ
レディクタ量により求めた焦点距離で行うかを決めるフ
ラグである。このフラグは、ISZの演算処理ル‐チン
(図18のS541)で参照される。F_ISSPAおよびF_I
SSPBは、ISZの制御スピードを決めるフラグであり、
図18のS547で参照される。
F_IPZD is the IPZ-STOP as described above.
Is a flag for determining whether or not to perform the same operation as. F_MPZD is a flag for determining whether or not to prohibit manual power zoom. When F_MPZD is set, manual power zoom is prohibited. This flag F_MPZD is referred to in the 2 ms timer interrupt processing. F_ISZD controls ISZ at the current position (when focused)
This flag is used to determine whether to perform with the focal length calculated based on the number of AF pulses or with the focal length calculated with the predictor amount. This flag is referred to in the ISZ arithmetic processing routine (S541 in FIG. 18). F_ISSPA and F_I
SSPB is a flag that determines the control speed of ISZ.
It is referred to in S547 of FIG.

【0121】図30には、SET‐AFPOINTコマ
ンドを受信したときの処理に関するフローチャートを示
してある。レンズCPU61は、SET‐AFPOIN
Tコマンド(23)を入力すると、コマンド受信完了信
号を出力し、ボディ側から1バイトのSET‐AFPO
INTデータを受信してレンズRAM61bの所定のア
ドレスにセットし、データ入力完了信号を出力し、通信
割込みを許可してリターンする(S731〜735)。
FIG. 30 is a flowchart showing a process when a SET-AFPOINT command is received. The lens CPU 61 is a SET-AFPOIN
When a T command (23) is input, a command reception completion signal is output, and a one-byte SET-AFPO
Upon receiving the INT data, the INT data is set at a predetermined address of the lens RAM 61b, a data input completion signal is output, a communication interrupt is permitted, and the process returns (S731 to 735).

【0122】SET‐AFPOINTコマンドは、LB
コマンド、LENS‐AFPULSE(15)の通信前
に、実行される。LENS‐AFPULSEコマンドで
は、SET‐AFPOINTコマンドで送られてきた情
報により、どのAFPULSEをパワーズームレンズ5
1からボディ11へ送るかを決める。
The SET-AFPOINT command is LB
Executed before communication of the command, LENS-AFPULSE (15). In the LENS-AFPULSE command, which AFPULSE is used for the power zoom lens 5 based on the information sent by the SET-AFPOUINT command.
Decide whether to send from 1 to body 11.

【0123】bit3(X)がセットされているとき
は、現在位置のAFパルス数(AFPULSE(AFP
XL,H))を送る。bit7(ISZM)がセットさ
れているときは、ISZモード時に像倍率をメモリした
ときのAFパルス数(AFPULSE(ISZ_AFP
L,H))を送る。なお、bit3とbit7とが同時
にセットされることはない。bit3及びbit7がセ
ットされていないときは、bit4〜6(FM0、FM
1、FM2)が有効となる。
When bit 3 (X) is set, the number of AF pulses at the current position (AFPULSE (AFP
XL, H)). When bit 7 (ISZM) is set, the number of AF pulses (AFPULSE (ISZ_AFP
L, H)). Note that bit3 and bit7 are not set at the same time. When bit3 and bit7 are not set, bit4 to bit6 (FM0, FM0
1, FM2) becomes effective.

【0124】レンズCPU61のレンズRAM61b内
には、AFパルスデータをメモリする領域が8個(0〜
7番)用意されており(AFP0L、H〜AFP7L,
H)、ボディ11からのコマンドによりそれぞれの番地
にAFパルスデータをメモリすることができる。なお、
bit4〜6の3ビットで0〜7番までのアドレスを指
定し、そのアドレスにメモリされているAFパルスデー
タを送る。なお、このコマンドは、LENS‐AFPU
LSE(15)においてボディ11に送るAFパルスデ
ータをどれにするかを指定するだけのコマンドである。
The lens RAM 61b of the lens CPU 61 has eight areas (0 to 0) for storing AF pulse data.
7) (AFP0L, H to AFP7L,
H), AF pulse data can be stored in each address by a command from the body 11. In addition,
Addresses 0 to 7 are designated by 3 bits of bits 4 to 6, and AF pulse data stored in the addresses is transmitted. In addition, this command is LENS-AFPU
This command simply specifies which AF pulse data is sent to the body 11 in the LSE (15).

【0125】図31には、SET‐PZPOINTコマ
ンドを受信したときの処理に関するフローチャートを示
してある。レンズCPU61は、SET‐PZPOIN
Tコマンド(24)を入力すると、コマンド受信完了信
号を出力し、ボディ側からSET‐PZPOINTデー
タを受信してレンズRAM61bの所定のアドレスにセ
ットし、データ入力完了信号を出力し、通信割込みを許
可してリターンする(S741〜745)。
FIG. 31 is a flowchart showing a process when a SET-PZPOINT command is received. The lens CPU 61 is a SET-PZPOIN
When a T command (24) is input, a command reception completion signal is output, SET-PZPOINT data is received from the body side, set to a predetermined address of the lens RAM 61b, a data input completion signal is output, and a communication interrupt is permitted. And returns (S741-745).

【0126】SET‐PZPOINTコマンドは、LB
コマンド、FOCALLEN‐X(16)の通信前に実
行される。FOCALLEN‐Xコマンドでは、SET
‐PZPOINTコマンドで送られてきた情報により、
現在位置の焦点距離データ、ISZモ‐ド時に像倍率を
メモリしたときの焦点距離のいずれをボディ11へ送る
かを決める。
The SET-PZPOINT command is LB
The command is executed before communication of the FOCALLEN-X (16). In the FOCALLEN-X command, SET
-By the information sent by the PZPOINT command,
It is determined which of the focal length data at the current position and the focal length when the image magnification is stored in the ISZ mode is sent to the body 11.

【0127】bit3(X)がセットされているとき
は、現在位置の焦点距離データ(FCLXL,H)を送
る。bit7(ISZM)がセットされているときは、
ISZモ‐ド時に像倍率をメモリしたときの焦点距離
(ISZメモリの焦点距離(ISZ_FCLL,H))
を送る。なお、bit3とbit7とは同時にセットさ
れない。bit3及びbit7がセットされていないと
きは、bit4〜6(FM0、FM1、FM2)が有効
となる。
When bit 3 (X) is set, the focal length data (FCLXL, H) of the current position is sent. When bit7 (ISZM) is set,
Focal length when image magnification is stored in ISZ mode (focal length of ISZ memory (ISZ_FCLL, H))
Send. Note that bit3 and bit7 are not set at the same time. When bit3 and bit7 are not set, bits 4 to 6 (FM0, FM1, FM2) are valid.

【0128】レンズRAM61b内には、焦点距離をメ
モリする領域が8個(0〜7番)用意されており(FC
L0L、H〜FCL7L,H)、ボディ11からのSE
T‐PZPOINTコマンドによりそれぞれの番地に焦
点距離をメモリすることができる。そのうち、bit4
〜6の3ビットで、0〜7番までのアドレスを指定し、
そのアドレスにメモリされた焦点距離を送る。なお、こ
のコマンドは、FOCALLEN‐X(16)において
ボディ11に送る焦点距離をどれにするかを指定するだ
けのコマンドである。
In the lens RAM 61b, eight areas (numbers 0 to 7) for storing focal lengths are prepared (FC
L0L, H to FCL7L, H), SE from body 11
The focal length can be stored at each address by the T-PZPOINT command. Of which, bit4
Specify the address from 0 to 7 with 3 bits of ~ 6,
The focal length stored at that address is sent. This command is merely a command for specifying the focal length to be sent to the body 11 in the FOCALLEN-X (16).

【0129】STORE‐AFPコマンドは、指定され
たアドレスに所定のAFパルスデータをセットさせるコ
マンドである。図32には、STORE‐AFPコマン
ドを受信したときの処理に関するフローチャートを示し
てある。
The STORE-AFP command is a command for setting predetermined AF pulse data at a specified address. FIG. 32 is a flowchart illustrating a process when the STORE-AFP command is received.

【0130】レンズCPU61は、STORE‐AFP
コマンド(25)を受信すると、コマンド受信完了信号
を出力してカメラボディ11から2バイトのデータを入
力する(S751、S752)。入力したデータを、そ
の内のあるビットがISZメモリでなければ(ISZM
=0)、そのデータ内のAM0〜AM2により指定され
たレンズRAM61bのアドレス(AFP0L,H〜A
FP7L,H)にメモリし、ISZメモリであれば(I
SZM=1)、レンズRAM61bのISZメモリ(I
SZ‐AFPL,H)にストアする(S751〜S75
6)。そして、ISZ演算フラグF_ISZXOMをセットし
て、データ入力完了信号を出力し、通信割込みを許可し
てリターンする(S757〜758)。
The lens CPU 61 is a STORE-AFP
When the command (25) is received, a command reception completion signal is output, and 2-byte data is input from the camera body 11 (S751, S752). If the input data is not a bit in ISZ memory (ISZM
= 0), the address (AFP0L, H-A) of the lens RAM 61b specified by AM0-AM2 in the data.
FP7L, H), and if it is an ISZ memory, (I
SZM = 1), ISZ memory (I
SZ-AFPL, H) (S751-S75)
6). Then, it sets the ISZ operation flag F_ISZXOM, outputs a data input completion signal, permits communication interruption, and returns (S757 to 758).

【0131】STORE‐DEFP&Dコマンド(2
6)は、カメラボディ11側のAFに関するデフォーカ
ス量及びデフォーカスパルスをレンズRAM61bにメ
モリさせるコマンドである。図33には、STORE‐
DEFP&Dコマンドを受信したときの処理に関するフ
ローチャートを示してある。
STORE-DEFP & D command (2
6) is a command for storing the defocus amount and the defocus pulse related to the AF on the camera body 11 side in the lens RAM 61b. FIG. 33 shows STORE-
The flowchart regarding the process when the DEFP & D command is received is shown.

【0132】レンズCPU61は、STORE‐DEF
P&Dコマンドを受信すると、コマンド入力完了信号を
出力してカメラボディ11から2バイトのデフォーカス
パルスデータおよび2バイトのデフォーカス量データを
入力し、入力したデフォーカスパルスを1/2倍する
(S761〜S764)。本実施例では、ボディAFパ
ルス:レンズAFパルスが2:1なので、入力したデフ
ォーカスパルスを1/2倍している。なお、この比は任
意に設定可能である。
The lens CPU 61 has a STORE-DEF
When the P & D command is received, a command input completion signal is output, 2 bytes of defocus pulse data and 2 bytes of defocus amount data are input from the camera body 11, and the input defocus pulse is halved (S761). To S764). In this embodiment, since the ratio of the body AF pulse to the lens AF pulse is 2: 1, the input defocus pulse is halved. This ratio can be set arbitrarily.

【0133】そして、フラグF_SIGNがクリアされていれ
ばデフォーカスパルス数に現在のAFパルス数を加算し
てISZ_FPXにストアし、フラグF_SIGNが立ってい
れば現在のAFパルス数からデフォーカスパルス数を減
算してISZ_FPXにストアする(S765〜S76
7)。フラグF_SIGN=1のときはFAR端側へのデフォー
カス量で、フラグF_SIGN=0のときはNEAR端側へのデ
フォーカス量である。そしてフラグF_FPREを立ててデー
タ入力完了信号を出力し、通信割込みを許可してリター
ンする(S765〜S771)。このように通信により
送られたデフォーカスパルスは、ISZ演算ルーチン内
で、デフォーカスパルスを利用して目標焦点距離を求め
る演算に使用される。また、フラグF_FPREは、デフォー
カス量を利用した演算実施の指示フラグである。
If the flag F_SIGN is cleared, the current AF pulse number is added to the defocus pulse number and stored in ISZ_FPX. If the flag F_SIGN is set, the defocus pulse number is calculated from the current AF pulse number. Subtract and store in ISZ_FPX (S765-S76)
7). When the flag F_SIGN = 1, the defocus amount is toward the FAR end, and when the flag F_SIGN = 0, the defocus amount is toward the NEAR end. Then, the flag F_FPRE is set to output a data input completion signal, the communication interrupt is permitted, and the process returns (S765 to S771). The defocus pulse sent by the communication as described above is used in an ISZ calculation routine for calculating a target focal length using the defocus pulse. Further, the flag F_FPRE is an instruction flag for performing the calculation using the defocus amount.

【0134】STORE‐PZPコマンド(27)は、
現在のAFの位置(フォーカシングレンズの位置または
合焦被写体距離)および現在のPZの位置(ズーミング
レンズ群53Zの位置または焦点距離)を指定のメモリ
(アドレス)にメモリさせるコマンドである。STOR
E‐PZFコマンド(28)は、カメラボディ11で指
定した焦点距離を所定のアドレスに記憶させるコマンド
である。
The STORE-PZP command (27) is
This is a command for storing the current AF position (focusing lens position or focused object distance) and the current PZ position (zooming lens group 53Z position or focal length) in a specified memory (address). STOR
The E-PZF command (28) is a command for storing the focal length designated by the camera body 11 at a predetermined address.

【0135】図34には、STORE‐PZPコマンド
を受信したときの処理に関するフローチャートを示して
ある。レンズCPU61は、STORE‐PZPコマン
ドを受信すると、コマンド受信完了信号を出力してカメ
ラボディ11から1バイトのデータを入力する(S78
1、S782)。このデータ内でPZメモリと指定され
ているとき(フラグF_PZMが立っているとき)には、現
在位置の焦点距離データをFM0〜FM2により指定さ
れたアドレス(FCL0L,H〜FCL7L,H)にメ
モリし、PZメモリでないときにはメモリしない(S7
83、S784)。
FIG. 34 is a flowchart showing a process when a STORE-PZP command is received. Upon receiving the STORE-PZP command, the lens CPU 61 outputs a command reception completion signal and inputs 1-byte data from the camera body 11 (S78).
1, S782). When the data is designated as a PZ memory (when the flag F_PZM is set), the focal length data at the current position is stored in an address (FCL0L, H to FCL7L, H) designated by FM0 to FM2. If the memory is not a PZ memory, no memory is stored (S7
83, S784).

【0136】さらに、AFメモリと指定されているとき
(フラグF_AFMが立っているとき)には、現在位置のA
Fパルス数をAM0〜AM2により指定されたアドレス
(AFP0L,H〜AFP7L,H)にメモリし、AF
メモリでないときには何もせずに、データ入力完了信号
を出力し、通信割込みを許可してリターンする(S78
5〜S788)。
Further, when the AF memory is designated (when the flag F_AFM is set), the current position A
The number of F pulses is stored in addresses (AFP0L, H to AFP7L, H) designated by AM0 to AM2, and AF
If the memory is not the memory, nothing is performed, the data input completion signal is output, the communication interrupt is permitted, and the process returns (S78).
5 to S788).

【0137】図35には、STORE‐PZFコマンド
を受信したときの処理に関するフローチャートを示して
ある。レンズCPU61は、STORE‐PZFコマン
ドを受信すると、カメラボディ11から2バイトのデー
タを入力し、これがISZメモリでなければ(フラグF_
ISZMが立っていなければ)、入力した2バイトのデータ
をビットFM0〜FM2により指定されたレンズRAM
61bのアドレス(FCL0L,H〜FCL7L,H)
にストアし、ISZメモリであれば(F_ISZMが立ってい
れば)、入力したデータをISZ用メモリにストアし、
焦点距離に基づいてISZの演算を実行するフラグF_IS
ZFOMを立てる(S791〜S796)。そして、データ
入力完了信号を出力し、通信割込みを許可してリターン
する(S797〜S798)。
FIG. 35 is a flowchart showing a process when a STORE-PZF command is received. Upon receiving the STORE-PZF command, the lens CPU 61 inputs 2-byte data from the camera body 11, and if this is not an ISZ memory (flag F_
If ISZM is not set), the input 2-byte data is stored in the lens RAM specified by bits FM0 to FM2.
61b address (FCL0L, H to FCL7L, H)
If it is an ISZ memory (if F_ISZM is set), store the input data in the ISZ memory,
Flag F_IS for performing ISZ calculation based on focal length
The ZFOM is set up (S791-S796). Then, a data input completion signal is output, communication interruption is permitted, and the process returns (S797 to S798).

【0138】STORE‐IS(29)コマンドは、像
倍率メモリ(レンズRAM61bのアドレスISZ‐I
MGL,H)に像倍率をメモリさせるコマンドである。
図36には、STORE‐ISコマンドを受信したとき
の処理に関するフローチャートを示してある。
The STORE-IS (29) command is an image magnification memory (address ISZ-I of the lens RAM 61b).
MGL, H).
FIG. 36 is a flowchart showing a process when the STORE-IS command is received.

【0139】レンズCPU61は、STORE‐ISコ
マンドを受信すると、コマンド受信完了信号を出力し、
カメラボディ11から2バイトの像倍率に関するデータ
を入力し、そのデータを像倍率メモリ(ISZ‐IMG
L,H)にストアし、フラグF_STISをセットする(S8
01〜804)。そして、データ入力完了信号を出力
し、通信割込みを許可してリターンする(S805〜S
806)。なお、フラグF_STISは、ボディ側から送られ
てくる像倍率に基づいて像倍率一定ズームISZの演算
を実行させるフラグである。
When receiving the STORE-IS command, the lens CPU 61 outputs a command reception completion signal,
2 bytes of data relating to the image magnification are input from the camera body 11, and the data is stored in an image magnification memory (ISZ-IMG).
(L, H) and set the flag F_STIS (S8).
01-804). Then, a data input completion signal is output, communication interruption is permitted, and the process returns (S805 to S805).
806). The flag F_STIS is a flag for executing the calculation of the constant image magnification zoom ISZ based on the image magnification sent from the body side.

【0140】MOVE‐PZMDコマンド(2A)は、
指定方向、または指定したメモリ(レンズRAM61b
のアドレス)の焦点距離にパワーズームさせるコマンド
である。MOVE‐PZfコマンド(2B)は、指定焦
点距離、例えばカメラボディ11側で演算した焦点距離
にパワーズーミングさせるコマンドであり、このコマン
ドにより授受されるデータには、焦点距離およびズーミ
ングスピードに関するデータが含まれる。
The Move-PZMD command (2A) is
Designated direction or designated memory (lens RAM 61b
This is a command for power zooming to the focal length of (address). The MOVE-PZf command (2B) is a command for performing power zooming to a designated focal length, for example, a focal length calculated on the camera body 11, and data transmitted and received by this command includes data on the focal length and zooming speed. It is.

【0141】図37には、MOVE‐PZMDコマンド
を受信したときの処理に関するフローチャートを示して
ある。レンズCPU61は、このMOVE‐PZMDコ
マンドを入力すると、コマンド入力完了信号を出力し、
カメラボディ11から1バイトのデータを入力する(S
811〜S812)。そして、入力したデータ中のフラ
グF_MDMが立っていれば、MVM0〜MVM2により指
定されたアドレス(FCL0L,H〜FCL7L,H)
からデータを読み出して、PZパルスデータに変換して
レンズRAM61bのPZPTRGETにストアし、駆
動スピードデータ(bit6,7のF_SPA,F_SPB)をSPDDR
C2にセットし、フラグF_MOVTRGを立てるが、フラグF_
MDMが下りていれば、入力したデータの上位4ビットを
アドレスSPDDRC1にストアし、フラグF_MOVをセ
ットする(S813〜S819)。これらのデータは、
2msタイマ割込みルーチンの中で参照され、指定された
動作のパワーズームが行なわれる。
FIG. 37 is a flow chart showing a process when a MOVE-PZMD command is received. Upon inputting the MOVE-PZMD command, the lens CPU 61 outputs a command input completion signal,
1-byte data is input from the camera body 11 (S
811 to S812). If the flag F_MDM in the input data is set, the addresses (FCL0L, H to FCL7L, H) specified by MVM0 to MVM2 are set.
, And converts the data into PZ pulse data, stores it in PZPTRGET of the lens RAM 61b, and converts the drive speed data (F_SPA, F_SPB of bits 6, 7) into SPDDR.
Set to C2 and set the flag F_MOVTRG,
If the MDM is down, the upper 4 bits of the input data are stored in the address SPDDRC1, and the flag F_MOV is set (S813 to S819). These data are
The power zoom of the designated operation is performed with reference to the 2 ms timer interrupt routine.

【0142】フラグF_LBATREQおよびF_IPZBをセットし
たら、データ入力完了信号を出力し、通信割込みを許可
してリターンする(S820〜S820‐2)。なお、
フラグF_MDM(bit3)が立っているときは、指定したメモ
リにストアされている焦点距離にパワーズームさせるコ
マンドとなり、フラグF_MDMが立っていないときは、フ
ラグF_MDT、F_MDW(bit4,5)で指示される方向にパワーズ
ームさせるコマンドとなる。フラグF_MDTがTELE方
向駆動を指定し、フラグF_MDWがWIDE方向駆動を指
定し、フラグF_SPA、F_SPB(bit6,7)は、ズーミングスピ
ードを指定する。
When the flags F_LBATREQ and F_IPZB are set, a data input completion signal is output, communication interruption is permitted, and the process returns (S820-S820-2). In addition,
When the flag F_MDM (bit 3) is set, it is a command to power zoom to the focal length stored in the specified memory.When the flag F_MDM is not set, the command is indicated by the flags F_MDT and F_MDW (bits 4 and 5). This is a command for power zooming in any direction. The flag F_MDT specifies the drive in the TELE direction, the flag F_MDW specifies the drive in the WIDE direction, and the flags F_SPA and F_SPB (bits 6 and 7) specify the zooming speed.

【0143】図38には、MOVE‐PZfコマンドを
受信したときの処理に関するフローチャートを示してあ
る。レンズCPU61は、MOVE‐PZfコマンドを
入力すると、コマンド受信完了信号を出力し、カメラボ
ディ11から2バイトの焦点距離データを入力し、入力
した焦点距離データをPZパルスデータに変換してレン
ズRAM61bのアドレスPZPTRGTにストアし、
SPDDRC2に駆動スピードデータをセットし、フラ
グF_BATREQ、F_IPZB、F_MOVTRGをセットする。これらの
データは2msタイマ割込みルーチン内で参照され、指定
された動作のパワーズームを実行させる。そしてデータ
入力完了信号を出力し、通信割込みを許可してからリタ
ーンする(S821〜S827)。
FIG. 38 is a flowchart showing a process when a MOVE-PZf command is received. When the MOVE-PZf command is input, the lens CPU 61 outputs a command reception completion signal, inputs 2-byte focal length data from the camera body 11, converts the input focal length data into PZ pulse data, and converts the focal length data into PZ pulse data. Store at address PZPTRGT,
Drive speed data is set in SPDDRC2, and flags F_BATREQ, F_IPZB, and F_MOVTRG are set. These data are referred to in the 2 ms timer interrupt routine to execute the power zoom of the specified operation. Then, a data input completion signal is output, the communication interrupt is permitted, and the process returns (S821 to S827).

【0144】『CNTAF処理』次に、パワーズームレ
ンズ51におけるAFパルスカウント処理に関して、図
39〜図43に示したフローチャートを参照して説明す
る。なお、このカウント処理は、図27のPZ‐BST
ATEコマンド(20)のS703の処理の詳細であ
る。本実施例では、フォーカシングレンズ53Fがファ
ー端(無限遠撮影位置)に達したときにAFパルスカウ
ンタの値をクリアして0にし、ニア端(最短撮影位置)
に達したときには最大値をAFパルスカウンタにセット
する。そして、AFパルサー59から出力されるAFパ
ルスを、ニアムーブ(至近距離方向に駆動)のときには
加算し、ファームーブ(無限遠方向に駆動)のときには
減算する。
[CNTAF Processing] Next, the AF pulse counting processing in the power zoom lens 51 will be described with reference to the flowcharts shown in FIGS. This counting process is performed by the PZ-BST shown in FIG.
It is the detail of the process of S703 of the ATE command (20). In this embodiment, when the focusing lens 53F reaches the far end (infinity shooting position), the value of the AF pulse counter is cleared to 0, and the near end (shortest shooting position).
Is reached, the maximum value is set in the AF pulse counter. Then, the AF pulse output from the AF pulser 59 is added when near-move (driving in a close distance direction) and subtracted when in a firm move (driving in an infinity direction).

【0145】先ず、割込みを禁止し、通信で入力したデ
ータをアドレスPZ_BDSTにメモリし、距離コード
板81から現在の距離コードを入力する(S901〜S
905)。そして、ファー端(無限遠位置)であること
を識別するフラグF_ENDFが立っていれば、入力した距離
コードがファー端のコードであるかどうかをチェックす
る(S907〜S909)。距離コードがファー端であ
れば、現在のAFパルス値及びAFパルスカウントスタ
ート値(アドレスAFPXL,H、AFPSTRTL,
Hの内容)をクリアし、現在位置のAFパルスが分かっ
ていることを表わすフラグF_AFPOSを立てる(S90
9、S913、S915)。さらにニアムーブであるこ
とを識別するフラグF_NEARMがクリアされていればCN
TAFP10処理に飛び、立っていれば駆動方向が変わ
るのでCNTAFP11処理に飛ぶ(S917)。検出
した距離コードがファー端コードでなければ、ファー端
フラグF_ENDFをクリアしてCNTAFP3処理に飛ぶ
(S909、S911)。
First, the interrupt is prohibited, the data input by communication is stored in the address PZ_BDST, and the current distance code is input from the distance code plate 81 (S901 to S901).
905). If the flag F_ENDF for identifying the far end (infinity position) is set, it is checked whether the input distance code is the far end code (S907 to S909). If the distance code is the far end, the current AF pulse value and AF pulse count start value (addresses AFPXL, H, AFPSTRTL,
H), and sets a flag F_AFPOS indicating that the AF pulse at the current position is known (S90).
9, S913, S915). Further, if the flag F_NEARM for identifying the near move is cleared, CN
The process jumps to the TAFP10 process, and if standing up, the driving direction changes, so the process jumps to the CNTAFP11 process (S917). If the detected distance code is not the fur end code, the fur end flag F_ENDF is cleared and the process jumps to the CNTAFP3 process (S909, S911).

【0146】ファー端フラグF_ENDFがクリアされている
ときには、ニア端(至近合焦位置)であることを識別す
るニア端フラグF_ENDNをチェックし、クリアされていれ
ばCNTAFP3に進む(S919)。ニア端フラグF_
ENDNが立っているときには、距離コードがニア端のコー
ドであるかどうかをチェックし、ニア端のコードでなけ
れば、ニア端フラグF_ENDNをクリアしてCNTAFP3
処理に進む(S919〜S923)。距離コードがニア
端のときには、現在のAFパルスカウント値及びAFパ
ルスカウントスタート値を最大値にセット(N_AFM
AXL,HをAFPXL,H、AFPSTRTL,Hに
セット)し、現在のAFパルス値がわかっていることを
表わすフラグF_AFPOSをセットし、ファームーブ(F_FAR
M=1)であるかどうかをチェックし、ファームーブで
あればCNTAFP11処理に進み、ファームーブでな
ければCNTAFP10処理に進む(S925〜S92
9)。
If the far end flag F_ENDF is cleared, the near end flag F_ENDN for identifying the near end (closest in-focus position) is checked. If the far end flag F_ENDF is cleared, the process proceeds to CNTAFP3 (S919). Near end flag F_
When ENDN is standing, it is checked whether the distance code is the code at the near end, and if not, the near end flag F_ENDN is cleared and CNTAFP3
The process proceeds (S919 to S923). When the distance code is near end, the current AF pulse count value and the AF pulse count start value are set to the maximum value (N_AFM
AXL, H is set to AFPXL, H, AFPSTRTL, H), a flag F_AFPOS indicating that the current AF pulse value is known is set, and the firmware (F_FAR
It is checked whether or not M = 1). If it is firm, the process proceeds to the CNTAFP11 process, and if not, the process proceeds to the CNTAFP10 process (S925 to S92).
9).

【0147】以上のように、ファー端(F_ENDF=1)ある
いはニア端(F_ENDN=1)のときには、それぞれ所定の値で
AFパルスのカウント値を補正する。ただし、入力した
距離コードを判断して端点にないときは、上記端点補正
は行なわない。
As described above, at the far end (F_ENDF = 1) or near end (F_ENDN = 1), the count value of the AF pulse is corrected by a predetermined value. However, if the input distance code is judged to be not at the end point, the end point correction is not performed.

【0148】フォーカシングレンズ群53Fがファー端
とニア端の間にあるときの処理(CNTAFP3処理)
について、図40に示したフローチャートを参照して説
明する。先ず、現在のAFパルスのハードカウンタのカ
ウンタ値をAFパルスカウンタ(AFPCNTL,H)
にセットする(S931、S933)。フラグF_FARMが
クリアされているときにはCNTAFP6処理に進み、
セットされているときには、前回ニアムーブであったか
どうか(フラグF_NEARMOが立っているかどうか)をチェ
ックする(S933、S935)。ニアムーブからファ
ームーブに変わったときには、AFパルスカウントスタ
ート値(AFPSTRL,H)にAFパルスカウント値
(AFPCNTL,H)を加算して所定の現在AFパル
ス値及びAFパルスカウントスタート値メモリAFPX
L,H&AFPSTRTL,HにメモリしてCNTAF
P12処理に進む(S935、S937)。
Processing when the focusing lens group 53F is between the far end and the near end (CNTAFP3 processing)
Will be described with reference to the flowchart shown in FIG. First, the counter value of the hard counter of the current AF pulse is converted to an AF pulse counter (AFPCNTL, H).
(S931, S933). When the flag F_FARM is cleared, the process proceeds to the CNTAFP6 process,
If it is set, it is checked whether or not the previous move was performed (whether or not the flag F_NEARMO is set) (S933, S935). When changing from the near move to the firm move, the AF pulse count value (AFPCNTL, H) is added to the AF pulse count start value (AFPSTRL, H) to obtain a predetermined current AF pulse value and AF pulse count start value memory AFPX.
L, H & AFPSTRTL, H in CNTAF
The process proceeds to P12 processing (S935, S937).

【0149】前回ニアムーブではなかったときには、前
回ファームーブであったかどうかをチェックし、ファー
ムーブでもなかったとき、つまり動いていなかったとき
にはCNTAFP11処理に進み、前回もファームーブ
だったときには駆動方向が変わっていないので、AFパ
ルスカウントスタート値(AFPSTRL,H)からカ
ウント値(AFPCNTL,H)を減算してその差を現
在のAFパルス値(AFPXL,H)にメモリし、CN
TAFP16処理に進む(S939、S941)。
If it was not near move last time, it is checked whether it was firm move last time. If it was not firm move, that is, if it was not moving, it proceeds to CNTAFP11 processing. Since there is not, the count value (AFPCNTL, H) is subtracted from the AF pulse count start value (AFPSTRL, H), and the difference is stored in the current AF pulse value (AFPXL, H).
The process proceeds to TAFP16 processing (S939, S941).

【0150】現在ファームーブでなかったときのCNT
AFP6処理について、図41に示したフローチャート
を参照して説明する。なお、CNTAFP6処理は、A
F処理開始後最初に入るルーチンでもある。先ず、ニア
ムーブであるかどうかをチェックし、ニアムーブでなけ
ればCNTAFP8処理に進む(S951)。ニアムー
ブであれば、前回ニアムーブであったかどうかをチェッ
クし、前回もニアムーブであったときには、AFパルス
カウントスタート値(AFPSTRTL,H)にAFパ
ルスカウント値(AFPCNTL,H)を加算してその
和を現在のAFパルス値(AFPXL,H)にメモリす
る(S953、S955)。
CNT when not currently farming
The AFP6 process will be described with reference to the flowchart shown in FIG. In addition, the CNTAFP6 processing is performed by A
This is the first routine that starts after the start of the F process. First, it is checked whether or not it is a near move. If it is not a near move, the process proceeds to the CNTAFP8 process (S951). If it is a near move, it is checked whether or not it was the last move. If the move was also the last time, the AF pulse count value (AFPSTRL, H) is added to the AF pulse count value (AFPCNTL, H), and the sum is added to the current value. Is stored in the AF pulse value (AFPXL, H) (S953, S955).

【0151】前回ニアムーブでなく、かつ前記ファーム
ーブであれば駆動方向が変わっているので、AFパルス
カウントスタート値(AFPSTRTL,H)からAF
Pカウント値(AFPCNTL,H)を減算してその差
を現在のAFパルス値及びAFパルスカウントスタート
値(AFPXL,H&AFPSTRTL,H)にメモリ
する(S957、S959)。前回ファームーブでなけ
れば、CNTAFP11処理に進む(S957)。
If the drive is not the previous near move and is the firm move, the driving direction has changed, so the AF pulse count start value (AFPSTRTL, H) is used to calculate the AF
The P count value (AFPCNTL, H) is subtracted, and the difference is stored in the current AF pulse value and AF pulse count start value (AFPXL, H & AFPSTRTL, H) (S957, S959). If it is not the last time, the process proceeds to the CNTAFP11 process (S957).

【0152】AFモータ39が停止しているときの処理
(CNTAFP8処理)について、図42に示したフロ
ーチャートを参照して説明する。CNTAFP8処理で
は、先ず、前回ニアムーブであったかどうかをチェック
する(S961)。前回ニアムーブであれば、ニアムー
ブからの停止なので、AFパルスカウントスタート値
(AFPSTRTL,H)にAFパルスカウント値(A
FPCNTL,H)を加算してその和を現在のAFパル
ス値及びAFパルスカウントスタート値(AFPXL,
H&AFPSTRTL,H)にメモリしてCNTAFP
10処理に進む(S961、S963)。前回ファーム
ーブのときにはファームーブからの停止なので、AFパ
ルスカウントスタート値(AFPSTRTL,H)から
AFパルスカウント値(AFPCNTL,H)を減算し
て現在のAFパルス値及びAFパルスカウントスタート
値(AFPXL,H&AFPSTRTL,H)にメモリ
してからCNTAFP10処理に進む(S961、S9
65、S967)。前回ニアムーブでもファームーブで
もなければ停止なので、CNTAFP16処理に進む
(S961、S965)。
The processing when the AF motor 39 is stopped (CNTAFP8 processing) will be described with reference to the flowchart shown in FIG. In the CNTAFP8 process, first, it is checked whether or not the last move was performed (S961). In the case of the previous near move, since the stop is from the near move, the AF pulse count value (AFPSTRTL, H) is added to the AF pulse count value (A).
FPCNTL, H) and sum the sum to the current AF pulse value and AF pulse count start value (AFPXL,
H & AFPSTRTL, H)
The process proceeds to 10 (S961, S963). In the previous farming, since the farming was stopped, the AF pulse count value (AFPSTRL, H) is subtracted from the AF pulse count start value (AFPCNTL, H), and the current AF pulse value and AF pulse count start value (AFPXL, H & AFPSTRL, H) and then proceed to the CNTAFP10 process (S961, S9)
65, S967). If it is neither the near move nor the firm move last time, the process is stopped, so the process proceeds to the CNTAFP16 process (S961, S965).

【0153】CNTAFP10、11、12、16処理
について、図43に示したフローチャートを参照して説
明する。CNTAFP10にはAFモータ39が停止し
た直後に入るので、AFパルサー59のLEDを消灯
し、PZ_BDSTの内容をPZ_BDST0にメモリ
し、通信割込みを許可してからAFパルスカウント処理
を抜ける(S971、S977、S979)。
The processing of the CNTAFPs 10, 11, 12, and 16 will be described with reference to the flowchart shown in FIG. Since the CNTAFP 10 enters immediately after the AF motor 39 stops, the LED of the AF pulser 59 is turned off, the contents of PZ_BDST are stored in PZ_BDST0, the communication interrupt is permitted, and the AF pulse count process is exited (S971, S977, S979).

【0154】CNTAFP11処理には、AF駆動開始
時に入るので、AFパルサー59のLEDを点灯してA
Fパルスハードカウンタ及びAFパルスカウント値メモ
リ(AFPCNTL,H)をクリアし、PZ_BDST
のメモリ内容をPZ_BDST0に移し、通信割込みを
許可してからAFパルスカウント処理を抜ける(S97
3、S975、S977、S979)。
Since the process of the CNTAFP 11 is started at the time of starting the AF driving, the LED of the AF pulser 59 is turned on and the A
Clear the F pulse hard counter and AF pulse count value memory (AFPCNTL, H), and set PZ_BDST
Is transferred to PZ_BDST0, the communication interrupt is permitted, and the AF pulse count process is exited (S97).
3, S975, S977, S979).

【0155】CNTAFP12処理には、AF駆動中に
駆動方向が変わるときに入るので、AFパルスハードカ
ウンタ及びAFパルスカウント値(AFPCNTL,
H)をクリアし、PZ_BDSTのメモリ内容をPZ_
BDST0に移し、通信割込みを許可してからAFパル
スカウント処理を抜ける(S975、S977、S97
9)。
Since the CNTAFP12 process is started when the driving direction changes during AF driving, the AF pulse hard counter and the AF pulse count value (AFPCNTL,
H) and clear the memory contents of PZ_BDST to PZ_
The process proceeds to BDST0, permits the communication interrupt, and exits the AF pulse count process (S975, S977, S97).
9).

【0156】CNTAFP16処理には、ニアムーブま
たはファームーブでの同方向駆動中(S655、S64
1)、またはAFモータ停止中(S965)に入るの
で、PZ_BDSTのメモリ内容をPZ_BDST0に
移し、通信割込みを許可してからAFパルスカウント処
理を抜ける(S977、S979)。
In the CNTAFP16 process, during the same direction driving in near move or firm move (S655, S64)
1) Or, since the AF motor is stopped (S965), the memory contents of PZ_BDST are moved to PZ_BDST0, the communication interrupt is permitted, and the AF pulse count processing is exited (S977, S979).

【0157】『LBコマンド処理』次に、レンズの状態
等のレンズ側情報をカメラ側の要求に応じてパワーズー
ムレンズ51からカメラボディ11に転送させる処理に
ついて、表4および図44〜図51に示したフローチャ
ートを参照して説明する。これらのコマンドの内容は、
表4に示してある。なお、これらの図44〜図51に示
したフローチャートは、図8の通信割込みルーチンにお
けるS209に示した処理の詳細図である。コマンドの
下位の内容によって対応する処理が実行される。
[LB Command Processing] Table 4 and FIGS. 44 to 51 show the processing for transferring lens side information such as the state of the lens from the power zoom lens 51 to the camera body 11 in response to a request from the camera. A description will be given with reference to the illustrated flowchart. The contents of these commands are
It is shown in Table 4. The flowcharts shown in FIGS. 44 to 51 are detailed diagrams of the processing shown in S209 in the communication interrupt routine of FIG. A corresponding process is executed according to the lower-order content of the command.

【0158】『PZ‐LSTATE処理』図44に示し
たフローチャートは、PZ‐LSTATE(10)処理
に関するもので、パワーズームレンズ51のパワーズー
ム制御状態に関するデータをカメラボディ11に送る処
理である。レンズCPU61は、パワーズームに関する
レンズステート(PZ‐LSTATE)要求コマンドを
受信すると、コマンド受信完了信号を出力した後に、パ
ワーズームの制御状態に関するデータ(PZ_LS
T)、例えば像倍率一定ズーム制御中であるかどうかな
どをカメラボディ11に出力する(S1001、S10
02)。そして、データ送信完了信号を出力して通信割
込みを許可してリターンする(S1003、S100
4)。
[PZ-LSTATE Processing] The flowchart shown in FIG. 44 relates to the PZ-LSTATE (10) processing, and is the processing for sending data relating to the power zoom control state of the power zoom lens 51 to the camera body 11. Upon receiving the lens state (PZ-LSTATE) request command related to power zoom, the lens CPU 61 outputs a command reception completion signal, and then outputs data (PZ_LS) related to the power zoom control state.
T), for example, whether or not the image magnification constant zoom control is being performed is output to the camera body 11 (S1001, S10).
02). Then, a data transmission completion signal is output, communication interruption is permitted, and the process returns (S1003, S100
4).

【0159】この処理において使用されるフラグの内容
について説明する。フラグF_TMOV(bit0)は、ズーム
モータがTELE方向に動いているときにセットされ
る。フラグF_WMOV(bit1)は、ズームモータがWID
E方向に動いているときにセットされる。フラグF_TEND
は、ズーミングレンズ群53ZがTELE端にあるとき
にセットされる。フラグF_WENDは、ズーミングレンズ群
53ZがWIDE端にあるときにセットされる。フラグ
F_IPZBは、マニュアルパワーズーム以外でパワーズーム
動作(ISZ、PZのイニシャライズ動作、収納動作)
するときにセットされる。フラグF_IPZIは、ISZ動作
中にマニュアルパワーズーム操作が行われたときにセッ
トされる。フラグF_ISOKは、ISZ動作中であるときに
セットされる。フラグF_MPZIは、マニュアルパワーズー
ム動作中であるときにセットされる。
The contents of the flags used in this process will be described. The flag F_TMOV (bit 0) is set when the zoom motor is moving in the TELE direction. The flag F_WMOV (bit 1) indicates that the zoom motor is WID
Set when moving in the E direction. Flag F_TEND
Is set when the zooming lens group 53Z is at the TELE end. The flag F_WEND is set when the zooming lens group 53Z is at the WIDE end. flag
F_IPZB is a power zoom operation other than manual power zoom (ISZ, PZ initialization operation, storage operation)
Set when you do. The flag F_IPZI is set when a manual power zoom operation is performed during the ISZ operation. The flag F_ISOK is set during the ISZ operation. The flag F_MPZI is set during a manual power zoom operation.

【0160】『POFF‐STATE、POFFS‐W
SLEEP処理』図45には、POFF‐STATE
(11)処理及びPOFFS‐WSLEEP(12)処
理に関するフローチャートを示してある。これらの処理
は、レンズのパワーズームに関するスイッチの情報、バ
ッテリ要求情報、PZ用の電源(バッテリ)のモニタ情
報等をボディ11に送る処理である。POFF‐STA
TE(11)とPOFFS‐WSLEEP(12)との
違いは、本コマンド通信終了後にレンズCPU61が低
消費電力モードに入るかどうかの違いである。POFF
S‐WSLEEP(12)処理を実行すると、本通信中
にフラグF_STNDBYをセットし、メインルーチンに戻った
ときに低消費電力モードに移行するコマンドである。す
なわち、POFFS‐WSLEEP(12)コマンド
は、POFF‐STATE(11)とインストラクショ
ンコードのSTANDBYコマンド(30)の内容を両
方実行するコマンドである。
[POFF-STATE, POFFS-W
SLEEP processing] FIG. 45 shows the POFF-STATE
The flowchart regarding (11) processing and POFFS-WSLEEP (12) processing is shown. These processes are processes for transmitting switch information regarding the power zoom of the lens, battery request information, monitor information of a power supply (battery) for PZ, and the like to the body 11. POFF-STA
The difference between TE (11) and POFFS-WSLEEP (12) is whether or not the lens CPU 61 enters the low power consumption mode after the completion of this command communication. POFF
When the S-WSLEEP (12) process is executed, the command sets the flag F_STNDBY during the main communication, and shifts to the low power consumption mode when returning to the main routine. That is, the POFFS-WSLEEP (12) command is a command for executing both the contents of the POFF-STATE (11) and the contents of the STANDBY command (30) of the instruction code.

【0161】レンズCPU61は、POFFS‐WSL
EEP(12)コマンドの場合、フラグF_STNDBYをセッ
トしてコマンド受信完了信号を出力し、スイッチ(7
5、77)の状態を入力する(S1011〜S101
5)。そして、フラグF_STNDBYがセットされているとき
(POFFS‐WSLEEP(12)のとき)には電動
/手動切替えスイッチ(D/Mスイッチ)が電動のとき
で、かつテレ、またはワイドスイッチ(スピード切替え
スイッチ)がオンされているときにはバッテリ要求フラ
グF_BATREQを立ててS1025に進むが、それ以外のと
きにはそのままS1025に進む(S1017、S01
9、S1021、S1023)。
The lens CPU 61 is a POFFS-WSL
In the case of the EEP (12) command, the flag F_STNDBY is set, a command reception completion signal is output, and the switch (7
(5, 77) are input (S1011 to S101).
5). When the flag F_STNDBY is set (when POFFS-WSLEEP (12)), the electric / manual switch (D / M switch) is electric, and the tele or wide switch (speed switch) Is turned on, the battery request flag F_BATREQ is set, and the process proceeds to S1025. Otherwise, the process directly proceeds to S1025 (S1017, S01).
9, S1021, S1023).

【0162】なお、フラグF_STNDBYがセットされている
ときは、通常、本通信割り込みを終了して、メインルー
チンに戻ったときに、低消費電力モ‐ドへ移行するが、
フラグF_BATREQがセットされていれば、フラグF_STNDBY
がセットされていても、低消費電力モ‐ドに移行せず、
通常動作を続けることができ、マニュアルパワーズーム
の動作等が可能となる(図7参照)。
When the flag F_STNDBY is set, this communication interrupt is normally terminated, and when returning to the main routine, the mode shifts to the low power consumption mode.
If the flag F_BATREQ is set, the flag F_STNDBY
Even if is set, it does not shift to the low power consumption mode,
Normal operation can be continued, and a manual power zoom operation and the like can be performed (see FIG. 7).

【0163】また、フラグF_STNDBYがセットされていな
いときは、メインルーチンに戻っても低消費電力モ‐ド
に移行しないので、PZスピードスイッチ75がオンさ
れていれば、本コマンド内でフラグF_BATREQをセットし
なくてもマニュアルパワーズーム等の動作は可能であ
る。フラグF_STNDBYがクリアされているとき(POFF
‐STATE(11)のとき)には、そのままS102
5に進む。
When the flag F_STNDBY is not set, the mode does not shift to the low power consumption mode even when returning to the main routine. Therefore, if the PZ speed switch 75 is turned on, the flag F_BATREQ is set in this command. Operation such as manual power zoom is possible without setting. When the flag F_STNDBY is cleared (POFF
-At the time of STATE (11)).
Go to 5.

【0164】S1025では、入力したズームモード切
換えスイッチ77に応じてフラグF_SLSW、F_ASSW、F_PZ
M、F_PZD、F_AFSWをセットまたはクリアする。そして、
端子VBATTの状態をモニタし、カメラボディ11か
らズームモータ69用の電力が供給されていなければフ
ラグF_BDETをクリアし(VBATTオフ)、供給されて
いればフラグF_BDETをセットする(VBATTオン)
(S1027〜S1031)。そして、上記セットした
1バイトのデータ(POFF‐ST)をカメラボディ1
1へ転送し、データ入力完了信号を出力し、通信割込み
を許可してリターンする(S1033〜S1037)。
At S1025, the flags F_SLSW, F_ASSW, F_PZ are set according to the input zoom mode changeover switch 77.
Set or clear M, F_PZD, F_AFSW. And
The state of the terminal VBATT is monitored. If the power for the zoom motor 69 is not supplied from the camera body 11, the flag F_BDET is cleared (VBATT off), and if the power is supplied, the flag F_BDET is set (VBATT on).
(S1027 to S1031). Then, the one-byte data (POFF-ST) set above is transferred to the camera body 1.
1 to output a data input completion signal, permit communication interruption, and return (S1033 to S1037).

【0165】POFF‐STATE処理のときには、S
1011のフラグF_STNDBYセット処理を飛ばしてS10
13に入り、以降はPOFFS‐WSLEEP処理と同
一の処理を実行する。
At the time of POFF-STATE processing, S
S10 by skipping the flag F_STNDBY setting process of 1011
13 and thereafter execute the same processing as the POFFS-WSLEEP processing.

【0166】『LENS‐INF1処理』図46に示し
たLENS‐INF1のフローチャートは、パワーズー
ムレンズ51の可変情報をカメラボディ11に送る処理
である。
[LENS-INF1 Process] The flowchart of LENS-INF1 shown in FIG. 46 is a process for sending variable information of the power zoom lens 51 to the camera body 11.

【0167】レンズCPU61は、LENS‐INF1
データ要求コマンド入力すると、コマンド受信完了信号
を送信し、1バイトのLNS_INF1データのうち、
パワーズームの方向に関する2ビットをクリアし、AE
オートレンズであることを識別する1ビットをセットし
てから、ズーム方向スイッチ情報を入力する(S104
1〜S1043)。そして、入力したスイッチ情報に応
じて対応するビットをセットし、1バイトのレンズデー
タとしてカメラボディ11に出力する(S1044、S
1045)。そして、データ送信完了信号を出力し、通
信割込みを許可してリターンする(S1046〜S10
47)。なお、LNS_INF1データには、像倍率一
定ズーム処理に関するデータが含まれている。詳細は先
に記した通りである。
The lens CPU 61 has a function of LENS-INF1.
When a data request command is input, a command reception completion signal is transmitted, and among 1-byte LNS_INF1 data,
Clear 2 bits for power zoom direction, AE
After setting 1 bit for identifying an auto lens, zoom direction switch information is input (S104).
1 to S1043). Then, a corresponding bit is set according to the input switch information and output to the camera body 11 as 1-byte lens data (S1044, S1044).
1045). Then, a data transmission completion signal is output, communication interruption is permitted, and the process returns (S1046 to S10).
47). The LNS_INF1 data includes data relating to the constant image magnification zoom process. Details are as described above.

【0168】『LENZ‐INF2処理』図47に示し
たLENS‐INF2のフローチャートは、パワーズー
ムレンズ51固有の固定データをカメラボディ11に送
信する処理である。レンズCPU61は、LENS‐I
NF2コマンドを入力すると、コマンド受信完了信号を
出力し、LNS‐INF2データをカメラボディ11へ
出力し、データ入力完了信号を出力し、通信割込みを許
可してリターンする(S1051〜S1054)。LE
NS‐INF2データには、レンズのバージョン、PZ
レンズかどうかなどを識別するデータが含まれており、
これらのデータは固定値で、レンズROM61aに格納
されている。
[LENZ-INF2 Processing] The flowchart of LENS-INF2 shown in FIG. 47 is processing for transmitting fixed data unique to the power zoom lens 51 to the camera body 11. The lens CPU 61 uses the LENS-I
When an NF2 command is input, a command reception completion signal is output, LNS-INF2 data is output to the camera body 11, a data input completion signal is output, a communication interrupt is permitted, and the process returns (S1051 to S1054). LE
NS-INF2 data includes lens version, PZ
It contains data identifying whether it is a lens, etc.
These data are fixed values and are stored in the lens ROM 61a.

【0169】『LENS‐AFPULSE処理』図48
に示したLENS‐AFPULSEのフローチャート
は、レンズAFパルスカウント値をカメラボディ11に
出力する処理である。すでに説明したように、LENS
‐AFPULSコマンドの通信前に必ず、SET‐AF
POINTコマンド通信が行われる。このSET‐AF
POINTコマンドの内容に応じてLENS‐AFPU
LSEコマンドでどのAFパルスをボディに送るかが決
まる。
[LENS-AFPULSE processing] FIG.
The flowchart of LENS-AFPULSE shown in (1) is processing for outputting the lens AF pulse count value to the camera body 11. As already explained, LENS
-Before sending the AFPULS command, be sure to
A POINT command communication is performed. This SET-AF
LENS-AFPU according to the contents of POINT command
The LSE command determines which AF pulse is sent to the body.

【0170】レンズCPU61は、LENS‐AFPU
LSEコマンドを入力すると、コマンド受信完了信号を
出力し、現在のAFパルスを要求されているときには、
現在のAFパルス数(AFPXL,H)をレジスタ(図
示せず)にストアする(S1061〜S1063)。像
倍率一定ズーム(ISZ)のパルスを要求されていると
きには、ISZのAFパルスデータ(ISZ‐AFP
L,H)をレジスタにストアする(S1062、S10
64、S1065)。いずれでもないときには、指定さ
れたアドレスのAFパルスデータ(AFP0L,H〜A
FP7L,H)をレジスタにストアする(S1062、
S1064、S1066)。そして、レジスタにセット
したAFパルスデータをカメラボディ11に出力し、デ
ータ送信完了信号を出力し、通信割込みを許可してリタ
ーンする(S1067〜S1069)。
The lens CPU 61 has a LENS-AFPU
When the LSE command is input, a command reception completion signal is output. When the current AF pulse is requested,
The current number of AF pulses (AFPXL, H) is stored in a register (not shown) (S1061 to S1063). When a pulse of the constant image magnification zoom (ISZ) is requested, the AF pulse data of the ISZ (ISZ-AFP
(L, H) is stored in the register (S1062, S10)
64, S1065). If it is neither of them, AF pulse data (AFP0L, H to A
FP7L, H) is stored in the register (S1062,
S1064, S1066). Then, the AF pulse data set in the register is output to the camera body 11, a data transmission completion signal is output, the communication interrupt is permitted, and the process returns (S1067 to S1069).

【0171】『FOCALLEN‐X処理』パワーズー
ムレンズ51の焦点距離データをカメラボディ11に出
力するFOCALLEN‐X処理について、図49に示
したフローチャートを参照して説明する。すでに説明し
たように、FOCALLEN‐Xコマンドの通信前に必
ずSET‐PZPOINTコマンドの通信が行われる。
このSET‐PZPOINTコマンドの内容に応じて、
FOCALLEN‐Xコマンドを受けたときにどの焦点
距離をボディに送るかが決まる。
[FOCALLEN-X Processing] The FOCALLEN-X processing for outputting the focal length data of the power zoom lens 51 to the camera body 11 will be described with reference to the flowchart shown in FIG. As described above, communication of the SET-PZPOINT command is always performed before communication of the FOCALLEN-X command.
According to the content of this SET-PZPOINT command,
When the FOCALLEN-X command is received, which focal length is sent to the body is determined.

【0172】レンズCPU61は、FOCALLEN‐
Xコマンドを受信すると、コマンド受信完了信号を出力
し、現在の焦点距離を要求されているときには、現在の
焦点距離(FCLXL,H)をレジスタにストアする
(S1071〜S1073)。像倍率一定ズーム(IS
Z)の焦点距離(ISZ‐FCLL,H)を要求されて
いるときには、像倍率一定ズームの焦点距離データをレ
ジスタにストアする(S1072、S1074、S10
75)。いずれでもないときには、指定されたアドレス
の焦点距離(FCL0L,H〜FCL7L,H)をレジ
スタにストアする(S1072、S1074、S107
6)。そして、レジスタにセットした焦点距離データを
カメラボディ11に出力し、データ送信完了信号を出力
し、通信割込みを許可してリターンする(S1077〜
S1079)。
The lens CPU 61 operates as a FOCALLEN-
When the X command is received, a command reception completion signal is output. When the current focal length is requested, the current focal length (FCLXL, H) is stored in a register (S1071 to S1073). Constant image magnification zoom (IS
When the focal length (ISZ-FCLL, H) of (Z) is requested, the focal length data of the constant image magnification zoom is stored in the register (S1072, S1074, S10).
75). If neither is the case, the focal length (FCL0L, H to FCL7L, H) of the designated address is stored in the register (S1072, S1074, S107).
6). Then, the focal length data set in the register is output to the camera body 11, a data transmission completion signal is output, the communication interrupt is permitted, and the process returns (S1077 to S1077).
S1079).

【0173】『IMAGE‐LSIZE処理』図50に
示したIMAGE‐LSIZEのフローチャートは、レ
ンズRAM61bの所定アドレスにメモリされている、
像倍率一定ズーム制御のための像倍率データをカメラボ
ディ11に送る処理である。
[IMAGE-LSIZE processing] The flowchart of IMAGE-LSIZE shown in FIG. 50 is stored in a predetermined address of the lens RAM 61b.
This is a process of sending image magnification data for constant image magnification zoom control to the camera body 11.

【0174】レンズCPU61は、IMAGE‐LSI
ZEコマンドを入力すると、コマンド受信完了信号をカ
メラボディ11に出力し、像倍率(イメージサイズ)に
関するデータ(ISZ‐IMGL,H)をカメラボディ
11に出力し、データ送信完了信号を出力し、通信割込
みを許可してからリターンする(S1081〜S108
5)。
The lens CPU 61 is an IMAGE-LSI
When a ZE command is input, a command reception completion signal is output to the camera body 11, data (ISZ-IMGL, H) relating to image magnification (image size) is output to the camera body 11, a data transmission completion signal is output, and communication is performed. Return after permitting the interrupt (S1081 to S108)
5).

【0175】『16byteデータ処理』図51に示し
た16byteデータフローチャートは、16バイトの
基本レンズデータのすべてをカメラボディ11に送る処
理である。なお、このコマンドは、図8の通信割込みル
ーチンのS221における処理の詳細である。コマンド
下位の内容によって各コマンドが実行される。なお、前
半8byteおよび後半8byte処理は、16byt
eデータ通信と同様なので詳細は略す。
[16-Byte Data Processing] The 16-byte data flowchart shown in FIG. 51 is a processing for sending all of the 16-byte basic lens data to the camera body 11. This command is the details of the processing in S221 of the communication interrupt routine of FIG. Each command is executed according to the contents below the command. Note that the first half 8 bytes and the second half 8 bytes are processed by 16 bytes.
Details are omitted because it is the same as e-data communication.

【0176】レンズCPU61は、16byteコマン
ドを入力すると、コマンド受信完了信号をカメラボディ
11に出力し、16バイトの所定データ(LC0〜LC
15)をカメラボディ11に出力し、データ送信完了信
号を出力し、通信割込みを許可してリターンする(S1
091〜S1095)。
When a 16-byte command is input, the lens CPU 61 outputs a command reception completion signal to the camera body 11, and outputs 16-byte predetermined data (LC0 to LC
15) is output to the camera body 11, a data transmission completion signal is output, communication interruption is permitted, and the process returns (S1).
091-S1095).

【0177】『ボディのPZ処理』次に、カメラボディ
11側のパワーズームに関する処理に関して、図52〜
図55に示したフローチャートを参照して説明する。こ
の処理は、カメラボディ11のメイン(ボディ)CPU
35のROM35aにメモリされたプログラムに基い
て、メインCPU35により実行される。
[PZ Processing of Body] Next, the processing relating to the power zoom on the camera body 11 side will be described with reference to FIGS.
This will be described with reference to the flowchart shown in FIG. This processing is performed by the main (body) CPU of the camera body 11.
The program is executed by the main CPU 35 based on a program stored in the ROM 35a.

【0178】このメインフロー処理には、メインスイッ
チがオン(電池を入れて電源が投入されたとき)など、
メインCPU35がリセットされたときに、最初に入
る。この処理に入ると、まずRAM35b、ポート設定
等のイニシャライズ行い、スイッチ入力、E2PROMデー
タ入力等により所定の情報を入力し、パワーズームイニ
シャライズ処理(PZINITサブルーチン)を実行す
る(S1101、S1103、S1105)。パワズー
ムイニシャライズとは、本実施例では、PZレンズにズ
ーミングレンズ位置検出のための初期化処理、フォーカ
シングレンズ位置検出のための初期化処理等を行なわせ
るための処理である。以上は最初に電源が投入されたと
き(図示しないメインスイッチがオンされたとき)の処
理で、電源が投入されている間は、次ステップ(S11
07)以降の処理を繰り返す。
In this main flow processing, for example, when the main switch is turned on (when the battery is turned on and the power is turned on),
When the main CPU 35 is reset, it enters first. In this process, first, initialization of the RAM 35b, port setting, etc. is performed, predetermined information is input by switch input, E2PROM data input, etc., and a power zoom initialization process (PZINIT subroutine) is executed (S1101, S1103, S1105). In this embodiment, the power zoom initialization is a process for causing the PZ lens to perform an initialization process for detecting a zooming lens position, an initialization process for detecting a focusing lens position, and the like. The above is the processing when the power is first turned on (when a main switch (not shown) is turned on). While the power is on, the next step (S11)
07) The subsequent processes are repeated.

【0179】S1107では、所定の情報を入力し、ロ
ックされていなければ(メインスイッチがオンしていれ
ば)撮影可能なので所定の処理に進み、ロック解除され
ていれば(メインスイッチがオフしていれば)、S11
81以降のロック処理に進む(S1109)。
In step S1107, predetermined information is input. If the information is not locked (the main switch is turned on), the photographing can be performed. Therefore, the process proceeds to a predetermined process. If the information is unlocked (the main switch is turned off). If), S11
The process proceeds to the lock process after 81 (S1109).

【0180】ロックが解除されているときには、そのロ
ック解除が最初の場合、あるいは撮影レンズが装着され
てから最初の処理であれば、フラグF_NEWCOM(撮影レン
ズとの間で旧通信が終了して新通信に入ったときに立つ
フラグ)をクリアし、PZイニシャライズフラグF_PZIN
ITをクリアしてパワーズームのイニシャライズを行う
(S1109〜S1115、S1121、S112
3)。
When the lock is released, if the lock is released for the first time or if it is the first processing after the mounting of the photographic lens, the flag F_NEWCOM (the old communication with the photographic lens is terminated and the new Clears the flag that is set when communication starts) and initializes the PZ initialization flag F_PZIN
Clear IT and initialize power zoom (S1109 to S1115, S1121, S112
3).

【0181】最初のロック解除でも撮影レンズが装着さ
れて最初の処理でもない場合には、最初のAFモードで
あるか、あるいは最初のPZモードであれば、AF、P
Zに関する諸動作、データ等をイニシャライズするため
に、これらがイニシャライズされたときに立つフラグF_
PZINITをクリアし、PZINITサブルーチンをコール
する(S1111、S1113、S1117〜S112
3)。
In the case where neither the first unlocking nor the photographing lens is attached and the first processing is performed, the AF mode is the first, or if the PZ mode is the first, the AF and P modes are set.
In order to initialize various operations, data, etc. relating to Z, a flag F_ which is set when these are initialized
Clear PZINIT and call the PZINIT subroutine (S1111, S1113, S1117 to S112
3).

【0182】次に、スイッチ情報を入力してから、パワ
ーズームに関する処理(PZLOOPサブルーチン)を
実行し、表示パネル45に所定の表示を行なってS11
33に進む(S1127〜S1131)。S1133の
測光スイッチSWS(AFスイッチ)チェックにおい
て、測光スイッチSWSがオフしていれば、測光IC、
CCD、E2PROM及び周辺制御回路の一部の電源Vdd
をオフする(S1133、S1135)。そして、AF
中フラグF_AFがクリアされていれば、STARTからの
処理へ戻り、AF中フラグF_AFが立っていればS116
5に進む(S1136)。
Next, after inputting the switch information, a process relating to the power zoom (PZLOOP subroutine) is executed, a predetermined display is performed on the display panel 45, and S11 is performed.
The process proceeds to S33 (S1127 to S1131). In the photometric switch SWS (AF switch) check in S1133, if the photometric switch SWS is off, the photometric IC,
Power supply Vdd for CCD, E2PROM and part of peripheral control circuit
Is turned off (S1133, S1135). And AF
If the middle flag F_AF is cleared, the process returns to START, and if the middle flag F_AF is set, S116 is executed.
Go to 5 (S1136).

【0183】AF中フラグF_AFが立っていれば、測光ス
イッチSWSがオフする前にAFおよびこれに関連する
像倍率一定ズーム処理が行われている場合があるので、
像倍率一定ズームストップフラグF_ISZSTOPをセット
し、像倍率一定ズームの停止及び停止チェック処理(I
PZENDCHECKサブルーチン)を実行する(S1
136、S1165、S1167)。
If the AF-in-progress flag F_AF is set, AF and the related image magnification constant zoom process may be performed before the photometry switch SWS is turned off.
The constant image magnification constant zoom stop flag F_ISZSTOP is set, and the constant image magnification constant zoom stop and stop check processing (I
Execute the PZENDCHECK subroutine (S1)
136, S1165, S1167).

【0184】次に合焦フラグF_INFOCUSをクリアし、A
Fモータ停止処理を行い、PZ‐BSTATEコマンド
通信により、パワーズームレンズ51にAFの駆動情報
等を送り、AF中フラグF_AFをクリアしてS1176に
進む(S1169、S1171、S1173、S117
5)。
Next, the focus flag F_INFOCUS is cleared,
An F motor stop process is performed, AF drive information and the like are sent to the power zoom lens 51 by PZ-BSTATE command communication, the AF flag F_AF is cleared, and the process proceeds to S1176 (S1169, S1171, S1173, S117).
5).

【0185】S1133のチェック時に測光スイッチS
WSがONしていれば、端子Vddをオン(定電圧を印
加)し、露出に関する測光および演算を行い、その結果
を表示する(S1137、S1138)。そして、AF
モ‐ドでなければS1165からの処理へ飛ぶ(S11
39、S1165)。AFモードのときには、AF中フ
ラグF_AFをセットし、測距処理、つまり積分を開始し、
積分データを取り込んで所定のプレディクタ演算を実行
する(S1139、S1140、S1143)。
At the time of checking in S1133, the photometric switch S
If WS is ON, the terminal Vdd is turned on (constant voltage is applied), photometry and calculation relating to exposure are performed, and the results are displayed (S1137, S1138). And AF
If not, the process jumps to the processing from S1165 (S11
39, S1165). In the AF mode, the AF flag F_AF is set, and the distance measurement process, that is, the integration is started.
A predetermined predictor calculation is executed by taking in the integral data (S1139, S1140, S1143).

【0186】そのプレディクタ演算結果が有効のときに
は、合焦かどうかを判断して、合焦のときには合焦処理
を行なう(S1145、S1149、S1151)。非
合焦のときには、パワーズームレンズでなければ(F_PZ
=0のとき)S1176に飛ぶが、パワーズームであれ
ば、AFの駆動情報等をPZ‐BSTATEコマンドで
パワーズームレンズ51に送信して、AFモータ39を
起動してからS1159の動体処理に進む(S114
5、S1149、S1153〜S1157)。
If the result of the predictor operation is valid, it is determined whether or not the subject is in focus. If the subject is in focus, a focusing process is performed (S1145, S1149, S1151). When out of focus, it is not a power zoom lens (F_PZ
(When = 0) The process jumps to step S1176, but if it is a power zoom, AF drive information and the like are transmitted to the power zoom lens 51 by a PZ-BSTATE command, the AF motor 39 is started, and the flow proceeds to the moving object process in S1159. (S114
5, S1149, S1153 to S1157).

【0187】プレディクタ演算結果が有効範囲内にない
とき、例えば被写体のコントラストが低過ぎたときなど
は、有効値を求めるサーチ処理を行なってからS115
3に進む(S1145、S1147)。サーチ処理と
は、AFモータ39を近距離側または遠距離側に駆動し
ながら積分を行なって、有効デフォーカス値を求める処
理である。
When the predictor calculation result is not within the effective range, for example, when the contrast of the subject is too low, the search processing for obtaining the effective value is performed and then S115
The process proceeds to S3 (S1145, S1147). The search process is a process of obtaining an effective defocus value by performing integration while driving the AF motor 39 to the short distance side or the long distance side.

【0188】S1157の合焦処理が終了したとき、あ
るいはS1157のAFモータ駆動が終了したときに
は、被写体が動体であれば動体追従AF処理を行なう
(S1159)。そして、像倍率一定ズームモードであ
れば像倍率一定ズーム処理を行なってからレリーズスイ
ッチSWRチェック処理(S1176)に進む(S11
59〜S1163)。
When the focusing process in S1157 is completed or when the AF motor driving in S1157 is completed, if the subject is a moving object, a moving object tracking AF process is performed (S1159). If the image magnification constant zoom mode is set, the image magnification constant zoom processing is performed, and then the flow proceeds to the release switch SWR check processing (S1176) (S11).
59-S1163).

【0189】S1176ではレリーズスイッチSWRが
オンされたかどうかのチェックを行ない、オフされてい
ればそのままスタートに戻り、オンされていればレリー
ズが許可されていることを条件にレリーズ処理を行なっ
てスタートに戻る(S1176、S1178、S117
9)。
At S1176, it is checked whether or not the release switch SWR is turned on. If the switch is turned off, the process returns to the start. If the switch is turned on, the release process is performed on condition that the release is permitted. Return (S1176, S1178, S117
9).

【0190】また、S1109のチェック時にロックさ
れているとき(メインスイッチオフのとき)にはS11
81に進む。このロックがこのルーチンにおいて最初の
ロックかつパワーズームのときには、プリセットズーム
セットモードでメモリされている焦点距離データをカメ
ラボディに退避するために退避処理(S1183)に進
むが、それ以外のときにはS1223へ飛ぶ(S118
1、S1183)。最初のロックでないとき、または撮
影レンズがパワーズームでないときには、撮影レンズへ
の定電圧供給(CONT)および電力供給(VBAT
T)をオフし、表示器45の表示をオフしてスタートに
戻る(S1181、S1183、S1223〜S122
7)。
If it is locked at the time of the check in S1109 (when the main switch is off), S11
Go to 81. When this lock is the first lock and power zoom in this routine, the process proceeds to the retreat process (S1183) to retreat the focal length data stored in the preset zoom set mode to the camera body, but otherwise proceeds to S1223. Fly (S118
1, S1183). When the first lock is not performed, or when the photographing lens is not the power zoom, the constant voltage supply (CONT) and the power supply (VBAT) to the photographing lens are performed.
T) is turned off, the display on the display 45 is turned off, and the process returns to the start (S1181, S1183, S1223 to S122).
7).

【0191】退避処理では、先ずレンズRAM61bに
メモリされている焦点距離をボディへ退避するため、S
ET‐PZPOINTコマンドにより退避するメモリ
(RAM61b)のアドレスを指定する。次に、FOC
ALLEN‐Xコマンドで指定されたアドレスにメモリ
されている焦点距離データをパワーズームレンズ51か
ら入力し、入力した焦点距離データを焦点距離データと
してボディRAM35bのアドレスFLMにメモリする
(S1184、S1185、S1187)。そして、レ
ンズRAM65bから像倍率を含むIMAG‐LSIZ
Eデータを入力して像倍率データをボディRAM35b
のアドレスISMにメモリし、さらにレンズRAM65
bからLENS‐INF2データを入力してS1195
に進む(S1181〜S1193)。本実施例では、退
避処理における通信プロセスを簡略化するために、像倍
率データをカメラ側に転送する構成としているが、像倍
率設定時の焦点距離データおよびレンズ繰出し量データ
の両方を転送する構成でもよい。
In the evacuation processing, first, in order to retreat the focal length stored in the lens RAM 61b to the body, S
The address of the memory (RAM 61b) to be saved is specified by the ET-PZPOINT command. Next, FOC
The focal length data stored at the address specified by the ALLEN-X command is input from the power zoom lens 51, and the input focal length data is stored as focal length data in the address FLM of the body RAM 35b (S1184, S1185, S1187). ). Then, the IMAG-LSIZ including the image magnification is read from the lens RAM 65b.
E data is input and the image magnification data is stored in the body RAM 35b.
At the address ISM of the lens RAM 65
Input LENS-INF2 data from b and S1195
The process proceeds to (S1181 to S1193). In this embodiment, in order to simplify the communication process in the evacuation process, the image magnification data is transmitted to the camera side. However, both the focal length data and the lens extension amount data at the time of setting the image magnification are transmitted. May be.

【0192】S1195、S1197では、LENS‐
INF2で入力したデータをもとにパワーズーム収納可
能か、パワーズームかどうかをチェックする。パワーズ
ーム収納不可、またはパワーズームでないときにはその
ままCONT1に進み、パワーズーム収納可でかつパワ
ーズーム(retPZ=1、PZD=1)のときには、ボディ側でバ
ッテリを要求してバッテリチェックを行ない、バッテリ
が正常のときには、パワーズームレンズ51にパワーズ
ーム収納処理を行なわせるコマンド(RETRACT‐
PZ)を送信し、制御ズーム中であることを識別するフ
ラグF_IPZONを立て、NGタイマーをスタートさせてC
ONT1処理に進む(S1195〜S1209)。ま
た、バッテリチェックにおいてバッテリ異常のときには
CONT1処理に進む(S1203)。なお、フラグre
tPZは、レンズ固有の情報で、ズームレンズがインナー
ズーム等でズーミングレンズの収納を必要としない場合
はクリアされていて、収納処理をしない。
In S1195 and S1197, LENS-
It is checked whether the power zoom can be stored or whether the power zoom is available, based on the data input at INF2. If the power zoom cannot be stored or the power zoom is not performed, the process proceeds directly to CONT1, and if the power zoom can be stored and the power zoom is set (retPZ = 1, PZD = 1), the body requests a battery and performs a battery check. When the command is normal, a command (RETRACT-
PZ), sets a flag F_IPZON for identifying that control zoom is being performed, starts an NG timer,
The process proceeds to the ONT1 process (S1195 to S1209). If the battery is abnormal in the battery check, the process proceeds to the CONT1 process (S1203). Note that the flag re
tPZ is information specific to the lens, and is cleared when the zoom lens does not require storage of the zooming lens due to inner zoom or the like, and does not perform storage processing.

【0193】CONT1処理では、パワーズームレンズ
51がAF収納可能かAFモードかをLENS‐INF
2により入力したAF収納フラグRETAF等によりチェッ
クし、AF収納可能かつAFモードであれば、AFモー
タ39を駆動してフォーカシングレンズ53Fを収納位
置(ファー端)に戻す(S1211〜S1215)。そ
して、制御パワーズーム中であれば、制御パワーズーム
が終了するのをチェックしながら待ち、終了したら、撮
影レンズへの定電圧供給および電力供給をオフし、表示
器45の表示をオフしてスタートに戻る(S1217〜
S1227)。AF収納不可、あるいはAFモードでな
ければレンズ収納処理をスキップする。なお、フラグRE
TAFはレンズ固有の情報で、ズームレンズがインナーフ
ォーカス等でフォーカシングレンズの収納を必要としな
い場合はクリアされていて、収納処理をしない。
In the CONT1 processing, LENS-INF determines whether the power zoom lens 51 is capable of accommodating AF or in AF mode.
The AF storage flag is checked by the AF storage flag RETAF or the like input in step 2, and if the AF storage is possible and the AF mode, the AF motor 39 is driven to return the focusing lens 53F to the storage position (far end) (S1211 to S1215). If the control power zoom is being performed, the control power zoom is waited while checking the end. When the control power zoom is finished, the constant voltage supply and the power supply to the photographing lens are turned off, and the display on the display 45 is turned off to start. (S1217 ~
S1227). If the AF storage is not possible or the AF mode is not set, the lens storage processing is skipped. The flag RE
TAF is lens-specific information, and is cleared when the zoom lens does not require storage of a focusing lens due to inner focus or the like, and does not perform storage processing.

【0194】『PZ、AF‐INIT処理』ボディ11
側で制御する、パワーズームレンズ51の初期化(S1
105)処理について、図56〜図58に示したPZI
NITサブルーチンを参照して説明する。この処理は、
パワーズームレンズ51にズーミングレンズ群53Zの
初期化とフォーカシングレンズ53F群の初期化を実行
させ、メインスイッチのOFFでボディ11に退避してい
た情報をパワーズームレンズ51に戻す処理である。す
なわち、前者は、ズーミングレンズの位置検出及びAF
レンズの位置検出のための処理で、後者はメインスイッ
チオフ時(ロック時)にボディRAM35bに退避して
いたISZの像倍率及びプリセットズーム用の焦点距離
を再びパワーズームレンズ51(レンズRAM65b)
に戻してメモりさせる処理である。
[PZ, AF-INIT Processing] Body 11
Of the power zoom lens 51 (S1)
105) Regarding the processing, the PZI shown in FIGS.
This will be described with reference to the NIT subroutine. This process
This is a process of causing the power zoom lens 51 to execute initialization of the zooming lens group 53Z and initialization of the focusing lens 53F, and returns information saved in the body 11 by turning off the main switch to the power zoom lens 51. That is, in the former, the position detection of the zooming lens and the AF
In the process for detecting the position of the lens, the latter uses the power zoom lens 51 (the lens RAM 65b) again to store the ISZ image magnification and the focal length for the preset zoom, which have been retracted to the body RAM 35b when the main switch is turned off (when locked).
This is a process for returning to and making a note.

【0195】この処理に初めて入るときには、旧通信終
了を表わす新通信フラグF_NEWCOMがクリアされているの
で、レンズROMとの間でカメラボディ11のクロック
に同期してデータ通信を行う旧通信を行ない、その後レ
ンズCPU61との間で、レンズCPU61のクロック
に同期してデータ通信を行う新通信に切り替える(S1
301、S1303)。
When this process is entered for the first time, the new communication flag F_NEWCOM indicating the end of the old communication is cleared, so that the old communication for performing data communication with the lens ROM in synchronization with the clock of the camera body 11 is performed. Thereafter, the communication with the lens CPU 61 is switched to new communication for performing data communication in synchronization with the clock of the lens CPU 61 (S1).
301, S1303).

【0196】装着された撮影レンズがレンズCPUを搭
載しているKzレンズ(本実施例のパワーズームレンズ
51を含む)でないときには新通信が不可能なのでリタ
ーンし、Kzレンズであれば、撮影レンズから新通信L
ENS‐INF2(14)によりデータを入力してパワ
ーズームレンズ(PZレンズ)かどうかをチェックする
(S1305、S1309)。PZレンズでなければ、
PZレンズであることを識別するフラグF_PZをクリアし
てS1323に進む(S1309、S1311)。
When the mounted photographing lens is not a Kz lens (including the power zoom lens 51 of the present embodiment) equipped with a lens CPU, a new communication is not possible and the process returns. New communication L
Data is input by the ENS-INF2 (14), and it is checked whether it is a power zoom lens (PZ lens) (S1305, S1309). If not a PZ lens,
The flag F_PZ for identifying a PZ lens is cleared, and the process proceeds to S1323 (S1309, S1311).

【0197】PZレンズであればフラグF_PZを立て、リ
セットからきた(電池が入れ替えられた)とき、または
初めてレンズが装着されたときには、初期値を像倍率
(イメージサイズ)用メモリISZにメモリする(S1
313、S1315、S1319)。他の場合には、S
TORE‐PZF(28)通信により、S1185にお
いてボディRAM35bのアドレスFMLに退避させて
おいたプリセットズーム等のための焦点距離の情報を、
レンズCPU61のレンズRAM61bの所定のアドレ
ス(FCL0L,H〜FCL7L,H)にメモリさせる
(S1315、S1317)。そして、STORE‐I
S(29)通信を行ない、ボディCPUのRAM(35
b)に退避させておいた像倍率か、S1319でセット
した初期値の像倍率をレンズCPUのRAM(61b)
の所定のアドレス(ISZ‐IMGL,H)へメモリさ
せ、新通信フラグF_NEWCOMをセットする(S1321、
S1323)。
If the lens is a PZ lens, the flag F_PZ is set, and the initial value is stored in the image magnification (image size) memory ISZ when the lens comes from reset (when the battery is replaced) or when the lens is attached for the first time ( S1
313, S1315, S1319). Otherwise, S
By the TORE-PZF (28) communication, the information of the focal length for the preset zoom etc. saved in the address FML of the body RAM 35b in S1185 is
The memory is stored at a predetermined address (FCL0L, H to FCL7L, H) in the lens RAM 61b of the lens CPU 61 (S1315, S1317). And STORE-I
S (29) Communication is performed, and the RAM (35
The image magnification saved in b) or the image magnification of the initial value set in S1319 is stored in the RAM (61b) of the lens CPU.
At a predetermined address (ISZ-IMGL, H), and set a new communication flag F_NEWCOM (S1321,
S1323).

【0198】次に、POFF‐STATE(11)通信
によりレンズCPU61からデータを入力する(S13
25)。パワーズームのイニシャライズが完了したこと
を示すフラグF_PZINITがセットされているか、パワーズ
ームであることを示すフラグF_PZがクリアされていれ
ば、スタンバイ処理を行うS1361に飛ぶ(S132
7、S1329)。
Next, data is input from the lens CPU 61 through POFF-STATE (11) communication (S13).
25). If the flag F_PZINIT indicating that the power zoom has been initialized has been set or the flag F_PZ indicating that the power zoom has been performed has been cleared, the process jumps to S1361 for performing the standby process (S132).
7, S1329).

【0199】フラグF_PZINITがクリアされ、かつフラグ
F_PZが立っていれば、パワーズームでないとき(フラグ
F_PZD(POFF‐STATEデータのbit5)がク
リアされているとき)、すなわち手動ズームのときに
は、そのままAF初期化(AFINIT)処理に進む
(S1325〜S1331)。パワーズームモードのと
きには、PZの電源オンをボディ自身が要求するフラグ
F_BBATREQを立て、BATONOFFサブルーチンにお
いてPZの電源をONしてパワーズームレンズ51に電
力を供給し、さらに正常に電力が供給されたかをチェッ
クする(S1131〜S1137)。バッテリの電力が
正常に出力されていなければ(フラグF_BATNG=1のと
き)、そのままAFINIT処理に進み、正常(F_BATN
G=0)であればPZ‐INITPOSコマンド(32)
を出力して、撮影レンズにPZの初期化動作を行わせ、
PZのイニシャライズが完了したことを示すフラグF_PZ
INITを立ててAFINIT処理に進む(S1337〜S
1341)。
When the flag F_PZINIT is cleared and the flag
If F_PZ is standing, it is not power zoom (flag
When F_PZD (bit 5 of POFF-STATE data) is cleared), that is, at the time of manual zooming, the process directly proceeds to AF initialization (AFINIT) processing (S1325 to S1331). In power zoom mode, a flag that requests the body to turn on the PZ
F_BBATREQ is set, the power of the PZ is turned on in the BATONOFF subroutine to supply power to the power zoom lens 51, and it is checked whether the power has been supplied normally (S1131 to S1137). If the battery power is not output normally (when the flag F_BATNG = 1), the process directly proceeds to the AFINIT processing, and the normal (F_BATN)
If G = 0), PZ-INITPOS command (32)
To make the taking lens perform an initialization operation of the PZ,
Flag F_PZ indicating that PZ initialization has been completed
INIT is set and the process proceeds to AFINIT processing (S1337 to S1337).
1341).

【0200】『AFINIT処理』図58に示したAF
INIT処理フローチャートは、ボディ11側の制御に
より、AFに関する初期化を行う処理である。なお、本
実施例ではPZの初期化後にAFの初期化を行なってい
るが、逆でもよい。
"AFINIT processing" The AF shown in FIG.
The INIT processing flowchart is processing for performing initialization related to AF under the control of the body 11 side. In this embodiment, AF initialization is performed after PZ initialization, but the reverse may be performed.

【0201】AFINIT処理では、撮影レンズがAF
モードであることを条件に、フォーカシングレンズ53
Fを収納位置、つまり鏡筒長が最も短くなる位置に移動
させる(S1341、S1343)。なお、本実施例に
おいて鏡筒長が最も短くなる位置は、無限遠位置であ
る。そして、AF‐INITPOS通信により初期化コ
マンドを入力し、フラグF_AFINITを立てる(S134
5、S1347)。また、この初期化において、レンズ
CPU61は、AFパルスカウント用のレンズRAM6
1bの初期化等を行なう。
In the AFINIT processing, the taking lens is set to AF
Focusing lens 53
F is moved to the storage position, that is, the position where the lens barrel length is the shortest (S1341, S1343). In this embodiment, the position where the lens barrel length is the shortest is the position at infinity. Then, an initialization command is input through AF-INITPOS communication, and a flag F_AFINIT is set (S134).
5, S1347). In this initialization, the lens CPU 61 sets a lens RAM 6 for AF pulse counting.
1b is initialized.

【0202】次に、手動パワーズーム以外のパワーズー
ムであることを示すフラグF_BBATREQが立っていれば、
パワーズームの初期化が終了したかどうかをIPZEN
DCHECKサブルーチンでチェックする(S1349
〜S1353)。パワーズームの初期化が終了したら、
パワーズームが初期化されたことを識別するフラグF_PZ
INITを立て、ボディ側のバッテリ要求フラグF_BBATREQ
を降ろし、BATONOFFサブルーチンにてバッテリ
の電力供給停止及び停止チェックを行う(S1355〜
S1359)。
Next, if a flag F_BBATREQ indicating a power zoom other than the manual power zoom is set,
IPZEN determines whether initialization of power zoom is complete
Check in DCCHECK subroutine (S1349)
To S1353). After the power zoom has been initialized,
Flag F_PZ that identifies that power zoom has been initialized
INIT is set and the body side battery request flag F_BBATREQ
And the battery power supply is stopped and a stop check is performed in the BATONOFF subroutine (S1355
S1359).

【0203】そして、ボディ11の測光IC17、CC
D21、E2PROM43等の電源がオン(Vdd ON)
していればそのままリターンし、オフしていればSTA
NDBYコマンドを送信してパワーズームレンズ51の
レンズCPU61をスタンバイ(低消費電力モードへ移
行)させてからリターンする(S1361、S136
3)。
The photometric IC 17 of the body 11 and the CC
Power supply of D21, E2PROM43, etc. is on (Vdd ON)
Return if it is, STA if off
An NDBY command is transmitted to set the lens CPU 61 of the power zoom lens 51 in a standby state (transition to a low power consumption mode), and then returns (S1361 and S136).
3).

【0204】『BATONOFF処理』図59に示した
BATONOFFフローチャートは、電力要求(バッテ
リ要求)がボディまたはレンズから出されたときに、ズ
ームモータ65用の電力をカメラボディ11からパワー
ズームレンズ51に対して供給し、供給が正常になされ
ているかどうかをどうかをチェックする、メインCPU
35によるチェック処理である。本実施例では、バッテ
リ要求は、カメラボディ11自身が出す場合と、パワー
ズームレンズ51が出す場合とがある。
"BATONOFF Processing" The BATONOFF flowchart shown in FIG. 59 is based on the assumption that the power for the zoom motor 65 is supplied from the camera body 11 to the power zoom lens 51 when a power request (battery request) is issued from the body or lens. Main CPU to check if supply is normal
35 is a check process. In this embodiment, the battery request may be issued by the camera body 11 itself or by the power zoom lens 51.

【0205】BATONOFF処理では、先ず、パワー
ズームレンズ51からもカメラボディ11からもバッテ
リ要求がない場合には、すでに端子VBATTへの電力
供給をしていないとき(フラグF_BATONがクリアされて
いるとき)にはそのままリターンするが(S1401、
S1403、S1405)、端子VBATTに電力が供
給されているときには、パワーズームレンズ51(端子
VBATT)への電力供給をオフし、フラグF_BATONを
クリアし、BODY‐STATE0コマンドを出力して
電力供給がオフしたことを示すデータ(bit5のVB
ATT=1)をレンズに送ってからリターンする(S1
421〜S1425)。
In the BATONOFF process, first, when there is no battery request from the power zoom lens 51 or the camera body 11, power is not already supplied to the terminal VBATT (when the flag F_BATON is cleared). Is returned as it is (S1401,
S1403, S1405) When power is supplied to the terminal VBATT, the power supply to the power zoom lens 51 (terminal VBATT) is turned off, the flag F_BATON is cleared, and the BODY-STATE0 command is output to turn off the power supply. Data (VB of bit5)
(ATT = 1) to the lens and return (S1).
421 to S1425).

【0206】パワーズームレンズ51またはカメラボデ
ィ11からバッテリ要求があったとき(POFF‐ST
ATEデータのbit1のLBATREQがセットされ
ているとき、またはBBATREQがセットされている
とき)には、電力がまだ供給されていなければパワーズ
ームレンズ51に電力供給を行ない、ボディ状態に関す
るBODY‐STATE0データを送信して電力供給中
であることを示すデータ(bit5のBBATをセッ
ト)をレンズに送り、電力供給中であることを識別する
フラグF_BATONを立ててからPOFF‐STATEデー
タを受信するが、電力がすでに供給されているときには
そのままPOFF‐STATEデータを受信する(S1
407〜S1415)。
When there is a battery request from the power zoom lens 51 or the camera body 11 (POFF-ST
When LBATREQ of bit 1 of ATE data is set or BBATREQ is set), power is supplied to the power zoom lens 51 if power is not yet supplied, and BODY-STATE0 data relating to the body state Is transmitted to the lens to indicate that power is being supplied (BBAT of bit 5 is set), a flag F_BATON for identifying that power is being supplied is set, and then POFF-STATE data is received. Is already supplied, the POFF-STATE data is received as it is (S1
407-S1415).

【0207】そして、バッテリ供給が正常(POFF‐
STATEのbit0のフラグF_PZWAIT=1)であれば
バッテリ異常であることを識別するフラグF_BATNGをク
リアしてリターンする(S1417、S1418)。し
かし、電力供給が異常のとき、例えばGNDラインとシ
ョートしているときなどには、バッテリ異常であること
を識別するフラグF_BATNGを立てて、パワーズームレン
ズ51への電力供給を停止し、フラグF_BATONをクリア
し、BODY‐STATE0コマンドを出力して電力供
給停止データをパワーズームレンズ51に送ってリター
ンする(S1419〜S1425)。
If the battery supply is normal (POFF-
If the flag F_PZWAIT of bit0 of STATE = 1), the flag F_BATNG for identifying that the battery is abnormal is cleared and the process returns (S1417, S1418). However, when the power supply is abnormal, for example, when the power supply is short-circuited to the GND line, a flag F_BATNG for identifying that the battery is abnormal is set, the power supply to the power zoom lens 51 is stopped, and the flag F_BATON Is cleared, the BODY-STATE0 command is output, the power supply stop data is sent to the power zoom lens 51, and the process returns (S1419 to S1425).

【0208】『PZ‐LOOP処理』図60、図61お
よび図62に示したPZ‐LOOP処理は、メインCP
U35が行なうパワーズームに関する処理であって、間
欠的に実行される。この処理では、パワーズーム関連、
プリセットされた焦点距離までパワーズームするプリセ
ットズーム、焦点距離のプリセット、像倍率一定ズーム
制御等を行なう。本実施例では、プリセットズームセッ
ト(PSZS)モードのときは、SLスイッチ(ズーム
モード切替えスイッチ77)がオンされた時に現在の焦
点距離をメモリし、プリセットズーム(PSZ)モード
のときは、SLスイッチがオンされた時にプリセットさ
れた焦点距離までパワーズームを行なう。そして、SL
スイッチがオフされた時、またはズーム操作リングが中
立位置に戻った時(PZスピードスイッチ75がオフし
た時)にその時の像倍率をメモリする。
[PZ-LOOP Processing] The PZ-LOOP processing shown in FIGS.
This is a process related to the power zoom performed by U35, and is executed intermittently. In this process, power zoom related,
Preset zoom for power zooming to a preset focal length, preset focal length, constant image magnification zoom control, and the like are performed. In the present embodiment, in the preset zoom set (PSZS) mode, the current focal length is stored when the SL switch (zoom mode switch 77) is turned on, and in the preset zoom (PSZ) mode, the SL switch is used. When is turned on, the power zoom is performed up to the preset focal length. And SL
When the switch is turned off or when the zoom operation ring returns to the neutral position (when the PZ speed switch 75 is turned off), the image magnification at that time is stored.

【0209】この処理に入ると、新通信およびパワーズ
ーム可能であることを条件にS1505に進んで各処理
を実行するが、新通信不可のときにはそのままリターン
する。また、新通信可でパワーズーム不可のときには、
BODY‐STATE0通信を行なう(S1501、S
1503、S1504‐1)。このBODY‐STAT
E0通信では、パワーズームのモ‐ド情報等のボディ側
の情報をレンズに送り、Vddがオンしているときは、
POFF‐STATE通信でレンズ側のスイッチ状態等
のレンズ情報を入力する(S1504‐2、S1504
‐3)。Vddオフのときは、POFFS‐WSLEE
P通信でレンズの情報を入力し、かつ、レンズCPU6
1をスタンバイモ‐ド(低消費電力モ‐ド)に移行させ
る(S1504‐2、S1504‐4)。このPOFF
S‐WSLEEPコマンドによりレンズCPU61は、
次の通信コマンドを受信するまで低消費電力モ‐ドを維
持したままとなる。
In this process, the process proceeds to S1505 on the condition that new communication and power zoom are possible, and executes each process. If new communication is not possible, the process returns as it is. Also, when new communication is possible and power zoom is not possible,
Perform BODY-STATE 0 communication (S1501, S
1503, S1504-1). This BODY-STAT
In E0 communication, body side information such as power zoom mode information is sent to the lens, and when Vdd is on,
The lens information such as the switch state of the lens is input by POFF-STATE communication (S1504-2, S1504)
-3). When Vdd is off, POFFS-WSLEE
The lens information is input by P communication and the lens CPU 6
1 is shifted to the standby mode (low power consumption mode) (S1504-2, S1504-4). This POFF
With the S-WSLEEP command, the lens CPU 61
The low power consumption mode is maintained until the next communication command is received.

【0210】S1505では、パワーズームレンズ51
からPOFF‐STATEでレンズのスイッチ等のデー
タを入力して、そのデータに応じてPZモードの切換え
および表示修正を行なって、電力供給あるいは停止を行
なう(S1503〜S1509)。そして、入力したデ
ータに基づいて以下の処理を行なう(S1509〜S1
511)。
In S1505, the power zoom lens 51
, Data of a lens switch or the like is input in POFF-STATE, the PZ mode is switched and the display is corrected in accordance with the data, and power is supplied or stopped (S1503 to S1509). Then, the following processing is performed based on the input data (S1509 to S1).
511).

【0211】プリセットズーム(PSZ)モードであれ
ば、像倍率一定ズームの動作を禁止し(フラグF_ISZSTO
Pをセット)、IPZENDCHECKサブルーチンに
て像倍率一定ズームを終了させる(S1513〜S15
17)。プリセットズーム駆動開始(SLスイッチがオ
ン)でなければリターンする(S1519)。プリセッ
トズーム駆動開始であり、かつ現在プリセットズーム駆
動中(F_IPZON=1)であれば、IPZENDチェック
サブルーチンにてプリセットズームが終了したかどうか
のチェック処理を実行し、終了したらリターンする(S
1519、S1521、S1555)。
In the preset zoom (PSZ) mode, the operation of the constant image magnification zoom is prohibited (flag F_ISZSTO).
P is set), and the constant image magnification zoom is ended in the IPZENDCHECK subroutine (S1513 to S15).
17). If the preset zoom drive is not started (the SL switch is not turned on), the process returns (S1519). If the preset zoom drive is started and the preset zoom drive is currently being performed (F_IPZON = 1), a check process is performed in the IPZEND check subroutine as to whether or not the preset zoom has been completed.
1519, S1521, S1555).

【0212】プリセットズーム駆動中でなければカメラ
ボディ11自体で電力供給を要求し、電力供給を行なう
(S1521〜S1525)。そして、バッテリが異常
であればそのままリターンし、正常であれば、MOVE
‐PZNDコマンドを送信して指定したアドレスにメモ
リされている焦点距離位置へパワーズームさせ、プリセ
ットズーム中であることを識別するフラグF_BBATREQを
立ててリターンする(S1527〜S1531)。
If the preset zoom drive is not being performed, the camera body 11 itself requests power supply and supplies power (S1521 to S1525). If the battery is abnormal, the process returns as it is.
-Send a PZND command to perform power zoom to the focal length position stored in the specified address, set a flag F_BBATREQ for identifying that preset zoom is being performed, and return (S1527 to S1531).

【0213】プリセットズームセット(PSZS)モー
ドのときには、プリセットズームおよび像倍率一定制御
の駆動を停止させるフラグ(F_ISZSTOP、F_IPZSTOP)を
立てて、IPZENDCHECKサブルーチンにてプリ
セットズームあるいは像倍率一定ズームの駆動を停止さ
せる(S1513、S1541、S1543、S154
5)。
In the preset zoom set (PSZS) mode, flags (F_ISZSTOP, F_IPZSTOP) for stopping the driving of the preset zoom and the constant image magnification control are set, and the driving of the preset zoom or the constant image magnification zoom is stopped in the IPZENDCHECK subroutine. (S1513, S1541, S1543, S154
5).

【0214】そして、SLスイッチがオンされた時に
は、レンズCPU61に現在の焦点距離データを指定さ
れたレンズRAM61bのアドレスにメモリさせるため
に、STORE‐PZPコマンドをパワーズームレンズ
51に送信し、プリセットズームセット(PSZS)モ
ードをプリセットズーム(PSZ)モードに変更すると
ともに、BODYSTATE0コマンドにおけるビット
0〜2の値を変更して、BODYSTATE0コマンド
を出力してプリセットズームモードに変わったこと等を
パワーズームレンズ51に知らせてからリターンする
(S1547〜S1553)。SLスイッチがオフのま
まのときには、何もせずにリターンする(S154
7)。
When the SL switch is turned on, a STORE-PZP command is transmitted to the power zoom lens 51 to cause the lens CPU 61 to store the current focal length data at the specified address of the lens RAM 61b, and the preset zoom is performed. The power zoom lens 51 changes the set (PSZS) mode to the preset zoom (PSZ) mode, changes the values of bits 0 to 2 in the BODYSTATE0 command, outputs the BODYSTATE0 command, and changes to the preset zoom mode. And returns (S1547 to S1553). If the SL switch remains off, the process returns without doing anything (S154).
7).

【0215】像倍率一定ズームモードのときには、プリ
セットズームを停止させ、プリセットズームが終了した
ことをチェックする(S1541、S1561、S15
63、S1565)。ここで、SLスイッチがオンされ
ているときには、像倍率一定ズームの開始を禁止するフ
ラグF_PZWAITを立ててリターンする(S1567、S1
577)。SLスイッチがオフのときには、LENS‐
INF1データを入力し、ズームスイッチ(ズームスピ
ード切り替えスイッチ75)がオンされていれば、像倍
率一定ズームの開始を禁止するフラグF_PZWAITを立てて
リターンする(S1567、S1577)。ズームスピ
ード切り替えスイッチ75が中立点にあるとき(オフの
とき)にはフラグF_PZWAITをクリアし、合焦しているか
どうかをチェックし、非合焦であればそのままリターン
する(S1571〜S1575)。合焦しているときに
は、SLスイッチがオフされた時、または、ズームスピ
ード切り替えスイッチ75が中立点に戻された時(オフ
時)に、その時の像倍率をメモリさせるISZ‐MEM
ORYコマンドを撮影レンズに出力してリターンし、上
記いずれの時でもなければそのままリターンする(S1
579〜S1583)。
In the constant image magnification zoom mode, the preset zoom is stopped and it is checked that the preset zoom has been completed (S1541, S1561, S15).
63, S1565). Here, when the SL switch is on, a flag F_PZWAIT for prohibiting the start of constant image magnification zoom is set, and the process returns (S1567, S1).
577). When the SL switch is off, LENS-
If the INF1 data is input and the zoom switch (zoom speed switch 75) is turned on, a flag F_PZWAIT for prohibiting the start of constant image magnification zoom is set and the process returns (S1567, S1577). When the zoom speed changeover switch 75 is at the neutral point (when it is off), the flag F_PZWAIT is cleared, it is checked whether or not the camera is in focus, and if out of focus, the process returns (S1571-S1575). When in focus, when the SL switch is turned off, or when the zoom speed changeover switch 75 is returned to the neutral point (when it is turned off), the ISZ-MEM that stores the image magnification at that time is stored.
An ORY command is output to the photographing lens and the process returns.
579-S1583).

【0216】以上のいずれのモードでもないときには、
プリセットズームおよび像倍率一定ズームを停止させ、
プリセットズームが終了したことをチェックしてリター
ンする(S1513、S1541、S1561、S15
85〜S1587)。
When the mode is not any of the above modes,
Stop the preset zoom and constant image magnification zoom,
It is checked that the preset zoom is completed, and the process returns (S1513, S1541, S1561, S15
85-S1587).

【0217】『IPZENDCHEK処理』図63に示
したIPZendchekフローチャートは、プリセッ
トパワーズーム及び像倍率一定ズーム処理を終了させ、
またはその終了をチェックする、ボディ11側の処理で
ある。
[IPZENDCHEK Processing] The IPZendcheck flowchart shown in FIG. 63 terminates the preset power zoom and the constant image magnification zoom processing.
Alternatively, the processing on the body 11 side for checking the end is performed.

【0218】このIPZENDCHEKサブルーチンに
入ると、像倍率一定ズームストップかつ像倍率一定ズー
ム動作中のとき(F_ISZSTOP=1、F_ISZON=1)、また
はプリセットズームストップかつプリセットズーム動作
中のとき(F_IPZSTOP=1、F_IPZON=1)には、フラグ
F_NGTIMERおよびフラグF_IPZENDをクリアし、パワーズ
ームを停止させるIPZ‐STOPコマンドを送信し、
各フラグF_ISZON、F_IPZON、BBATreqをクリアし、バッ
テリ供給停止及びチェックを行なってからリターンする
(S1601〜S1607、S1623〜S163
1)。
In the IPZENDCHEK subroutine, when the image magnification constant zoom stop and the image magnification constant zoom operation are being performed (F_ISZSTOP = 1, F_ISZON = 1), or when the preset zoom is stopped and the preset zoom operation is being performed (F_IPZSTOP = 1, F_IPZON = 1) has a flag
Clear the F_NGTIMER and the flag F_IPZEND, send the IPZ-STOP command to stop the power zoom,
The flags F_ISZON, F_IPZON, and BBATreq are cleared, the battery supply is stopped, a check is performed, and the process returns (S1601 to S1607, S1623 to S163).
1).

【0219】上記像倍率一定ズーム中でもなく、プリセ
ットズーム中でもないときには、PZ‐LSTATEデ
ータを入力し、パワーズームレンズ51がプリセットズ
ーム中あるいは像倍率一定ズーム中であるかどうかをチ
ェックし、ズーム中でなければ(IPZB=0のと
き)、プリセットズームあるいは像倍率一定ズーム終了
フラグF_IPZSTOP、F_ISZSTOPを立ててリターンする(S
1601〜S1617)。プリセットズーム中あるいは
像倍率一定ズーム中であれば(IPZB=1のとき)、
異常検出タイマー(NGタイマー)がタイムアップして
いなければリターンする(S1619)。
When the image magnification is not in the constant zoom mode or in the preset zoom mode, PZ-LSTATE data is input, and it is checked whether the power zoom lens 51 is in the preset zoom mode or in the constant image magnification mode. If not (when IPZB = 0), preset zoom or constant image magnification zoom end flags F_IPZSTOP and F_ISZSTOP are set and the process returns (S
1601 to S1617). During the preset zoom or during the constant image magnification zoom (when IPZB = 1),
If the abnormality detection timer (NG timer) has not expired, the process returns (S1619).

【0220】像倍率一定ズームが終了する前にNG(異
常検出)タイマーがタイムアップしたときには何らかの
異常があったと考えられるので、フラグF_TIMEUPをセッ
トし(F_TIMEUP=1)、フラグF_NGTIMERおよびフラグF
_IPZENDをクリア(F_NGTIMER=0、F_IPZEND=0)する
(S1622‐1、S1622‐2)。そして、パワー
ズーム停止処理を行なう(S1623〜S1631)。
NGタイマーがタイムアップしていないときには、その
ままリターンする
If the NG (abnormality detection) timer times out before the fixed image magnification zoom is completed, it is considered that some abnormality has occurred. Therefore, the flag F_TIMEUP is set (F_TIMEUP = 1), and the flag F_NGTIMER and the flag F_TIMEUP are set.
_IPZEND is cleared (F_NGTIMER = 0, F_IPZEND = 0) (S1622-1, S1622-2). Then, power zoom stop processing is performed (S1623 to S1631).
If the NG timer has not expired, return immediately.

【0221】『ISZ‐DRIVE1処理』図64ない
し図67に示したフローチャート(ISZ‐DRIVE
1)は、パワーズームレンズ51(レンズCPU61)
に像倍率一定ズーム処理を行なわせるボディCPU31
の処理である。
"ISZ-DRIVE1 Processing" The flowchart (ISZ-DRIVE1) shown in FIGS.
1) is a power zoom lens 51 (lens CPU 61)
CPU 31 to perform constant image magnification zoom processing
This is the process.

【0222】フォーカシングレンズ53Fが無限遠位置
にあれば、AF‐INITPOSコマンドでAF初期位
置に関するデータをパワーズームレズ51に送信し(S
1701、S1703)、至近距離位置にあればPZ‐
BSTATEコマンドでカメラボディ11側のパワーズ
ームモードに関するPZボディステートデータをパワー
ズームレンズ51に送信する(S1701、S170
5、S1707)。
If the focusing lens 53F is at the infinity position, data relating to the AF initial position is transmitted to the power zoom lens 51 by the AF-INITPOS command (S
1701, S1703), PZ-
The PZ body state data relating to the power zoom mode on the camera body 11 side is transmitted to the power zoom lens 51 by the BSTATE command (S1701, S170).
5, S1707).

【0223】パワーズームウエイト(F_PZWAIT=1)の
ときまたはプレディクタ演算結果が無効のときにはなに
もせずにリターンする(S1709、S1711)。パ
ワーズームウエイトでなく、かつプレディクタ演算結果
が有効のときには、合焦状態にあるかどうかをチェック
する(S1709〜S1713)。合焦状態にあるとき
には、すでにNGタイマーが起動されているかどうか
(F_NGTIMER=1)をチェックし、起動されていなけれ
ばNGタイマーをスタートさせてフラグF_NGTIMERをセ
ットしてS1721に進む(S1713、S1715、
S1719、S1720)。NGタイマーがすでに起動
されていれば、以上の処理をスキップしてS1721に
進む。
When the power zoom weight (F_PZWAIT = 1) or the predictor calculation result is invalid, the process returns without doing anything (S1709, S1711). If the power zoom weight is not set and the predictor calculation result is valid, it is checked whether the object is in focus (S1709 to S1713). When the camera is in focus, it is checked whether the NG timer has already been started (F_NGTIMER = 1). If not, the NG timer is started, the flag F_NGTIMER is set, and the process proceeds to S1721 (S1713, S1715,
S1719, S1720). If the NG timer has already been started, the above processing is skipped and the process proceeds to S1721.

【0224】次に、S1721の像倍率一定ズーム終了
チェック(IPZEND‐CHECK)処理終了後、像
倍率一定ズーム駆動中であれば、終了のチェックを行う
(S1723、S1725)。像倍率一定ズーム駆動中
(F_ISZON=1)かつ像倍率一定ズームが終了していれ
ば(F_IPZEND=1)、フラグF_IPZENDをクリアし、フラ
グF_ISZSTOPを立てて、IPZEND‐CHECKサブ
ルーチンにて、像倍率一定ズームの停止処理を行ってか
らリターンする(S1725〜S1729)。
Next, after the end of the constant image magnification zoom check (IPZEND-CHECK) process in S1721, if the image magnification constant zoom is being driven, the end is checked (S1723, S1725). If the constant image magnification zoom is being driven (F_ISZON = 1) and the constant image magnification zoom is completed (F_IPZEND = 1), the flag F_IPZEND is cleared, the flag F_ISZSTOP is set, and the image magnification constant is set in the IPZEND-CHECK subroutine. After performing zoom stop processing, the process returns (S1725 to S1729).

【0225】像倍率一定ズーム中でないか、像倍率一定
ズームが終了していなければ、PZ‐BSTATEコマ
ンドでカメラボディ11のパワーズーム状態に関するデ
ータを送信する(S1723、S1725、S173
1)。そして、像倍率一定ズーム中でなければボディ側
で電力供給を要求してバッテリ供給チェック処理を行な
い、像倍率一定ズーム中であることを識別するフラグF_
ISZONを立ててから合焦判断に進むが、すでに像倍率一
定ズーム中であればそのまま合焦判断に進む(S173
3〜1741)。
If the constant image magnification zoom is not being performed or the constant image magnification zoom is not completed, data relating to the power zoom state of the camera body 11 is transmitted by the PZ-BSTATE command (S1723, S1725, S173).
1). If the image magnification constant zoom is not being performed, power supply is requested on the body side to perform a battery supply check process, and a flag F_ for identifying that the image magnification constant zoom is being performed is performed.
After the ISZON is set, the process proceeds to the focus determination. If the image magnification constant zoom is already performed, the process directly proceeds to the focus determination (S173).
3-1741).

【0226】合焦していれば、現在のAFパルス数(レ
ンズ繰出し量)に基づいて像倍率一定ズームを実行させ
るために、BODY‐STATE1コマンドで所定のデ
ータをパワーズームレンズ51に送信し、さらにISZ
‐STARTコマンドを送信してパワーズームレンズ5
1に像倍率一定ズームをスタートさせてからリターンす
る(S1741〜S1745)。非合焦であれば、カメ
ラボディ11で測距したデフォーカスパルスのデータを
STORE‐DEF&Dコマンドで送信し、デフォーカ
スパルスに基づいて像倍率一定ズームを行なわせるため
のデータをBODY‐STATE1コマンドで送信し、
ISZ‐STARTコマンドを送信してリターンする
(S1741、S1747〜S1751)。以上のコマ
ンド、データを受信したレンズCPU61は、図15の
ISZ処理を経て目標焦点距離を演算し、ズーミング制
御を実行する。
If the camera is in focus, predetermined data is transmitted to the power zoom lens 51 by a BODY-STATE1 command in order to execute a constant image magnification zoom based on the current number of AF pulses (lens extension amount). Further ISZ
-Start command to send power zoom lens 5
Then, the process returns to step 1 after starting the constant image magnification zoom (S1741 to S1745). If the camera is out of focus, the data of the defocus pulse measured by the camera body 11 is transmitted by the STORE-DEF & D command, and the data for performing the constant image magnification zoom based on the defocus pulse is transmitted by the BODY-STATE1 command. Send,
An ISZ-START command is transmitted and the process returns (S1741, S1747 to S1751). The lens CPU 61 that has received the above commands and data calculates the target focal length through the ISZ processing of FIG. 15 and executes zooming control.

【0227】『ISZ‐DRIVE2』図66および図
67に示した像倍率一定ズーム処理の第2実施例につい
て説明する。この第2実施例は、カメラボディ11にお
いて、像倍率一定ズームに関する演算、制御をすること
に特徴を有する。
[ISZ-DRIVE2] A second embodiment of the constant image magnification zoom process shown in FIGS. 66 and 67 will be described. The second embodiment is characterized in that calculation and control relating to a constant image magnification zoom in the camera body 11 are performed.

【0228】ステップS1801〜S1823までの処
理は、図63に示した第1実施例のS1701〜S17
31と同様であるからそこまでの説明は省略し、S18
25以降の処理について説明する。合焦状態にないとき
には、カメラボディ11のパワーズーム状態に関するデ
ータをPZ‐BSTATEコマンドで送信する(S18
13、S1825〜S1833)。そして、パワーズー
ムレンズ51が像倍率一定ズーム中でなければ、ボディ
側で電力要求を行なってバッテリ供給およびチェックを
行ない、制御ズーム中フラグF_IPZONをセットする(S
1827〜S1833)。
Steps S1801 to S1823 are the same as steps S1701 to S17 of the first embodiment shown in FIG.
Since this is the same as S31, the description up to that point is omitted and S18
The processing after step 25 will be described. When the camera is not in focus, data on the power zoom state of the camera body 11 is transmitted using the PZ-BSTATE command (S18).
13, S1825 to S1833). If the power zoom lens 51 is not in the constant image magnification zoom state, the body requests power and performs battery supply and checking, and sets the control zooming flag F_IPZON (S
1827-S1833).

【0229】次に、像倍率メモリ時の焦点距離がメモリ
されているレンズRAM61bのアドレスを指定してS
ET‐PZPOINTコマンドを送信し、パワーズーム
レンズ51から、SET‐PZPOINTコマンドで指
定した像倍率メモリ時の焦点距離(FOCALLEN‐
Xデータ)を入力する(S1835、S1837)。さ
らに、レンズRAM61bにメモリされている像倍率メ
モリ時の焦点距離データを指定してSET‐AFPOI
NTコマンドを送信し、パワーズームレンズ51から像
倍率メモリ時のAFパルス数(LENS‐AFPULS
Eデータ)を入力する(S1839、S1841)。そ
して、入力したデータに基づいて像倍率(x)を
演算する(S1843)。さらに、現在のAFパルス値
を指定してSET‐AFPOINTコマンドを送信し、
その指定に基づいてパワーズムレンズ51から現在のA
Fパルス数(LENS‐AFPULSEデータ)を入力
する(S1845、S1847)。
Next, the address of the lens RAM 61b in which the focal length at the time of the image magnification memory is stored is designated and S
The ET-PZPOINT command is transmitted, and the focal length (FOCALLEN-) at the time of the image magnification memory designated by the SET-PZPOINT command is transmitted from the power zoom lens 51.
X data) is input (S1835, S1837). Further, by specifying the focal length data at the time of the image magnification memory stored in the lens RAM 61b, the SET-AFPOI
An NT command is transmitted, and the number of AF pulses (LENS-AFPULS) from the power zoom lens 51 at the time of image magnification memory is transmitted.
E data) (S1839, S1841). Then, the image magnification (x 0 f 0 ) is calculated based on the input data (S1843). Further, a SET-AFPOINT command is transmitted by designating the current AF pulse value,
Based on the designation, the current A
The number of F pulses (LENS-AFPULSE data) is input (S1845, S1847).

【0230】次に、合焦しているかどうかをチェック
し、合焦していれば現AFパルス数xを利用した式に
より焦点距離を求め、合焦していなければ、被写体が動
体かどうかをチェックし、動体である場合には、合焦時
の場合と同様に現在のAFパルスに基づいて焦点距離を
演算し、動体でない場合は、現AFパルス数xおよびデ
フォーカスパルスΔxを利用した式により目標焦点距
離を求める(S1849〜S1853)。そして、算出
した目標焦点距離までパワーズームさせるコマンドおよ
び焦点距離データ(MOVE‐PZFコマンド)を送信
してからリターンする(S1855)。このMOVE‐
PZFコマンドを受信したレンズCPU61は、上記カ
メラボディ11から送られてきた目標焦点距離へズーミ
ングレンズ53Fを駆動する。
Next, it is checked whether or not the subject is in focus. If the subject is in focus, the focal length is obtained by an equation using the current number of AF pulses x. When the object is a moving object, the focal length is calculated based on the current AF pulse as in the case of focusing, and when the object is not a moving object, an equation using the current AF pulse number x and the defocus pulse Δx is used. To obtain the target focal length (S1849 to S1853). Then, a command for power zooming to the calculated target focal length and focal length data (MOVE-PZF command) are transmitted, and the process returns (S1855). This MOVE-
The lens CPU 61 that has received the PZF command drives the zooming lens 53F to the target focal length sent from the camera body 11.

【0231】なお、上記実施例において、目標焦点距離
の演算方式を撮影レンズの合焦状態により変更する構成
となっているが、勿論、他の条件、例えば、動体予測A
Fであるか否かに基づいて変更する構成としてもよい。
この場合、S1853の前に、「被写体が動体か?」の
判断処理を付加し、動体である場合は、S1851によ
り目標焦点距離を現在のレンズ繰出し量によって算出
し、動体でない場合は、S1853により焦点距離を算
出する構成とすればよい。ここで、動体予測AF時にデ
フォーカス量を用いずに目標焦点距離を演算する理由
は、レンズ駆動の高速化および安定化を図るためであ
る。
In the above embodiment, the calculation method of the target focal length is changed depending on the in-focus state of the photographing lens. Of course, other conditions, for example, moving object prediction A
It may be configured to change based on whether it is F or not.
In this case, before S1853, a process of determining whether the subject is a moving object is added. If the object is a moving object, the target focal length is calculated by the current lens extension amount in S1851. The configuration may be such that the focal length is calculated. Here, the reason why the target focal length is calculated without using the defocus amount during the moving object prediction AF is to achieve high-speed and stable lens driving.

【0232】『ISZ‐DRIVE3』図68および図
69に示した像倍率一定ズーム処理は、ボディ11側で
制御する像倍率一定ズームの変形であって、一度合焦し
てから像倍率一定ズームを行なっても、ズーミング終了
時に合焦状態から外れる可能性があるので、像倍率一定
ズーム後に再度AF処理及び像倍率一定ズームを行な
う、第3実施例である。また、この実施例は、併せて、
動体予測AF時に動体移動スピードに応じて像倍率一定
ズームのスピードを変えて駆動する方法も示している。
[ISZ-DRIVE3] The constant image magnification zoom processing shown in FIGS. 68 and 69 is a modification of the constant image magnification zoom controlled on the body 11 side. Even if the zooming is performed, there is a possibility that the in-focus state will be lost at the end of the zooming. Therefore, the AF processing and the constant image magnification zoom are performed again after the constant image magnification zoom is performed in the third embodiment. In addition, this embodiment also
Also shown is a method of changing the speed of a constant image magnification zoom in accordance with the moving speed of the moving object during the moving object prediction AF to drive the moving object.

【0233】フォーカシングレンズ53Fが無限遠位置
にあれば、AF‐INITPOSコマンドをパワーズー
ムレンズ51に送信し(S1901、S1903)、至
近距離位置にあれば、PZ‐BSTATEコマンドでカ
メラボディ11側のパワーズームモードに関するPZボ
ディステートデータをパワーズームレンズ51に送信す
る(S1901、S1905、S1907)。パワーズ
ームウエイトのとき、またはプレディクタ演算結果が無
効のときにはなにもせずにリターンする(S1909、
S1911)。
If the focusing lens 53F is located at infinity, an AF-INITPOS command is transmitted to the power zoom lens 51 (S1901, S1903). If the focusing lens 53F is located at a close distance, the power of the camera body 11 is obtained by the PZ-BSTATE command. The PZ body state data relating to the zoom mode is transmitted to the power zoom lens 51 (S1901, S1905, S1907). When the power zoom weight is set or when the predictor calculation result is invalid, the process returns without doing anything (S1909,
S1911).

【0234】パワーズームウエイトでなく、かつプレデ
ィクタ演算結果が有効のときには被写体が動体であるか
どうかをチェックする(S1909〜S1913)。動
体であり、かつ像倍率一定ズーム中フラグが下りている
とき(像倍率一定ズーム駆動中でないとき)には(19
13、S1961)ボディのバッテリ要求フラグをセッ
ト(F_BBATREQ=1)してバッテリの供給を行ない、像
倍率一定ズーム中フラグをセット(F_ISZON=1)する
(S1961〜S1967)。そして、動体移動スピー
ド(像面移動スピード)に応じたパワーズームスピード
をセットし、セットしたパワーズームのスピードデータ
(ISSPA、ISSPB)及び、現在位置のAFパル
スでISZ制御を行なわせるようにフラグF_ISZDをクリ
アしてBODY‐STATE1データ通信により送り、
ISZ‐STARTコマンドを送信してパワーズームレ
ンズ51に像倍率一定ズームを開始させる(S1969
〜S1973)。
If the power zoom weight is not set and the predictor calculation result is valid, it is checked whether the subject is a moving object (S1909 to S1913). When the image is a moving object and the constant image magnification zoom flag is down (when the constant image magnification zoom is not being driven), (19)
13, S1961) The battery request flag of the body is set (F_BBATREQ = 1) to supply the battery, and the image magnification constant zooming flag is set (F_ISZON = 1) (S1961 to S1967). Then, a power zoom speed corresponding to the moving body moving speed (image plane moving speed) is set, and a flag F_ISZD is set so that ISZ control is performed with the set power zoom speed data (ISSPA, ISSPB) and the AF pulse at the current position. And send it by BODY-STATE1 data communication,
An ISZ-START command is transmitted to cause the power zoom lens 51 to start a constant image magnification zoom (S1969)
To S1973).

【0235】動体でなければ、合焦2回目(F_INFOCUS
=2)か、1回目(F_INFOCUS=1)かどうかをチェッ
クする(S1913、S1915、S1917)。な
お、F_INFOCUSは2ビットである。合焦2回目でも1回
目でもなければ、つまり最初のときには、合焦している
かどうかをチェックし、合焦していなければリターン
し、合焦していれば、ボディのバッテリ要求フラグBBAT
REQをセットして電力供給を行ない、像倍率一定ズーム
中のフラグF_ISZONを立てる(S1919〜S192
5)。
If it is not a moving object, the second time of focusing (F_INFOCUS
= 2) or the first time (F_INFOCUS = 1) (S1913, S1915, S1917). Note that F_INFOCUS is 2 bits. If the focus is not the second time or the first time, that is, the first time, it is checked whether the camera is in focus. If the camera is not focused, the routine returns. If the camera is in focus, the battery request flag BBAT of the body is returned.
REQ is set, power is supplied, and a flag F_ISZON during constant zoom of image magnification is set (S1919 to S192).
5).

【0236】そして、像倍率一定ズームスタートコマン
ドを送信して像倍率一定ズームをスタートさせ、NGタ
イマーをスタートさせ、像倍率一定ズームの終了チェッ
クを行ない、終了したら合焦1回目フラグをセットし、
像倍率一定ズーム終了フラグF_IPZENDをクリアして1回
目の処理を終了する(S1935〜S1940)。
Then, a constant image magnification zoom start command is transmitted to start the constant image magnification zoom, an NG timer is started, an end check of the constant image magnification zoom is performed, and when it is completed, the first focusing flag is set.
The image magnification constant zoom end flag F_IPZEND is cleared, and the first process ends (S1935 to S1940).

【0237】次にこの処理に入ったときには、合焦1回
目フラグ立っているので、S1917からS1941に
入り、合焦しているかどうかをチェックする。合焦して
いなければリターンし、合焦するまで以上の処理を繰り
返す。合焦していれば、NGタイマーをスタートさせ、
像倍率一定ズームスタートコマンドを撮影レンズに送信
して撮影レンズに像倍率一定ズームをスタートさせ、合
焦2回目フラグをセットしてリターンする(S1943
〜S1947)。
Next, when this process is started, the first focusing flag is set, so the flow advances from S1917 to S1941 to check whether or not focusing has been performed. If the camera is not in focus, the process returns, and the above processing is repeated until the camera is in focus. If you are in focus, start the NG timer,
A constant image magnification zoom start command is transmitted to the photographing lens to start constant image magnification zoom on the photographing lens, a second focusing flag is set, and the process returns (S1943).
To S1947).

【0238】S1947の処理を終了してからこのIS
Z‐DRIVE3処理に入ったときには合焦2回目フラ
グが立っているので、S1915からS1951に入
り、像倍率一定(制御)ズームの終了チェックを行な
う。制御ズームが終了していなければリターンし、終了
していれば制御ズーム終了フラグF_IPZENDをクリアし、
像倍率一定ズームストップフラグF_ISZSTOPを立て、像
倍率一定ズーム終了処理を行なってからリターンする
(S1953〜S1957)。
After the processing of S1947 is completed, this IS
When the Z-DRIVE3 process is started, the in-focus second time flag is set. Therefore, the process proceeds from S1915 to S1951, and the end of constant image magnification (control) zoom is checked. If the control zoom is not completed, return.If the control zoom is completed, clear the control zoom end flag F_IPZEND.
The fixed image magnification constant zoom stop flag F_ISZSTOP is set, the constant image magnification constant zoom end processing is performed, and the process returns (S1953 to S1957).

【0239】『AFP‐CNT処理』図70に示したA
FP‐CNT処理は、パワーズームレンズ51における
AFパルスカウント処理である。レンズCPU61は、
AFパルサー59が出力するAFパルスをハード的にカ
ウントするAFパルスカウンタを備えている。このAF
P‐CNT処理には、2msタイマ割り込みにより2ms間
隔で入る。なお、本処理は、図9に示した2msタイマ割
込みルーチンのS303処理の詳細である。
“AFP-CNT processing” A shown in FIG.
The FP-CNT process is an AF pulse counting process in the power zoom lens 51. The lens CPU 61
An AF pulse counter for counting the AF pulses output from the AF pulser 59 in hardware is provided. This AF
The P-CNT process is entered at 2 ms intervals by a 2 ms timer interrupt. This process is the details of the S303 process of the 2 ms timer interrupt routine shown in FIG.

【0240】AFP‐CNT処理では先ず、AFパルス
ハードカウンタのカウント値をAFパルスカウント値メ
モリ(レンズRAM61bのアドレスAFPCNTL,
H)にメモリする(S2001)。そして、PZ‐BS
TATEコマンドにより入力したオートフォーカス制御
に関するデータ(レンズRAM61bの所定アドレスP
Z_BDSTのbit3からbit0のデータ)を参照し、A
Fモータ39がニアムーブ中であり、かつニア端に達し
ていないときには、AFパルスカウントスタート値(A
FPSTRTL,H)にAFパルスカウント値を加算
し、これを現在のAFパルス値メモリ(レンズRAM6
1bのAFPXL,H)にメモリしてこのルーチンを抜
けるが、ニア端に達していたときにはそのまま終了する
(S2002〜S2007)。
In the AFP-CNT process, first, the count value of the AF pulse hard counter is stored in an AF pulse count value memory (addresses AFPCNTL and AFFPCNTL of the lens RAM 61b).
H) (S2001). And PZ-BS
Data relating to the autofocus control input by the TATE command (the predetermined address P in the lens RAM 61b
A) with reference to bit 3 to bit 0 of Z_BDST)
When the F motor 39 is performing the near move and has not reached the near end, the AF pulse count start value (A
FPSTRTL, H), and adds the AF pulse count value to the current AF pulse value memory (lens RAM6).
The memory is stored in AFPXL, H of 1b, and the process exits from this routine. If it has reached the near end, the process ends (S2002 to S2007).

【0241】AFモータ39がファームーブ中であるが
ファー端に達していないときには、AFパルスカウント
スタート値からAFパルスカウント値を減算して現在の
AFパルス値メモリ(AFPXL,H)にメモリしてA
FP‐CNT処理を抜け、ファー端に達していたときに
はそのままAFP‐CNT処理を抜ける(S2009〜
S2013)。また、ニアムーブでもファームーブでも
ないときはAFモータ39が回転していないので、なに
もしないでAFP‐CNT処理を終了する(S200
2、S2009)。
When the AF motor 39 is performing firmware but has not reached the far end, the AF pulse count value is subtracted from the AF pulse count start value and stored in the current AF pulse value memory (AFPXL, H). A
The processing exits the FP-CNT processing, and when the fur end has been reached, the processing exits the AFP-CNT processing as it is (S2009-
S2013). If neither the near move nor the firm move, the AF motor 39 is not rotating, so the AFP-CNT process is terminated without doing anything (S200).
2, S2009).

【0242】『AFP‐ADJ処理』図71に示したA
FP‐ADJフローチャートは、バックラッシュ等の影
響による現在のAFパルス値を補正する、パワーズーム
レンズ51側の処理である。本実施例では、ファー端に
おけるAFパルス値を0とし、ニア端のAFパルス値を
最大値に設定してある。そして、距離コード板81の指
標83をブラシ85が通る毎に、その指標83位置にお
ける絶対値コードに基づく絶対AFパルス数(基準AF
パルス数)に基づいて、現在のAFパルスカウント値を
補正する構成である。本処理は、図9に示される2msタ
イマ割込みルーチンのS307の詳細である。
"AFP-ADJ processing" A shown in FIG.
The FP-ADJ flowchart is processing on the power zoom lens 51 side for correcting the current AF pulse value due to the influence of backlash or the like. In the present embodiment, the AF pulse value at the far end is set to 0, and the AF pulse value at the near end is set to the maximum value. Each time the brush 85 passes through the index 83 of the distance code plate 81, the absolute AF pulse number based on the absolute value code at the position of the index 83 (reference AF pulse)
In this configuration, the current AF pulse count value is corrected based on the number of pulses. This processing is the details of S307 of the 2 ms timer interrupt routine shown in FIG.

【0243】AFP‐ADJ処理に入ると、まず、指標
83にブラシ85が接触したかどうかをチェックし、接
触していなければそのまま処理を終了する(S202
1)。接触していても、前回の処理のときも接触してい
ればそのままリターンする(S2021、S202
3)。つまり、指標83とブラシ85とが接触した時点
(指標83のエッジ)を検出する。
Upon entering the AFP-ADJ process, first, it is checked whether or not the brush 85 has contacted the index 83, and if not, the process is terminated as it is (S202).
1). Even if it is touched, if it is touched even in the previous processing, the process returns as it is (S2021, S202)
3). That is, the point in time when the index 83 contacts the brush 85 (the edge of the index 83) is detected.

【0244】指標83とブラシ85とが接触すると、A
Fモータ39がファームーブのときに接触した場合に
は、その指標83のニア端位置に対応する、AFパルス
FARテーブルデータ(指標83のNEAR端側エッジ
のデータ)を読み込んでアドレスAFPCDL,Hにメ
モリし、ニアムーブで接触したときには、その指標83
のファー端位置に対応するAFパルスNEARテーブル
データ(指標83のFAR端側のエッジのデータ)を読
み込んで、アドレスAFPCDL,Hにメモリする(S
2025〜S2033)。FARテーブルとNEARテ
ーブルの2種類のテーブルを備えているのは、指標83
に幅があるので、接触方向によりその幅分接触時の絶対
位置が異なるからである。また、AFモータ39が停止
しているときには、そのままこの処理から抜ける(S2
027、S2031)。なお、S2025のフラグF_AF
PADJはテスト用で、通常はクリアされている。
When the index 83 contacts the brush 85, A
When the F-motor 39 is in contact during the firmware operation, the AF pulse FAR table data (data of the NEAR end side edge of the index 83) corresponding to the near end position of the index 83 is read and stored in the address AFPCDL, H. When it is memorized and touched by near move, the index 83
Is read from the AF pulse NEAR table data corresponding to the far end position (data of the edge on the FAR end side of the index 83) and stored in the address AFPCDL, H (S
2025 to S2033). The index 83 has two types of tables, a FAR table and a NEAR table.
This is because the absolute position at the time of contact differs by the width depending on the contact direction. When the AF motor 39 is stopped, the process directly exits from this process (S2).
027, S2031). The flag F_AF in S2025
PADJ is for testing and is usually cleared.

【0245】次に、現在のAFパルス値が分かっている
とき(フラグF_AFPOSが立っているとき)には、テーブ
ルデータ(AFPCDL,H)から現在のAFパルスカ
ウント値(AFPXL,Hのデータ)を減算し、その減
算値(差)をAFパルス誤差メモリ(AFPDIFX
L,H)にメモリする(S2035、S2037)。こ
こで、その誤差がマイナスのとき(ボローがあるとき)
には、上記誤差の絶対値をAFパルス現在値メモリにメ
モリする(S2039、S2041)。
Next, when the current AF pulse value is known (when the flag F_AFPOS is set), the current AF pulse count value (AFPXL, H data) is obtained from the table data (AFPCDL, H). Subtraction is performed, and the subtraction value (difference) is stored in an AF pulse error memory (AFPDIFX).
(L, H) (S2035, S2037). Here, when the error is negative (when there is a borrow)
The absolute value of the error is stored in the AF pulse current value memory (S2039, S2041).

【0246】そして、上記差が所定の許容誤差(N_AFPD
IF)よりも大きいかどうかをチェックして、小さい場合
にはそのまま処理を終了するが、大きい場合には補正、
つまり現在のAFパルス値メモリ(AFPXL,H)お
よびAFパルスカウントスタート値メモリ(AFPST
RTL,H)にテーブルデータ(AFPCDL,H)を
入れる(S2043、S2045)。一方、AFパルス
現在値が分かっていないときには、無条件で上記S20
45の補正処理を実行する(S2035、S204
5)。
The above difference is equal to a predetermined allowable error (N_AFPD).
IF) is checked, and if it is smaller, the process ends as it is.
That is, the current AF pulse value memory (AFPXL, H) and the AF pulse count start value memory (AFPST
The table data (AFPCDL, H) is entered in RTL, H) (S2043, S2045). On the other hand, when the current value of the AF pulse is not known, the above-described S20 is unconditionally performed.
45 correction processing is executed (S2035, S204)
5).

【0247】そして、AFパルスハードカウンタをクリ
アしてスタートさせ、AFパルスカウントスタート値
(AFPCNTL,H)をクリアし、現在のAFパルス
値がわかっていることを示すフラグF_AFPOSを立てて終
了する(S2047、S2049)。
Then, the AF pulse hard counter is cleared and started, the AF pulse count start value (AFPCNTL, H) is cleared, the flag F_AFPOS indicating that the current AF pulse value is known is set, and the processing is ended ( S2047, S2049).

【0248】『LMT‐DTC処理』図72に示したL
MT‐DTCフローチャートは、ズーミングレンズ群5
3Zが端点に達したこと、あるいは何らかの事情で移動
できなくなったこと(擬似端点と称す)を検出する、パ
ワーズームレンズ51側の処理である。本実施例では、
PZモータ65駆動中にPZパルスが所定時間内に出力
されたかどうかをチェックして検出している。さらに所
定時間は、PZモータの駆動速度(ズーミング速度)に
応じて変更している。また、PZモータの起動時(停止
状態またはブレーキ状態から駆動状態へ移った時)から
一定時間は起動トルクが大きくなるため、端点の検出は
行なわない。本処理は、図10に示される2msタイマ割
込みルーチンのS351の詳細である。
"LMT-DTC processing" L shown in FIG.
The MT-DTC flowchart shows the zooming lens group 5
This is a process on the side of the power zoom lens 51 for detecting that the 3Z has reached the end point or that the 3Z cannot be moved for some reason (referred to as a pseudo end point). In this embodiment,
During the driving of the PZ motor 65, it is checked whether a PZ pulse has been output within a predetermined time and detected. Further, the predetermined time is changed according to the driving speed (zooming speed) of the PZ motor. In addition, since the starting torque increases for a certain period of time from the start of the PZ motor (when the state changes from the stop state or the brake state to the drive state), the end point is not detected. This process is the details of S351 of the 2 ms timer interrupt routine shown in FIG.

【0249】まず、PZモータ駆動中であるかどうかを
チェックし、駆動中でなければ、リミット(端点または
擬似端点)に達したことを検出するためのリミットカウ
ンタT_LMTをクリアして抜ける(S2061、S2
071)。なお、PWMタイマT_PWMは、PZパルスが
出力されて図12に示されるPZパルスカウント割込み
処理に入ったときにクリアされる。
First, it is checked whether the PZ motor is being driven. If not, the limit counter T_LMT for detecting that the limit (end point or pseudo end point) has been reached is cleared and the process exits (S2061, S2
071). Note that the PWM timer T_PWM is cleared when the PZ pulse is output and the process enters the PZ pulse count interruption process shown in FIG.

【0250】PZ駆動中のときには、起動時からの時間
を計測するカウンタT_STARTが0になったかどう
か(所定時間が経過したかどうか)をチェックし、0で
なければカウンタT_STARTを1デクリメントと
し、リミットカウンタT_LMTをクリアして抜ける
(S2061、S2063、S2069、S207
1)。この処理には2msごとに入るので、2msごとにカ
ウンタT_STARTがデクリメントとされる。カウン
タT_STARTの値はズームモータを起動するときに
所定の値に設定されるが、起動してから一定期間は端点
検出を行なわない。
When the PZ drive is being performed, it is checked whether a counter T_START for measuring the time from the start is 0 (whether a predetermined time has elapsed). If not, the counter T_START is decremented by 1 and Clear the counter T_LMT and exit (S2061, S2063, S2069, S207)
1). Since this process starts every 2 ms, the counter T_START is decremented every 2 ms. The value of the counter T_START is set to a predetermined value when the zoom motor is started, but the end point is not detected for a certain period after the start.

【0251】カウンタT_STARTが0になると、モ
ータ起動後一定期間経過したことになるのでS2065
以降の端点検出の処理へ進む。PWMのデューティ比T
_PWMBRKが、PWMデューティ比の最大限界値N
_PWMMAX以上になった場合、端点検出用のカウン
タT_LMTを1インクリメントしてS2073に進
み、そうでない場合はそのままS2073に抜ける(S
2065、S2067)。また、モータがDC駆動(最
高速駆動)のときには、デューティー比T_PWMBR
Kとして最大限界値N_PWMMAXの値が設定される
ので、DC駆動時は、リミットカウンタT_LMTがイ
ンクリメントされる(S2065、S2067)。
When the counter T_START becomes 0, it means that a certain period has elapsed since the motor was started.
The process proceeds to subsequent endpoint detection processing. PWM duty ratio T
_PWMBRK is the maximum limit value N of the PWM duty ratio
If _PWMMAX or more, the endpoint detection counter T_LMT is incremented by 1 and the process proceeds to S2073; otherwise, the process directly exits to S2073 (S2073).
2065, S2067). When the motor is driven by DC (highest speed drive), the duty ratio T_PWMBR
Since the value of the maximum limit value N_PWMMAX is set as K, during DC driving, the limit counter T_LMT is incremented (S2065, S2067).

【0252】次に、ズームモータのPWM駆動は、次の
ように制御する。PWMデューティ比T_PWMBRK
は通常、最大限界値N_PWMMAXより小さい値が設
定されている。したがって、カウンタT_LMTをイン
クリメントせず、そのまま抜ける(S2065、S20
73)。しかし、PZパルスが一定期間出力されないと
きには、2msタイマールーチンによりデューティ比T_
PWMBRKが徐々に大きく変更されるので、所定時間
経過後に最大限界値N_PWMMAXと同じ値(ほぼD
C駆動)となり、カウンタT_LMTが1インクリメン
トされるようになる。
Next, the PWM drive of the zoom motor is controlled as follows. PWM duty ratio T_PWMBRK
Is set to a value smaller than the maximum limit value N_PWMMAX. Therefore, the counter T_LMT is not incremented and exits as it is (S2065, S20)
73). However, when the PZ pulse is not output for a certain period, the duty ratio T_ is determined by the 2 ms timer routine.
Since PWMBRK is gradually and largely changed, the same value as the maximum limit value N_PWMMAX (approximately D
C drive), and the counter T_LMT is incremented by one.

【0253】ここで、PWMで低速駆動の場合は、PW
Mデューティー比T_PWMBRKの値が最初は小さい
ので、端点あるいは疑似端点に達したときに、カウンタ
T_LMTがインクリメントされるまでの時間が長い。
PWMで高速駆動の場合は、PWMデューティー比T_
PWMBRKの値が大きいので、端点あるいは疑似端点
に達したときに、カウンタT_LMTがインクリメント
されるまでの時間が、PWM低速時よりも短い。上記の
処理により、ズームモータの駆動速度により端点検出時
間が可変になる(2063〜S2067)。なお、カウ
ンタT_LMTが所定値(N_LMT)未満のときには
所定の端点検出時間を経過していないので、そのままこ
のサブルーチンを抜ける(S2073)。
Here, in the case of low-speed driving by PWM, PWM
Since the value of the M duty ratio T_PWMBRK is initially small, the time until the counter T_LMT is incremented when the end point or the pseudo end point is reached is long.
In the case of high-speed driving with PWM, the PWM duty ratio T_
Since the value of PWMBRK is large, the time until the counter T_LMT is incremented when the end point or the pseudo end point is reached is shorter than at the time of PWM low speed. By the above processing, the end point detection time is made variable depending on the driving speed of the zoom motor (2063 to S2067). When the counter T_LMT is smaller than the predetermined value (N_LMT), the predetermined end point detection time has not elapsed, and the process directly exits this subroutine (S2073).

【0254】カウンタT_LMTが所定値N_LMT以
上になると、端点または擬似端点とみなす。テレ方向駆
動のときには、ズームコードがテレ端値のときにはテレ
端フラグF_TENDを立て、テレ端でないときには何らかの
異常で停止したので疑似テレ端フラグF_LMTTを立てる
(S2075〜S2081)。ワイド方向駆動のときに
は、ズームコードがワイド端値のときにはワイド端フラ
グF_WENDを立て、テレ端でないときには何らかの異常で
停止したので疑似ワイド端フラグF_LMTWを立てる
(S2075、S2083〜S2087)。
When the counter T_LMT becomes equal to or larger than the predetermined value N_LMT, it is regarded as an end point or a pseudo end point. In the tele-direction drive, a tele-end flag F_TEND is set when the zoom code is at the tele-end value, and a pseudo tele-end flag F_LMTT is set when the zoom code is not at the tele end because the stop was caused by some abnormality (S2075 to S2081). In the wide direction drive, the wide end flag F_WEND is set when the zoom code is at the wide end value, and when the zoom code is not at the tele end, the pseudo wide end flag F_LMTW is set (S2075, S2083 to S2087) because the stop was caused by some abnormality.

【0255】『SET‐SET処理』図73〜図81に
示したSET‐SETフローチャートは、ズームモータ
の駆動の回転方向およびスピード、停止、ブレーキを制
御するステータス(スピード制御ビット)等を設定す
る、パワーズームレンズ51側の処理である。本処理
は、図10に示される2ms割込みルーチンのS353の
詳細である。なお、ここのSET‐SET処理には、図
73〜図81に示したMOV処理、INIT3割込み処
理、NO‐MOVE、MOV1処理、BRK1、2処
理、STP1処理、MOV‐TRG処理、DRV‐TR
G8処理が含まれる。
[SET-SET Processing] The SET-SET flowchart shown in FIGS. 73 to 81 sets the rotation direction and speed of the zoom motor, the status (speed control bit) for controlling the stop and brake, and the like. This is the process on the power zoom lens 51 side. This processing is the details of S353 of the 2 ms interrupt routine shown in FIG. The SET-SET processing here includes MOV processing, INIT3 interrupt processing, NO-MOVE, MOV1 processing, BRK1, 2 processing, STP1 processing, MOV-TRG processing, and DRV-TR shown in FIGS.
G8 processing is included.

【0256】先ず、電力要求フラグF_BATREQをセット
し、ズームスピード切替スイッチ75の位置を所定のコ
ード(方向及びスピードを示すコード)に変換して変換
値メモリTRNSSPDに入れる(S2101、S21
03)。
First, the power request flag F_BATREQ is set, the position of the zoom speed changeover switch 75 is converted into a predetermined code (a code indicating the direction and speed), and is stored in the conversion value memory TRNSSPD (S2101, S21).
03).

【0257】指定位置への駆動(F_MOVTARG=
1)であればMOV_TRG処理へ進み、指定方向への
通常の駆動のとき(F_MOVがセットされているとき)に
はMOV処理へ進む(S2105、S2107)。
Driving to the designated position (F_MOVTARG =
If it is 1), the process proceeds to the MOV_TRG process, and in the case of normal driving in the designated direction (when F_MOV is set), the process proceeds to the MOV process (S2105, S2107).

【0258】いずれの駆動でもなく、かつズーム操作環
が中立位置(ズームスイッチ75がオフ)にあり、かつ
像倍率一定ズームモードであればMOV‐TARG処理
へ進み、像倍率一定ズームモードでなければNO‐MO
V処理へ進む(S2109、S2115)。ズーム操作
環が中立位置にないときには、マニュアルパワーズーム
停止ビットがセット(F_MPZD=1)されているときには
NO‐MOV処理へ進み、そうでないときにはマニュア
ルパワーズームなので、ズームスイッチの状態を変換し
たズームスピードデータをアドレスSPDDRC1にメ
モリして、MOV処理に進む(S2109、S211
1、S2113)。
If no drive is performed, the zoom operation ring is in the neutral position (zoom switch 75 is off), and if the image magnification is constant zoom mode, the process proceeds to MOV-TARG processing, and if not, the image magnification is not constant zoom mode. NO-MO
The process proceeds to V processing (S2109, S2115). When the zoom operation ring is not at the neutral position, the process proceeds to the NO-MOV process when the manual power zoom stop bit is set (F_MPZD = 1). When not, the zoom speed is obtained by converting the state of the zoom switch because it is a manual power zoom. The data is stored in the address SPDDRC1, and the process proceeds to the MOV process (S2109, S211)
1, S2113).

【0259】以上の処理において、ボディがレリーズ処
理に入ったとき等に、通信コマンドBODY‐ATAT
E1(22)にてフラグF_MPZDがセットされるので、レ
リーズ中のマニュアルパワーズーム動作を停止できる。
また、パワーズームをストップさせる通信コマンドIP
Z‐STOP(35)が送られてくれば、各フラグF_MO
VTRG、F_MOV、F_ISZ等がクリアされるので、マニュアル
パワーズーム以外のパワーズーム動作も停止させること
ができる。
In the above processing, when the body enters release processing, the communication command BODY-ATAT
Since the flag F_MPZD is set at E1 (22), the manual power zoom operation during release can be stopped.
In addition, a communication command IP for stopping the power zoom
If Z-STOP (35) is sent, each flag F_MO
Since VTRG, F_MOV, F_ISZ, etc. are cleared, power zoom operations other than manual power zoom can also be stopped.

【0260】『MOV処理』次に、パワーズームモータ
の制御について、図74〜図76に示したMOVフロー
チャートを参照して説明する。この制御は、マニュアル
ズーム及び指定方向へのパワーズーム制御(フラグF_MO
Vがセットされているとき)に関するボディパワーレン
ズ51における処理である。先ず、テレ方向駆動(F_TE
LE1=1)かどうか(駆動方向メモリSPDDRC1の
bit0)をチェックする(S2201)。
[MOV Processing] Next, the control of the power zoom motor will be described with reference to the MOV flowcharts shown in FIGS. This control includes manual zoom and power zoom control in the designated direction (flag F_MO
(When V is set) in the body power lens 51. First, the tele-direction drive (F_TE
It is checked whether (LE1 = 1) (bit 0 of the driving direction memory SPDDRC1) (S2201).

【0261】駆動方向がテレ方向であり、かつテレ端ま
たは疑似テレ端に達したときにはNO‐MOV処理に進
む(S2201〜S2205)。初めての駆動(起動)
のときには、初期設定のための処理S2233に進む
(S2207)。そして、ズームモータ制御用メモリZ
M_BDSTにセットされた前回のズームモータ制御に
関するデータを参照し、前回も駆動していたが、前回と
駆動方向(ズームモータの回転方向)が変わるとき(F_
DRCW=1)、またはボディ11からの電力供給がオフさ
れたときにはブレーキ処理(BRK1)に進む(S22
07〜S2211)。前回も同一方向駆動であり、かつ
電力が供給されているときにはS2249のスピード設
定処理に進む(S2207〜S2211)。
When the driving direction is the telephoto direction and the telephoto end or the pseudo telephoto end is reached, the flow proceeds to the NO-MOV process (S2201 to S2205). First drive (start)
In the case of, the process proceeds to S2233 for initialization (S2207). Then, the zoom motor control memory Z
Referring to the data on the previous zoom motor control set in M_BDST, the previous driving was performed, but the driving direction (rotation direction of the zoom motor) changes from the previous driving (F_
DRCW = 1) or when the power supply from the body 11 is turned off, the process proceeds to the brake process (BRK1) (S22).
07 to S2211). If the same direction driving was performed the last time and power is being supplied, the process proceeds to the speed setting process of S2249 (S2207 to S2211).

【0262】駆動方向がテレ方向でなく、ワイド端また
は疑似ワイド端に達していたとき(F_WEND=1またはF_
LMTW=1)にはNO‐MOV処理に進む(S2201、
S2223、S2225)。ワイド端または疑似ワイド
端に達していないが起動のときには、初期設定のための
処理S2233に進み、前回も駆動していたが、前回と
駆動方向が変わるとき、またはボディからの電力供給が
オフされたときにはブレーキ処理(BRK1)に進み、
前回も同一方向駆動であり、かつ電力が供給されている
ときにはS2249のスピード設定処理に進む(S22
25〜S2231)。
When the driving direction has reached the wide end or the pseudo wide end instead of the tele direction (F_WEND = 1 or F_WEND)
If LMTW = 1, the process proceeds to the NO-MOV process (S2201,
S2223, S2225). If it has not reached the wide end or the pseudo wide end, but has been started, the flow advances to step S2233 for initialization, and the previous driving was performed. However, when the driving direction changes from the previous driving, or the power supply from the body is turned off. The brake process (BRK1)
When the same direction driving was performed last time and power was supplied, the process proceeds to the speed setting process of S2249 (S22
25-S2231).

【0263】起動時の初期設定処理は、電力が供給され
ていることを条件に実行し、電力が供給されていなけれ
ば停止処理(NO‐MOV1)へ進む(S2233)。
電力が供給されているときには、ブレーキフラグF_BRK
がセットされているとき(モータがブレーキ中のとき)
にはブレーキカウンタT_BRKを1インクリメントし
て、ブレーキカウンタT_BRKが所定値(N_BRK
REV)以下の場合はブレーキ処理のためにブレーキ2
(BRK2)処理に進む(S2235〜S2239)。
The initial setting process at the time of startup is executed on condition that power is supplied, and if power is not supplied, the process proceeds to a stop process (NO-MOV1) (S2233).
When power is being supplied, the brake flag F_BRK
Is set (when the motor is braking)
, The brake counter T_BRK is incremented by one, and the brake counter T_BRK is incremented by a predetermined value (N_BRK).
REV) In the following cases, brake 2
The process proceeds to (BRK2) process (S2235 to S2239).

【0264】ブレーキフラグF_BRKがクリアされている
か、セットされていてもブレーキタイマT_BRKが所
定値よりも大きいときにはブレーキ終了なので、スター
トフラグF_STARTをセットし、リミットタイマT_LM
TおよびPWMタイマT_PWMをクリアし、起動時に
一定期間端点検出をしないようにするためのカウンタの
設定およびPWMデューティー比の初期値(最小値)セ
ットを行なう(S2235〜S2241)。つまり、ス
タートフラグF_STARTをセットし、端点検出カウンタT
_LMTおよびPWMカウンタT_PWMをクリアし、
スタートカウンタT_STARTに初期値を入れ、PW
Mのデューティー比T_PWMBRKに最小値を入れ
る。PWMデューティー比T_PWMBRKに最小値を
セットすることにより、PWM時には最低速で起動され
ることになる。
Even if the brake flag F_BRK is cleared or set, the brake ends when the brake timer T_BRK is larger than a predetermined value. Therefore, the start flag F_START is set and the limit timer T_LM is set.
T and the PWM timer T_PWM are cleared, a counter is set to prevent end point detection for a certain period of time at startup, and an initial value (minimum value) of the PWM duty ratio is set (S2235 to S2241). That is, the start flag F_START is set, and the end point detection counter T
_LMT and PWM counter T_PWM are cleared,
Put an initial value in the start counter T_START, and
The minimum value is put in the duty ratio T_PWMBRK of M. By setting the minimum value to the PWM duty ratio T_PWMBRK, the motor is started at the lowest speed during PWM.

【0265】設定が終了すると、PZパルサー69のL
EDをオンしてPZパルスカウント準備を行ない、PZ
パルスカウント割込み(INT3)が許可されていなけ
ればこれを許可してスピード設定処理(S2249)に
進む(S2243〜S2247)。
When the setting is completed, the L of the PZ pulser 69
Turn on the ED and prepare for PZ pulse counting.
If the pulse count interrupt (INT3) is not permitted, it is permitted and the process proceeds to the speed setting process (S2249) (S2243 to S2247).

【0266】スピード設定処理では、設定されたスピー
ドに応じてPZパルス間隔(T_PWMPLSの値)を
設定する。本実施例では、設定したPZパルス周期でP
Zパルスが出力されるようにPWMにおける通電時間を
制御する構成であり、4速の設定が可能であるが、これ
に限定されない。なお、スピードの指定は、SPDDR
C1のbit2、3(F_SPDA1、F_SPDB
1)の2bitで指定される。4速については、PWM
制御ではなくDC制御のため、PZパルス間隔は設定し
ないで、端点検出用(図72のS2065)にPWMデ
ューティー比T_PWMBRKに最大値をセットする。
In the speed setting process, the PZ pulse interval (T_PWMPLS value) is set according to the set speed. In the present embodiment, P
In this configuration, the energization time in the PWM is controlled so that the Z pulse is output, and the fourth speed can be set. However, the present invention is not limited to this. The speed specification is SPDDR.
Bit2, 3 (F_SPDA1, F_SPDB) of C1
It is specified by 2 bits of 1). For 4th gear, PWM
For DC control, not control, the PZ pulse interval is not set, and the maximum value is set to the PWM duty ratio T_PWMBRK for end point detection (S2065 in FIG. 72).

【0267】スピード設定が終了したら、そのスピード
およびその方向(SPDDRC1)をズーム制御用メモ
リ(ZM_ST1)に入れ、ドライブフラグF_DRVをセ
ットし、ブレーキフラグF_BRKをクリアする(S225
1)。なお、これらのフラグは、ZM_ST1のbit3
〜0(フラグSPDB1、SPDA1、WIDE1、TELE1)にそれぞれ
対応してセット、クリアされる。さらに、テレ端、ワイ
ド端疑似フラグF_LIMTT、F_LIMTWをクリアし、駆動方向
フラグF_TMOV、F_WMOV、F_TELE1、F_WIDE1をセットし、
テレ端、ワイド端フラグF_TEND、F_WENDをクリアする
(S2253〜S2257)。なお、フラグF_TMOV、F_
WMOV、F_TENDおよびF_WENDは、PZ‐LSTデータのフ
ラグであり、フラグF_TMOV、F_WMOVは、SPDDRC1
のフラグF_TELE1、F_WIDE1とそれぞれ対応してセット、
クリアされる。なお、フラグF_TMOV、F_WMOVは、ずれか
一方がセット(=1)されているときには他方はクリア
(=0)される。
When the speed setting is completed, the speed and the direction (SPDDRC1) are entered in the zoom control memory (ZM_ST1), the drive flag F_DRV is set, and the brake flag F_BRK is cleared (S225).
1). These flags are set in bit 3 of ZM_ST1.
00 (flags SPDB1, SPDA1, WIDE1, TELE1) are set and cleared respectively. Further, clear the tele end and wide end pseudo flags F_LIMTT and F_LIMTW, and set the drive direction flags F_TMOV, F_WMOV, F_TELE1, and F_WIDE1,
The tele end and wide end flags F_TEND and F_WEND are cleared (S2253 to S2257). Note that the flags F_TMOV, F_
WMOV, F_TEND and F_WEND are flags of PZ-LST data, and flags F_TMOV and F_WMOV are SPDDRC1.
Set corresponding to the flags F_TELE1 and F_WIDE1, respectively.
Cleared. When one of the flags F_TMOV and F_WMOV is set (= 1), the other is cleared (= 0).

【0268】そして、像倍率一定ズーム中であれば像倍
率一定ズーム中に割込んでマニュアルパワーズームとな
ったので、レンズのPZ状態に関するメモリデータ(P
Z_LST)に所定の上記フラグF_TMOV、F_WMOV、F_TE
NDおよびF_WENDなどをセットして終了する(S225
9、S2267)。像倍率一定ズーム中でない場合で、
ズームスイッチ操作によるパワーズーム(マニュアルパ
ワーズーム)であれば、マニュアルパワーズームに関す
るフラグF_MPZを含むデータをズーム状態データ(PZ
‐LST)に入れ、制御パワーズーム(指定方向へのズ
ーム)であれば、制御パワーズームに関するフラグF_IP
ZBを含むデータをズーム状態データ(PZ‐LST)に
入れてSET‐ST処理を終了する(S2261〜S2
265)。なお、PZ_LSTデータの内容は、コマン
ドPZ‐LSTATE(10)に関する通信でカメラボ
ディ11に送られる。
If the image magnification is constant zooming, manual power zoom is performed by interrupting the image magnification constant zooming. Therefore, the memory data (P
Z_LST) and the predetermined flags F_TMOV, F_WMOV, F_TE
Set ND, F_WEND, etc. and end (S225)
9, S2267). When the image magnification is not constant zoom,
If the power zoom is performed by operating a zoom switch (manual power zoom), data including a flag F_MPZ relating to the manual power zoom is stored in the zoom state data (PZ
-LST), if the control power zoom (zoom in the designated direction), the flag F_IP related to the control power zoom
The data including ZB is entered into the zoom state data (PZ-LST), and the SET-ST processing is completed (S2261-S2).
265). Note that the content of the PZ_LST data is sent to the camera body 11 by communication relating to the command PZ-LSTATE (10).

【0269】『INT3割込み許可』図77は、PZパ
ルスカウントのための割込み許可処理である。本実施例
では、PZパルスは、2msタイマー割込みによりソフト
的にカウントしている。そこでこの処理では、PZパル
スによるカウンタ割込みを可能にすべく、INIT割込
み許可ビットをセットする。なお本処理は、図75のS
2247及び図83のS2457の詳細である。
[INT3 Interrupt Permission] FIG. 77 shows an interrupt permission process for PZ pulse counting. In this embodiment, the PZ pulse is counted in a software manner by a 2 ms timer interrupt. Therefore, in this processing, the INIT interrupt permission bit is set to enable the counter interrupt by the PZ pulse. This processing is performed in S
It is details of 2247 and S2457 of FIG.

【0270】『NO‐MOV、NO‐MOV1処理』図
78に示したNO‐MOV、NO‐MOV1処理は、パ
ワーズームを停止またはブレーキに移行させるための処
理である。パワーズーム駆動中(フラグF_DRVがセット
されているとき)に入ると、BRK1処理に進み、パワ
ーズーム駆動中でなく、ブレーキ中でないとき(フラグ
F_BRKがクリア)には停止処理(STP1)に進み、ブ
レーキ中のときにはブレーキカウンタをインクリメント
し、その値が所定値(N_BRK)以上になればストッ
プ処理(STP1)を行ない、所定値より小さいときに
はブレーキ処理を継続するためにブレーキ2(BRK
2)処理に進む(S2301〜S2307)。なお、N
O‐MOV1処理にはパワーズーム駆動中でないときに
入るので、S2301を飛ばしてS2303から入る。
[NO-MOV, NO-MOV1 Process] The NO-MOV, NO-MOV1 process shown in FIG. 78 is a process for stopping the power zoom or shifting to the brake. When the power zoom drive is being performed (when the flag F_DRV is set), the process proceeds to the BRK1 process.
When F_BRK is cleared), the process proceeds to a stop process (STP1). When the brake is being applied, the brake counter is incremented. When the value becomes equal to or more than a predetermined value (N_BRK), the stop process (STP1) is performed. Brake 2 (BRK
2) The process proceeds (S2301 to S2307). Note that N
Since the O-MOV1 process is started when the power zoom drive is not being performed, S2301 is skipped and the process starts from S2303.

【0271】『BRK1、2処理』図79のブレーキ処
理(BRK1)では、ブレーキタイマT_BRKをクリ
アし、テレ方向フラグF_DRCT、ワイド方向フラグF_DRC
W、スピード1フラグF_SPD0、スピード2フラグF_SPD1
および駆動フラグF_DRVをクリアし、ブレーキフラグF_B
RKをセットする(S2311、S2313)。BRK2
には2回目以降に入るので、S2313の処理のみを行
なう。以上の処理を行なった後SET‐ST処理を終了
する。
[BRK1, 2 processing] In the brake processing (BRK1) of FIG. 79, the brake timer T_BRK is cleared, and the tele direction flag F_DRCT and the wide direction flag F_DRC are cleared.
W, speed 1 flag F_SPD0, speed 2 flag F_SPD1
Clear the drive flag F_DRV and brake flag F_B
RK is set (S2311, S2313). BRK2
Since only the second time is entered, only the processing of S2313 is performed. After performing the above processing, the SET-ST processing ends.

【0272】『STP1処理』図80に示したSTP1
フローチャートは、パワーズームを停止させるための設
定を行なう処理である。先ず、PZパルスカウント割込
みを禁止し、PZパルサー69のLEDをオフする(S
2321、S2323)。
"STP1 processing" STP1 shown in FIG.
The flowchart is a process for making settings for stopping the power zoom. First, the PZ pulse count interrupt is prohibited, and the LED of the PZ pulser 69 is turned off (S
2321 and S2323).

【0273】ズームスイッチ75が中立位置にあるとき
にはZM_ST1データをクリア(フラグをすべてクリ
ア)して、バッテリ要求を解除してS2349に進む
(S2327、S2337、S2347)。なお、ズー
ムスイッチ75が中立に戻ったときには、擬似端点フラ
グ(F_LMTT、F_LMTW)をクリアするので、前回擬似端点
がセットされていた方向にも再びズーミング動作を行な
わせることができる。
When the zoom switch 75 is at the neutral position, the ZM_ST1 data is cleared (all flags are cleared), the battery request is released, and the flow advances to S2349 (S2327, S2337, S2347). When the zoom switch 75 returns to the neutral position, the pseudo end point flag (F_LMTT, F_LMTW) is cleared, so that the zooming operation can be performed again in the direction in which the pseudo end point was previously set.

【0274】ズームスイッチ75が中立位置でなく、テ
レ方向にオンしているときには、ZM_ST1データ中
のフラグF_LMTT、F_LMTWはそのままにして他のフラグを
すべてクリアする(S2329、S2331)。テレ端
または疑似テレ端であればバッテリ要求を解除してS2
349に進むが、テレ端でも疑似テレ端でもなければバ
ッテリ要求を解除せずにS2349に進む(S233
3、S2335)。ズームモータ65がワイド方向に回
転しているときには、ZM_ST1データ中のフラグF_
LMTT、F_LMTWをそのままにして他のフラグをクリアする
(S2329、S2341)。ワイド端または疑似ワイ
ド端であればバッテリ要求を解除してS2349に進む
が、テレ端でも疑似テレ端でもなければバッテリ要求を
解除せずにS2349に進む(S2343、S234
5)。
When the zoom switch 75 is not in the neutral position but is turned on in the telephoto direction, the flags F_LMTT and F_LMTW in the ZM_ST1 data are left as they are, and all other flags are cleared (S2329 and S2331). If the tele end or the pseudo tele end, the battery request is released and S2
349, but if neither the tele end nor the pseudo tele end, the process proceeds to S2349 without canceling the battery request (S233).
3, S2335). When the zoom motor 65 is rotating in the wide direction, the flag F_ in the ZM_ST1 data
The other flags are cleared while leaving LMTT and F_LMTW as they are (S2329, S2341). If it is the wide end or the pseudo wide end, the battery request is canceled and the process proceeds to S2349. If neither the tele end nor the pseudo tele end, the process proceeds to S2349 without canceling the battery request (S2343, S234).
5).

【0275】S2349では、像倍率一定ズーム中であ
るかどうかをチェックし、S2351では像倍率一定ズ
ーム演算終了であるかどうかをチェックする。像倍率一
定ズーム中かつ演算が終了していないときには、PZ_
LSTデータ中のフラグF_TEND、F_WEND、F_IPZB、F_IS
ZOKをそのままにして、他のフラグF_TMOV、F_WMOV、F_I
PZI、F_MPZをクリアする(S2353)。像倍率一定ズ
ーム中でないとき、または像倍率一定ズーム中でも演算
が終了しているときは、PZ_LSTデータ中のフラグ
F_TEND、F_WENDをそのままにして他のフラグをクリアす
る(S2355)。なお、PZ_LSTデータの内容
は、コマンドPZ‐LSTATE(10)の通信でカメ
ラボディ11に送られる。なお、フラグF_PZDRCは、Z
M_ST1データにおけるフラグF_DRCW、F_DRCTと同一
の機能を有するものであり、F_PZDRC=1のときは、ワ
イド方向駆動を意味する。
In S2349, it is checked whether or not the constant image magnification zoom is being performed. In S2351, it is checked whether or not the constant image magnification zoom calculation has been completed. When the image magnification constant zoom is being performed and the calculation is not completed, PZ_
Flags F_TEND, F_WEND, F_IPZB, F_IS in LST data
Other flags F_TMOV, F_WMOV, F_I
PZI and F_MPZ are cleared (S2353). The flag in the PZ_LST data is set when the image magnification constant zoom is not being performed or when the calculation is completed even during the image magnification constant zoom.
The other flags are cleared while leaving F_TEND and F_WEND as they are (S2355). The contents of the PZ_LST data are sent to the camera body 11 by communication of the command PZ-LSTATE (10). Note that the flag F_PZDRC is
It has the same function as the flags F_DRCW and F_DRCT in the M_ST1 data. When F_PZDRC = 1, it means wide-direction driving.

【0276】そして、ZM‐ST2に、ZM‐ST2の
データと所定のデータとの論理和をストアして、スター
トフラグF_START、像倍率一定ズームフラグF_ISZ、指定
方向駆動フラグF_MOVTARG、指定位置駆動フラグF_MOVPL
S、F_MOVZC等をクリアしてSET‐ST処理を終了する
(S2357)。つまり、ZM‐ST2データ中のフラ
グF_PZPOS、F_PZPDRCをそのままにして他のフラグをク
リアする。
Then, the logical sum of the data of ZM-ST2 and predetermined data is stored in ZM-ST2, and the start flag F_START, the fixed image magnification zoom flag F_ISZ, the designated direction drive flag F_MOVTARG, and the designated position drive flag F_MOVPL
S, F_MOVZC, etc. are cleared, and the SET-ST process ends (S2357). That is, the other flags are cleared while the flags F_PZPOS and F_PZPDRC in the ZM-ST2 data are kept as they are.

【0277】『MOV‐TRG』図82に示したフロー
チャートは、指定した位置までズーミングレンズを駆動
するMOV‐TRG処理である。プリセットズームモー
ドにおいてズームモード切替えスイッチ77がオンされ
たときは、プリセットズームセットモードにおいてメモ
リした焦点距離までズーミングレンズ群を移動させる。
先ず、目標PZパルス数が現在のPZパルスよりも大き
いかどうかをチェックする(S2401)。大きければ
テレ方向駆動であり、小さければワイド方向駆動であ
る。
[MOV-TRG] The flowchart shown in FIG. 82 is a MOV-TRG process for driving the zooming lens to a designated position. When the zoom mode changeover switch 77 is turned on in the preset zoom mode, the zoom lens group is moved to the focal length stored in the preset zoom set mode.
First, it is checked whether the target PZ pulse number is larger than the current PZ pulse (S2401). If it is larger, it is driven in the tele direction, and if it is smaller, it is driven in the wide direction.

【0278】テレ方向駆動のときには、目標パルス数
(PZPTRGT)を現在のパルス数(PZPX)から
減算してその差を駆動パルス数としてメモリ(PZPD
IF)する(S2403)。目標パルス数と現在のパル
ス数とが等しければ駆動する必要がないのでNO‐MO
V処理に進む(S2405)。等しくなければ、モータ
駆動方向をテレ方向に仮セットし、テレ端か疑似テレ端
であればNO‐MOV処理に進む(S2407〜S24
11)。テレ端でも疑似テレ端でもなく、駆動中での場
合には、ワイド方向フラグF_DRCWが立っているか、バッ
テリがオフであればBRK1処理に進む(S2413〜
S2417)。同方向駆動であり、かつバッテリが供給
されているときにはDRV‐TRG8処理に進む(S2
413〜S2417)。駆動中でない場合はS2441
へ進む。
In the tele-direction drive, the target pulse number (PZPTRGT) is subtracted from the current pulse number (PZPX), and the difference is used as the drive pulse number in the memory (PZPD).
IF) (S2403). If the target pulse number is equal to the current pulse number, there is no need to drive.
The process proceeds to V processing (S2405). If they are not equal, the motor driving direction is provisionally set to the telephoto end, and if the telephoto end or the pseudo telephoto end, the process proceeds to the NO-MOV process (S2407 to S24).
11). When neither the telephoto end nor the pseudo telephoto end is being driven, and the vehicle is being driven, the process proceeds to the BRK1 process if the wide direction flag F_DRCW is set or the battery is off (S2413 to S2413).
S2417). When the driving is in the same direction and the battery is supplied, the process proceeds to the DRV-TRG8 process (S2).
413 to S2417). If not driving, S2441
Proceed to.

【0279】ワイド方向のときには、目標パルス数(P
ZPTRGR)を現在のパルス数(PZPX)から減算
してその差を駆動パルス数としてメモリ(PZPDI
F)する(S2423)。そして、ズームモータ駆動方
向をワイド方向に仮セットし、ワイド端か疑似ワイド端
であればNO‐MOV処理に進む(S2427〜S24
31)。
In the wide direction, the target pulse number (P
ZPTRGR) is subtracted from the current pulse number (PZPX), and the difference is used as the drive pulse number in the memory (PZPDI).
F) (S2423). Then, the driving direction of the zoom motor is provisionally set in the wide direction. If the zoom end is the wide end or the pseudo wide end, the process proceeds to the NO-MOV process (S2427 to S24).
31).

【0280】ワイド端でも疑似ワイド端でもなく、駆動
中での場合には、テレ方向フラグF_DRCTが立っている
か、バッテリがオフであればBRK1処理に進む(S2
433〜S2437)。同方向駆動であり、かつバッテ
リが供給されているときにはDRV‐TRG8処理に進
む(S2433〜S2437)。駆動中でない場合は2
441へ進む。
If neither the wide end nor the pseudo wide end is being driven, and the vehicle is being driven, the process proceeds to the BRK1 process if the teledirection flag F_DRCT is set or the battery is off (S2).
433-S2437). When the drive is in the same direction and the battery is being supplied, the process proceeds to the DRV-TRG8 process (S2433 to S2437). 2 if not driving
Proceed to 441.

【0281】本制御方法では、目標のPZパルスと現在
のPZパルスが等しくなったときに駆動からブレーキ処
理に移るので、パルスの行き過ぎがあり得る。しかし、
1パルスの行き過ぎはほとんど問題にならないので、誤
差パルスPZPDIFが1のとき、または誤差パルスP
ZPDIFが1でなくても電力がオフされているときに
はNO‐MOV1処理に進む(S2441〜S244
3)。
In the present control method, when the target PZ pulse becomes equal to the current PZ pulse, the operation shifts from the driving to the brake processing, so that there may be excessive pulses. But,
Since overshoot of one pulse hardly causes a problem, when the error pulse PZPDIF is 1, or when the error pulse PZ
If the power is off even if ZPDIF is not 1, the process proceeds to the NO-MOV1 process (S2441 to S244).
3).

【0282】誤差パルスPZPDIFが1でなくかつ電
力が供給されている場合には、ブレーキフラグF_BRKが
セットされていればブレーキカウンタT_BRKを1イ
ンクリメントし、ブレーキカウンタT_BRKが所定値
よりも小さいときにはブレーキ処理(BRK2)に進む
(S2443〜S2449)。
When the error pulse PZPDIF is not 1 and power is supplied, the brake counter T_BRK is incremented by 1 if the brake flag F_BRK is set, and the brake processing is performed if the brake counter T_BRK is smaller than a predetermined value. The process proceeds to (BRK2) (S2443 to S2449).

【0283】ブレーキフラグF_BRKがクリアされている
か、セットされていてもブレーキカウンタT_BRKが
所定値よりも大きいときにはブレーキ処理終了なので、
起動フラグF_STARTをセットし、リミットタイマおよび
PWMタイマをクリアし、起動時に一定期間端点検出を
しないようにするためのカウンタ設定およびPWMデュ
ーティー比の初期値(最小値)セットを行なう(S24
51)。つまり、スタートフラグF_STARTをセットし、
端点検出カウンタT_LMTおよびPWMカウンタT_
PWMをクリアし、スタートカウンタT_STARTに
初期値を入れ、PWMデューティー比T_PWMBRK
に最小値を入れる。
Even if the brake flag F_BRK is cleared or set, if the brake counter T_BRK is larger than a predetermined value, the brake processing is terminated.
The start flag F_START is set, the limit timer and the PWM timer are cleared, the counter is set so that the end point is not detected for a certain period at the start, and the initial value (minimum value) of the PWM duty ratio is set (S24).
51). That is, set the start flag F_START,
Endpoint detection counter T_LMT and PWM counter T_
The PWM is cleared, the initial value is entered in the start counter T_START, and the PWM duty ratio T_PWMBRK is set.
To the minimum value.

【0284】設定が終了すると、PZパルサー69のL
EDをオンしてPZパルスカウント準備を行ない、PZ
パルス割込みが許可されていなければこれを許可してか
らDRV‐TRG8処理に進む(S2453〜S245
7)。
When the setting is completed, the L of the PZ pulser 69
Turn on the ED and prepare for PZ pulse counting.
If the pulse interrupt is not permitted, the pulse interrupt is permitted and the process proceeds to the DRV-TRG8 process (S2453 to S245).
7).

【0285】『DRV‐TRG8処理』図84および図
85に示したDRV‐TRG8処理は、目標焦点距離ま
での駆動PZパルス数に応じてズームスピードを制御す
る処理であり、目標位置までのパルス数(PZPDI
F)に応じて段階的に速度を変更している。本実施例で
は、目標までの駆動パルス数が第3パルス数以上であれ
ば最高速の第4速で駆動(DC駆動)し、第3パルス数
未満第2パルス以上であれば第3速で駆動し、第2パル
ス数未満第1パルス以上であれば第2速で駆動し、第1
パルス数未満であれば第1速で駆動する。なお、第4速
>第3速>第2速>第1速、および、第3パルス数>第
2パルス数>第1パルス数とする。また、本実施例では
4速可変としてあるが、可変速度の段数はこれ以上でも
以下でもよく、また無段階に近い程度に段階を多くして
もよい。
[DRV-TRG8 Process] The DRV-TRG8 process shown in FIGS. 84 and 85 is a process for controlling the zoom speed according to the number of driving PZ pulses up to the target focal length, and the number of pulses to the target position. (PZPDI
The speed is changed stepwise according to F). In the present embodiment, if the number of drive pulses up to the target is equal to or more than the third pulse number, the drive is performed at the fourth highest speed (DC drive). If the number of pulses is less than the second pulse and equal to or greater than the first pulse, the motor is driven at the second speed,
If it is less than the number of pulses, it is driven at the first speed. Note that the fourth speed> the third speed> the second speed> the first speed, and the third pulse number> the second pulse number> the first pulse number. Further, in the present embodiment, the variable speed is four-speed variable. However, the number of variable speed stages may be more or less, or the number of stages may be increased to a level close to stepless.

【0286】先ず、設定されたズームスピードに応じ
て、スピード選択処理に進む(S2501)。つまり、
第1速が設定されているときにはS2503に進み、第
2速が設定されているときにはS2511に進み、第3
速が設定されているときにはS2521に進み、第4速
が選択されているときにはS2541に進む。なお、ス
ピードの選択は、SPDDRC2のbit2、3(F_
SPDA2、F_SPDB2)の値に基づいて行なう。
SPDDRC2は、目標位置が設定されている場合に利
用され、ズームレンズ駆動開始時のズーム方向、および
メインCPU35あるいはレンズCPU61によって自
動設定されるズームスピードが格納されるものである。
First, the flow advances to a speed selection process according to the set zoom speed (S2501). That is,
When the first speed is set, the process proceeds to S2503, and when the second speed is set, the process proceeds to S2511 and the third speed is set.
When the speed is set, the process proceeds to S2521, and when the fourth speed is selected, the process proceeds to S2541. In addition, the selection of the speed is performed on bits 2, 3 (F_
SPDA2, F_SPDB2).
SPDDRC2 is used when the target position is set, and stores the zoom direction at the start of driving the zoom lens and the zoom speed automatically set by the main CPU 35 or the lens CPU 61.

【0287】第1速が設定されているときには、スピー
ドおよび駆動方向(ZM‐ST1の値)に変化がないか
どうかをチェックし、変化があればPWMブレーキタイ
マ(PWMデューティー比)に第1速の基準値N_PW
MMI0をセットし、変化がなければなにもせずに、T
‐PWMPLSに第1速のPZパルスの周期N_PWM
P0をセットし、R_INTと所定データとの論理和を
ZM‐ST1に入れる(スピード及び方向セット)(S
2503〜S2509)。これにより、最低速が設定さ
れる。そして、PZ‐LSTデータと所定データの論理
積をとり、さらにこの論理積とR_INTデータとの論
理和をPZ‐LSTデータに入れてこのSET‐ST処
理を終了する(S2551)。
When the first speed is set, it is checked whether or not there is a change in the speed and the driving direction (the value of ZM-ST1). If there is a change, the PWM brake timer (PWM duty ratio) is set to the first speed. Reference value N_PW
Set MMI0 and do nothing if there is no change, T
The period N_PWM of the first-speed PZ pulse to PWMPLS
P0 is set, and the logical sum of R_INT and predetermined data is input to ZM-ST1 (speed and direction set) (S
2503 to S2509). Thereby, the minimum speed is set. Then, the logical product of the PZ-LST data and the predetermined data is calculated, and the logical sum of the logical product and the R_INT data is put in the PZ-LST data, and the SET-ST process ends (S2551).

【0288】第2速が設定されているときには、目標ま
でのパルス数(PZPDIF)が第1のパルス数以上か
どうかをチェックし、小さければ、DRVPWM0(1
速のS2503)に進む。以上であればS2513に進
み、第2速で制御するために、スピード及び方向(ZM
‐ST1の値)に変化がないかどうかをチェックし、変
化があればPWMブレーキタイマ(PWMデューティー
比)に第2速の基準値N_PWMMI1をセットし、変
化がなければなにもせずに、T‐PWMPLSに第2速
のPZパルスの周期N_PWMP1をセットし、R_I
NTデータと所定データとの論理和をZM‐ST1に入
れてS2551に進む(S2503〜S2509)。以
上の処理により、第2速がセットされる。
When the second speed is set, it is checked whether or not the number of pulses to the target (PZPDIF) is equal to or greater than the first number of pulses. If the number is smaller, DRVPWM0 (1
The process proceeds to S2503). If it is the above, the process proceeds to S2513, where the speed and direction (ZM
-ST1) is checked to see if there is any change, and if there is a change, the second speed reference value N_PWMMI1 is set to the PWM brake timer (PWM duty ratio). -Set the period N_PWMP1 of the second speed PZ pulse in PWMPLS, and R_I
The logical sum of the NT data and the predetermined data is input to ZM-ST1, and the process proceeds to S2551 (S2503 to S2509). With the above processing, the second speed is set.

【0289】第3速が設定されているときには、目標ま
でのパルス数(PZPDIF)が第1のパルス数未満で
あればS2503の第1速処理(DRVPWM0)に進
み、第1のパルス数以上第2のパルス数未満であれば第
2速処理DRVPWM1に進む(S2521、S252
3)。そして、第2のパルス以上であれば、第3速で制
御するために、スピード及び方向(ZM‐ST1の値)
に変化がないかどうかをチェックし、変化があればPW
Mブレーキタイマ(PWMデューティー比)に第3速の
基準値N_PWMMI2をセットし、変化がなければな
にもせずに、T_PWMPLSに第3速のPZパルスの
周期N_PWMP2をセットし、R_INTデータと所
定データとの論理和をZM‐ST1に入れてS2551
に進む(S2523〜S2531)。以上の処理によ
り、第3速がセットされる。
When the third speed is set, if the number of pulses to the target (PZPDIF) is less than the first number of pulses, the process proceeds to the first speed process (DRVPWM0) in S2503, where the number of pulses equal to or more than the first number of pulses is used. If the number of pulses is less than 2, the process proceeds to the second speed process DRVPWM1 (S2521, S252).
3). If it is equal to or greater than the second pulse, the speed and the direction (the value of ZM-ST1) are controlled in order to control at the third speed.
Check if there is any change, and if there is a change, PW
Set the reference value N_PWMMI2 of the third speed in the M brake timer (PWM duty ratio), set the T_PWMPLS to the period N_PWMP2 of the PZ pulse of the third speed without any change, and set the R_INT data and the predetermined data. Is added to ZM-ST1 and S2551
The process proceeds to (S2523 to S2531). With the above processing, the third speed is set.

【0290】第4速が設定されているときには、目標ま
でのパルス数(PZPDIF)が第1のパルス数以上か
どうかをチェックし、第1のパルス数未満であればS2
503の第1速処理(DRVPWM0)に進み、第1の
パルス数以上第2のパルス数未満がどうかをチェックし
この間の値であればDRVPWM1(第2速処理)に進
み、第2のパルス以上第3のパルス数未満であるかをチ
ェックし、第2のパルス以上第3のパルス数未満であれ
ばDRVPWM2(第3速処理)に進み、第3のパルス
数以上であれば、PWMブレーキタイマ(PWMデュー
ティー比)に最大値N_PWMMAXをセットし、ZM
‐ST1にR_INTデータと所定データとの論理和を
入れて、S2551に進む(S2547、S254
9)。S2551の処理により、第4速(DC駆動)が
設定される。
When the fourth speed is set, it is checked whether the number of pulses to the target (PZPDIF) is equal to or more than the first number of pulses.
The process proceeds to a first speed process (DRVPWM0) of step 503, and it is checked whether the number of pulses is equal to or more than the first pulse number and less than the second pulse number. It is checked whether the pulse number is less than the third pulse number. If the pulse number is equal to or more than the second pulse number and less than the third pulse number, the process proceeds to DRVPWM2 (third speed processing). (PWM duty ratio) is set to the maximum value N_PWMMAX, and ZM
-Add the logical sum of the R_INT data and the predetermined data to ST1 and proceed to S2551 (S2547, S254
9). The fourth speed (DC drive) is set by the process of S2551.

【0291】『PZP‐CNT処理』図86から図90
に示したPZP‐CNTフローチャートは、PZパルス
カウントに関する、パワーズームレンズ51側の処理で
ある。本処理は、図10の2msタイマ割込みルーチンの
S355の詳細である。
[PZP-CNT Processing] FIGS. 86 to 90
The PZP-CNT flowchart shown in (1) is processing on the power zoom lens 51 side regarding the PZ pulse count. This process is the details of S355 of the 2 ms timer interrupt routine of FIG.

【0292】ズーミングレンズ群53Zがワイド端にあ
る場合に、PZパルスを補正するとき(F_PZPADJ=0の
とき)には、現在のPZパルス値およびPZパルスカウ
ントスタート値を0にリセットし、現在位置がわかって
いるかどうかのフラグF_PZPOSが立っていればPZP‐
CNT5処理に進み、同現在位置フラグがクリアされて
いればパワーズームのイニシャライズ(PZ‐INI
T)処理に進む(S2601〜S2605、S261
5)。補正しないときには、現在位置が分かっていると
き(F_PZPOS=1のとき)は現在位置OK(POS‐O
K)処理に進み、現在位置が分かっていないとき((F_
PZPOS=0のとき)には現在位置不明(POS‐NG)
処理に進む(S2603、S2607)。
When correcting the PZ pulse (when F_PZPADJ = 0) when the zooming lens group 53Z is at the wide end, the current PZ pulse value and PZ pulse count start value are reset to 0, and the current position is reset. PZP- if the flag F_PZPOS is set
Proceed to CNT5 processing, and if the current position flag is cleared, initialize power zoom (PZ-INI
T) Processing (S2601-S2605, S261)
5). When no correction is made, if the current position is known (when F_PZPOS = 1), the current position is OK (POS-O
K) proceed to the process, when the current position is not known ((F_
If PZPOS = 0), the current position is unknown (POS-NG)
The process proceeds to (S2603, S2607).

【0293】ズーミングレンズがテレ端にある場合も同
様に、PZパルスを補正するときには、現在のPZパル
ス値およびPZパルスカウントスタート値を最大値(N
_PZPMAX)にセットし、現在位置がわかっている
かどうかのフラグが立っていればPZP‐CNT5処理
に進み、現在位置がわかっているかどうかのフラグがク
リアされていればPZイニシャライズ(PZ‐INI
T)処理に進む(S2609、S2611、S261
3)。補正しないときには、現在位置が分かっていると
き(フラグが立っているとき)は現在位置OK(POS
‐OK)処理に進み、現在位置が分かっていないときに
は現在位置不明(POS‐NG)処理に進む(S261
1、S2607)。以上のように、ズーミングレンズ群
53Zがワイド端(F_WEND=1)、あるいはテレ端(F_
TEND=1)にあるときは、所定の値でPZパルスの補正
を行なう。なお、F_PZPADJはテスト用のフラグでF_PZPA
DJ=1のときは補正が行なわれない。
Similarly, when correcting the PZ pulse when the zooming lens is at the telephoto end, the current PZ pulse value and the PZ pulse count start value are set to the maximum value (N
_PZPMAX). If the flag indicating whether the current position is known is set, the process proceeds to PZP-CNT5 processing. If the flag indicating whether the current position is known is cleared, PZ initialization (PZ-INI) is performed.
T) Go to processing (S2609, S2611, S261)
3). When the correction is not performed, if the current position is known (when the flag is set), the current position is OK (POS).
-OK) processing. If the current position is not known, the processing proceeds to the current position unknown (POS-NG) processing (S261).
1, S2607). As described above, when the zooming lens group 53Z is at the wide end (F_WEND = 1) or at the telephoto end (F_WEND),
When TEND = 1), the PZ pulse is corrected with a predetermined value. Note that F_PZPADJ is a test flag and F_PZPADJ
No correction is performed when DJ = 1.

【0294】テレ端でもワイド端でもないときには、現
在位置が分かってれば現在位置OK(POS‐OK)処
理に進み、現在位置が分かっていないときには現在位置
不明(POS‐NG)処理に進む(S2601、S26
11、S2607)。
If neither the tele end nor the wide end, the process proceeds to the current position OK (POS-OK) process if the current position is known, and proceeds to the current position unknown (POS-NG) process if the current position is unknown. S2601, S26
11, S2607).

【0295】『POS‐NG、PZ‐INIT処理』図
87および図88に示したPOS‐NG、PZ‐INI
T処理は、現在位置が不明のとき、あるいはテレ端また
はワイド端に達したときの処理である。POS‐NG、
PZ‐INIT処理は、ズーミングレンズの現在位置が
不明の時の処理であるが、通常、現在位置が不明のと
き、例えばカメラボディのメインスイッチがオンされた
とき、あるいは手動ズームから電動ズームにスイッチが
切り替わったときに、カメラボディよりパワーズームの
イニシャライズコマンドPZ‐INITPOS(32)
が通信により送られて来るが、この場合も実行される。
[POS-NG, PZ-INIT processing] POS-NG, PZ-INI shown in FIGS. 87 and 88
The T processing is processing when the current position is unknown or when the camera reaches the tele end or the wide end. POS-NG,
The PZ-INIT process is a process when the current position of the zooming lens is unknown. Usually, when the current position is unknown, for example, when the main switch of the camera body is turned on, or when the manual zoom is switched to the electric zoom. Is switched from the camera body to the command PZ-INITPOS (32).
Is sent by communication, and is also executed in this case.

【0296】本実施例では、PZ‐INITPOSコマ
ンドが送られてきた場合、ズーミングレンズ群53Zを
最低速でテレ側へ動かして、ズームコード板71の最初
の区分点72あるいはテレ端を検出し、その位置の絶対
PZパルス数をテーブルデータから読出して所定のアド
レス(PZPX、PZPSTRT)にメモりすることに
より、ズーミングレンズ群53Zの現在位置を知るもの
である。なお、本実施例では現在位置を検出した後に、
ズーミングレンズ群53Zを移動前の元の位置まで戻す
という動作を行っている。これはPZ_INITPOS
コマンドが送られてきたときに、あるカウンタ(PZP
AZB)をクリア(0に)しておき、ズームコード板7
1の最初の区分点あるいはテレ端までのPZパルスをカ
ウントし、その位置より(現在位置を検出したら)その
カウント分だけ、ズーミングレンズを戻すということで
実現している。このズーミングレンズを戻すための動作
はPZ‐INIT処理(特にS2637〜S2649)
で行っている。
In this embodiment, when the PZ-INITPOS command is sent, the zooming lens group 53Z is moved to the telephoto side at the lowest speed to detect the first section point 72 or the telephoto end of the zoom code plate 71. The current position of the zooming lens group 53Z is known by reading the absolute PZ pulse number at that position from the table data and writing it down at a predetermined address (PZPX, PZPSTRT). In this embodiment, after detecting the current position,
The operation of returning the zooming lens group 53Z to the original position before the movement is performed. This is PZ_INITPOS
When a command is sent, a certain counter (PZP
AZB) is cleared (to 0) and the zoom code plate 7
This is realized by counting the PZ pulse up to the first segment point or the telephoto end of 1 and returning the zooming lens by that count from that position (when the current position is detected). The operation for returning the zooming lens is performed by PZ-INIT processing (especially, S2637 to S2649).
It is done in.

【0297】最低速でテレ側へ動かすための動作は、P
Z‐INITPOSコマンド通信により実行される。本
実施例では、現在位置検出のために一律にテレ方向に駆
動させているが、これはワイド方向でも構わないし、何
らかの条件により、どちらかを選択しても構わない。ま
た、本実施例では、現在位置不明のときに、カメラボデ
ィ51よりPZ_INITPOSコマンドが送られてこ
なくも、マニュアルパワーズームを動かせば、ズームコ
ード板の区分点あるいは端点(テレ端、ワイド端)に来
た時に、自動的に、現在位置を検出する(現在位置が分
かる)方式となっている。
The operation for moving to the tele side at the lowest speed is P
This is executed by Z-INITPOS command communication. In the present embodiment, the drive is uniformly performed in the tele direction for detecting the current position. However, the drive may be performed in the wide direction or any one may be selected according to some condition. Further, in the present embodiment, when the current position is unknown, even if the PZ_INITPOS command is not sent from the camera body 51, if the manual power zoom is moved, the zoom code plate is moved to the section point or end point (tele end, wide end). When it comes, the current position is automatically detected (the current position is known).

【0298】POS‐NG処理から入ると、スタートフ
ラグF_STARTが立っていれば(ズームモータ起動時)現
在位置およびスタートパルスカウンタに今回読み取った
ズームコード板71のコードのPZパルス数変換値(P
Zパルス粗検出値)を入れて、ズームモータドライブ
(DRIVSTRT1)処理に進む(S2621、S2
623)。
Upon entering the POS-NG process, if the start flag F_START is set (when the zoom motor is started), the PZ pulse number conversion value (P
(Z pulse coarse detection value), and the process proceeds to the zoom motor drive (DRIVSTRT1) processing (S2621, S2)
623).

【0299】スタートフラグF_STARTが下りているとき
には、以下の処理を行なう。ズームコードが前回のもの
と同一であれば、切換え点に達していないので、PZP
_CNT処理から抜ける(S2623、S2625)。
ズームコードが変わっているとき(コード板の区分点の
とき)は、テレ方向(F_PZPDRC=0)駆動であれば今回
入力したズームコードのPZパルス変換値を現在のPZ
パルス値(PZPX)およびPZパルスカウントスター
ト値(PZPSTRT)に入れ、ワイド方向(F_PZPDRC
=1)駆動であれば、前回入力したズームコードのPZ
パルス変換値を現在のPZパルス値(PZPX)および
PZパルスカウントスタート値(PZPSTRT)に入
れる(S2627〜S2631)。
When the start flag F_START is falling, the following processing is performed. If the zoom code is the same as the previous one, since the switching point has not been reached, PZP
Exit from the _CNT process (S2623, S2625).
When the zoom code is changed (at the segment point of the code plate), if the drive is in the tele direction (F_PZPDRC = 0), the PZ pulse conversion value of the zoom code input this time is converted to the current PZ pulse.
In the pulse value (PZPX) and the PZ pulse count start value (PZPSTRT), the wide direction (F_PZPDRC
= 1) If driving, the PZ of the previously input zoom code
The pulse conversion value is entered in the current PZ pulse value (PZPX) and PZ pulse count start value (PZPSTRT) (S2627 to S2631).

【0300】ムーブフラグ(F_MOV)がクリアされてい
るとき(PZ_INITPOSコマンドが送られて来て
いないとき)、またはフラグF_PZPINITが立っていると
きには、現在位置を認識していることを示すフラグF_PZ
POSをセットしてパルスカウント(PZP‐CNT5)
処理に進む(S2633、S2635、S2649)。
When the move flag (F_MOV) is cleared (when the PZ_INITPOS command is not sent) or when the flag F_PZPINIT is set, the flag F_PZ indicating that the current position is recognized.
Set POS and count pulse (PZP-CNT5)
The process proceeds to (S2633, S2635, S2649).

【0301】ムーブフラグF_MOVが立っていて(PZ‐
INITPOSコマンドが送られてきたとき)、かつ現
在位置フラグF_PZINITが下りているときには、現在のP
Zパルス値(コード板境界値)から、PZイニシャライ
ズ動作前の元の位置からコード板の境界位置までのPZ
パルスカウント値(PZPAZB)を減算した値を目標
PZパルス(PZPTRGT)としてセットする(S2
633、S2635、S2637)。なお、F_PZPINIT
はPZのイニシャライズの戻し動作を禁止するフラグ
で、テスト用に使われる。F_PZPINIT=1で禁止であ
る。
When the move flag F_MOV is set (PZ-
When the INITPOS command is sent) and the current position flag F_PZINIT is down, the current P
From the Z pulse value (code plate boundary value) to the PZ from the original position before the PZ initialization operation to the code plate boundary position
A value obtained by subtracting the pulse count value (PZPAZB) is set as a target PZ pulse (PZPTRGT) (S2).
633, S2635, S2637). Note that F_PZPINIT
Is a flag for prohibiting the return operation of the PZ initialization, and is used for testing. F_PZPINIT = 1 is prohibited.

【0302】上記減算値にボローがあるときには、何ら
かの誤カウントがあったので目標PZパルス数を0にし
て駆動フラグF_MOVをクリアし、ボローがないときには
そのままでムーブフラグをクリアする(S2639、S
2641)。そして、目標値ムーブフラグ(F_MOVTRG)
をセットし、PZスピードを第1速(最低速)にセット
し、現在位置フラグをセットしてPZP‐CNT5処理
へ進む(S2643〜S2649)。なお、PZ‐IN
IT処理から来たときは、S2633からこの処理に入
る。
If there is a borrow in the subtraction value, there is some erroneous count, so that the target PZ pulse number is set to 0 to clear the drive flag F_MOV, and if there is no borrow, the move flag is cleared as it is (S2639, S
2641). And the target value move flag (F_MOVTRG)
Is set, the PZ speed is set to the first speed (lowest speed), the current position flag is set, and the process proceeds to the PZP-CNT5 processing (S2643 to S2649). In addition, PZ-IN
When it comes from the IT processing, this processing is entered from S2633.

【0303】『POS‐OK、DRVSTRT1処理』
図89に示したPOS‐OK処理は、現在のポジション
が分かっているときのPZパルスカウント処理である。
すでに起動しているとき(スタートフラグがクリアされ
ているとき)にはPZパルス補正処理(PZP‐ADJ
処理)に進み、起動のときは、テレ方向駆動のとき(F_
PZPDRC=0)には、PZパルスカウントスタート値(P
ZPSTRT)とPZパルスカウント値(PZPCN
T)とを加算してPZパルスカウントスタート値(PZ
PATRT)および現在のPZパルスカウント値(PZ
PX)に入れ、ワイド方向駆動のとき(F_PZPDRC=1)
にはPZパルスカウントスタート値(PZPSTRT)
からPZパルスカウント値(PZPCNT)を減算して
PZパルスカウントスタート値(PAPATRT)およ
び現在のPZパルス値(PZPX)に入れる(S265
1〜S2657)。
[POS-OK, DRVSTR1 processing]
The POS-OK process shown in FIG. 89 is a PZ pulse count process when the current position is known.
If it has already started (when the start flag has been cleared), the PZ pulse correction processing (PZP-ADJ)
Process), and when starting, when driving in the tele-direction (F_
The PZ pulse count start value (PZPDRC = 0)
ZPSTRT) and PZ pulse count value (PZPCN)
T) and the PZ pulse count start value (PZ pulse count).
PATRT) and the current PZ pulse count value (PZ
PX) and drive in wide direction (F_PZPDRC = 1)
Is the PZ pulse count start value (PZPSTRT)
From the PZ pulse count value (PZPCNT) and the current PZ pulse count value (PZPX) (S265).
1 to S2657).

【0304】そして、スタートフラグF_STARTをクリア
し、テレ方向ムーブ(今回動こうとする方向)のときに
はパワーズーム方向フラグF_PZPDRCをクリア(テレ方向
をセット)し、ワイド方向ムーブ(今回動こうとする方
向)のときにはパワーズーム方向フラグF_PZPDRCをセッ
ト(ワイド方向をセット)する(S2659〜S266
5)。
Then, the start flag F_START is cleared, and in the case of a move in the tele direction (the direction in which this movement is to be performed), the power zoom direction flag F_PZPDRC is cleared (the tele direction is set), and the move in the wide direction (the direction in which the current movement is attempted) ), The power zoom direction flag F_PZPDRC is set (the wide direction is set) (S2659 to S266).
5).

【0305】DRIVSTART1からきたときにはS
2659に入って、スタートフラグのクリアおよび駆動
方向のセット処理を行なう(S2659〜S266
5)。
When coming from DRIVSTART1, S
2659, the start flag is cleared and the driving direction is set (S2659 to S266).
5).

【0306】『PZP‐ADJ、PZP‐CNT5処
理』図90に示したPZP‐ADJ処理は、PZパルス
のカウント値の積算誤差を補正する処理である。先ずズ
ームコードが前回と同じかどうかをチェックし、同じで
あれば補正できないのでPZP‐CNT処理から抜け、
異なれば、PZP補正禁止フラグF_PZDADJがク
リアされていることを条件に補正処理を続ける。つま
り、コード板71の分割領域(境界)を越えるのを待つ
のである。なお、PZP補正禁止フラグF_PZDAD
Jはテスト用で、通常はクリアされている。
[PZP-ADJ, PZP-CNT5 Process] The PZP-ADJ process shown in FIG. 90 is a process for correcting the integration error of the count value of the PZ pulse. First, it is checked whether the zoom code is the same as the previous one, and if the zoom code is the same, the correction cannot be performed, so the process exits from the PZP-CNT processing,
If not, the correction process is continued on condition that the PZP correction prohibition flag F_PZDADJ is cleared. In other words, the process waits until the divided region (boundary) of the code plate 71 is exceeded. Note that the PZP correction inhibition flag F_PZDAD
J is for testing and is normally cleared.

【0307】パワーズームの駆動方向がテレ方向であれ
ば、今回のズームコードのパルス変換値をレジスタXに
メモリし、ワイド方向であれば前回のズームコードのパ
ルス変換値をレジスタXにメモリし、レジスタXの値を
アキュムレータにメモリし、この値と現在のPZパルス
値の差の絶対値が補正限界値未満であるかどうかをチェ
ックする(S2679〜S2683)。補正限界値以上
であれば、レジスタXの値を現在のPZパルス値および
PZパルスカウントスタート値に入れて補正を行ない、
限界値未満であれば補正をしない。そして、PZパルス
カウント値(PZPCNT)をクリアし、現焦点距離の
PZパルス数(PZPX)をテーブルデータを基に現焦
点距離(mm)に変換し、FCLXL,HにメモリしてP
ZP‐CNT処理を抜ける(S2685〜S268
9)。
If the driving direction of the power zoom is the telephoto direction, the pulse conversion value of the current zoom code is stored in the register X. If the driving direction of the power zoom is the wide direction, the pulse conversion value of the previous zoom code is stored in the register X. The value of the register X is stored in the accumulator, and it is checked whether the absolute value of the difference between this value and the current PZ pulse value is less than the correction limit value (S2679 to S2683). If the value is equal to or more than the correction limit value, correction is performed by inserting the value of the register X into the current PZ pulse value and the PZ pulse count start value,
If it is less than the limit value, no correction is made. Then, the PZ pulse count value (PZPCNT) is cleared, the number of PZ pulses at the current focal length (PZPX) is converted into the current focal length (mm) based on the table data, and stored in FCLXL, H and stored in PCLXL, H.
Exit from the ZP-CNT processing (S2685-S268
9).

【0308】なお、PZP‐CNT5処理から来たとき
には、S2683に入り、PZパルスカウント値をクリ
アし、現焦点距離のパルス数を現焦点距離(mm)に変換
し、メモリしてからPZP‐CNT処理を抜ける(S2
685〜S2689)。
When the process comes from the PZP-CNT5 processing, the flow advances to step S2683 to clear the PZ pulse count value, convert the pulse number of the current focal length into the current focal length (mm), store it, and store it in the PZP-CNT5. Exit the process (S2
385-S2689).

【0309】以上のボディからのPZ‐INITPOS
コマンドによりPZパルスイニシャライズ処理実行の指
示があると(ボディメイン電源がオンされたときな
ど)、ズーミングレンズ群53Zをテレ側にズーミング
させて、コード板71の分割領域を越えた時に、その分
割領域の境界位置から絶対位置を検出して、現在位置P
Zパルス値(PZPX)およびスタート位置(PZPS
TRT)を設定することができる。また、現在位置を検
出した後、元の位置へ戻すことも可能である。
The PZ-INITPOS from the above body
When an instruction to execute the PZ pulse initialization process is issued by a command (for example, when the body main power is turned on), the zooming lens group 53Z is zoomed to the telephoto side, and when the zoom lens group 53Z exceeds the split area of the code plate 71, the split area is The absolute position is detected from the boundary position of
Z pulse value (PZPX) and start position (PZPS)
TRT) can be set. It is also possible to return to the original position after detecting the current position.

【0310】また、ズーミング中には、コード板71の
境界を越える度に、その境界部の絶対パルス数をテーブ
ルから読み込んでカウント値と比較し、誤差が一定値よ
り大きければ補正(修正)し、一定値未満であれば補正
しない。
During zooming, every time the boundary of the code plate 71 is exceeded, the absolute pulse number at the boundary is read from the table and compared with the count value. If the error is larger than a certain value, the error is corrected (corrected). If it is less than a certain value, no correction is made.

【0311】『ISZMEMO処理』図91に示したI
SZMEMOフローチャートは、像倍率をメモリするパ
ワーズムレンズ51側の処理である。つまり、像倍率一
定ズームモードにおいて、現在のAFパルス値(AFP
X)と現在の焦点距離(FCLXL,H)を、ズームス
ピード切り替えスイッチ75またはセットSW(SLス
イッチSW)の操作によりメモリする処理である。本処
理は、図10の2msタイマ割込みルーチンのS359の
詳細である。本実施例では、合焦を条件として、ズーム
リングが中立位置に戻されたとき、またはズームリング
が中立位置でなくても、セットスイッチSLがオフされ
た時に、その時点のAFパルス値及び焦点距離がメモリ
される構成である。
"ISZMEMO processing" I shown in FIG.
The SZMEMO flowchart is a process on the side of the power lens 51 that stores the image magnification. That is, in the constant image magnification zoom mode, the current AF pulse value (AFP
X) and the current focal length (FCLXL, H) are stored by operating the zoom speed changeover switch 75 or the set SW (SL switch SW). This processing is the details of S359 of the 2 ms timer interrupt routine in FIG. In this embodiment, when the zoom ring is returned to the neutral position, or the set switch SL is turned off even if the zoom ring is not in the neutral position, the AF pulse value and the focus at that point are set under the condition of focusing. The distance is stored in the memory.

【0312】ISZMEMO処理では、像倍率メモリフ
ラグF_ISMがセットされ、像倍率一定モードが選択さ
れ、かつ合焦フラグF_AFIFがセットされていることを条
件に、S2707以降のメモリ処理に進む(S2701
〜S2705)。像倍率メモリフラグF_ISMは、コマン
ドPZ‐BSTATE(20)によりボディから送られ
てきて、PZ‐BDSTにメモリされる。
In the ISZMEMO process, the process proceeds to the memory process after S2707 on condition that the image magnification memory flag F_ISM is set, the constant image magnification mode is selected, and the focus flag F_AFIF is set (S2701).
To S2705). The image magnification memory flag F_ISM is sent from the body by the command PZ-BSTATE (20) and stored in the PZ-BDST.

【0313】像倍率メモリフラグF_ISMは、通常はクリ
アされて送られてくるので、像倍率のメモリ(現在のA
Fパルス値及び現在の焦点距離のメモリ)は、レンズ側
で勝手に行うのではなく、ボディからのコマンドISZ
‐MEMORY(36)が送られてきた時に行われる。
また、コマンドISZ‐MEMORY(36)が送られ
てくるタイミングは、定期的な通信POFF‐STAT
E(11)のbit2(SLSW)及びLENS‐IN
F1(13)のbit0,1(PTSW、PWSW)を
ボディ側が見て、レンズのセットスイッチ(SLスイッ
チ)及びズームスピードスイッチ75のオン/オフ状態
を判断し、ズームスピードスイッチ75が中立に戻った
ときあるいは、セットスイッチSLがオフしたときであ
る。
Since the image magnification memory flag F_ISM is normally cleared and sent, the image magnification memory (current A
The memory of the F pulse value and the current focal length) is not performed on the lens side, but the command ISZ from the body is used.
-Performed when MEMORY (36) is sent.
The timing at which the command ISZ-MEMORY (36) is sent is based on the periodic communication POFF-STAT.
Bit (SLSW) and LENS-IN of E (11)
The body side looks at bits 0 and 1 (PTSW, PWSW) of F1 (13), and determines the on / off state of the lens set switch (SL switch) and the zoom speed switch 75, and the zoom speed switch 75 returns to neutral. Or when the set switch SL is turned off.

【0314】また、フラグF_ISMがセットされて送られ
てきたときは本処理の説明のごとく、ボディからのコマ
ンドISZ‐MEMORYによらないで、レンズ側でセ
ットスイッチSL及びズームスピードスイッチ75のオ
ン/オフを判断して像倍率のメモリを行う。
If the flag F_ISM is set and sent, as described in this processing, the set switch SL and the zoom speed switch 75 are turned on / off on the lens side without depending on the command ISZ-MEMORY from the body. Judgment of OFF is made and memory of the image magnification is performed.

【0315】ズームスイッチ75が前回中立位置でなく
今回中立位置に戻されたとき、そうでなくても、前回セ
ットスイッチSLがオンされているが今回オフされた時
に、AFパルスの現在値をアドレスISZ‐AFPL,
Hにメモリし、さらに現在の焦点距離をアドレスISZ
‐FCLL,Hにメモリし、像倍率メモリフラグF_ISM
をセットしてからISZMEMO処理を終了する(S2
707〜S2719)。つまり、合焦しかつフラグF_IS
Mがセットされていることを条件として、ズームスイッ
チ75がテレあるいはワイド方向から中立位置に戻され
たとき、またはセットスイッチSLがオン状態からオフ
されたときに、その時点の像倍率がメモリされる構成で
ある。
When the zoom switch 75 is returned to the neutral position this time instead of the previous neutral position, otherwise, the current value of the AF pulse is stored in the address when the set switch SL was previously turned on but turned off this time. ISZ-AFPL,
H, and store the current focal length at address ISZ.
-Store in FCLL and H, and set image magnification memory flag F_ISM
Is set, and then the ISZMEMO process ends (S2
707-S2719). That is, focus is achieved and the flag F_IS
On condition that M is set, when the zoom switch 75 is returned from the tele or wide direction to the neutral position, or when the set switch SL is turned off from the on state, the image magnification at that time is stored. Configuration.

【0316】『MTL‐CTL処理』図92に示したM
TL‐CTLフローチャートは、SET‐ST処理でセ
ットされたズームモータ制御用フラグ(ZM‐ST1の
各フラグ)に応じたズームモータ65の駆動制御に関す
るパワーズムレンズ51の処理である。本処理は、図1
0に示した2msタイマ割込みルーチンのS363の詳細
である。
"MTL-CTL processing" M shown in FIG.
The TL-CTL flowchart is a process of the power lens 51 relating to the drive control of the zoom motor 65 according to the zoom motor control flag (each flag of the ZM-ST1) set in the SET-ST process. This processing is shown in FIG.
It is a detail of S363 of the 2 ms timer interrupt routine shown in FIG.

【0317】ドライブフラグF_DRVがクリアされ、かつ
ブレーキフラグF_BRKがセットされているときにはズー
ムモータ65にブレーキをかけ、ブレーキフラグF_BRK
がクリアされているときにはズームモータ65をフリー
状態にしてから、2msタイマーをスタートさせ、2msタ
イマー割込みを許可し、PWM割込みを禁止して終了す
る(S2801、S2809〜S2813、S281
7、S2819)。
When the drive flag F_DRV is cleared and the brake flag F_BRK is set, the brake is applied to the zoom motor 65 and the brake flag F_BRK is set.
Is cleared, the zoom motor 65 is set to the free state, then the 2 ms timer is started, the 2 ms timer interrupt is permitted, the PWM interrupt is prohibited, and the process is terminated (S2801, S2809 to S2813, S281).
7, S2819).

【0318】ドライブフラグF_DRVがセットされている
ときには、テレ方向のときにはズームモータ65をテレ
方向に起動し、ワイド方向のときにはズームモータ65
をワイド方向に起動する(S2801〜S2807)。
そして、モータを第4速(DC)駆動するときには、2
msタイマーをスタートさせ、2msタイマー割込みを許可
し、PWM割込みを禁止して終了する(S2815、S
2817、S2819)。
[0318] When the drive flag F_DRV is set, the zoom motor 65 is activated in the tele direction when in the tele direction, and is activated in the wide direction.
Are activated in the wide direction (S2801-S2807).
When the motor is driven in the fourth speed (DC), 2
Start the ms timer, enable the 2 ms timer interrupt, disable the PWM interrupt, and end (S2815, S
2817, S2819).

【0319】第1〜第3速のPWM駆動のときには、P
WMハードタイマーを1インクリメントし、インクリメ
ントした値がオーバーフローしたときにはPWMハード
タイマーに最大値(FFH)を入れ、オーバーフローし
ていないときにはインクリメントした値を保持する(S
2815、S2821〜S2825)。
In the case of the first to third speed PWM driving, P
The WM hard timer is incremented by one, and when the incremented value overflows, the maximum value (FFH) is entered into the PWM hard timer, and when the overflow does not occur, the incremented value is held (S
2815, S2821 to S2825).

【0320】次に、PWMハードタイマー値(T_PW
M)がPWMのPZパルス周期(T_PWMPLS)を
越えたかどうか(PWMのPZパルス周期時間内にPZ
パルスが出力されたかどうか)をチェックし、越えてい
れば周期内にパルスが出力されていないのでデューティ
ー比(T_PWMBRK)をアップし、越えていなけれ
ばそのままで、デューティー比(T_PWMBRK)を
PWM制御用のハードタイマーへセットし、PWM制御
用ハードタイマーをスタートさせる(S2827〜S2
833)。そして、2msタイマーをスタートさせ、2ms
タイマー割込みを許可し、PWM割込みを許可して終了
する(S2835、S2837)。
Next, the PWM hard timer value (T_PW
M) exceeds the PWM PZ pulse cycle (T_PWMPLS) (PZ within the PWM PZ pulse cycle time)
Check if the pulse is output), and if it exceeds, increase the duty ratio (T_PWMBRK) because no pulse is output within the cycle. And starts the PWM control hard timer (S2827 to S227).
833). And start 2ms timer, 2ms
The timer interrupt is permitted, the PWM interrupt is permitted, and the process is terminated (S2835, S2837).

【0321】[レリーズ処理]図93に示した、カメラ
ボディ11におけるレリーズ処理について説明する。こ
のレリーズ処理は、レリーズスイッチSWRがオンされ
たことを条件に、メインCPU35により実行される。
[Release Processing] The release processing in the camera body 11 shown in FIG. 93 will be described. This release process is executed by the main CPU 35 on condition that the release switch SWR is turned on.

【0322】露光中マニュアルパワーズームが可能かど
うかをE2PROM等にメモリされているデータをもと
に判断して、この判断に応じて、BODY‐STATE
1通信で所定のデータをレンズに送る(S2901、S
2903、S2905)。露光中マニュアルパワーズー
ム可のときは、MPZ禁止フラグ(MPZD)をクリア
し、制御ズーム停止フラグ(IPZD)をセットし、レ
リーズ中フラグ(REL)をセットしたBODY‐ST
ATE1データを送る(S2905)。露光中マニュア
ルパワーズーム不可のときは、MPZ禁止フラグ(MP
ZD)をセットし、制御ズーム停止フラグ(IPZD)
をセットし、レリーズ中フラグ(REL)をセットした
BODY‐STATE1データを送る(S2903)。
これらの通信で、制御ズーム(像倍率一定ズームあるい
はプリセットズーム)が動作中であることが分かれば制
御ズームを停止させる。
It is determined whether manual power zoom is possible during exposure based on data stored in an E2PROM or the like, and in response to this determination, the BODY-STATE
Sends predetermined data to the lens in one communication (S2901, S290
2903, S2905). When manual power zooming during exposure is possible, the MPDY prohibition flag (MPZD) is cleared, the control zoom stop flag (IPZD) is set, and the BODY-ST in which the release flag (REL) is set.
ATE1 data is sent (S2905). If manual power zoom is not possible during exposure, the MPZ prohibition flag (MPZ
ZD) and control zoom stop flag (IPZD)
Is set, and BODY-STATE1 data in which the release flag (REL) is set is sent (S2903).
In these communications, if it is found that the control zoom (constant image magnification zoom or preset zoom) is operating, the control zoom is stopped.

【0323】次に、PZ_LSTATEコマンド通信を
行なってフラグF_IPZBをチェックし、制御ズーム(像倍
率一定ズームあるいはプリセットズーム)が終了したか
をチェックする(S2904‐1〜2)。終了したら、
像倍率一定ズーム中フラグF_ISZON、プリセットズーム
中フラグF_IPZONをクリアし、ボディのバッテリー要求
フラグをクリアし、バッテリの供給を停止する(S29
04‐3〜6)。
Next, PZ_LSTATE command communication is performed to check the flag F_IPZB, and it is checked whether control zoom (constant image magnification zoom or preset zoom) has been completed (S2904-1 and S2904-1-2). When finished,
Clear the constant image magnification zooming flag F_ISZON and the preset zooming flag F_IPZON, clear the battery request flag of the body, and stop the battery supply (S29).
04-3-6).

【0324】次に、ミラーモータ33および絞り機構4
6を起動してミラー13のアップおよび絞りの絞り込み
を行ない、これらの処理が終了したら、露光機構27の
先幕を走行させ、露光間ズームかどうかをチェックする
(S2907、S2909、S2911)。露光間ズー
ムであれば、S2913〜S2923の処理を実行す
る。露光間ズームでなけらば、S2913〜S2923
の処理をスキップする。
Next, the mirror motor 33 and the aperture mechanism 4
6, the mirror 13 is raised and the aperture is narrowed down. When these processes are completed, the front curtain of the exposure mechanism 27 is run to check whether or not the zoom is during exposure (S2907, S2909, S2911). If it is the during-exposure zoom, the processing of S2913 to S2923 is executed. If the zoom is not between exposures, S2913 to S2923
Skip the process.

【0325】『露光間ズーム』露光間ズーム動作につい
て、さらに図94に示したタイミングチャートを参照し
て説明する。露光間ズームであれば、露出時間(シャッ
タ速度)が所定時間(例えば1/60秒)よりも長いこ
とを条件に、露出時間に応じたズーミングスピードをセ
ットし、パワーズームの方向(TELE方向またはWI
DE方向)をセットし、パワーズームレンズ51に電力
を供給し、正常に電力が供給されたかどうかをチェック
し、正常に供給されていることを条件に、露出時間の1
/2が経過するのを待つ(S2911、S2913〜S
2923)。
[Zoom During Exposure] The zoom operation during exposure will be described with reference to the timing chart shown in FIG. In the case of the inter-exposure zoom, the zoom speed according to the exposure time is set on condition that the exposure time (shutter speed) is longer than a predetermined time (for example, 1/60 second), and the power zoom direction (TELE direction or WI
(DE direction) is set, power is supplied to the power zoom lens 51, it is checked whether the power is supplied normally, and if the power is supplied normally, the exposure time is set to one.
/ 2 elapses (S2911, S2913 to S2913)
2923).

【0326】露出時間の1/2が経過したら、S291
5、S2917でセットしたズーミングスピード及び方
向のデータをMOVE‐PZMDコマンド通信でパワー
ズームレンズ51に送信して、パワーズームレンズ51
にパワーズームを開始させて、露光時間が経過するのを
待つ(S2923〜S2927)。
After 露出 of the exposure time has elapsed, the flow advances to step S291.
5. The zooming speed and direction data set in S2917 are transmitted to the power zoom lens 51 by MOVE-PZMD command communication, and the power zoom lens 51 is transmitted.
Then, the power zoom is started, and the elapse of the exposure time is waited (S2923 to S2927).

【0327】露出時間が経過(後幕が走行を終了)する
と、BODY‐STATE1通信を行ない、マニュアル
パワーズーミングを禁止し、露光間ズーミングを停止さ
せる(S2929)。次にPZ‐LSTATEデータ通
信でフラグIPZBをチェックし、露光間ズームのズー
ミングが停止したかをチェックする(S2929〜S2
931)。停止(IPZB=0)を確認したら、ボディ
のバッテリ要求フラグをクリアし、バッテリの供給を停
止する(S2931〜S2933)。そして、ミラーモ
ータ33およびフィルム巻上げモータ25を起動してミ
ラーダウンおよびフィルム巻上げを行ない、BODY‐
STATE1通信を行なって、マニュアルパワーズーム
を許可してリターンする(S2934〜S2937)。
When the exposure time has elapsed (the trailing curtain has finished running), BODY-STATE1 communication is performed, manual power zooming is prohibited, and zooming during exposure is stopped (S2929). Next, the flag IPZB is checked by the PZ-LSTATE data communication, and it is checked whether the zooming during the exposure has stopped (S2929 to S2).
931). When the stop (IPZB = 0) is confirmed, the battery request flag of the body is cleared, and the supply of the battery is stopped (S2931-S2933). Then, the mirror motor 33 and the film winding motor 25 are activated to perform mirror lowering and film winding, and the BODY-
STATE1 communication is performed, manual power zoom is permitted, and the process returns (S2934 to S2937).

【0328】以上本実施例では、露光間ズームを行なう
露出時間を1/60秒以上としたがこれに限定されず、
露光時間に応じてズームスピードを変更したが変更しな
くてもよく、1/2露出時間が経過してからパワーズー
ムを開始したが、パワーズームの開始、終了のタイミン
グも任意である。
In the present embodiment, the exposure time for performing the inter-exposure zoom is set to 1/60 second or more. However, the present invention is not limited to this.
Although the zoom speed is changed according to the exposure time, it is not necessary to change the zoom speed. The power zoom is started after the 露出 exposure time has elapsed, but the timing of starting and ending the power zoom is arbitrary.

【0329】『PZモード切換え処理』図95に示し
た、カメラボディ11におけるパワーズーム(PZ)モ
ード切換え処理について説明する。このPZモード切換
え処理は、図60に示したPZループ処理内のS150
7において実行され、パワーズームレンズ51のズーム
モード切換えスイッチ77が所定操作されたときにPZ
モード変更処理を実行する。本実施例では、手動ズーム
またはマニュアルパワーズーム、像倍率一定ズーム、プ
リセットズーム、プリセットズームセットおよび露光間
ズームからなる5種類のズームモードを備えている。な
お本フローチャートでは、各モードのナンバーを付し、
NO.0が手動ズームまたはマニュアルパワーズームモー
ド、NO.1が像倍率一定ズームモード、NO.2がプリセッ
トズームモード、NO.3がプリセットズームセットモー
ドおよびNO.4が露光間ズームモードとしてある。
[PZ Mode Switching Process] The power zoom (PZ) mode switching process in the camera body 11 shown in FIG. 95 will be described. This PZ mode switching processing is performed in S150 in the PZ loop processing shown in FIG.
7 is executed when the zoom mode switch 77 of the power zoom lens 51 is operated in a predetermined manner.
Execute the mode change processing. In the present embodiment, five types of zoom modes including a manual zoom or a manual power zoom, a fixed image magnification zoom, a preset zoom, a preset zoom set, and a during-exposure zoom are provided. In this flowchart, the number of each mode is assigned,
No. 0 is a manual zoom or manual power zoom mode, No. 1 is a constant image magnification zoom mode, No. 2 is a preset zoom mode, No. 3 is a preset zoom set mode, and No. 4 is a during-exposure zoom mode.

【0330】先ず、装着された撮影レンズがパワーズー
ムレンズかどうか、手動ズームモードか電動ズームモー
ドか、およびパワーズームレンズであればマニュアルパ
ワーズーム(電動ズーム)かオートパワーズームかどう
かをチェックし、パワーズームレンズ、パワーズームか
つオートパワーズームでなければ、パワーズームモード
フラグをクリアし、この状態を保存してからリターンす
る(S3001、S3035、S3039)。
First, it is checked whether the mounted photographing lens is a power zoom lens, whether it is a manual zoom mode or an electric zoom mode, and if it is a power zoom lens, whether it is a manual power zoom (electric zoom) or an auto power zoom. If it is not the power zoom lens, the power zoom, and the auto power zoom, the power zoom mode flag is cleared, this state is saved, and the process returns (S3001, S3035, S3039).

【0331】オートパワーズームレンズであれば、すで
に保存してあるモードを復帰する。オートフォーカスモ
ードであれば何もしないが、オートフォーカスでないと
きには、像倍率一定ズームはできないので、復帰したP
Zモードが像倍率一定ズームモード(1)あればPZモ
ードをアップ変更し、違えばそのままにする(S300
9〜S3013)。
In the case of an auto power zoom lens, the mode already stored is restored. In the auto focus mode, nothing is performed. However, when the auto focus mode is not set, the fixed image magnification zoom cannot be performed.
If the Z mode is the constant image magnification zoom mode (1), the PZ mode is changed up, and if not, the PZ mode is left unchanged (S300).
9 to S3013).

【0332】次に、パワーズームレンズ51のLSスイ
ッチ(ズームモード切替えスイッチ77)がオンされて
いることを条件に、カメラボディ11のアップ、ダウン
スイッチSWUP、DNがオンされたときにPZモード
の変更処理を行なう(S3015〜S3029)。例え
ば、ダウンスイッチSWDNがオンされたときには、ズ
ームモードNO.が4になるまでアップ処理を行なう(S
3017、S3031、S3033)。アップスイッチ
SWUPがオンされたときは、ズームモードNO.が1に
なるまでダウン処理を行なうが、オートフォーカスモー
ドでないときには、像倍率一定ズームは選択しない(S
3019〜S3029)。なお、このPZモード切換え
処理において、アップ、ダウンスイッチSWUP、DN
はズームモード変更スイッチとして機能する。
Next, on condition that the LS switch (zoom mode changeover switch 77) of the power zoom lens 51 is turned on, when the up / down switches SWUP and DN of the camera body 11 are turned on, the PZ mode is set. A change process is performed (S3015 to S3029). For example, when the down switch SWDN is turned on, the up process is performed until the zoom mode No. becomes 4 (S
3017, S3031, S3033). When the up switch SWUP is turned on, the down process is performed until the zoom mode No. becomes 1, but when the auto focus mode is not set, the constant image magnification zoom is not selected (S
3019 to S3029). In the PZ mode switching process, the up / down switches SWUP, DN
Functions as a zoom mode change switch.

【0333】以上のUP/DOWN処理が終了したら、選択し
たズームモードNO.を保存してリターンする(S303
9)。なお、スイッチSWASの状態は、POFF‐S
TATE通信により入力するデータに含まれている。
When the above UP / DOWN processing is completed, the selected zoom mode No. is stored and the routine returns (S303).
9). The state of the switch SWAS is POFF-S
It is included in data input by TATE communication.

【0334】『PZパルスカウント割込み処理』パワー
ズームレンズ51側で実行される、図96及び図97に
示したPZパルスカウント割込み処理について説明す
る。PZパルス出力の立ち上がりで本割込み処理を行な
い、ソフト的にPZパルスのカウント等を行なう。な
お、レンズCPUの設定により、割込みは立ち下がりで
入ってもかまわない。
[PZ Pulse Count Interrupt Processing] The PZ pulse count interrupt processing shown in FIGS. 96 and 97, which is executed on the power zoom lens 51 side, will be described. This interrupt processing is performed at the rising edge of the PZ pulse output, and the PZ pulse is counted by software. Note that the interrupt may be input at the falling edge depending on the setting of the lens CPU.

【0335】先ず、割込みを禁止し、PZイニシャライ
ズ処理のときにPZパルスをカウントするPZカウンタ
(PZPA2B)、およびPZパルスカウント値(PZ
PCNT)を1インクリメントし、PZパルスカウンタ
の値がオーバーフローしているときは、PZパルスカウ
ント値に最大値を入れる(S3101〜S3109)。
First, a PZ counter (PZPA2B) for disabling an interrupt and counting PZ pulses during PZ initialization processing, and a PZ pulse count value (PZ
(PCNT) is incremented by one, and when the value of the PZ pulse counter overflows, the maximum value is set to the PZ pulse count value (S3101 to S3109).

【0336】次にパワーズームの駆動方向をチェック
し、テレ方向のときにはPZパルスカウントスタート値
にPZパルスカウント値を加算して現PZパルス値に入
れ、ワイド方向のときにはPZパルスカウントスタート
値からPZパルスカウント値を減算して現PZパルス値
に入れる(S3111〜S3115)。
Next, the driving direction of the power zoom is checked. If the driving direction is the telephoto direction, the PZ pulse count value is added to the PZ pulse count start value to enter the current PZ pulse value. The pulse count value is subtracted into the current PZ pulse value (S3111 to S3115).

【0337】そして、ドライブ中でなければ(F_DRV=
0)、PWM制御チェック(CHKPWM)処理に進む
(S3117)。ドライブ中であるが、そのドライブが
像倍率一定ズームか目標位置へのドライブでなければP
WM制御チェック(CHKPWM)処理に進む(S31
17〜S3121)。像倍率一定ズームでドライブ中で
あるか目標位置へのドライブ中であるときには、現在の
PZパルス数と目標PZパルス数とが等しくなければP
WM制御チェック(CHKPWM)処理に進むが、等し
ければすぐにズームモータを停止させるためにブレーキ
(BREAK)処理に進む(S3117、S3119、
S3123)。
Then, if the drive is not being performed (F_DRV =
0), the process proceeds to a PWM control check (CHKPWM) process (S3117). Drive is in progress, but if the drive is not a drive to the fixed image magnification zoom or target position, P
Proceed to WM control check (CHKPWM) processing (S31)
17-S3121). If the current number of PZ pulses and the target number of PZ pulses are not equal to each other while driving with the constant image magnification zoom or driving to the target position, P
The process proceeds to the WM control check (CHKPWM) process, but proceeds to the brake (BREAK) process to stop the zoom motor as soon as possible (S3117, S3119,
S3123).

【0338】『BRAK、CHKPWM処理』図97に
は、ズームモータのブレーキ処理(BRAK処理)およ
びPWMチェック処理に関するフローチャートを示して
ある。この処理は、PZモータの回転スピードを抑える
処理である。
[BRAK, CHKPWM Processing] FIG. 97 is a flow chart showing the brake processing (BRAK processing) of the zoom motor and the PWM check processing. This process is a process for suppressing the rotation speed of the PZ motor.

【0339】ブレーキ処理では、先ずズームモータにブ
レーキをかけ、(ズームモータの入力端子を閉成)し
て、ZM‐ST1にブレーキデータ(F_BRKをセット、
フラグF_LMTT、F_LMTWはそのまま、他はクリア)を入れ
る(S3151、S3153)。そして、PWMタイ
マ、リミットタイマおよびスタートタイマをクリアし、
現PZパルス値(PZPX)から現焦点距離データを得
てFCLXL,Hにメモリし、割込みを許可してリター
ンする(S3155〜S3159)。
In the brake processing, first, the brake is applied to the zoom motor, the input terminal of the zoom motor is closed, and the brake data (F_BRK is set in ZM-ST1.
Flags F_LMTT and F_LMTW are left as they are, others are cleared) (S3151 and S3153). Then, the PWM timer, the limit timer, and the start timer are cleared,
The current focal length data is obtained from the current PZ pulse value (PZPX), stored in FCLXL, H, the interrupt is permitted, and the process returns (S3155 to S3159).

【0340】CHKPWM処理は、PWM制御において
デューティー比を下げる処理である。PWM駆動中でな
ければ第4速(DC)そのままS3155に進むが、P
WM駆動中であれば、PWMパルス周期(T‐PWMP
LS)とPWMタイマ(T‐PWM)を比較し、PWM
パルス周期によりPWMタイマが小さいときはパワーズ
ームスピードが速すぎるので、デューティー比を下げて
からS3155に進み、PWMパルス周期よりPWMタ
イマが大きいときにはそのままS3155に進む(S3
161〜S3165)。以上の通り、本実施例で多数の
機能について説明したが、これらは、すべて単一のカメ
ラシステム(カメラボディ及び撮影レンズ)に搭載する
ことができるが、もちろん一部のみを搭載してもよい。
The CHKPWM process is a process for reducing the duty ratio in the PWM control. If the PWM drive is not being performed, the process proceeds to S3155 as the fourth speed (DC).
During WM driving, the PWM pulse period (T-PWMP
LS) and the PWM timer (T-PWM).
When the PWM timer is small due to the pulse period, the power zoom speed is too fast, so the duty ratio is lowered before proceeding to S3155, and when the PWM timer is longer than the PWM pulse period, the process proceeds directly to S3155 (S3155).
161 to S3165). As described above, a large number of functions have been described in the present embodiment, but they can all be mounted on a single camera system (camera body and photographing lens), but of course, only some of them may be mounted. .

【0341】さらに本実施例のズームモータのPWM制
御は、間欠給電時間、つまり通電時間と非通電時間の比
を所定単位で段階的に変更することにより、一定速度で
のズーミングを可能にしている。つまり本実施例のパワ
ーズームレンズは、ズームモータ65の回転に連動して
出力されるPZパルスが設定時間間隔で出力されないと
き、つまり設定時間経過しても出力されなければ、通電
比を所定単位大きく(通電時間を所定時間単位で伸長し
かつ非通電時間を所定時間単位で短縮)することにより
ズームモータ65のトルクを大きくして回転速度を速く
し、設定時間経過前にPZパルスが出力されたときに
は、通電比を所定単位小さく(通電時間を所定時間単位
で短縮しかつ非通電時間を所定時間単位で伸長)するこ
とによりズームモータ65のトルクを小さくして回転速
度を遅くする、という制御により、安定した一定速度制
御を実現している。なお、本実施例では、ズームモータ
65をPWM制御する際の設定速度を、PZパルスの出
力間隔を6ms、8msおよび16msの3段階に設定可能な
構成としたが、本発明はこれに限定されることはない。
また、通電時間と非通電時間の和を本実施例では4msに
設定してあるが、これも任意である。
Further, the PWM control of the zoom motor of this embodiment enables zooming at a constant speed by changing the intermittent power supply time, that is, the ratio of the power-on time to the non-power-on time in a predetermined unit. . That is, the power zoom lens of the present embodiment sets the energization ratio to a predetermined unit when the PZ pulse output in conjunction with the rotation of the zoom motor 65 is not output at the set time interval, that is, when the PZ pulse is not output even after the set time has elapsed. By increasing the power supply time (extending the power supply time in a predetermined time unit and reducing the non-power supply time in a predetermined time unit), the torque of the zoom motor 65 is increased to increase the rotation speed, and a PZ pulse is output before the set time elapses. In this case, control is performed to reduce the torque of the zoom motor 65 and decrease the rotation speed by reducing the energization ratio by a predetermined unit (reducing the energization time by a predetermined time unit and extending the non-energization time by a predetermined time unit). As a result, stable constant speed control is realized. In this embodiment, the set speed when the zoom motor 65 is subjected to the PWM control is configured such that the output interval of the PZ pulse can be set to three stages of 6 ms, 8 ms and 16 ms. However, the present invention is not limited to this. Never.
In the present embodiment, the sum of the energizing time and the non-energizing time is set to 4 ms, but this is also arbitrary.

【0342】[0342]

【発明の効果】以上の説明から明らかな通り本発明は、
速度設定手段により設定された時間間隔で検出信号が出
力されないとき、つまり設定された時間間隔が経過して
も検出信号が出力されないときには間欠給電の通電時間
を所定単位で伸長しかつ非通電時間を所定時間単位で短
縮し、設定された時間間隔内に検出信号が出力されたと
きには間欠給電の通電時間を所定単位で短縮しかつ非通
電時間を所定単位で伸長することにより、変動の小さい
一定速度でのレンズ駆動を可能にした。
As is clear from the above description, the present invention
When the detection signal is not output at the time interval set by the speed setting means, that is, when the detection signal is not output even after the set time interval has elapsed, the energizing time of the intermittent power supply is extended in a predetermined unit and the non-energizing time is increased. When the detection signal is output within a set time interval and the detection signal is output within the set time interval, the energizing time of the intermittent power supply is shortened by the predetermined unit and the non-energizing time is extended by the predetermined unit, so that a constant speed with small fluctuation is obtained. Enabled lens drive.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明を適用した一眼レフカメラボディの実施
例の概要を示すブロック図である。
FIG. 1 is a block diagram showing an outline of an embodiment of a single-lens reflex camera body to which the present invention is applied.

【図2】本発明を適用した一眼レフカメラ用パワーズー
ムレンズの実施例の概要を示すブロック図である。
FIG. 2 is a block diagram showing an outline of an embodiment of a power zoom lens for a single-lens reflex camera to which the present invention is applied.

【図3】同パワーズームレンズの回路構成の実施例を示
すブロック図である。
FIG. 3 is a block diagram showing an example of a circuit configuration of the power zoom lens.

【図4】同パワーズームレンズのズームコード板の展開
図である。
FIG. 4 is a development view of a zoom code plate of the power zoom lens.

【図5】同パワーズームレンズの焦点距離コード板の展
開図である。
FIG. 5 is a development view of a focal length code plate of the power zoom lens.

【図6】レンズCPUのメインフローチャートの第一部
分である。
FIG. 6 is a first part of a main flowchart of the lens CPU.

【図7】レンズCPUのメインフローチャートの第二部
分である。
FIG. 7 is a second part of the main flowchart of the lens CPU.

【図8】レンズCPUの通信割込処理に関するフローチ
ャートである。
FIG. 8 is a flowchart relating to a communication interruption process of a lens CPU.

【図9】2msタイマ割り込みに関するフローチャートで
ある。
FIG. 9 is a flowchart relating to a 2 ms timer interrupt.

【図10】パワーズーム、マニュアルズーム処理に関す
るフローチャートである。
FIG. 10 is a flowchart relating to power zoom and manual zoom processing.

【図11】PWM2msタイマ割り込みに関するフローチ
ャートである。
FIG. 11 is a flowchart relating to a PWM 2 ms timer interrupt.

【図12】PZパルスカウント割り込み処理に関するフ
ローチャートである。
FIG. 12 is a flowchart relating to PZ pulse count interrupt processing.

【図13】PWM割り込みに関するフローチャートであ
る。
FIG. 13 is a flowchart relating to a PWM interrupt.

【図14】PWM制御に関するタイムチャートである。FIG. 14 is a time chart related to PWM control.

【図15】像倍率一定ズーム制御に関するフローチャー
トの第一部分である。
FIG. 15 is a first part of a flowchart relating to constant image magnification zoom control.

【図16】像倍率一定ズーム制御に関するフローチャー
トの第二部分である。
FIG. 16 is a second part of a flowchart relating to constant image magnification zoom control.

【図17】プレディクタオペレーション処理に関するフ
ローチャートの第一部分である。
FIG. 17 is a first part of a flowchart relating to predictor operation processing.

【図18】プレディクタオペレーション処理に関するフ
ローチャートの第二部分である。
FIG. 18 is a second part of a flowchart relating to predictor operation processing.

【図19】スタンバイ処理に関するレンズのフローチャ
ートである。
FIG. 19 is a flowchart of a lens related to standby processing.

【図20】AFパルス初期化処理に関するレンズのフロ
ーチャートである。
FIG. 20 is a flowchart of a lens relating to AF pulse initialization processing.

【図21】パワーズーム位置初期化処理に関するレンズ
のフローチャートである。
FIG. 21 is a flowchart of a lens relating to power zoom position initialization processing.

【図22】パワーズームレンズの収納処理に関するレン
ズのフローチャートである。
FIG. 22 is a flowchart of a lens related to a storage process of a power zoom lens.

【図23】パワーズームレンズの復帰処理に関するレン
ズのフローチャートである。
FIG. 23 is a flowchart of a lens relating to a return process of the power zoom lens.

【図24】パワーズームのストップ処理に関するレンズ
のフローチャートである。
FIG. 24 is a flowchart of a lens related to power zoom stop processing.

【図25】像倍率一定ズームに必要なデータを受信した
ときのレンズのフローチャートである。
FIG. 25 is a flowchart of a lens when data necessary for constant image magnification zoom is received.

【図26】像倍率一定ズーム処理に関するレンズのフロ
ーチャートであ。
FIG. 26 is a flowchart of a lens related to constant image magnification zoom processing.

【図27】像倍率一定ズームに関する情報を入力したと
きのレンズ処理に関するフローチャートである。
FIG. 27 is a flowchart relating to lens processing when information relating to constant image magnification zoom is input.

【図28】カメラボディの状態に関する情報を入力した
ときのレンズ処理に関するフローチャートである。
FIG. 28 is a flowchart relating to lens processing when information relating to the state of the camera body is input.

【図29】ボディシーケンス情報を入力したときのレン
ズ処理に関するフローチャートである。
FIG. 29 is a flowchart relating to lens processing when body sequence information is input.

【図30】カメラボディ側からAFパルスを入力したと
きのレンズ処理に関するフローチャートである。
FIG. 30 is a flowchart relating to lens processing when an AF pulse is input from the camera body side.

【図31】カメラボディ側からPZパルスを入力したと
きのレンズ処理に関するフローチャートである。
FIG. 31 is a flowchart relating to lens processing when a PZ pulse is input from the camera body side.

【図32】レンズ内でカウントしたAFパルスデータを
メモリするコマンドを受けたときの処理に関するレンズ
のフローチャートである。
FIG. 32 is a flowchart of the lens regarding processing when a command to store AF pulse data counted in the lens is received.

【図33】ボディ側のAFで求めたデフォーカス量をレ
ンズメモリにストアするレンズ処理に関するフローチャ
ートである。
FIG. 33 is a flowchart relating to lens processing for storing a defocus amount obtained by body-side AF in a lens memory.

【図34】指定されたPZパルスデータ、焦点距離デー
タのメモリ処理に関するレンズのフローチャートであ
る。
FIG. 34 is a flowchart of a lens relating to memory processing of designated PZ pulse data and focal length data.

【図35】ボディ側のAFで求めたデフォーカス量をレ
ンズメモリにストアするレンズ処理に関するフローチャ
ートである。
FIG. 35 is a flowchart relating to lens processing for storing the defocus amount obtained by AF on the body side in a lens memory.

【図36】カメラボディから受信した像倍率一定ズーム
データのメモリ処理に関するレンズのフローチャートで
ある。
FIG. 36 is a flowchart of a lens relating to memory processing of fixed image magnification zoom data received from a camera body.

【図37】指定方向または指定位置へのパワーズーミン
グ処理に関するレンズのフローチャートである。
FIG. 37 is a flowchart of a lens relating to power zooming processing to a designated direction or a designated position.

【図38】カメラボディにより指定されたデータに基づ
くパワーズーム処理に関するレンズのフローチャートで
ある。
FIG. 38 is a flowchart of a lens relating to power zoom processing based on data designated by a camera body.

【図39】AFパルスカウント処理に関するレンズのフ
ローチャートの第一部分である。
FIG. 39 is a first part of a lens flowchart relating to AF pulse counting processing.

【図40】AFパルスカウント処理に関するレンズのフ
ローチャートの第二部分である。
FIG. 40 is a second part of the flowchart of the lens relating to the AF pulse counting process.

【図41】AFパルスカウント処理に関するレンズのフ
ローチャートの第三部分である。
FIG. 41 is a third part of the flowchart of the lens relating to the AF pulse counting process.

【図42】AFパルスカウント処理に関するレンズのフ
ローチャートの第四部分である。
FIG. 42 is a fourth part of the flowchart of the lens relating to the AF pulse counting process.

【図43】AFパルスカウント処理に関するレンズのフ
ローチャートの第五部分である。
FIG. 43 is a fifth part of the flowchart of the lens relating to the AF pulse counting process.

【図44】撮影レンズ側のパワーズームに関するデータ
の送信処理に関するフローチャートである。
FIG. 44 is a flowchart illustrating transmission processing of data relating to power zoom on the photographing lens side.

【図45】撮影レンズのスタンバイ処理等に関するフロ
ーチャートである。
FIG. 45 is a flowchart related to a standby process and the like of a photographing lens.

【図46】撮影レンズの可変データ送信処理に関するフ
ローチャートである。
FIG. 46 is a flowchart relating to variable data transmission processing of a photographing lens.

【図47】撮影レンズの固定情報送信処理に関するフロ
ーチャートである。
FIG. 47 is a flowchart relating to fixed information transmission processing of a photographing lens.

【図48】撮影レンズ側のAFパルスカウント値送信処
理に関するフローチャートである。
FIG. 48 is a flowchart relating to AF pulse count value transmission processing on the photographing lens side.

【図49】撮影レンズの現焦点距離データの出力処理に
関するフローチャートである。
FIG. 49 is a flowchart relating to output processing of current focal length data of the photographing lens.

【図50】撮影レンズ側の像倍率一定ズームデータ送信
処理に関するフローチャートである。
FIG. 50 is a flowchart related to fixed image magnification zoom data transmission processing on the photographing lens side.

【図51】撮影レンズのすべてのデータ出力処理に関す
るフローチャートである。
FIG. 51 is a flowchart related to all data output processing of the photographing lens.

【図52】PZ処理に関するフローチャートの第一部分
である。
FIG. 52 is a first part of a flowchart relating to the PZ processing.

【図53】PZ処理に関するフローチャートの第二部分
である。
FIG. 53 is a second part of the flowchart relating to the PZ processing.

【図54】PZ処理に関するフローチャートの第三部分
である。
FIG. 54 is a third part of a flowchart relating to PZ processing.

【図55】PZ処理に関するフローチャートの第四部分
である。
FIG. 55 is a fourth part of the flowchart relating to the PZ processing.

【図56】PZのイニシャライズ処理に関するフローチ
ャートである。
FIG. 56 is a flowchart relating to a PZ initialization process.

【図57】AFのイニシャライズ処理に関するフローチ
ャートの第一部分である。
FIG. 57 is a first part of a flowchart relating to AF initialization processing.

【図58】AFのイニシャライズ処理に関するフローチ
ャートの第二部分である。
FIG. 58 is a second part of the flowchart relating to the initialization processing of the AF.

【図59】電力供給チェック処理に関するフローチャー
トである。
FIG. 59 is a flowchart related to a power supply check process.

【図60】PZのループ処理に関するフローチャートの
第一部分である。
FIG. 60 is a first part of a flowchart relating to the loop processing of PZ.

【図61】PZのループ処理に関するフローチャートの
第二部分である。
FIG. 61 is a second part of the flowchart relating to the loop processing of PZ.

【図62】PZのループ処理に関するフローチャートの
第三部分である。
FIG. 62 is a third part of the flowchart relating to the loop processing of PZ.

【図63】プリセットパワーズーム終了チェック処理に
関するフローチャートである。
FIG. 63 is a flowchart relating to preset power zoom end check processing.

【図64】像倍率一定ズームの第1実施例のフローチャ
ートの第一部分である。
FIG. 64 is a first part of a flowchart of a first embodiment of a constant image magnification zoom.

【図65】像倍率一定ズームの第1実施例のフローチャ
ートの第二部分である。
FIG. 65 is a second part of the flowchart of the first embodiment of the constant image magnification zoom.

【図66】像倍率一定ズームの第2実施例のフローチャ
ートの第一部分である。
FIG. 66 is a first part of a flowchart of the second embodiment of the constant image magnification zoom.

【図67】像倍率一定ズームの第2実施例のフローチャ
ートの第二部分である。
FIG. 67 is a second part of the flowchart of the second embodiment of the constant image magnification zoom.

【図68】像倍率一定ズームの第3実施例のフローチャ
ートの第一部分である。
FIG. 68 is a first part of a flowchart of a third embodiment of the constant image magnification zoom.

【図69】像倍率一定ズームの第3実施例のフローチャ
ートの第二部分である。
FIG. 69 is a second part of the flowchart of the third embodiment of the constant image magnification zoom.

【図70】AFパルスカウント処理に関するレンズのフ
ローチャートである。
FIG. 70 is a flowchart of a lens relating to AF pulse counting processing.

【図71】AFパルスカウント値のアジャスト処理に関
するレンズのフローチャートである。
FIG. 71 is a flowchart of a lens relating to an adjustment process of an AF pulse count value.

【図72】PZ端点処理に関するレンズのフローチャー
トである。
FIG. 72 is a flowchart of a lens relating to PZ end point processing.

【図73】ズームモーターの回転方向、回転スピード制
御に関するレンズのフローチャートである。
FIG. 73 is a flowchart of a lens related to rotation direction and rotation speed control of a zoom motor.

【図74】ズームスイッチによるパワーズーム動作に関
するレンズのフローチャートの第一部分である。
FIG. 74 is a first part of a flowchart of the lens relating to the power zoom operation by the zoom switch.

【図75】ズームスイッチによるパワーズーム動作に関
するレンズのフローチャートの第二部分である。
FIG. 75 is a second part of the flowchart of the lens regarding the power zoom operation by the zoom switch.

【図76】ズームスイッチによるパワーズーム動作に関
するレンズのフローチャートである。
FIG. 76 is a flowchart of a lens related to a power zoom operation performed by a zoom switch.

【図77】PZパルスカウント割り込み処理に関するレ
ンズのフローチャートである。
FIG. 77 is a flowchart of the lens related to PZ pulse count interruption processing.

【図78】パワーズーム停止処理に関するレンズのフロ
ーチャートである。
FIG. 78 is a flowchart of a lens relating to power zoom stop processing.

【図79】ズームモーターのブレーキ処理に関するレン
ズのフローチャートである。
FIG. 79 is a flowchart of the lens related to the brake processing of the zoom motor.

【図80】撮影レンズ状態のセット処理に関するレンズ
のフローチャートの第一部分である。
FIG. 80 is a first part of a flowchart of a lens related to a setting process of a shooting lens state.

【図81】撮影レンズ状態のセット処理に関するレンズ
のフローチャートの第二部分である。
FIG. 81 is a second part of the lens flowchart illustrating the setting processing of the shooting lens state.

【図82】指定焦点距離へのパワーズーム処理に関する
レンズのフローチャートの第一部分である。
FIG. 82 is a first part of a flowchart of a lens related to power zoom processing to a designated focal length.

【図83】指定焦点距離へのパワーズーム処理に関する
レンズのフローチャートの第二部分である。
FIG. 83 is a second part of the flowchart of the lens regarding the power zoom processing to the designated focal length.

【図84】目標位置までのパルス数に応じた駆動スピー
ド調整処理に関するレンズのフローチャートの第一部分
である。
FIG. 84 is a first part of a flowchart of a lens relating to drive speed adjustment processing according to the number of pulses to a target position.

【図85】目標位置までのパルス数に応じた駆動スピー
ド調整処理に関するレンズのフローチャートの第二部分
である。
FIG. 85 is a second part of the flowchart of the lens related to the drive speed adjustment processing according to the number of pulses to the target position.

【図86】端点に達したときのPZパルスカウント修正
処理に関するレンズのフローチャートである。
FIG. 86 is a flowchart of a lens relating to PZ pulse count correction processing when an end point is reached.

【図87】現在のズーミングレンズ位置が不明のときの
PZパルスカウンタ修正処理に関するレンズのフローチ
ャートの第一部分である。
FIG. 87 is a first part of a lens flowchart relating to PZ pulse counter correction processing when the current zooming lens position is unknown.

【図88】現在のズーミングレンズ位置が不明のときの
PZパルスカウンタ修正処理に関するレンズのフローチ
ャートの第二部分である。
FIG. 88 is a second part of the lens flowchart relating to the PZ pulse counter correction processing when the current zooming lens position is unknown.

【図89】現在の位置が分かっているときのPZパルス
カウント処理に関するレンズのフローチャートである。
FIG. 89 is a flowchart of a lens relating to PZ pulse count processing when the current position is known.

【図90】PZパルスカウンタ修正処理に関するレンズ
のフローチャートである。
FIG. 90 is a flowchart of a lens relating to PZ pulse counter correction processing.

【図91】プリセット焦点距離プリセット処理に関する
レンズのフローチャートである。
FIG. 91 is a flowchart of a lens relating to preset focal length preset processing.

【図92】ズームモーターの駆動制御に関するレンズの
フローチャートである。
FIG. 92 is a flowchart of a lens related to drive control of a zoom motor.

【図93】カメラボディにおけるレリーズ処理に関する
フローチャートである。
FIG. 93 is a flowchart related to a release process in the camera body.

【図94】露光間ズームに関するタイミングチャートで
ある。
FIG. 94 is a timing chart regarding zoom during exposure.

【図95】パワーズームモードの切替処理に関するフロ
ーチャートである。
FIG. 95 is a flowchart related to a power zoom mode switching process.

【図96】PZパルスカウント割り込み処理に関するレ
ンズのフローチャートである。
FIG. 96 is a flowchart of the lens related to PZ pulse count interruption processing.

【図97】ズームモーターのPWM制御処理に関するレ
ンズのフローチャートである。
FIG. 97 is a flowchart of the lens relating to PWM control processing of the zoom motor.

【符号の説明】[Explanation of symbols]

11 カメラボディ 20 バッテリ 21 測距用CCDセンサユニット 23 周辺部制御回路 25 露光機構(シャッタ機構) 35 メイン(ボディ)CPU(制御手段) 35b RAM 37 モータードライブIC 39 AFモーター 41 エンコーダ 51 撮影レンズ(パワーズームレンズ) 51F フォーカシングレンズ群 51Z ズーミングレンズ群 55 AF機構 59 AFパルサー 61 レンズCPU(レンズ制御手段) 61b レンズRAM 62 インターフェース 63 モータードライブIC 65 ズームモーター 67 PZ機構 69 PZパルサー 71 ズーム(焦点距離)コード板 72 切替え点 77 ズームモード切替えスイッチ 81 距離コード板 Reference Signs List 11 camera body 20 battery 21 CCD sensor unit for distance measurement 23 peripheral control circuit 25 exposure mechanism (shutter mechanism) 35 main (body) CPU (control means) 35b RAM 37 motor drive IC 39 AF motor 41 encoder 51 photographing lens (power) Zoom lens) 51F focusing lens group 51Z zooming lens group 55 AF mechanism 59 AF pulser 61 lens CPU (lens control means) 61b lens RAM 62 interface 63 motor drive IC 65 zoom motor 67 PZ mechanism 69 PZ pulser 71 zoom (focal length) code Board 72 Switch point 77 Zoom mode switch 81 Distance code board

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.7 識別記号 FI テーマコート゛(参考) G03B 17/14 G02B 7/04 E (72)発明者 谷村 芳成 東京都板橋区前野町2丁目36番9号 旭光 学工業株式会社内 Fターム(参考) 2H044 DA02 DB02 DC06 EC08 2H100 AA18 2H101 EE08 EE14 EE22 EE28 ──────────────────────────────────────────────────続 き Continued on the front page (51) Int.Cl. 7 Identification symbol FI Theme coat ゛ (Reference) G03B 17/14 G02B 7/04 E (72) Inventor Yoshinari Tanimura 2-36 Maenocho, Itabashi-ku, Tokyo 9 Asahi Gaku Kogyo Co., Ltd. F term (reference) 2H044 DA02 DB02 DC06 EC08 2H100 AA18 2H101 EE08 EE14 EE22 EE28

Claims (10)

【特許請求の範囲】[Claims] 【請求項1】 移動レンズ群およびこの移動レンズ群を
光軸方向に移動可能に保持するレンズ移動機構を備えた
光学系において、 上記レンズ移動機構を駆動して上記移動レンズ群を光軸
方向に移動する電動手段;上記電動手段に間欠給電また
は連続通電する給電手段;上記電動手段の動作に連動し
て所定量動作毎に検出信号を出力する検出手段;上記電
動手段の動作速度を上記検出手段が検出信号を出力する
時間間隔で設定する速度設定手段;および、 上記速度設定手段により設定された時間間隔が経過して
も上記検出信号が出力されないときには上記通電手段の
間欠給電の通電時間を所定単位で伸長しかつ非通電時間
を所定時間単位で短縮し、上記時間間隔内に上記検出信
号が出力されたときには上記通電手段の間欠給電の通電
時間を所定単位で短縮しかつ非通電時間を所定単位で伸
長する通電制御手段;を備えたことを特徴とするレンズ
駆動装置。
1. An optical system comprising a movable lens group and a lens moving mechanism for holding the movable lens group movably in the optical axis direction, wherein the lens moving mechanism is driven to move the movable lens group in the optical axis direction. An electric means for moving; an electric power supply means for intermittently or continuously supplying electric power to the electric means; a detecting means for outputting a detection signal every predetermined amount of operation in conjunction with the operation of the electric means; Speed setting means for setting at a time interval for outputting a detection signal; and, when the detection signal is not output even after the time interval set by the speed setting means has passed, a power supply time for the intermittent power supply of the power supply means is predetermined. When the detection signal is output within the time interval, the power supply time of the intermittent power supply of the power supply unit is set to a predetermined value. Position a shortened and deenergized time energization control means extending in a predetermined unit in; that includes a lens driving apparatus according to claim.
【請求項2】 請求項1記載のレンズ駆動装置におい
て、上記通電制御手段は、段階的に複数の異なる間欠給
電の通電時間と非通電時間の比を設定する設定機能を備
え、上記通電開始時には最も短い通電時間から間欠給電
を開始するレンズ駆動装置。
2. The lens drive device according to claim 1, wherein the energization control means has a setting function for setting a ratio of a plurality of different intermittent power supply energization times to a non-energization time in a stepwise manner. A lens driving device that starts intermittent power supply from the shortest energization time.
【請求項3】 請求項1または2記載のレンズ駆動装置
において、上記間欠給電の通電比が変わっても通電時間
と非通電時間の和は一定であるレンズ駆動装置。
3. The lens driving device according to claim 1, wherein the sum of the energizing time and the non-energizing time is constant even if the intermittent power supply energization ratio changes.
【請求項4】 請求項1記載のレンズ駆動装置は、上記
検出手段が検出信号を出力する時間間隔を予め設定され
た複数の設定値の中から選択するスイッチ手段を備え、
上記速度設定手段は、上記スイッチ手段により選択され
た時間間隔で上記検出信号が出力されるように上記間欠
給電の通電比を設定するレンズ駆動装置。
4. The lens driving device according to claim 1, further comprising: switch means for selecting a time interval at which the detection means outputs a detection signal from a plurality of preset values.
The lens drive device, wherein the speed setting means sets the duty ratio of the intermittent power supply so that the detection signal is output at a time interval selected by the switch means.
【請求項5】 請求項4記載のレンズ駆動装置におい
て、上記通電比は、通電時間と非通電時間の比であり、
通電比が変わっても通電時間と非通電時間の和は一定で
あるレンズ駆動装置。
5. The lens drive device according to claim 4, wherein the energization ratio is a ratio of energization time to non-energization time,
A lens driving device in which the sum of the energizing time and the non-energizing time is constant even when the energizing ratio changes.
【請求項6】 カメラボディおよび該カメラボディに着
脱自在に形成されたズームレンズを含むカメラシステム
であって、 上記ズームレンズをズーミングさせる電動手段;上記電
動手段に間欠給電または連続通電する給電手段;上記電
動手段の動作に連動して所定量動作毎に検出信号を出力
する検出手段;上記電動手段の動作速度を上記検出手段
の検出信号の出力間隔で設定する速度設定手段;およ
び、 上記速度設定手段により設定された時間間隔経過前に上
記検出信号が出力されたときには上記通電手段の間欠給
電の通電時間を所定単位で短縮しかつ非通電時間を所定
単位で伸長し、上記出力時間間隔が経過しても上記検出
信号が出力されないときには上記通電手段の間欠給電の
通電時間を所定単位で伸長しかつ非通電時間を所定時間
単位で短縮する通電制御手段;を備えていることを特徴
とするカメラシステム。
6. A camera system including a camera body and a zoom lens detachably formed on the camera body, a motor means for zooming the zoom lens; a power supply means for intermittent power supply or continuous power supply to the motor means; Detecting means for outputting a detection signal every predetermined amount of operation in conjunction with the operation of the electric means; speed setting means for setting the operation speed of the electric means at an output interval of the detection signal of the detecting means; When the detection signal is output before the elapse of the time interval set by the means, the energizing time of the intermittent power supply of the energizing means is shortened by a predetermined unit and the non-energizing time is extended by a predetermined unit, and the output time interval elapses. Even when the detection signal is not output, the energizing time of the intermittent power supply of the energizing means is extended in a predetermined unit, and the non-energizing time is extended in a predetermined time unit. Camera system characterized in that it comprises a; energization control means to shorten.
【請求項7】 請求項6記載のカメラシステムにおい
て、上記カメラボディは、上記パワーズームレンズに上
記電動手段駆動用の電力を供給する電源を備えているカ
メラシステム。
7. The camera system according to claim 6, wherein said camera body includes a power supply for supplying electric power for driving said motor means to said power zoom lens.
【請求項8】 請求項7記載のカメラシステムにおい
て、上記パワーズームレンズは、上記電動手段と、上記
給電手段と、上記検出手段と、上記速度設定手段と、上
記通電制御手段と、さらに、パワーズームの方向および
ズーミング速度を選択するパワーズーム操作スイッチを
備えているカメラシステム。
8. The camera system according to claim 7, wherein the power zoom lens comprises: the motor means, the power supply means, the detection means, the speed setting means, the power supply control means, and a power supply. A camera system equipped with a power zoom operation switch for selecting a zoom direction and a zooming speed.
【請求項9】 請求項8記載のカメラシステムにおい
て、上記パワーズームレンズおよび上記カメラボディ
は、相互にパワーズーム関するデータを授受する入出力
手段を備え、上記カメラボディはさらに、上記ズーミン
グ速度を設定する速度設定手段を備えているカメラシス
テム。
9. The camera system according to claim 8, wherein the power zoom lens and the camera body include input / output means for mutually transmitting and receiving data relating to power zoom, and the camera body further sets the zooming speed. A camera system including a speed setting unit that performs speed setting.
【請求項10】 請求項9記載のカメラシステムにおい
て、上記カメラボディは、上記カメラボディの速度設定
手段で設定されたズーミング速度データを上記入出力手
段を介して上記レンズ制御手段に送るボディ制御手段を
備え、上記ズーミング速度データを入力した上記レンズ
制御手段は、該入力したズーミング速度データに基づい
て上記電動手段を駆動するカメラシステム。
10. The camera system according to claim 9, wherein said camera body sends zooming speed data set by speed setting means of said camera body to said lens control means via said input / output means. Wherein the lens control means, to which the zooming speed data is input, drives the electric means based on the input zooming speed data.
JP2001274264A 1991-05-21 2001-09-10 Lens driving device and camera system Pending JP2002131615A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001274264A JP2002131615A (en) 1991-05-21 2001-09-10 Lens driving device and camera system

Applications Claiming Priority (5)

Application Number Priority Date Filing Date Title
JP21814691 1991-05-21
JP3-218146 1991-11-29
JP34212391 1991-11-29
JP3-342123 1991-11-29
JP2001274264A JP2002131615A (en) 1991-05-21 2001-09-10 Lens driving device and camera system

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP12855792A Division JP3244530B2 (en) 1991-05-21 1992-05-21 Shooting lens, camera body and camera system

Publications (1)

Publication Number Publication Date
JP2002131615A true JP2002131615A (en) 2002-05-09

Family

ID=27330108

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001274264A Pending JP2002131615A (en) 1991-05-21 2001-09-10 Lens driving device and camera system

Country Status (1)

Country Link
JP (1) JP2002131615A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007065385A (en) * 2005-08-31 2007-03-15 Canon Inc Optical device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007065385A (en) * 2005-08-31 2007-03-15 Canon Inc Optical device

Similar Documents

Publication Publication Date Title
US5363165A (en) Power zoom lens and camera system
US5754894A (en) Motor driven zoom camera
JP3244530B2 (en) Shooting lens, camera body and camera system
US5396306A (en) Power lens and camera system
JP3538402B2 (en) Camera system
JP3538401B2 (en) Lens drive, camera system and power lens
US5450156A (en) Power zoom lens and camera having same
JP3283076B2 (en) Camera with electric zoom function
JP2002131615A (en) Lens driving device and camera system
JP2002148673A (en) Camera system and zoom controller
JP2002148503A (en) Camera system and power zoom lens
JP3820251B2 (en) Camera system, taking lens, and camera body
JP3272418B2 (en) Camera with electric zoom function
JP2002131821A (en) Camera system and taking lens
JP3206991B2 (en) Camera with zoom function
JP3723754B2 (en) Power lens
JP3351562B2 (en) Camera with electric zoom function
JPH06130275A (en) Camera provided with motor-driven zooming function
JPH06130276A (en) Camera provided with motor-driven zooming function
JPH06130445A (en) Camera with motor-driven zooming function
JPH06130272A (en) Camera provided with motor-driven zooming function
JPH06130271A (en) Camera provided with motor-driven zooming function
JPH06130277A (en) Camera provided with motor-driven zooming function
GB2294122A (en) Motor driven zoom camera

Legal Events

Date Code Title Description
A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20040128

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20040323

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20040521

A911 Transfer of reconsideration by examiner before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A911

Effective date: 20040610

A912 Removal of reconsideration by examiner before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A912

Effective date: 20040702