JPH10161006A - Lens barrel with built-in actuator - Google Patents
Lens barrel with built-in actuatorInfo
- Publication number
- JPH10161006A JPH10161006A JP8320127A JP32012796A JPH10161006A JP H10161006 A JPH10161006 A JP H10161006A JP 8320127 A JP8320127 A JP 8320127A JP 32012796 A JP32012796 A JP 32012796A JP H10161006 A JPH10161006 A JP H10161006A
- Authority
- JP
- Japan
- Prior art keywords
- communication
- lens barrel
- actuator
- microcomputer
- camera
- 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
Links
Landscapes
- Focusing (AREA)
- Lens Barrels (AREA)
- Automatic Focus Adjustment (AREA)
Abstract
(57)【要約】
【課題】 レンズ鏡筒内のアクチュエータの制御サイク
ルを、カメラやアクセサリとの通信が頻繁に行われてい
る時でも安定させる。
【解決手段】 カメラ1およびアクセサリ8と通信ライ
ン6,10を接続することにより通信が可能なレンズ鏡
筒3内に制御および鏡筒外部との通信を行うマイコン4
を設ける。このマイコンにより制御されるアクチュエー
タ7と、これを制御する駆動制御手段5を設ける。マイ
コンにより通常時に行う第1の通信状態と、前記アクチ
ュエータ制御時に通信時間を変更する第2の通信状態と
を行える通信手段11を設ける。
(57) [Problem] To stabilize a control cycle of an actuator in a lens barrel even when communication with a camera or an accessory is frequently performed. SOLUTION: A microcomputer 4 controls a lens barrel 3 which can communicate by connecting communication lines 6 and 10 to a camera 1 and an accessory 8 and communicates with the outside of the lens barrel.
Is provided. An actuator 7 controlled by the microcomputer and a drive control means 5 for controlling the actuator 7 are provided. A communication means 11 is provided which can perform a first communication state normally performed by the microcomputer and a second communication state for changing the communication time during the actuator control.
Description
【0001】[0001]
【発明の属する技術分野】本発明は、たとえば超音波モ
ータ等のアクチュエータを内蔵するとともにカメラやテ
レコンバータ(テレコンバージョンレンズ)のようなア
クセサリとの間の通信手段を備えているアクチュエータ
内蔵式レンズ鏡筒に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a lens mirror with a built-in actuator, which has a built-in actuator such as an ultrasonic motor and a communication means with an accessory such as a camera or a tele-converter (tele-conversion lens). Regarding the tube.
【0002】[0002]
【従来の技術】この種のレンズ鏡筒において、たとえば
フォーカス用レンズをフォーカシング駆動するためのA
F用モータを鏡筒内にアクチュエータとして内設したも
のが知られている。また、このようなレンズ鏡筒内に
は、このモータ制御を行う制御部を備えたマイクロコン
ピュータ(以下、マイコンという)が搭載され、各種の
制御を行うとともに、カメラやテレコンバータのような
アクセサリとの間での通信を行える通信手段も設けられ
ている。2. Description of the Related Art In this type of lens barrel, for example, an A for focusing driving of a focusing lens is used.
A motor in which an F motor is provided inside a lens barrel as an actuator is known. In addition, a microcomputer (hereinafter, referred to as a microcomputer) having a control unit for controlling the motor is mounted in such a lens barrel, and performs various controls, as well as accessories such as a camera and a teleconverter. There is also provided communication means for performing communication between the devices.
【0003】一般的なソフトウェア技術として、通常に
各タスク処理をメインルーチンとして繰り返して走らせ
ておき、何かの要因が発生が起きたときに割込処理とし
て通常のメインルーチンとは別の処理を行うアルゴリズ
ムがある。そして、上述したAF用モータをアクチュエ
ータとして内蔵したレンズ鏡筒でも同様に、アクチュエ
ータの制御や制御のための演算をタスク処理の一つとし
てメインルーチンの中におき、カメラやアクセサリとの
通信のようなタイミングが重要な処理を割込処理として
扱う構成を採っている。As a general software technique, each task process is usually repeatedly executed as a main routine, and when a certain factor occurs, another process different from the normal main routine is performed as an interrupt process. There are algorithms to do. Similarly, in a lens barrel having the above-described AF motor built in as an actuator, control of the actuator and calculations for the control are set in the main routine as one of the task processes, and the communication between the camera and accessories is performed. It adopts a configuration that treats processing whose timing is important as interrupt processing.
【0004】また、このようなレンズ鏡筒では、カメラ
やアクセサリとの情報伝達を迅速に行うために、通信間
隔を縮めたり一度の通信でやりとりするデータ数を増や
したりすることが一般に行われている。In such a lens barrel, in order to quickly transmit information to and from a camera or accessory, it is common practice to shorten a communication interval or increase the number of data exchanged in one communication. I have.
【0005】[0005]
【発明が解決しようとする課題】上述したアクチュエー
タ内蔵式レンズ鏡筒において、マイコンによる内部処理
とともに、カメラやアクセサリとの通信を行うにあたっ
て、次のような問題がある。すなわち、通信間隔を縮め
たり一度の通信で送受信するデータ数を増やすことは、
その増加分に比例して割込処理を増やすことになり、メ
インルーチンを実行する時間が減ることになる。したが
って、メインルーチンで扱っているアクチュエータの制
御などは割込処理の影響を受け、制御のための演算時間
が取れなくなり、制御サイクルが不安定になってしま
う。In the above described lens barrel with a built-in actuator, there are the following problems in communicating with the camera and accessories together with the internal processing by the microcomputer. In other words, shortening the communication interval or increasing the number of data sent and received in one communication is
The interrupt processing is increased in proportion to the increase, and the time for executing the main routine is reduced. Therefore, the control of the actuator handled in the main routine is affected by the interrupt processing, so that it is not possible to obtain a calculation time for the control, and the control cycle becomes unstable.
【0006】また、アクチュエータの制御のための演算
や制御もタイミングが重要であることから、割込処理で
行いモータ制御の割込レベルを高く設定する手法も考え
られる。しかし、アクチュエータの制御は複雑な演算を
要することが多く、演算処理も長いためにレベルの高い
割込処理で扱うと、他の処理にも逆に影響が出てしまう
可能性が高い。なお、レベルの低い割込処理で行うとき
にはメインルーチンで行う場合と同様な結果となる。[0006] In addition, since the timing is also important for the calculation and control for controlling the actuator, a method of setting the interrupt level of the motor control to be high by performing the interrupt processing may be considered. However, the control of the actuator often requires complicated calculations, and the calculation processing is also long. Therefore, if handled by a high-level interrupt processing, there is a high possibility that other processing will be adversely affected. It should be noted that when performing the interrupt processing with a low level, a result similar to that performed in the main routine is obtained.
【0007】さらに、通信時間全体を長くとり、メイン
ルーチンを実行し易くする手法もあるが、アクチュエー
タであるモータ制御実行中以外の時も通信時間が長くな
ってしまい、全体としての効率も落ちてしまうという問
題がある。Further, there is a method of making the entire communication time longer so that the main routine can be easily executed. However, the communication time becomes longer even when the motor control as the actuator is not being executed, and the efficiency as a whole decreases. Problem.
【0008】本発明はこのような事情に鑑みてなされた
ものであり、カメラやアクセサリとの通信が頻繁に行わ
れている時でも、レンズ鏡筒内でのアクチュエータの制
御サイクルを安定して行えるアクチュエータ内蔵式レン
ズ鏡筒を得ることを目的とする。The present invention has been made in view of such circumstances, and enables a control cycle of an actuator in a lens barrel to be stably performed even when communication with a camera or an accessory is frequently performed. It is an object to obtain a lens barrel with a built-in actuator.
【0009】[0009]
【課題を解決するための手段】このような目的に応える
ために本発明に係るアクチュエータ内蔵式レンズ鏡筒
は、カメラおよびアクセサリと通信ラインを接続するこ
とにより通信が可能なレンズ鏡筒であって、レンズ鏡筒
内の制御および鏡筒外部との通信を行うマイクロコンピ
ュータと、このマイクロコンピュータにより制御される
アクチュエータと、マイクロコンピュータにより前記ア
クチュエータを制御する駆動制御手段とを備え、マイク
ロコンピュータにより通常時に行う第1の通信状態と、
アクチュエータ制御時に通信時間を変更する第2の通信
状態とを行える通信手段を設けたものである。In order to meet such a purpose, a lens barrel with a built-in actuator according to the present invention is a lens barrel capable of communicating by connecting a camera and an accessory to a communication line. A microcomputer that controls the inside of the lens barrel and communicates with the outside of the lens barrel, an actuator controlled by the microcomputer, and a drive control unit that controls the actuator by the microcomputer. A first communication state to be performed;
There is provided communication means for performing a second communication state for changing the communication time during actuator control.
【0010】また、本発明に係るアクチュエータ内蔵式
レンズ鏡筒は、マイクロコンピュータにより制御演算お
よび制御出力を行う処理の制御処理タスクをサンプリン
グ時間で実行することで、アクチュエータの駆動を駆動
制御手段により制御するように構成したものである。Further, the lens barrel with the built-in actuator according to the present invention controls the drive of the actuator by the drive control means by executing the control processing task of the processing for performing the control operation and the control output by the microcomputer at the sampling time. It is configured so that
【0011】このような本発明に係るアクチュエータ内
蔵式レンズ鏡筒において、マイクロコンピュータにより
カメラおよびアクセサリへの通信手段による第1の通信
状態として、カメラの測距,測光などで必要となるレン
ズ鏡筒固有のデータ通信、フォーカスや種々のスイッチ
状態によりレンズ鏡筒内の変化に伴い随時変化するデー
タ等の送信、カメラによるアクチュエータの駆動パター
ン、駆動量、駆動速度、カメラのスイッチ状態等のデー
タまたは信号の受信のいずれかを、ある一つのアルゴリ
ズムによって通信するように構成している。In such a lens barrel with a built-in actuator according to the present invention, the lens barrel which is necessary for distance measurement and photometry of the camera as the first communication state by the microcomputer to the camera and accessories. Unique data communication, transmission of data that changes as needed with changes in the lens barrel due to focus and various switch states, data or signals such as actuator drive pattern, drive amount, drive speed, camera switch state by camera Is communicated by a certain algorithm.
【0012】また、前記通信手段による第2の通信状態
として、駆動制御手段によるアクチュエータの駆動制御
の実行中に、制御処理タスクを実行すべきサンプリング
時間に達したときからその制御処理タスクが終了するま
での間のみに、第1の通信状態での通信タイミングを強
制的に遅らせて通信するように構成している。In the second communication state of the communication means, the control processing task ends when the sampling time at which the control processing task is to be executed is reached during execution of the drive control of the actuator by the drive control means. Only during this period, communication is performed with the communication timing in the first communication state being forcibly delayed.
【0013】本発明によれば、レンズ鏡筒内のマイクロ
コンピュータがカメラやアクセサリとの頻繁な通信を行
っていても、アクチュエータの制御処理実行中にのみ、
通常の第1の通信状態から、これよりも通信時間の長い
第2の通信状態に切り替えを行い、アクチュエータ制御
のための制御処理タスクの時間を確保し、制御サイクル
時間を安定させることができる。しかも、通常の第1の
通信状態での時間を長く設定することなく、またアクチ
ュエータ制御処理タスクを実行するときにのみ、第2の
通信状態への切り替えを行っているから、それ以外の時
には通信速度がより速い第1の通信状態で通信ができ、
全体としての通信時間も抑えることができる。According to the present invention, even if the microcomputer in the lens barrel is performing frequent communication with the camera or the accessory, only during execution of the control processing of the actuator,
By switching from the normal first communication state to the second communication state having a longer communication time, the time for the control processing task for actuator control can be secured and the control cycle time can be stabilized. In addition, since the switching to the second communication state is performed without setting a long time in the normal first communication state and only when executing the actuator control processing task, the communication is performed at other times. Communication can be performed in the first communication state having a higher speed,
The communication time as a whole can also be suppressed.
【0014】[0014]
【発明の実施の形態】図1は本発明に係るアクチュエー
タ内蔵式レンズ鏡筒の一つの実施の形態を示す。この実
施の形態では、レンズ鏡筒内でのアクチュエータとして
たとえば超音波モータからなるAF用モータを用い、ア
クセサリとして、撮影倍率を増減するために付設される
テレコンと呼ばれるテレコンバータ(テレコンバージョ
ンレンズ)を用いた場合を説明する。FIG. 1 shows an embodiment of a lens barrel with a built-in actuator according to the present invention. In this embodiment, an AF motor such as an ultrasonic motor is used as an actuator in a lens barrel, and a teleconverter (teleconversion lens) called a teleconverter attached to increase or decrease the photographing magnification is used as an accessory. The case of using will be described.
【0015】これらの図において、符号1はカメラ(カ
メラ本体ボディ)、2はこのカメラ1内に設けたマイク
ロコンピュータ(マイコン)である。また、3はレンズ
鏡筒であり、マイクロコンピュータ(マイコン)4が搭
載されている。また、7はアクチュエータとしてのAF
用モータであり、広く知られているようにフォーカス用
レンズ(図示せず)を光軸上でフォーカシング駆動す
る。5は前記マイコン4に設けられたモータ制御部であ
る。In these figures, reference numeral 1 denotes a camera (camera body), and 2 denotes a microcomputer provided in the camera 1. Reference numeral 3 denotes a lens barrel on which a microcomputer (microcomputer) 4 is mounted. 7 is an AF as an actuator
Motor for focusing and driving a focusing lens (not shown) on the optical axis as is widely known. Reference numeral 5 denotes a motor control unit provided in the microcomputer 4.
【0016】また、このレンズ鏡筒3側のマイコン4に
は、カメラ1側のマイコン2と通信ライン6を介して通
信する通信制御部11が設けられている。この通信で
は、レンズ鏡筒3は、レンズ個々の情報や現在の状態な
どのデータをカメラ1側に送信したり、カメラ1での撮
影、その他の情報をレンズ鏡筒3側に送信したりする。
また、カメラ1は、それらのデータとレンズ鏡筒3を通
して被写体の測距結果などを用いて演算したAF用モー
タ7の駆動量や速度を、レンズ鏡筒3側に送信する。The microcomputer 4 on the lens barrel 3 side is provided with a communication control unit 11 for communicating with the microcomputer 2 on the camera 1 via a communication line 6. In this communication, the lens barrel 3 transmits information such as information on individual lenses and the current state to the camera 1 side, and transmits information captured by the camera 1 and other information to the lens barrel 3 side. .
The camera 1 transmits the data and the driving amount and speed of the AF motor 7 calculated using the distance measurement result of the subject through the lens barrel 3 to the lens barrel 3 side.
【0017】その結果を受信したレンズ鏡筒3内のマイ
コン4は、その駆動量や速度に応じてAF用モータ7を
回転制御する。なお、マイコン4はAF用モータ7の駆
動制御している間もカメラ1内のマイコン2を通じて、
さらに最新のデータを常に送受信しつづけている。The microcomputer 4 in the lens barrel 3 receiving the result controls the rotation of the AF motor 7 according to the driving amount and speed. The microcomputer 4 also controls the AF motor 7 through the microcomputer 2 in the camera 1 while controlling the drive.
In addition, it keeps sending and receiving the latest data.
【0018】図1中符号8はアクセサリとしてカメラ
1、レンズ鏡筒3に付設されるテレコンバータ(テレコ
ンバージョンレンズ;以下、テレコンという)で、この
テレコン8内にもマイクロコンピュータ(マイコン)9
が設けられている。そして、通信ライン10を介してこ
のマイコン9は、レンズ鏡筒3側のマイコン4の通信制
御部11と種々のデータや制御信号のやり取りを行うよ
うに構成されている。In FIG. 1, reference numeral 8 denotes a teleconverter (teleconversion lens; hereinafter referred to as a teleconverter) attached to the camera 1 and the lens barrel 3 as accessories.
Is provided. The microcomputer 9 is configured to exchange various data and control signals with the communication control unit 11 of the microcomputer 4 on the lens barrel 3 via the communication line 10.
【0019】上述したレンズ鏡筒3内のマイコン4での
レンズ駆動制御状態を、図3、図4に示すフローチャー
トを用いて以下に説明する。始めに、マイコン4での制
御処理全体での流れの概要を図3のフローチャートを用
いて説明する。The lens drive control state of the microcomputer 4 in the lens barrel 3 will be described below with reference to flowcharts shown in FIGS. First, an outline of the flow of the entire control process in the microcomputer 4 will be described with reference to the flowchart in FIG.
【0020】図3において、ステップS1は初期設定の
処理ステップであり、各ポートやレジスタの初期値状態
や各割込ルーチンをスタートさせる等の初期設定処理を
行う。次のS2以降は、全体として繰り返しルーチン
(以下、メインルーチンという)になっており、各タス
ク処理を優先順に処理を行っていく。また、このメイン
ルーチンを行っている途中に各割込が発生した時には、
その割込要因に応じた割込処理を行う。In FIG. 3, step S1 is an initial setting processing step, in which an initial setting state such as an initial value state of each port or register and each interrupt routine is started. Subsequent steps from S2 are a repetition routine (hereinafter referred to as a main routine) as a whole, and each task process is performed in a priority order. Also, when each interrupt occurs during the execution of this main routine,
An interrupt process corresponding to the interrupt factor is performed.
【0021】以下に、S2以降を詳しく説明する。S2
ではコマンド処理を行うかどうかを判断する。コマンド
処理を行うための要因はコマンドを受信すると発生し、
カメラ1からの要求が何であるかを即座に判断しなくて
はならないので、タスク処理の中で最優先で実行するか
否かを判断し、実行する場合にはS3へ分岐し実行す
る。Hereinafter, S2 and subsequent steps will be described in detail. S2
Then, it is determined whether or not to execute the command processing. The factor for command processing occurs when a command is received,
Since it is necessary to immediately determine what the request from the camera 1 is, it is determined whether or not the task processing is to be executed with the highest priority, and if so, the process branches to S3 to be executed.
【0022】上述したS3のコマンド処理は各コマンド
に応じて実行すべき内容を判断し、その実行のための準
備等を行う。このコマンドを実行するにあたり、モータ
駆動関係のコマンドを実行する場合には、S4の演算処
理を行うかの判断を行い、処理するときはS5の演算処
理に進んで演算処理を行う。これが終わると、S2に戻
る。S4で演算処理を行わないときもS2に戻る。In the above-described command processing in S3, the contents to be executed are determined in accordance with each command, and preparation for the execution is performed. In executing this command, when executing a motor drive-related command, it is determined whether or not to execute the arithmetic processing in S4. When the command is to be executed, the process proceeds to the arithmetic processing in S5 to perform the arithmetic processing. When this is completed, the process returns to S2. When the arithmetic processing is not performed in S4, the process returns to S2.
【0023】このS2でコマンド処理を行う要因がない
ときにはS6に進み、モータ制御を行うかどうかを判断
する。ここで、モータ制御を実行する要因は制御サイク
ル毎のタイマ割込で発生する。この制御サイクルにあた
りモータ制御を行う場合はS7に進んでモータ制御処理
を実行する。このS7のモータ制御処理は、AF用モー
タ7の駆動量や駆動速度を制御するための演算と制御出
力を行っている。これが終了すると、やはりS2へ戻
る。If there is no factor for executing the command processing in S2, the process proceeds to S6, and it is determined whether or not to perform the motor control. Here, the factor for executing the motor control is generated by a timer interrupt for each control cycle. When the motor control is performed in this control cycle, the process proceeds to S7 to execute the motor control process. In the motor control process in S7, calculation and control output for controlling the drive amount and drive speed of the AF motor 7 are performed. When this is completed, the process returns to S2.
【0024】また、S6でモータ制御処理を行わない判
断をしたときには、次にS8に進み、レンズ状態認識処
理を行うかどうかを判断する。このS8のレンズ状態識
別処理を実行するための要因も一定間隔のタイマ割込に
より発生する。そして、実行するときはS9に進む。こ
のS9のレンズ状態識別処理はレンズ鏡筒3のAFロッ
クスイッチ、レンジリミッタスイッチ、AFモードスイ
ッチ、距離位置エンコーダ(いずれも図示は省略する)
の状態を読み取り、S10のレンズ状態別処理でレンズ
鏡筒3での各モードを切り替えたり、カメラ1へ送信す
るデータを切り替えたりする。If it is determined in step S6 that the motor control process is not to be performed, the process proceeds to step S8 to determine whether or not to perform the lens state recognition process. A factor for executing the lens state identification processing in S8 is also generated by a timer interrupt at a constant interval. Then, when executing, the process proceeds to S9. The lens state identification processing in S9 includes an AF lock switch, a range limiter switch, an AF mode switch, and a distance position encoder of the lens barrel 3 (all are not shown).
Is read, and each mode in the lens barrel 3 is switched or data to be transmitted to the camera 1 is switched in the lens state-specific processing in S10.
【0025】これが終了すると、やはりS2へ戻る。以
上のようにこのメインルーチンの全体の流れは、各タス
ク処理に優先順位をつけて繰り返しているようになって
いて、そこに通信などの割込処理が入ってくるようにな
っている。When this is completed, the process returns to S2. As described above, the entire flow of the main routine is such that each task process is repeated with a priority order, and an interrupt process such as communication enters therein.
【0026】次に、カメラ1とレンズ鏡筒3との間(カ
メラ−レンズ間)の通信方法について、図2のタイムチ
ャートを用いて説明する。なお、通信形態はクロック同
期式のシリアルデータ通信である。また、通信ライン6
は、ハンドシェイクライン(以下、R/Wラインとい
う)と、データを同期送受信するためにクロック出力す
るクロックラインと、データを送受信するデータライン
とからなっている。Next, a communication method between the camera 1 and the lens barrel 3 (between the camera and the lens) will be described with reference to a time chart of FIG. The communication mode is a clock synchronous serial data communication. In addition, communication line 6
Is composed of a handshake line (hereinafter referred to as R / W line), a clock line for outputting a clock for synchronously transmitting and receiving data, and a data line for transmitting and receiving data.
【0027】始めに、カメラ1はレンズ鏡筒3のR/W
ラインがHiであることを確認し、カメラ1のR/Wラ
インをLowに下げる。このR/WラインがLowに下
がることで、レンズ鏡筒内マイコン4は割込処理1を行
い、コマンド受信の待ち状態になる。カメラ1はレンズ
鏡筒3のR/WラインがLowになったことを確認しカ
メラ1のR/WラインをHiにする。そして、カメラ1
は、クロックに同期させて、データラインでコマンドを
送信する。First, the camera 1 is connected to the R / W of the lens barrel 3.
After confirming that the line is Hi, the R / W line of the camera 1 is lowered to Low. When the R / W line is lowered to Low, the microcomputer 4 in the lens barrel performs the interrupt processing 1 and waits for receiving a command. The camera 1 confirms that the R / W line of the lens barrel 3 has become Low, and sets the R / W line of the camera 1 to Hi. And camera 1
Transmits a command on the data line in synchronization with the clock.
【0028】レンズ鏡筒内マイコン4はコマンドを受信
するとシリアル割込が入り、割込処理2を行い、R/W
ラインをHiにする。ここで、レンズ鏡筒内マイコン4
は、カメラ1がR/WラインがHiになったことの確認
できるような短い時間t後に割込が入るようなタイマを
走らせる。それで、時間t後に割込が入ると割込処理3
を行い、再度R/WラインをLowにする。Upon receiving the command, the microcomputer 4 in the lens barrel receives a serial interrupt, performs an interrupt process 2, and executes R / W
Set the line to Hi. Here, the microcomputer 4 in the lens barrel
Runs a timer that interrupts the camera 1 after a short time t so that the R / W line can be confirmed to be Hi. Therefore, when an interrupt is received after time t, the interrupt processing 3
Is performed, and the R / W line is set to Low again.
【0029】一方、カメラ1はこれを受けて、再度クロ
ックを出し、レンズ鏡筒3とデータの送受信を行う。そ
の結果、レンズ鏡筒内マイコン4はシリアル割込を受
け、割込処理2を再び行う。これを送受信のデータ数分
行ってから通信を終了する。On the other hand, in response to this, the camera 1 issues a clock again to transmit and receive data to and from the lens barrel 3. As a result, the microcomputer 4 in the lens barrel receives the serial interrupt and performs the interrupt process 2 again. This is performed for the number of data to be transmitted and received, and then the communication is terminated.
【0030】以上のように通信が行われるが、通信を行
うと割込処理が増える。このような割込処理はメインル
ーチンを中断して実行するため、割込ルーチンが増える
とメインルーチンを行う時間が減少してしまう。ここ
で、モータ制御は制御サイクルのばらつきに影響を受け
易いが、モータ制御処理はメインルーチンの中の処理で
あり、通信割込の影響をそのまま受けてしまう。特に、
送受信のデータ数が多い時には、割込2,3が頻繁に発
生するために、制御サイクルに大きく影響する。Communication is performed as described above, but if communication is performed, interrupt processing increases. Since such an interrupt process is executed by interrupting the main routine, if the number of interrupt routines increases, the time for performing the main routine decreases. Here, the motor control is easily affected by the variation of the control cycle, but the motor control process is a process in the main routine and is directly affected by the communication interrupt. Especially,
When the number of data to be transmitted and received is large, interrupts 2 and 3 occur frequently, which greatly affects the control cycle.
【0031】そこで、本発明によれば、シリアルデータ
送受信の割込を図4のフローチャートに示すような対策
を採って行っている。始めに、シリアルデータを送受信
するとこの図4の割込に入り、この時点で他の割込が禁
止されているため、S21で割込の許可をする。S22
で受信データがコマンドかデータか、それとも送信時用
のダミーデータかを判断する。そこで、S23でR/W
ラインをHiにし、S24で受信データ別の受信処理を
行う。Therefore, according to the present invention, the interruption of serial data transmission / reception is performed by taking measures as shown in the flowchart of FIG. First, when serial data is transmitted / received, the interrupt shown in FIG. 4 is entered. At this point, since other interrupts are prohibited, the interrupt is permitted in S21. S22
To determine whether the received data is a command or data or dummy data for transmission. Therefore, R / W in S23
The line is set to Hi, and a reception process for each reception data is performed in S24.
【0032】次のS25でモータ制御処理タスクが実行
中であるか否かの判断を行い、実行中でないときは、通
常の通信1(第1の通信状態)でS26を実行し、R/
WラインをLowにするタイミングのためのタイマ時間
をtに設定する。In the next S25, it is determined whether or not the motor control processing task is being executed. If not, S26 is executed in the normal communication 1 (first communication state), and R / R
The timer time for the timing of setting the W line to Low is set to t.
【0033】しかし、S25を実行するタイミングに、
モータ制御タスクの実行要求が発生したときからモータ
制御タスクが終了するまでの間ならば、S27に進み、
時間tをt+αに置き換える。ここで、αは制御処理タ
スクが充分終了するような値で、t+αが通信エラーを
起こさない程度の大きさに設定している。However, at the timing of executing S25,
If it is between the time when the execution request of the motor control task is generated and the time when the motor control task is completed, the process proceeds to S27,
Replace time t with t + α. Here, α is a value such that the control processing task is sufficiently completed, and t + α is set to a value that does not cause a communication error.
【0034】なお、前者の第1の通信状態(通信1)の
場合に時間tに設定しているのは、通信は可能な限り早
い方が情報が早くカメラに伝わるからである。後者はモ
ータ制御は制御サイクルに大きく影響するために、メイ
ンルーチンが確実に実行できるように+αを設けてい
る。これを第2の通信状態(通信2)とし、これを行う
ことにより、送受信の多いバイト数の通信でも制御サイ
クルを確実に保つことができるようにしている。The reason why the time t is set in the former first communication state (communication 1) is that information is transmitted to the camera as soon as possible in communication. In the latter, since the motor control greatly affects the control cycle, + α is provided to ensure that the main routine can be executed. This is set as the second communication state (communication 2), and by performing this, the control cycle can be reliably maintained even in communication with a large number of bytes transmitted and received.
【0035】上述したS26の通信1またはS27の通
信2を行ったのちはS28に進み、時間t計測用のタイ
マをスタートさせてこの割込処理を抜け、メインルーチ
ンに戻る。After performing the communication 1 in S26 or the communication 2 in S27, the process proceeds to S28, in which a timer for measuring the time t is started, the interruption processing is exited, and the processing returns to the main routine.
【0036】なお、上述した説明では、レンズ鏡筒3の
カメラ1との通信について詳細を述べたが、アクセサリ
であるテレコン8との通信でも同様に行うことができ
る。これを図2に示す。すなわち、この図2において、
レンズ−テレコン間のクロックとデータの通信処理を示
すタイムチャートから明らかな通りである。ここでは、
モータ制御処理タスクを実行の際には、通常の通信1で
は時間t’である間隔の通信を、通信2では時間t’+
α’となるようにプラスしている。In the above description, the communication of the lens barrel 3 with the camera 1 has been described in detail. However, the communication with the teleconverter 8 as an accessory can be similarly performed. This is shown in FIG. That is, in FIG.
This is clear from the time chart showing the clock and data communication processing between the lens and the telecon. here,
When executing the motor control processing task, the communication at the interval of time t ′ is performed in the normal communication 1 and the time t ′ +
α 'is added.
【0037】以上の構成によれば、レンズ鏡筒3はモー
タ制御処理タスクを実行するときのみに、メインルーチ
ンのモータ制御処理タスクを確実に実行可能とするため
の時間αを、通常時の第1の通信状態(通信1)にプラ
スした第2の通信状態(通信2)に切り替えるため、カ
メラ1と通信を頻繁に行っていても安定した制御サイク
ルでAF用モータ7を制御することができる。また、モ
ータ制御処理タスクを実行するときにのみ、第2の通信
状態に切り替えているため、それ以外の時にはこれより
も通信時間のより速い第1の通信状態で通信が行なえ、
全体としての通信時間を抑えることができる。According to the above configuration, only when the lens barrel 3 executes the motor control processing task, the time α for ensuring that the motor control processing task of the main routine can be executed is reduced by the first normal time. Switching to the second communication state (communication 2) which is added to the first communication state (communication 1) allows the AF motor 7 to be controlled in a stable control cycle even when communication with the camera 1 is performed frequently. . In addition, since the second communication state is switched only when the motor control processing task is executed, communication can be performed in the first communication state in which the communication time is faster than that in other cases,
The communication time as a whole can be suppressed.
【0038】なお、本発明は上述した実施の形態で説明
した構造には限定されず、各部の形状、構造等を適宜変
形、変更し得ることはいうまでもない。たとえばレンズ
鏡筒3内に設けるアクチュエータはAF用モータ7に限
らず、レンズ鏡筒3内での駆動機構の駆動制御を行うア
クチュエータであればよい。また、アクセサリとしての
テレコンバータ8も同様であり、レンズ鏡筒3内のマイ
コン4等と通信を行うことができるカメラ用アクセサリ
であればよい。The present invention is not limited to the structure described in the above embodiment, and it goes without saying that the shape, structure, etc. of each part can be appropriately modified or changed. For example, the actuator provided in the lens barrel 3 is not limited to the AF motor 7, but may be any actuator that controls the driving of the drive mechanism in the lens barrel 3. The same applies to the teleconverter 8 as an accessory, and any camera accessory that can communicate with the microcomputer 4 and the like in the lens barrel 3 may be used.
【0039】[0039]
【実施例】レンズ鏡筒3側のマイコン4でのカメラ1お
よびテレコンバータ8への通信制御部11による第1の
通信状態(通信1)としては、カメラ1の測距,測光な
どで必要となるレンズ鏡筒3における固有のデータ通
信、フォーカスや種々のスイッチ状態によりレンズ鏡筒
3内の変化に伴い随時変化するデータ等の送信、カメラ
1によるアクチュエータの駆動パターン、駆動量、駆動
速度、カメラ1のスイッチ状態等のデータまたは信号の
受信のいずれかを、ある一つのアルゴリズムによって通
信すること等がある。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS A first communication state (communication 1) by a communication control unit 11 to a camera 1 and a teleconverter 8 in a microcomputer 4 on a lens barrel 3 side is necessary for distance measurement and photometry of the camera 1. Specific data communication in the lens barrel 3, transmission of data and the like that changes as needed in the lens barrel 3 due to focus and various switch states, a drive pattern, a drive amount, a drive speed of the actuator by the camera 1, and a camera There is a case where any one of data or signal reception such as one switch state is communicated by a certain algorithm.
【0040】また、前記通信制御部11による第2の通
信状態(通信2)としては、駆動制御部5によるアクチ
ュエータ(モータ7)の駆動制御の実行中に、制御処理
タスクを実行すべきサンプリング時間に達したときから
その制御処理タスクが終了するまでの間のみに、第1の
通信状態での通信タイミングを強制的に遅らせて通信す
ること等がある。The second communication state (communication 2) by the communication control unit 11 includes a sampling time during which the control processing task is to be executed while the drive control unit 5 is performing drive control of the actuator (motor 7). The communication may be performed by forcibly delaying the communication timing in the first communication state only from when the control processing task is completed to when the control processing task ends.
【0041】[0041]
【発明の効果】以上説明したように本発明に係るアクチ
ュエータ内蔵式レンズ鏡筒によれば、カメラおよびアク
セサリと通信ラインを接続することにより通信を行うに
あたって、レンズ鏡筒内の制御および鏡筒外部との通信
を行うマイクロコンピュータと、このマイクロコンピュ
ータにより制御されるアクチュエータと、マイクロコン
ピュータによりアクチュエータを制御する駆動制御手段
を備え、マイクロコンピュータにより通常時に行う第1
の通信状態と、アクチュエータ制御時に通信時間を変更
する第2の通信状態とを行える通信手段を設けているの
で、簡単な構成であるにもかかわらず、以下に述べる優
れた効果を奏する。As described above, according to the lens barrel with built-in actuator according to the present invention, when communication is performed by connecting a camera and an accessory to a communication line, control within the lens barrel and external control of the lens barrel are performed. A microcomputer for communicating with the microcomputer, an actuator controlled by the microcomputer, and drive control means for controlling the actuator by the microcomputer.
And a second communication state in which the communication time is changed during the actuator control is provided. Therefore, despite the simple configuration, the following excellent effects can be obtained.
【0042】本発明によれば、レンズ鏡筒内のマイクロ
コンピュータがカメラやアクセサリとの頻繁な通信を行
っていても、アクチュエータの制御処理実行中にのみ、
通常の第1の通信状態から、これよりも通信時間の長い
第2の通信状態に切り替えを行い、アクチュエータ制御
のための制御処理タスクの時間を確保し、制御サイクル
時間を安定させることができる。しかも、通常の第1の
通信状態での時間を長く設定することなく、またアクチ
ュエータ制御処理タスクを実行するときにのみ、第2の
通信状態への切り替えを行っているから、それ以外の時
には通信速度がより速い第1の通信状態で通信ができ、
全体としての通信時間も抑えることができる。According to the present invention, even if the microcomputer in the lens barrel is performing frequent communication with the camera or accessory, only during execution of the control processing of the actuator,
By switching from the normal first communication state to the second communication state having a longer communication time, the time for the control processing task for actuator control can be secured and the control cycle time can be stabilized. In addition, since the switching to the second communication state is performed without setting a long time in the normal first communication state and only when executing the actuator control processing task, the communication is performed at other times. Communication can be performed in the first communication state having a higher speed,
The communication time as a whole can also be suppressed.
【0043】したがって、本発明によれば、カメラやア
クセサリとの通信が頻繁に行われている時でも、レンズ
鏡筒内でのアクチュエータの制御サイクルを安定して行
うことができる。ここで、本発明によるアクチュエータ
内蔵式レンズ鏡筒では、マイクロコンピュータにより制
御演算および制御出力を行う処理の制御処理タスクをサ
ンプリング時間で実行することで、アクチュエータの駆
動を駆動制御手段により制御するように構成している。Therefore, according to the present invention, the control cycle of the actuator in the lens barrel can be stably performed even when communication with the camera or accessory is frequently performed. Here, in the lens barrel with a built-in actuator according to the present invention, the drive processing of the actuator is controlled by the drive control means by executing the control processing task of the processing for performing the control calculation and the control output by the microcomputer at the sampling time. Make up.
【図1】 本発明に係るアクチュエータ内蔵式レンズ鏡
筒の一つの実施の形態を示し、AF用モータ内蔵式のレ
ンズ鏡筒やアクセサリとしてテレコンバータを含むカメ
ラシステムのブロック図である。FIG. 1 shows an embodiment of a lens barrel with a built-in actuator according to the present invention, and is a block diagram of a camera system including a lens barrel with a built-in AF motor and a teleconverter as an accessory.
【図2】 図1のカメラシステムにおいて、レンズ鏡筒
とカメラボディ間、レンズ鏡筒とテレコンバータ間で行
われている通信波形を説明するためのタイムチャートで
ある。FIG. 2 is a time chart for explaining communication waveforms performed between the lens barrel and the camera body and between the lens barrel and the teleconverter in the camera system of FIG. 1;
【図3】 図1、図2に示すアクチュエータ内蔵式レン
ズ鏡筒でのメインの動作を示すフローチャートである。FIG. 3 is a flowchart showing a main operation in the lens barrel with a built-in actuator shown in FIGS. 1 and 2;
【図4】 図3のメインルーチンに対しての割込処理の
動作を示すフローチャートである。FIG. 4 is a flowchart showing an operation of an interrupt process for the main routine of FIG. 3;
1…カメラ、2…カメラ側のマイクロコンピュータ(マ
イコン)、3…レンズ鏡筒、4…レンズ鏡筒側のマイク
ロコンピュータ(マイコン)、5…モータ制御部、6…
通信ライン、7…AF用モータ(アクチュエータ)、8
…アクセサリとしてのテレコン(テレコンバータ)、9
…テレコン側のマイクロコンピュータ(マイコン)、1
0…通信ライン、11…通信制御部(第1、第2の通信
状態の制御を行う通信手段)。DESCRIPTION OF SYMBOLS 1 ... Camera, 2 ... Camera side microcomputer (microcomputer), 3 ... Lens barrel, 4 ... Lens barrel side microcomputer (microcomputer), 5 ... Motor control part, 6 ...
Communication line, 7 ... AF motor (actuator), 8
... Telecon as an accessory (teleconverter), 9
... microcomputer (microcomputer) on the telecon side, 1
0: communication line, 11: communication control unit (communication means for controlling first and second communication states).
Claims (4)
接続することにより通信が可能なレンズ鏡筒において、 前記レンズ鏡筒内の制御および鏡筒外部との通信を行う
マイクロコンピュータと、 前記マイクロコンピュータにより制御されるアクチュエ
ータと、 前記マイクロコンピュータにより前記アクチュエータを
制御する駆動制御手段とを備え、 前記マイクロコンピュータにより通常時に行う第1の通
信状態と、前記アクチュエータ制御時に通信時間を変更
する第2の通信状態とを行える通信手段を設けたことを
特徴とするアクチュエータ内蔵式レンズ鏡筒。1. A lens barrel capable of communicating by connecting a camera and an accessory to a communication line, comprising: a microcomputer for controlling the inside of the lens barrel and communicating with the outside of the lens barrel; and controlling the microcomputer. And a drive control means for controlling the actuator by the microcomputer, a first communication state performed by the microcomputer at a normal time, and a second communication state changing the communication time at the time of the actuator control. A lens barrel with a built-in actuator, characterized by comprising communication means capable of performing the following.
ンズ鏡筒において、 マイクロコンピュータにより制御演算および制御出力を
行う処理の制御処理タスクをサンプリング時間で実行す
ることで、アクチュエータの駆動を駆動制御手段により
制御するように構成したことを特徴とするアクチュエー
タ内蔵式レンズ鏡筒。2. The lens barrel with built-in actuator according to claim 1, wherein the microcomputer performs a control processing task of performing a control operation and a control output in a sampling time, thereby driving the actuator by the drive control means. A lens barrel with a built-in actuator, wherein the lens barrel is configured to be controlled.
ンズ鏡筒において、 マイクロコンピュータによりカメラおよびアクセサリへ
の通信手段による第1の通信状態として、カメラの測
距,測光などで必要となるレンズ鏡筒固有のデータ通
信、フォーカスや種々のスイッチ状態によりレンズ鏡筒
内の変化に伴い随時変化するデータ等の送信、カメラに
よるアクチュエータの駆動パターン、駆動量、駆動速
度、カメラのスイッチ状態等のデータまたは信号の受信
のいずれかを、ある一つのアルゴリズムによって通信す
るように構成したことを特徴とするアクチュエータ内蔵
式レンズ鏡筒。3. The lens barrel with built-in actuator according to claim 1, wherein the first communication state by the microcomputer to the camera and the accessory is used for distance measurement and photometry of the camera. Unique data communication, transmission of data that changes as needed with changes in the lens barrel due to focus and various switch states, data or signals such as actuator drive pattern, drive amount, drive speed, camera switch state by camera A lens barrel with a built-in actuator, characterized in that any one of the above-mentioned receptions is communicated by a certain algorithm.
ンズ鏡筒において、 通信手段を、駆動制御手段によるアクチュエータの駆動
制御の実行中に、制御処理タスクを実行すべきサンプリ
ング時間に達したときからその制御処理タスクが終了す
るまでの間のみに、第1の通信状態での通信タイミング
を強制的に遅らせた第2の通信状態で通信するように構
成したことを特徴とするアクチュエータ内蔵式レンズ鏡
筒。4. The lens barrel with a built-in actuator according to claim 1, wherein the communication unit is configured to execute the control processing task from the time when the sampling time to execute the control processing task is reached during the execution of the drive control of the actuator by the drive control unit. A lens barrel with a built-in actuator, wherein communication is performed in a second communication state in which the communication timing in the first communication state is forcibly delayed until the control processing task is completed. .
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP8320127A JPH10161006A (en) | 1996-11-29 | 1996-11-29 | Lens barrel with built-in actuator |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP8320127A JPH10161006A (en) | 1996-11-29 | 1996-11-29 | Lens barrel with built-in actuator |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH10161006A true JPH10161006A (en) | 1998-06-19 |
Family
ID=18118009
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP8320127A Pending JPH10161006A (en) | 1996-11-29 | 1996-11-29 | Lens barrel with built-in actuator |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH10161006A (en) |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US8311407B2 (en) | 2008-03-28 | 2012-11-13 | Panasonic Corporation | Camera system, camera body, and interchangeable lens |
| US8521016B2 (en) | 2008-03-28 | 2013-08-27 | Panasonic Corporation | Camera system |
| WO2018221552A1 (en) * | 2017-05-31 | 2018-12-06 | キヤノン株式会社 | Camera, accessory device, communication control method, computer program, and camera system |
| JP2018205719A (en) * | 2017-05-31 | 2018-12-27 | キヤノン株式会社 | Camera, accessory device, communication control method, computer program, and camera system |
-
1996
- 1996-11-29 JP JP8320127A patent/JPH10161006A/en active Pending
Cited By (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US8311407B2 (en) | 2008-03-28 | 2012-11-13 | Panasonic Corporation | Camera system, camera body, and interchangeable lens |
| US8521016B2 (en) | 2008-03-28 | 2013-08-27 | Panasonic Corporation | Camera system |
| US8542314B2 (en) | 2008-03-28 | 2013-09-24 | Panasonic Corporation | Camera system including camera body and interchangeable lens for performing focus control |
| WO2018221552A1 (en) * | 2017-05-31 | 2018-12-06 | キヤノン株式会社 | Camera, accessory device, communication control method, computer program, and camera system |
| JP2018205719A (en) * | 2017-05-31 | 2018-12-27 | キヤノン株式会社 | Camera, accessory device, communication control method, computer program, and camera system |
| US11086201B2 (en) | 2017-05-31 | 2021-08-10 | Canon Kabushiki Kaisha | Camera, accessory apparatus, communication control method, computer program, and camera system |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP0424678B1 (en) | Camera system controlling interchangeable lenses | |
| US8616790B2 (en) | Image pickup apparatus and interchangeable lens | |
| JP5517486B2 (en) | Camera and interchangeable lens mounted on the camera | |
| US8837933B2 (en) | Shutter control device | |
| JP3836685B2 (en) | Communication system for interchangeable lens camera | |
| US4881094A (en) | Lens interchange type single-lens reflex camera system and intermediate barrel therefor | |
| US20250008221A1 (en) | Camera body, camera accessory, and sharing ratio transmission method | |
| JPH10161006A (en) | Lens barrel with built-in actuator | |
| JPH03247179A (en) | Lens driving device | |
| JP2012013779A (en) | Replacement lens, camera body and camera system | |
| US6128443A (en) | Camera and interchangeable lens | |
| JP2003202623A (en) | Electronic equipment system | |
| JP6667417B2 (en) | Imaging device, accessory device, and control program | |
| JP2010049034A (en) | Interchangeable lens, camera system, and lens data communication method | |
| US20020114625A1 (en) | Camera system having a communication system between a camera body and a photographing lens | |
| JP2003121722A (en) | Camera system and camera | |
| JPH06138529A (en) | Camera movement correcting device | |
| JP2576057B2 (en) | Camera system and its accessories | |
| JP6915113B2 (en) | Accessories, camera body | |
| JP7196245B2 (en) | accessories, camera bodies | |
| JP5511844B2 (en) | Imaging apparatus and control method thereof, interchangeable lens and control method thereof | |
| JPH10239748A (en) | Camera that performs data communication with the attached device or interchangeable lens | |
| JP2003057710A (en) | Image stabilization system | |
| JP2025073514A (en) | Accessory, accessory control method, and program | |
| JP2000056379A (en) | Actuator control device for camera system |