JP6173380B2 - Imaging apparatus, control method thereof, and program - Google Patents

Imaging apparatus, control method thereof, and program Download PDF

Info

Publication number
JP6173380B2
JP6173380B2 JP2015094953A JP2015094953A JP6173380B2 JP 6173380 B2 JP6173380 B2 JP 6173380B2 JP 2015094953 A JP2015094953 A JP 2015094953A JP 2015094953 A JP2015094953 A JP 2015094953A JP 6173380 B2 JP6173380 B2 JP 6173380B2
Authority
JP
Japan
Prior art keywords
cpu
unit
switch
state
lens
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.)
Expired - Fee Related
Application number
JP2015094953A
Other languages
Japanese (ja)
Other versions
JP2016213636A (en
Inventor
勝美 齊藤
勝美 齊藤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP2015094953A priority Critical patent/JP6173380B2/en
Publication of JP2016213636A publication Critical patent/JP2016213636A/en
Application granted granted Critical
Publication of JP6173380B2 publication Critical patent/JP6173380B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Structure And Mechanism Of Cameras (AREA)
  • Studio Devices (AREA)

Description

本発明は、撮影レンズを着脱可能な撮像装置、その制御方法、プログラムおよび記録媒体に関する。   The present invention relates to an imaging device to which a photographic lens can be attached and detached, a control method therefor, a program, and a recording medium.

撮像装置の筺体表面には、多くの操作スイッチや、液晶ディスプレイなどの表示パネルが配置されている。近年、表示パネルは、表示画面上にスイッチを模したアイコンを表示すると共に抵抗膜方式や静電容量方式による接触検出機能を有することで、タッチパネルの役割を有するものがある。したがって、表示パネルの表示画面上の任意の領域を操作スイッチとして機能させることができる。このように、筺体表面には多くの操作スイッチが存在するために、ユーザが何らかの操作を行う際に意図せず操作スイッチに触れてしまい、誤操作してしまうという問題がある。   Many operation switches and a display panel such as a liquid crystal display are arranged on the surface of the housing of the imaging apparatus. In recent years, some display panels have a touch panel function by displaying an icon imitating a switch on a display screen and having a contact detection function using a resistance film method or a capacitance method. Therefore, an arbitrary area on the display screen of the display panel can function as an operation switch. As described above, since there are many operation switches on the surface of the housing, there is a problem in that the user touches the operation switch unintentionally when performing some operation, resulting in an erroneous operation.

特許文献1には、撮像装置本体にヒンジ機構などを含む傾動機構によって角度調整可能に設けられたタッチパネル方式の表示パネルを有する撮像装置が開示されている。特許文献1の撮像装置は、表示パネルを角度調整しようとするユーザが誤ってタッチパネルを操作し、その後に続く表示パネルの変位を検出することにより、最初の操作が誤動作であることを判定し、実行中の動作を無効するものである。   Patent Document 1 discloses an image pickup apparatus having a touch panel type display panel provided in an image pickup apparatus main body so that the angle can be adjusted by a tilting mechanism including a hinge mechanism and the like. The imaging device of Patent Document 1 determines that the first operation is a malfunction by a user who tries to adjust the angle of the display panel erroneously operates the touch panel and detects the subsequent displacement of the display panel. The operation being executed is invalidated.

特開2005−039582号公報JP 2005-039582 A

しかしながら、上述した特許文献1の撮像装置では、誤操作の防止対象が表示パネルの傾動操作によるものに限られてしまう。撮像装置には、レンズ交換式のものがある。このようなレンズ交換式の撮像装置において撮影レンズを交換する場合、本体を保持する側に当たる手の指や掌が、筺体表面の多くの領域に接触するため、この位置にタッチパネルやスイッチ類があると誤操作してしまう。したがって、誤操作により撮像装置の設定や表示画面など、撮像装置の状態が意図しない状態に変更されてしまい、ユーザが混乱してしまう虞がある。   However, in the image pickup apparatus disclosed in Patent Document 1 described above, the target for preventing an erroneous operation is limited to that due to the tilting operation of the display panel. Some image pickup apparatuses have interchangeable lenses. When exchanging a photographic lens in such an interchangeable lens type imaging device, the finger or palm of the hand that contacts the side that holds the main body comes into contact with many areas on the surface of the housing, so there are touch panels and switches at this position. And misoperation. Therefore, the user may be confused because the state of the imaging device is changed to an unintended state such as the setting of the imaging device or the display screen due to an erroneous operation.

本発明は、上述したような問題点に鑑みてなされたものであり、撮影レンズを交換する場合に誤操作により撮像装置の状態が変更されることを防止することを目的とする。   The present invention has been made in view of the above-described problems, and an object of the present invention is to prevent the state of the imaging apparatus from being changed by an erroneous operation when the photographing lens is replaced.

本発明は、撮影レンズを着脱可能な撮像装置であって、撮影レンズの着脱を検出する検出手段と、誤操作である可能性が高い少なくとも1つの所定条件のいずれも満たさない場合には、前記検出手段により撮影レンズが取り外されたことが検出された状態で行われたユーザによる操作部に対する操作に応じて、対応する処理を実行し、前記少なくとも1つの所定条件のいずれかを満たす場合には、前記検出手段により撮影レンズが取り外されたことが検出された状態で行われた前記操作部に対する操作に応じた処理を無効とするように制御する制御手段と、を有することを特徴とする。 The present invention is an image pickup apparatus in which a photographic lens can be attached and detached, and when the detection means for detecting attachment and detachment of the photographic lens and at least one predetermined condition that is likely to be an erroneous operation are not satisfied, the detection is performed. In response to an operation on the operation unit by the user performed in a state where it is detected that the taking lens has been removed by the means, when corresponding processing is performed and any one of the at least one predetermined condition is satisfied, Control means for performing control so as to invalidate processing according to an operation on the operation unit performed in a state where it is detected that the photographing lens is removed by the detection means.

本発明によれば、撮影レンズを交換する場合に誤操作により撮像装置の状態が変更されることを防止することができる。   According to the present invention, it is possible to prevent the state of the imaging apparatus from being changed by an erroneous operation when the photographing lens is replaced.

撮像システムの概略構成を示す図である。It is a figure which shows schematic structure of an imaging system. 撮像システムの外観を示す図である。It is a figure which shows the external appearance of an imaging system. カメラ本体の処理を示すタイミングチャートである。It is a timing chart which shows the process of a camera main body. カメラ本体の処理を示すフローチャートである。It is a flowchart which shows the process of a camera main body. ロック解除部検出処理を示すフローチャートである。It is a flowchart which shows a lock release part detection process. レンズ着脱検出処理を示すフローチャートである。It is a flowchart which shows a lens attachment / detachment detection process. スイッチ押下時処理を示すフローチャートである。It is a flowchart which shows a process at the time of switch press. スイッチ解放時処理の前半を示すフローチャートである。It is a flowchart which shows the first half of the process at the time of switch release. スイッチ解放時処理の後半を示すフローチャートである。It is a flowchart which shows the second half of the process at the time of switch release.

以下、本発明に係る実施形態について図面を参照して詳細に説明する。以下では、撮像装置としてのカメラ本体と、撮影レンズとを有する撮像システムについて説明する。
図1は、撮像システムの概略構成を示す図である。図2は、撮像システムの外観を示す図である。図2(a)は撮像システムを正面から見た斜視図であり、図2(b)は撮像システムを背面から見た斜視図である。
Hereinafter, embodiments according to the present invention will be described in detail with reference to the drawings. Hereinafter, an imaging system having a camera body as an imaging device and a photographing lens will be described.
FIG. 1 is a diagram illustrating a schematic configuration of an imaging system. FIG. 2 is a diagram illustrating an appearance of the imaging system. FIG. 2A is a perspective view of the imaging system as viewed from the front, and FIG. 2B is a perspective view of the imaging system as viewed from the back.

撮像システム100は、カメラ本体101、撮影レンズ102を備える。撮像システム100は、撮影レンズ102がマウント部103を介してカメラ本体101に対して着脱可能なレンズ交換式である。
カメラ本体101は、撮像部104、画像処理部105、中央演算装置としてのCPU106、ROM107、メモリ108、表示部としてのディスプレイ109、操作部110、解除検出部111、通信部112などを有する。カメラ本体101の各構成は、内部バスを介して互いに接続される。なお、記録媒体ドライブや電池などの構成については省略する。
The imaging system 100 includes a camera body 101 and a photographing lens 102. The imaging system 100 is an interchangeable lens type in which a photographic lens 102 can be attached to and detached from the camera body 101 via a mount unit 103.
The camera body 101 includes an imaging unit 104, an image processing unit 105, a CPU 106 as a central processing unit, a ROM 107, a memory 108, a display 109 as a display unit, an operation unit 110, a release detection unit 111, a communication unit 112, and the like. Each component of the camera body 101 is connected to each other via an internal bus. Note that the configuration of the recording medium drive, the battery, and the like is omitted.

撮像部104は、撮影レンズ102(レンズ群113)を介して結像された被写体像を画像信号に変換する、CCDセンサやCMOSセンサ等の撮像素子である。撮像部104は、変換した画像信号を画像処理部105に送信する。
画像処理部105は、CPU106の制御に基づき、画像信号に対して所定の画素補間、リサイズ処理、色変換などの各種画像処理を行う。画像処理部105は、画像処理後の画像信号をメモリ108またはディスプレイ109に送信する。
The imaging unit 104 is an imaging element such as a CCD sensor or a CMOS sensor that converts a subject image formed through the photographing lens 102 (lens group 113) into an image signal. The imaging unit 104 transmits the converted image signal to the image processing unit 105.
The image processing unit 105 performs various image processing such as predetermined pixel interpolation, resizing processing, and color conversion on the image signal based on the control of the CPU 106. The image processing unit 105 transmits the image signal after the image processing to the memory 108 or the display 109.

CPU106は、カメラ本体101全体の動作を制御する。CPU106は、ユーザによる操作部110等を介して操作を受け付けて、後述する各種プログラムを実行する。また、CPU106は、ディスプレイ109の表示制御を行う。CPU106は、制御手段および判定手段の一例である。
ROM107は、不揮発性メモリであって、CPU106が実行するプログラムや各種データを格納している。また、ROM107にはカメラ本体101の起動処理、基本入出力処理、後述するフローチャートを実現するプログラム、後述するタイムアウト時間T1、T2、T3の情報などが含まれる。なお、ROM107は、書き換え可能な不揮発性メモリであってもよい。
メモリ108は、揮発性メモリであって、CPU106が一時的にデータを記憶するワークエリアである。メモリ108には後述する、各種変数や、各種フラグの内容等が記憶される。
ディスプレイ109は、後述する画像や表示アイテムを表示する。ディスプレイ109によりグラフィックユーザインターフェース(GUI)が構成される。
The CPU 106 controls the overall operation of the camera body 101. The CPU 106 receives an operation by the user via the operation unit 110 or the like, and executes various programs described later. Further, the CPU 106 performs display control of the display 109. The CPU 106 is an example of a control unit and a determination unit.
The ROM 107 is a nonvolatile memory, and stores programs executed by the CPU 106 and various data. In addition, the ROM 107 includes start-up processing of the camera body 101, basic input / output processing, a program for realizing a flowchart described later, information on timeout times T1, T2, and T3 described later. The ROM 107 may be a rewritable nonvolatile memory.
The memory 108 is a volatile memory, and is a work area in which the CPU 106 temporarily stores data. The memory 108 stores various variables, contents of various flags, etc., which will be described later.
The display 109 displays images and display items to be described later. The display 109 constitutes a graphic user interface (GUI).

操作部110は、ユーザにより操作可能な複数のスイッチ等が含まれる。
図2に示すように、操作部110aは切替スイッチであり、電源ON/OFFやシーンモード/撮影モードの設定を行うことができる。操作部110bはレリーズスイッチであり、半押しでオートフォーカスの合焦動作を指示し、全押しで撮影を指示することができる。操作部110cは、ダイヤルスイッチであり、円周方向への回転操作によりCPU106に指示することができる。また、操作部110cは、押下によりCPU106に指示を与えるスイッチを組み合わせることで、例えば上下左右方向に90°間隔で押下可能な十字キーを併設することができる。また、操作部110cの中央は決定キーであり、十字キー等で選択した項目の決定を指示する。
The operation unit 110 includes a plurality of switches that can be operated by the user.
As shown in FIG. 2, the operation unit 110a is a changeover switch, and can perform power ON / OFF and scene mode / photographing mode settings. The operation unit 110b is a release switch, which can be instructed to perform an autofocus operation by half-pressing and can be instructed to photograph by full-pressing. The operation unit 110c is a dial switch and can instruct the CPU 106 by a rotation operation in the circumferential direction. Further, the operation unit 110c can be provided with a cross key that can be pressed at intervals of 90 ° in the vertical and horizontal directions, for example, by combining switches that give instructions to the CPU 106 when pressed. The center of the operation unit 110c is a determination key, which instructs determination of an item selected with a cross key or the like.

操作部110dはMENUスイッチであり、ディスプレイ109にメニュ画面を表示させる指示をすることができる。また、操作部110e〜110gは各種スイッチであり、ディスプレイ109に表示されたアイテムの変更を指示することができる。なお、配置されるスイッチの個数や割り当てる機能は適宜、変更することができる。
操作部110hは、ディスプレイ109の表面上に配置された抵抗膜方式や静電容量方式によるタッチパネルである。ディスプレイ109の表示画像とタッチパネルの検出領域とを組み合わせることにより、操作部110hを介してユーザはCPU106に対して様々な操作入力を指示することができる。
The operation unit 110d is a MENU switch, and can instruct the display 109 to display a menu screen. Further, the operation units 110e to 110g are various switches, and can instruct change of items displayed on the display 109. Note that the number of switches to be arranged and the function to be assigned can be changed as appropriate.
The operation unit 110h is a resistive film type or capacitive type touch panel disposed on the surface of the display 109. By combining the display image on the display 109 and the detection area of the touch panel, the user can instruct the CPU 106 to perform various operation inputs via the operation unit 110h.

解除検出部111は、後述するロック解除部200が押下されたことを検出するセンサであり、押下された情報をCPU106に通知する。
通信部112は、マウント部103を介して撮影レンズ102と電気的に接続される。通信部112は、カメラ本体101から撮影レンズ102に対する制御指示の送信や、撮影レンズ102からの個体識別情報や動作情報の受信を行う。CPU106は通信部112を介して撮影レンズ102から個体識別情報や動作情報を受信することで、カメラ本体101に撮影レンズ102が接続されていることを検出することができる。
The release detection unit 111 is a sensor that detects that a later-described lock release unit 200 is pressed, and notifies the CPU 106 of the pressed information.
The communication unit 112 is electrically connected to the photographing lens 102 via the mount unit 103. The communication unit 112 transmits a control instruction to the photographing lens 102 from the camera body 101 and receives individual identification information and operation information from the photographing lens 102. The CPU 106 can detect that the photographing lens 102 is connected to the camera body 101 by receiving individual identification information and operation information from the photographing lens 102 via the communication unit 112.

撮影レンズ102は、レンズ群113、CPU114、ROM115、通信部116などを有する。
レンズ群113は、ズームレンズやフォーカスレンズなどを含んでいる。レンズ群113がCPU114あるいはカメラ本体101のCPU106の制御に基づき、駆動回路を介して光軸方向に移動することで、光学ズームやオートフォーカスが実現される。
CPU114は、撮影レンズ102全体の動作を制御する。CPU114は、通信部116を介してカメラ本体101に撮影レンズ102の個体識別情報や動作情報を送信する。
ROM115は、不揮発性メモリであって、撮影レンズ102の種類(型名)やシリアル番号などの個体識別情報が記憶される。
The photographing lens 102 includes a lens group 113, a CPU 114, a ROM 115, a communication unit 116, and the like.
The lens group 113 includes a zoom lens, a focus lens, and the like. The lens group 113 is moved in the optical axis direction via the drive circuit based on the control of the CPU 114 or the CPU 106 of the camera body 101, thereby realizing optical zoom and autofocus.
The CPU 114 controls the operation of the entire taking lens 102. The CPU 114 transmits individual identification information and operation information of the photographing lens 102 to the camera body 101 via the communication unit 116.
The ROM 115 is a non-volatile memory and stores individual identification information such as the type (model name) and serial number of the photographing lens 102.

次に、カメラ本体101に対して撮影レンズ102を着脱させる構成について説明する。
図2に示すように、カメラ本体101は、ロック解除部200、ロック部201、端子202を有する。一方、撮影レンズ102は、被ロック部203、端子204を有する。
ロック解除部200は、カメラ本体101から撮影レンズ102を取り外すときに操作するロック解除操作部である。カメラ本体101に撮影レンズ102が装着されている状態では、カメラ本体101から突出する棒状のロック部201が撮影レンズ102に設けられた孔状の被ロック部203に挿入されることで、撮影レンズ102が光軸回りに回転しないようにロックされる。すなわち、ロック部201と被ロック部203とによりロック機構が構成される。ユーザがロック解除部200を押下すると、連動してロック部201がカメラ本体101に没入され、被ロック部203から離脱することでロックが解除される。ユーザはロックが解除された状態で撮影レンズ102を光軸回りに一方向に回転させることで、撮影レンズ102をカメラ本体101から取り外すことができる。一方、撮影レンズ102をカメラ本体101のマウント部103に当接され、光軸回りに他方向に回転させることで、被ロック部203に自動的にロック部201が挿入され、撮影レンズ102をカメラ本体101に装着することができる。撮影レンズ102を装着する場合には、ユーザはロック解除部200を押下する必要はない。
Next, a configuration in which the taking lens 102 is attached to and detached from the camera body 101 will be described.
As shown in FIG. 2, the camera body 101 includes a lock release unit 200, a lock unit 201, and a terminal 202. On the other hand, the photographing lens 102 has a locked portion 203 and a terminal 204.
The lock release unit 200 is a lock release operation unit that is operated when the photographing lens 102 is detached from the camera body 101. In a state where the photographic lens 102 is attached to the camera body 101, the rod-shaped lock part 201 protruding from the camera body 101 is inserted into a hole-like locked part 203 provided in the photographic lens 102, so that the photographic lens It is locked so that 102 does not rotate around the optical axis. In other words, the lock part 201 and the locked part 203 constitute a lock mechanism. When the user presses the unlocking unit 200, the locking unit 201 is immersed in the camera body 101 in conjunction with the unlocking unit 200, and the lock is released by releasing from the locked unit 203. The user can remove the photographing lens 102 from the camera body 101 by rotating the photographing lens 102 in one direction around the optical axis in the unlocked state. On the other hand, when the photographing lens 102 is brought into contact with the mount portion 103 of the camera body 101 and rotated in the other direction around the optical axis, the lock portion 201 is automatically inserted into the locked portion 203, and the photographing lens 102 is attached to the camera. It can be attached to the main body 101. When the photographic lens 102 is attached, the user does not need to press the lock release unit 200.

なお、ロック解除部200はカメラ本体101から突出した状態に付勢されている。したがって、ユーザは付勢に抗した押下により、ロック解除部200はカメラ本体101に没入する。したがって、ユーザは付勢に抗した操作を解放することで、再びロック解除部200はカメラ本体101から突出する。上述した解除検出部111はロック解除部200の押下を検出することで、押下された旨の情報をCPU106に通知する。解除検出部111は、検出手段の一例である。   Note that the unlocking unit 200 is biased to protrude from the camera body 101. Therefore, the lock release unit 200 is immersed in the camera body 101 when the user presses against the bias. Therefore, when the user releases the operation against the urging, the unlocking unit 200 protrudes from the camera body 101 again. The release detection unit 111 described above detects the press of the lock release unit 200 and notifies the CPU 106 of information indicating that the lock release unit 200 has been pressed. The release detection unit 111 is an example of a detection unit.

カメラ本体101の端子202および撮影レンズ102の端子204は、撮影レンズ102がカメラ本体101に装着されている場合に接続され、撮影レンズ102がカメラ本体101から取り外されることで接続が解除される。
なお、上述したロック解除部200は、押下することでロックを解除する構成に限られず、スライドあるいは引張りなどの操作でロックを解除する構成であってもよい。
The terminal 202 of the camera body 101 and the terminal 204 of the photographing lens 102 are connected when the photographing lens 102 is attached to the camera body 101, and the connection is released when the photographing lens 102 is detached from the camera body 101.
Note that the above-described lock release unit 200 is not limited to the configuration in which the lock is released by pressing, but may be configured to release the lock by an operation such as sliding or pulling.

次に、カメラ本体101に装着している撮影レンズ102をユーザが交換する場合の誤操作を防止する、誤操作防止処理について説明する。
図3は、ユーザがレンズ交換を行う前後におけるカメラ本体101の処理を示すタイミングチャートである。ここでは、左から右に向かう横軸方向が時間tの経過を表し、縦軸が検出結果(a)〜(d)と、制御結果(e)、(f)とを表している。
Next, an erroneous operation preventing process for preventing an erroneous operation when the user replaces the taking lens 102 mounted on the camera body 101 will be described.
FIG. 3 is a timing chart showing processing of the camera body 101 before and after the user exchanges lenses. Here, the horizontal axis direction from left to right represents the passage of time t, and the vertical axis represents detection results (a) to (d) and control results (e) and (f).

最上段の(a)は、ロック解除部200の押下の検出結果を示すロック解除部検出フラグである。上位置はロック解除部200が押下されている期間であり、ロック解除部検出フラグがセットされている状態である。下位置はロック解除部200が押下されていない期間であり、ロック解除部検出フラグがクリアされている状態である。ロック解除部検出フラグのセットまたはクリアの情報は、メモリ108に記憶される。
2段目の(b)は、ロック解除部200の押下の履歴を示すロック解除部履歴フラグである。上位置はロック解除部履歴フラグがセットされている状態であり、下位置はクリアされている状態である。ロック解除部履歴フラグのセットまたはクリアの情報は、メモリ108に記憶される。
(A) in the uppermost row is a lock release unit detection flag indicating a detection result of pressing of the lock release unit 200. The upper position is a period during which the unlocking unit 200 is pressed, and is a state in which the unlocking unit detection flag is set. The lower position is a period in which the unlocking unit 200 is not pressed, and the unlocking unit detection flag is cleared. Information on setting or clearing the unlocking unit detection flag is stored in the memory 108.
The second level (b) is a lock release unit history flag indicating a history of pressing of the lock release unit 200. The upper position is a state where the unlocking unit history flag is set, and the lower position is a state where it is cleared. Information on setting or clearing the unlocking unit history flag is stored in the memory 108.

3段目の(c)は、撮影レンズ102の着脱の検出結果を示すレンズ装着フラグである。上位置は撮影レンズ102の装着を検出している期間であり、レンズ装着フラグがセットされている状態である。下位置は撮影レンズ102の装着を検出していない期間であり、レンズ装着フラグがクリアされた状態である。撮影レンズ102の着脱は、CPU106により検出される。具体的には、カメラ本体101の通信部112が撮影レンズ102の通信部116との間で通信できるか否かをCPU106に通知することで、CPU106は撮影レンズ102の着脱を検出する。なお、撮影レンズ102の着脱の検出方法は、この場合に限定されず、その他の方法であってもよい。レンズ装着フラグのセットまたはクリアの情報は、メモリ108に記憶される。   The third level (c) is a lens mounting flag indicating a result of detecting whether the taking lens 102 is attached or detached. The upper position is a period during which the mounting of the taking lens 102 is detected, and is a state in which the lens mounting flag is set. The lower position is a period during which the mounting of the taking lens 102 is not detected, and is a state in which the lens mounting flag is cleared. Attachment / detachment of the taking lens 102 is detected by the CPU 106. Specifically, the CPU 106 detects whether the photographing lens 102 is attached or detached by notifying the CPU 106 whether or not the communication unit 112 of the camera body 101 can communicate with the communication unit 116 of the photographing lens 102. Note that the method for detecting attachment / detachment of the photographing lens 102 is not limited to this case, and other methods may be used. Information on setting or clearing the lens mounting flag is stored in the memory 108.

4段目の(d)は、操作部110に対する操作の検出結果である。操作部110には、図2に示す操作部110(a)〜(h)が含まれる。なお、操作部110に対する操作には、操作部110に応じて押下、スライド、回転等があるが、以下では押下を取り上げて説明する。上位置は操作部110の押下が検出している期間であり、下位置は操作部110の押下が検出されていない期間である。操作部110の押下は、CPU106により検出される。
CPU106は、検出結果(a)〜(d)を検出あるいは通知されることから、検出結果の内容に従って、操作部110の受付可否と復帰処理の制御内容を決定する。
The fourth row (d) shows the operation detection result for the operation unit 110. The operation unit 110 includes operation units 110 (a) to (h) illustrated in FIG. Note that the operation on the operation unit 110 includes pressing, sliding, rotation, and the like depending on the operating unit 110, and the following description will be made by taking up pressing. The upper position is a period during which pressing of the operation unit 110 is detected, and the lower position is a period during which pressing of the operation unit 110 is not detected. Pressing of the operation unit 110 is detected by the CPU 106.
Since the CPU 106 detects or is notified of the detection results (a) to (d), the CPU 106 determines whether to accept the operation unit 110 and the control content of the return process according to the content of the detection result.

5段目の(e)は、操作部110の押下に対する受付可否結果である。上位置は押下された操作部110に割り当てられた処理を実行する期間であり、下位置は操作部110に応じた処理を実行しない期間である。ここでは、例えば操作部110が押下された後、解放されたタイミングで処理される場合を示している。下位置には、4段目の検出結果(d)のうち操作部110の押下が検出されていない期間では必然的に操作が受け付けられないが、一方で操作部110の押下が検出されているにも関わらず操作を受け付けない場合があり、後述する。   The fifth row (e) shows the result of acceptability for pressing of the operation unit 110. The upper position is a period in which the process assigned to the pressed operation unit 110 is executed, and the lower position is a period in which the process corresponding to the operation unit 110 is not executed. Here, for example, a case where processing is performed at a release timing after the operation unit 110 is pressed is shown. In the lower position, the operation result is not necessarily received during the period in which the operation unit 110 is not detected in the fourth detection result (d), but the operation unit 110 is detected to be pressed. Nevertheless, the operation may not be accepted, which will be described later.

6段目の(f)は、カメラ本体101の状態を復帰させる復帰処理をするか否かの判定結果である。復帰処理とは、カメラ本体101の設定内容やディスプレイ109の表示内容などのカメラ本体101の状態を、ユーザが撮影レンズ102を取り外す作業を開始する前の状態に戻すことをいう。復帰処理の制御については後述する。   The sixth level (f) is a determination result as to whether or not to perform a restoration process for restoring the state of the camera body 101. The restoration process is to return the state of the camera body 101 such as the setting contents of the camera body 101 and the display contents of the display 109 to the state before the user starts the work of removing the photographing lens 102. The control of the return process will be described later.

次に、4段目の操作部110の押下の検出結果(d)に対応する操作「A」〜操作「I」に沿って順番に説明する。なお、ここでは、操作部110を特に指定しない限りスイッチとして説明するが、タッチパネル上に表示された機能スイッチ等でも同様である。
操作「A」および操作「B」は、ロック解除部200が押下されておらず、撮影レンズ102が装着されている状態での操作である。操作「A」および操作「B」は、スイッチの押下が継続される時間の長短に違いがある。したがって、時間の長短の違いによって操作入力内容が異なる場合、CPU106は操作「B」でスイッチの押下が継続されている最中に長押しモードに移行する。なお、各スイッチが長押しに対応するか否かは任意である。また、短押しと長押しの制御の違いに関する説明は省略する。
CPU106は、平常時の操作として、操作「A」および操作「B」を受け付け、操作「A」および操作「B」に応じた処理を実行する。したがって、CPU106は、例えばカメラ本体101の設定やディスプレイ109の表示内容を変更することで、カメラ本体101の状態を変更させる。
Next, description will be made in order along the operations “A” to “I” corresponding to the detection result (d) of pressing of the operation unit 110 in the fourth row. Here, the switch is described as a switch unless the operation unit 110 is specified in particular, but the same applies to a function switch displayed on the touch panel.
The operations “A” and “B” are operations in a state where the unlocking unit 200 is not pressed and the photographing lens 102 is attached. The operation “A” and the operation “B” are different in the length of time that the switch is continuously pressed. Therefore, when the operation input contents differ depending on the length of time, the CPU 106 shifts to the long press mode while the switch is continuously pressed in the operation “B”. Note that whether or not each switch corresponds to a long press is arbitrary. Moreover, the description regarding the difference between short press and long press control is omitted.
The CPU 106 receives the operation “A” and the operation “B” as a normal operation, and executes processing according to the operation “A” and the operation “B”. Accordingly, the CPU 106 changes the state of the camera body 101 by changing the settings of the camera body 101 or the display content of the display 109, for example.

操作「C」は、スイッチが押下されている期間中にロック解除部200が押下された場合の操作である。ここでは、3段目の検出結果(c)で撮影レンズ102の装着を検出しているが、撮影レンズ102が取り外されていることを検出していてもよく、撮影レンズ102の着脱の状態は限定されない。
CPU106は、ロック解除部200の押下が検出された場合には、操作「C」を受け付けず、操作「C」に応じた処理を実行しない。これは、ユーザがスイッチを押下している最中であるにも関わらず、撮影レンズ102を取り外す動作を始めることは一般的な取扱い方法ではないことから、操作「C」はユーザが意図した操作ではないと判断できるからである。したがって、撮影レンズ102を取り外す動作において、操作「C」はカメラ本体101を保持するための手がスイッチに触れてしまった誤操作であると推測できる。
なお、スイッチの押下時間が長く、長押しモードに移行した場合にはディスプレイ109の表示内容が変更されている場合がある。この場合、CPU106はロック解除部200の押下を検出した時点で、操作「C」を受け付ける前の状態にカメラ本体101の状態を復帰させる。
The operation “C” is an operation performed when the lock release unit 200 is pressed while the switch is pressed. Here, the detection result (c) of the third stage detects the mounting of the taking lens 102, but it may be detected that the taking lens 102 is detached. It is not limited.
When it is detected that the lock release unit 200 is pressed, the CPU 106 does not accept the operation “C” and does not execute the process corresponding to the operation “C”. This is because it is not a general handling method to start the operation of removing the photographing lens 102 even though the user is pressing the switch. It is because it can be judged that it is not. Therefore, in the operation of removing the photographing lens 102, it can be estimated that the operation “C” is an erroneous operation in which the hand for holding the camera body 101 has touched the switch.
When the switch is pressed for a long time and the mode is changed to the long press mode, the display content of the display 109 may be changed. In this case, the CPU 106 returns the state of the camera body 101 to the state before accepting the operation “C” at the time when the depression of the lock release unit 200 is detected.

操作「D」および操作「E」は、ロック解除部200が押下されている期間中の操作である。操作「D」と操作「E」は、スイッチの押下を解放するタイミングがロック解除部200を解放する前か後かに違いがある。CPU106は何れであってもロック解除部200の押下が検出された場合には、操作「D」および操作「E」を受け付けず、操作「D」および操作「E」に応じた処理を実行しない。すなわち、ロック解除部200が押下された後、操作「D」または操作「E」が最初の操作である場合、CPU106は操作「D」および操作「E」を受け付けないことで、カメラ本体101の設定もディスプレイ109の表示内容も変更しない。これは、ロック解除部200が押下されていることから、ユーザは撮影レンズ102を取り外す作業をしている最中であり、操作「D」および操作「E」はユーザが意図した操作ではないと判断できるからである。したがって、撮影レンズ102を取り外す動作において、操作「D」および操作「E」はスイッチに触れてしまった誤操作であると推測できる。
なお、直前に操作「C」が行われ、その後に操作「D」および操作「E」が行われたとしても、上述したようにCPU106は復帰処理をしているために、カメラ本体101の状態はロック解除部200が押下される前と同じである。
The operation “D” and the operation “E” are operations performed while the lock release unit 200 is being pressed. The operation “D” and the operation “E” are different depending on whether the release timing of the switch is before or after the lock release unit 200 is released. In any case, when the depression of the unlocking unit 200 is detected, the CPU 106 does not accept the operation “D” and the operation “E”, and does not execute the process according to the operation “D” and the operation “E”. . That is, when the operation “D” or the operation “E” is the first operation after the lock release unit 200 is pressed, the CPU 106 does not accept the operation “D” and the operation “E”, thereby Neither setting nor display content of the display 109 is changed. This is because the user is working to remove the taking lens 102 because the lock release unit 200 is pressed, and the operations “D” and “E” are not operations intended by the user. This is because it can be judged. Therefore, in the operation of removing the photographing lens 102, it can be estimated that the operation “D” and the operation “E” are erroneous operations that have touched the switch.
Even if the operation “C” is performed immediately before and the operations “D” and “E” are performed thereafter, the CPU 106 performs the return processing as described above, and thus the state of the camera body 101 is determined. Is the same as before the lock release unit 200 is pressed.

操作「F」は、撮影レンズ102が取り外され、かつロック解除部200が解放された後の1回目の操作である。CPU106は撮影レンズ102が取り外されたことを検出し、かつ所定条件を満たす場合には、操作「F」に応じた処理を実行しない。すなわち、操作「F」は、撮影レンズ102を取り外した後にカメラ本体101を保持し続けていた手による誤操作である場合と、撮影レンズ102を装着していないことを承知しながらも意図的に操作を行っている場合とがある。そのため、CPU106は、所定条件を満たすか否かを判定することで、誤操作であるか意図的な操作であるかを判断する。
具体的には、CPU106は操作「F」に応じた処理を実行すると共に、操作「F」からの経過時間をタイマTswにより計測する。CPU106はタイマTswを参照して予め決められたタイムアウト時間T1の間に次の操作が行われたか否かを判定する。次の操作がタイムアウト時間T1よりも長い場合、CPU106はカメラ本体101の設定内容やディスプレイ109の表示内容の復帰処理を実行する。ここでは、CPU106は操作「F」に応じた処理を実行する前の状態に復帰させることで実質的に、操作「F」および操作「F」に連続する次の操作に応じた処理を実行しない。
これは、ある程度の間隔時間で次の操作を行われる場合には意図的な操作であると判断でき、次の操作が行われない時間が所定時間を経過する場合には直前の操作が誤操作であると判断できるからである。したがって、タイムアウト時間T1は、操作が遅い人であっても問題とならない程度の時間とすることが好ましい。
The operation “F” is the first operation after the taking lens 102 is removed and the unlocking unit 200 is released. If the CPU 106 detects that the taking lens 102 has been removed and satisfies a predetermined condition, the CPU 106 does not execute a process corresponding to the operation “F”. That is, the operation “F” is an intentional operation while recognizing that the operation is an erroneous operation by the hand that has been holding the camera body 101 after the photographing lens 102 is removed and that the photographing lens 102 is not attached. There may be cases where Therefore, the CPU 106 determines whether the operation is an erroneous operation or an intentional operation by determining whether or not a predetermined condition is satisfied.
Specifically, the CPU 106 executes a process corresponding to the operation “F” and measures an elapsed time from the operation “F” with the timer Tsw. The CPU 106 refers to the timer Tsw to determine whether or not the next operation has been performed during a predetermined timeout time T1. When the next operation is longer than the timeout time T1, the CPU 106 executes a process for restoring the setting contents of the camera body 101 and the display contents of the display 109. Here, the CPU 106 does not substantially execute the process corresponding to the operation “F” and the next operation subsequent to the operation “F” by returning to the state before executing the process corresponding to the operation “F”. .
This can be determined to be an intentional operation when the next operation is performed at a certain interval time, and if the next operation is not performed for a predetermined time, the previous operation is an erroneous operation. It is because it can be judged that there exists. Therefore, it is preferable that the timeout time T1 is a time that does not cause a problem even for a person who operates slowly.

操作「G」は、操作「F」からタイムアウト時間T1内(所定時間内)に行われた次の操作である。操作「G」がタイムアウト時間T1内に行われたとしても、操作「G」が操作「F」と関連する操作ではない場合には、操作「F」および操作「G」は誤操作である場合がある。そのため、CPU106は、所定条件を満たすか否かを判定することで、誤操作であるか意図的な操作であるかを判断する。
具体的には、CPU106は操作「G」に対応する操作部110に機能が割り当てられているかを判定し、割り当てられている場合には操作「G」に応じた処理を実行する。一方、割り当てられていない場合にはCPU106は操作「G」を受け付けずに復帰処理を実行する。ここでは、CPU106は操作「F」に応じた処理を実行する前の状態に復帰させることで、実質的に操作「F」および操作「G」に応じた処理を実行しない。
また、図3では操作「G」が1回だけである場合について図示しているが、例えばメニュ画面で複数回の操作が必要な場合には、CPU106は操作ごとに繰り返し判定する。
The operation “G” is the next operation performed within the timeout time T1 (within a predetermined time) from the operation “F”. Even if the operation “G” is performed within the timeout period T1, if the operation “G” is not an operation related to the operation “F”, the operation “F” and the operation “G” may be erroneous operations. is there. Therefore, the CPU 106 determines whether the operation is an erroneous operation or an intentional operation by determining whether or not a predetermined condition is satisfied.
Specifically, the CPU 106 determines whether or not a function is assigned to the operation unit 110 corresponding to the operation “G”. If the function is assigned, the CPU 106 executes processing corresponding to the operation “G”. On the other hand, if not assigned, the CPU 106 executes the return process without accepting the operation “G”. Here, the CPU 106 returns to the state before executing the process corresponding to the operation “F”, so that the process corresponding to the operation “F” and the operation “G” is not substantially executed.
Further, FIG. 3 illustrates the case where the operation “G” is performed only once. However, for example, when a plurality of operations are necessary on the menu screen, the CPU 106 repeatedly determines each operation.

これは、操作「F」と関連する操作が連続で行われた場合には一連の操作が意図的な操作であると判断でき、機能が割り当てられてない操作部110が操作された場合には操作「G」が意図されたものではなく誤操作であると判断できるからである。
なお、機能が割り当てられていない操作部110とは、ある特定の操作を行っている最中に無効になるスイッチや、タッチパネル上で機能が割り当てられていない領域などをいう。タッチパネル上で機能が割り当てられていない領域には、グレーアウトで表示される無効スイッチ領域や、元々GUIが割り当てられていない隅等の平常時においても当該位置を押下してもCPU106がカメラ本体101の状態を変更しない領域が含まれる。
This is because a series of operations can be determined to be intentional operations when operations related to the operation “F” are continuously performed, and when an operation unit 110 to which no function is assigned is operated. This is because the operation “G” is not intended and can be determined to be an erroneous operation.
Note that the operation unit 110 to which no function is assigned refers to a switch that becomes invalid during a specific operation or an area to which no function is assigned on the touch panel. In the area to which no function is assigned on the touch panel, even if the position is pressed in a normal state such as an invalid switch area displayed in gray out or a corner to which no GUI is originally assigned, the CPU 106 can Includes areas that do not change state.

また、ユーザがロック解除部200を解放することで、CPU106はその時点からタイマTlockの計測を開始する。タイマTlockは以下の2つの所定時間との比較に使用される。
1つ目は、撮影レンズ102の再装着時間に関わるタイムアウト時間T2である。具体的には、CPU106はロック解除部200が解放された後、タイムアウト時間T2内に撮影レンズ102の装着を検出した場合に、復帰処理を行う。
これは、撮影レンズ102の装着が検出されていない間に、ユーザが誤って通信機能のない撮影レンズ等を装着することがある。この場合には、CPU106は通信部112を介して撮影レンズの装着を検出することができない。一方、ユーザは操作部110を介してカメラ本体101に通信機能のない撮影レンズ用に設定を行ってしまう。この場合、ユーザがタイムアウト時間T2内に通信機能のある撮影レンズ102を装着することで、CPU106は通信機能のない撮影レンズ用に設定された設定内容を取り消すために、復帰処理を行う。
Further, when the user releases the lock release unit 200, the CPU 106 starts measuring the timer Tlock from that point. The timer Tlock is used for comparison with the following two predetermined times.
The first is a timeout time T2 related to the remounting time of the taking lens 102. Specifically, the CPU 106 performs a return process when it is detected that the photographing lens 102 is attached within the time-out period T2 after the unlocking unit 200 is released.
This is because the user may accidentally wear a photographing lens or the like that does not have a communication function while the wearing of the photographing lens 102 is not detected. In this case, the CPU 106 cannot detect the mounting of the taking lens via the communication unit 112. On the other hand, the user makes settings for the photographing lens having no communication function in the camera body 101 via the operation unit 110. In this case, when the user wears the photographing lens 102 having the communication function within the timeout time T2, the CPU 106 performs a restoration process in order to cancel the setting contents set for the photographing lens having no communication function.

2つ目は、上述した処理全体に関わるタイムアウト時間T3である。具体的には、CPU106はロック解除部200が解放された後、タイムアウト時間T3内に、撮影レンズ102の装着を検出できなかった場合には、その後は平常時と同じように操作部110の押下を受け付ける処理に戻る。したがって、CPU106は操作「H」を操作「A」と同様の短押しとして受け付け、操作「I」を操作「B」と同様に長押しとして受け付ける。このように、CPU106はタイムアウト時間T3内に上述した所定条件を満たす場合に復帰処理を実行する。
ここでは、タイムアウト時間T3はタイムアウト時間T2よりも長い時間に設定される。
The second is a timeout time T3 related to the entire process described above. Specifically, when the CPU 106 cannot detect the mounting of the photographing lens 102 within the timeout time T3 after the unlocking unit 200 is released, the CPU 106 then presses the operation unit 110 in the same manner as in normal times. Return to the process of accepting. Therefore, the CPU 106 accepts the operation “H” as a short press similar to the operation “A”, and accepts the operation “I” as a long press like the operation “B”. As described above, the CPU 106 executes the return process when the predetermined condition described above is satisfied within the timeout time T3.
Here, the timeout time T3 is set to a time longer than the timeout time T2.

次に、カメラ本体の処理について図4〜図9のフローチャートを参照して説明する。
図4は、図3のタイミングチャートの処理を示すメインのフローチャートである。図5〜図9は、図4の詳細な処理を示すフローチャートである。なお、図8と図9は1〜3の部分で接続される一連のフローチャートである。図4〜図9のフローチャートの処理は、CPU106がROM107に格納されたプログラムを、メモリ108に展開して実行することで実現される。
Next, processing of the camera body will be described with reference to the flowcharts of FIGS.
FIG. 4 is a main flowchart showing the processing of the timing chart of FIG. 5 to 9 are flowcharts showing the detailed processing of FIG. FIG. 8 and FIG. 9 are a series of flowcharts connected at portions 1 to 3. The processing in the flowcharts of FIGS. 4 to 9 is realized by the CPU 106 developing and executing a program stored in the ROM 107 in the memory 108.

以下、図3に示す操作「A」〜操作「G」ごとに各フローチャートを参照して解説する。なお、以下のフローチャートの説明では、操作部110を特に指定しない限りスイッチとし、操作部110に対する操作を押下といい、操作部110に対する操作を解除することを解放というものとする。
操作「A」〜操作「G」はそれぞれ以下の(1)〜(3)の3項目で構成されており、CPU106は、それぞれの項目について、図4に示すメインのフローチャートをそれぞれ1周ずつ実行する。
(1)スイッチを押下したとき
(2)スイッチを押下している最中に何らかのイベントが発生したとき
(3)スイッチを解放したとき
ここで、(2)の項目については、イベントが発生しない場合や、逆にイベントが複数回を発生する場合もある。また、図4のフローチャートでは省略しているが、各種フラグやタイマについては適宜初期化を終了しているものとする。
Hereinafter, each of the operations “A” to “G” illustrated in FIG. 3 will be described with reference to each flowchart. In the following description of the flowchart, the operation unit 110 is a switch unless otherwise specified, an operation on the operation unit 110 is referred to as pressing, and a release of the operation on the operation unit 110 is referred to as release.
The operations “A” to “G” are each composed of the following three items (1) to (3), and the CPU 106 executes the main flowchart shown in FIG. To do.
(1) When the switch is pressed (2) When an event occurs while the switch is pressed (3) When the switch is released Here, the item (2) does not generate an event Or, conversely, an event may occur multiple times. Although omitted in the flowchart of FIG. 4, it is assumed that initialization of various flags and timers has been appropriately completed.

まず、操作「A」および操作「B」における「(1)スイッチを押下したとき」の処理について説明する。
S401では、CPU106はロック解除部200が解放されてからの経過時間を測定するタイマTlockと、ロック解除部200が解放されてからのタイムアウト時間T3とを比較する。ここで、タイマTlockの計測が開始されていないためにタイマTlockは初期化値の“0”であり、条件を満たさないためにS403に進む。なお、この条件を満たす処理については後述する。
First, the processing of “(1) When the switch is pressed” in the operations “A” and “B” will be described.
In S401, the CPU 106 compares a timer Tlock that measures an elapsed time after the unlocking unit 200 is released with a timeout time T3 after the unlocking unit 200 is released. Here, since the measurement of the timer Tlock is not started, the timer Tlock is the initialization value “0”, and the process proceeds to S403 because the condition is not satisfied. A process that satisfies this condition will be described later.

S403では、CPU106はロック解除部検出処理を行う。具体的には、図5のフローチャートを参照して説明する。
S501では、CPU106は解除検出部111を介してロック解除部200が押下されているかを判定する。ここでは、押下されていないのでS503に進み、CPU106はロック解除部検出フラグがセットされているかを調べる。ここでは、セットされていないのでS505に進み、CPU106はロック解除部検出フラグをクリアする。なお、ロック解除部検出フラグが既にクリアされている場合にはCPU106はS505を省略してもよく、S505で再度クリアしてもよい。その後、図4のフローチャートに戻る。
In S403, the CPU 106 performs a lock release unit detection process. Specifically, this will be described with reference to the flowchart of FIG.
In step S <b> 501, the CPU 106 determines whether the lock release unit 200 is pressed via the release detection unit 111. Here, since it has not been pressed, the process proceeds to S503, and the CPU 106 checks whether or not the lock release unit detection flag is set. Here, since it is not set, the process proceeds to S505, and the CPU 106 clears the lock release unit detection flag. If the unlocking unit detection flag has already been cleared, the CPU 106 may omit S505 or clear it again in S505. Thereafter, the process returns to the flowchart of FIG.

次に、S404では、CPU106はレンズ着脱検出処理を行う。具体的には、図6のフローチャートを参照して説明する。
S601では、CPU106は通信部112を介して撮影レンズ102が装着されているかを判定する。装着されている場合にはS602に進み、CPU106は既にレンズ装着フラグがセットされているかを調べる。この処理は、前回のルーチン処理と同じ結果であるかを確認するためのものである。ここでは、レンズ装着フラグがセットされているので、S603、S604を省略してS605に進む。S605では、CPU106はレンズ装着フラグをセットする。なお、ロック解除部検出フラグをクリアする処理と同様、CPU106は全てのフラグは既存状態と重複するようにセットしたりクリアしたりしてもよい。次に、S606およびS607では、CPU106はタイマTlockとタイマTswを“0”にリセットする。その後、図4のフローチャートに戻る。
Next, in S404, the CPU 106 performs lens attachment / detachment detection processing. Specifically, this will be described with reference to the flowchart of FIG.
In step S <b> 601, the CPU 106 determines whether the photographing lens 102 is attached via the communication unit 112. If it is mounted, the process proceeds to S602, and the CPU 106 checks whether the lens mounting flag has already been set. This process is for confirming whether the result is the same as the previous routine process. Here, since the lens mounting flag is set, S603 and S604 are omitted, and the process proceeds to S605. In S605, the CPU 106 sets a lens mounting flag. Similar to the process of clearing the unlocking unit detection flag, the CPU 106 may set or clear all the flags so as to overlap the existing state. Next, in S606 and S607, the CPU 106 resets the timer Tlock and the timer Tsw to “0”. Thereafter, the process returns to the flowchart of FIG.

次に、S405では、CPU106はスイッチが押下されているかを判定する。ここでは、押下されているのでS406に進み、CPU106はスイッチ押下時処理を行う。具体的には、図7のフローチャートを参照して説明する。
まず、S701では、CPU106は今回スイッチが押下されていたことを示すために変数SWnowに“1”を代入する。次に、S702では、CPU106は先程の変数SWnowと前回のスイッチ押下検出結果である変数SWlastとを照合する。ここでは、変数SWlastに“0”が代入されているために、変数SWnowと変数SWlastとは一致しない。この結果によって、CPU106は今回、新たにスイッチが押下されたと判断できる。そこで、S703では、CPU106はスイッチ押下継続時間を測定するタイマTonの計測を開始する。次に、S704では、CPU106は現時点でのタイマTswの値を確認し、タイマTswが“0”であるか否かを判定する。ここで、タイマTswはS607で“0”にリセットされているので、S705に進み、CPU106はカメラ本体101の各種設定内容とディスプレイ109の表示内容をメモリ108に記憶、すなわちカメラ本体101の状態をバックアップする。バックアップされた内容は、復帰処理に用いられる。S708では、CPU106はロック解除部検出フラグがセットされているかを調べる。ここでは、ロック解除部検出フラグはS505でクリアされているので、S709を省略してS710に進む。S710では、CPU106は変数SWlastに“1”を代入する。その後、図4のフローチャートの先頭に戻る。
Next, in S405, the CPU 106 determines whether the switch is pressed. Here, since it has been pressed, the process proceeds to S406, and the CPU 106 performs a process when the switch is pressed. Specifically, this will be described with reference to the flowchart of FIG.
First, in S701, the CPU 106 assigns “1” to the variable SWnow to indicate that the switch has been pressed this time. In step S <b> 702, the CPU 106 collates the previous variable SWnow with the variable SWlast that is the previous switch press detection result. Here, since “0” is assigned to the variable SWlast, the variable SWnow does not match the variable SWlast. Based on this result, the CPU 106 can determine that the switch has been newly pressed this time. Therefore, in S703, the CPU 106 starts measuring a timer Ton that measures the switch pressing duration. In step S <b> 704, the CPU 106 checks the current value of the timer Tsw and determines whether the timer Tsw is “0”. Here, since the timer Tsw has been reset to “0” in S607, the process proceeds to S705, where the CPU 106 stores various setting contents of the camera body 101 and display contents of the display 109 in the memory 108, that is, the state of the camera body 101 is changed. Back up. The backed up content is used for return processing. In S708, the CPU 106 checks whether the unlocking unit detection flag is set. Here, since the unlocking part detection flag is cleared in S505, S709 is omitted and the process proceeds to S710. In S710, the CPU 106 substitutes “1” for the variable SWlast. Thereafter, the process returns to the top of the flowchart of FIG.

次に、操作「A」および操作「B」における「(2)スイッチを押下している最中に何らかのイベントが発生したとき」の処理について説明する。S401は上述した処理と同一である。操作「A」および操作「B」では、ロック解除部200の状態と撮影レンズ102が装着されている状態とは変化なく継続している。したがって、S403のロック解除部検出処理とS404のレンズ着脱検出処理は、上述した「(1)スイッチを押下したとき」と全く同一である。
次に、S405では、CPU106はスイッチが押下されていると判定することから、S406のスイッチ押下時処理、すなわち図7のS701に進む。
Next, the processing of “(2) When an event occurs while the switch is being pressed” in the operations “A” and “B” will be described. S401 is the same as the process described above. In the operation “A” and the operation “B”, the state of the lock release unit 200 and the state in which the photographing lens 102 is attached continue without change. Therefore, the unlocking part detection process in S403 and the lens attachment / detachment detection process in S404 are exactly the same as “(1) When the switch is pressed”.
Next, in S405, since the CPU 106 determines that the switch is pressed, the process proceeds to S406 when the switch is pressed, that is, S701 in FIG.

ここでは、前回の処理と異なる処理を中心に説明する。
S702では、CPU106は変数SWnowと変数SWlastとを照合し、共に“1”であるためにS706に進む。S706では、CPU106はタイマTonが所定時間以上を経過したか否かを判定する。この処理の判定において分岐する場合、操作「A」と操作「B」との違いになる。すなわち、スイッチの押下が継続されている間は図4のフローチャートを同じルートで何周か繰り返し、S706の条件を満たす前にスイッチが解放される場合が操作「A」の短押しであり、S706の条件を満たす場合が操作「B」の長押しである。したがって、S706の条件を満たすと、S707に進み、CPU106は長押しモードに移行する。次に、S708、S710は上述した処理と同一である。
Here, the description will focus on processing that is different from the previous processing.
In S702, the CPU 106 compares the variable SWnow with the variable SWlast, and since both are “1”, the process proceeds to S706. In S706, the CPU 106 determines whether or not the timer Ton has exceeded a predetermined time. When branching in the determination of this process, the operation “A” is different from the operation “B”. That is, while the switch is continuously pressed, the flowchart of FIG. 4 is repeated several times along the same route, and the case where the switch is released before the condition of S706 is satisfied is the short press of the operation “A”. The case where the above condition is satisfied is the long press of the operation “B”. Therefore, if the condition of S706 is satisfied, the process proceeds to S707, and the CPU 106 shifts to the long press mode. Next, S708 and S710 are the same as those described above.

次に、操作「A」および操作「B」における「(3)スイッチを解放したとき」の処理について説明する。S401、S403、S404は、上述した「(1)スイッチを押下したとき」および「(2)スイッチを押下している最中に何らかのイベントが発生したとき」の処理と同一である。次に、S405では、CPU106はスイッチが押下されていないと判定して、S407に進む。   Next, the processing of “(3) When the switch is released” in the operations “A” and “B” will be described. S401, S403, and S404 are the same as the above-described processes of “(1) When a switch is pressed” and “(2) When an event occurs while the switch is pressed”. Next, in S405, the CPU 106 determines that the switch has not been pressed, and proceeds to S407.

S407では、CPU106はスイッチ解放時処理を行う。具体的には、図8のフローチャートを参照して説明する。
S801では、CPU106は今回スイッチが押下されていないことを示すために、変数SWnowに“0”を代入する。次に、S802では、CPU106は変数SWnowと変数SWlastを照合する。ここで、変数SWlastには“1”が代入されているために一致しない。この結果によって、CPU106は今回、新たにスイッチが解放されたと判断できる。そこで、S803では、CPU106はタイマTonの計測を停止して“0”にリセットする。次に、S804では、CPU106はロック解除部検出フラグがセットされているか否かを判定し、ここではロック解除部検出フラグがセットされていないためにS805に進む。S805では、CPU106はロック解除部履歴フラグがセットされているか否かを判定し、ここではロック解除部履歴フラグがセットされていないためにS806に進む。S806では、CPU106はレンズ装着フラグがセットされているか否かを判定し、ここではレンズ装着フラグがセットされているためにS901に進む。なお、図8に示すように、3つのフラグの判定が今回と異なる場合、CPU106は次のフラグを判定せずに異なる処理を実行する。異なる処理については、別の操作の説明において後述する。
In S407, the CPU 106 performs a switch release process. Specifically, this will be described with reference to the flowchart of FIG.
In S <b> 801, the CPU 106 substitutes “0” for the variable SWnow to indicate that the switch has not been pressed this time. Next, in S802, the CPU 106 collates the variable SWnow with the variable SWlast. Here, since “1” is assigned to the variable SWlast, they do not match. Based on this result, the CPU 106 can determine that the switch has been newly released this time. In step S803, the CPU 106 stops measuring the timer Ton and resets it to “0”. Next, in S804, the CPU 106 determines whether or not the unlocking unit detection flag is set. Here, since the unlocking unit detection flag is not set, the process proceeds to S805. In S805, the CPU 106 determines whether or not the unlocking unit history flag is set. Here, since the unlocking unit history flag is not set, the process proceeds to S806. In S806, the CPU 106 determines whether or not the lens mounting flag is set. Here, since the lens mounting flag is set, the process proceeds to S901. As shown in FIG. 8, when the determination of the three flags is different from this time, the CPU 106 executes different processing without determining the next flag. The different processing will be described later in the description of another operation.

S901では、CPU106は押下されたスイッチの機能に応じて、次に行う処理を分岐する。MENUスイッチの場合にはS902に進み、CPU106はディスプレイ109にカメラ本体101の設定を行うメニュ画面を表示する。選択キーの場合にはS903に進み、CPU106は選択キーに割り当てられた機能に応じて指示を確定する。ここでは、選択キーは例えばタッチパネル等に独立して機能が割り当てられたスイッチである。十字キーの場合にはS904に進み、CPU106はディスプレイ109に表示されるカーソルや選択枠を十字キーの方向と同方向に動かすように表示する。決定キーの場合にはS905に進み、CPU106はディスプレイ109に表示されるカーソルや選択枠が指し示す場所に割り当てられた情報を確定する。   In step S <b> 901, the CPU 106 branches the process to be performed next according to the function of the pressed switch. In the case of the MENU switch, the process advances to step S902, and the CPU 106 displays a menu screen for setting the camera body 101 on the display 109. In the case of the selection key, the process proceeds to S903, and the CPU 106 determines the instruction according to the function assigned to the selection key. Here, the selection key is, for example, a switch to which a function is independently assigned to a touch panel or the like. In the case of the cross key, the process advances to step S904, and the CPU 106 displays the cursor and the selection frame displayed on the display 109 so as to move in the same direction as the direction of the cross key. In the case of the determination key, the process proceeds to S905, and the CPU 106 determines the information assigned to the location indicated by the cursor or selection frame displayed on the display 109.

選択キー、十字キー、決定キーの何れかのスイッチが押下された場合、S906では、CPU106はスイッチが押下されたことで、カメラ本体101に関わる何らかの設定が完了したか否かを判定する。設定が完了した場合にはS907およびS908に進み、CPU106はタイマTlockおよびタイマTswをリセットする。これらの処理の意味するところは、操作「G」において後述する。なお、例えば十字キーの場合には、ディスプレイ109に表示されるカーソルが移動するだけであり、カメラ本体101に関わる設定が完了しない。したがって、カメラ本体101の設定が完了しない場合には、CPU106はS907およびS908を省略する。また、機能が割り当てられていない操作部110の場合には、CPU106が実行すべき特定の処理がないため、S909に進む。機能が割り当てられていない操作部110が押下された時点で、CPU106はスイッチ操作受付処理を行わない手法も考えられるが、本実施形態では取り上げない。なお、機能が割り当てられていない操作部110とは、既に上述しているので、その説明を省略する。なお、以上に挙げたスイッチは一例であって、それ以外についてもスイッチの機能に応じた最適な分岐が適宜用意されることが好ましい。
次に、S909では、CPU106はSWlastに“0”を代入する。その後、図4のフローチャートの先頭に戻る。
When any one of the selection key, the cross key, and the determination key is pressed, the CPU 106 determines whether or not any setting related to the camera body 101 is completed by pressing the switch in S906. When the setting is completed, the process proceeds to S907 and S908, and the CPU 106 resets the timer Tlock and the timer Tsw. The meaning of these processes will be described later in operation “G”. For example, in the case of the cross key, only the cursor displayed on the display 109 moves, and the settings relating to the camera body 101 are not completed. Therefore, when the setting of the camera body 101 is not completed, the CPU 106 omits S907 and S908. In the case of the operation unit 110 to which no function is assigned, since there is no specific process that the CPU 106 should execute, the process proceeds to S909. Although a method in which the CPU 106 does not perform the switch operation acceptance process when the operation unit 110 to which no function is assigned is pressed is considered, it is not taken up in this embodiment. Since the operation unit 110 to which no function is assigned has already been described above, description thereof is omitted. It should be noted that the switches listed above are examples, and it is preferable that optimal branches corresponding to the functions of the switches are appropriately prepared for other switches.
Next, in S909, the CPU 106 substitutes “0” for SWlast. Thereafter, the process returns to the top of the flowchart of FIG.

以上で、操作「A」および操作「B」に関するカメラ本体101の処理は完結する。なお、これ以降で説明する操作でも、上述した処理の多くで共通するために、異なる処理を中心に説明するものとする。また、以降では長押しに関する言及をしないが、何れの操作においても、タイマTonが所定時間以上を経過する押下である場合には適宜、操作「B」のルーチンが挟まれる。   Thus, the processing of the camera body 101 regarding the operation “A” and the operation “B” is completed. In addition, since the operations described below are common to many of the processes described above, different processes will be mainly described. In the following description, the long press is not referred to, but in any operation, when the timer Ton is a press that exceeds a predetermined time, the routine of the operation “B” is appropriately inserted.

次に、操作「C」における「(1)スイッチを押下したとき」の処理は、操作「A」の「(1)スイッチを押下したとき」の処理と同一である。したがって、S406のスイッチ押下時処理において、S705では、CPU106はカメラ本体101の各種設定内容とディスプレイ109の表示内容をメモリ108にバックアップする。ここでバックアップされた内容は、後述する操作「C」の「(3)スイッチを解放したとき」の復帰処理に用いられる。   Next, the process “(1) when the switch is pressed” in the operation “C” is the same as the process “when the switch (1) is pressed” in the operation “A”. Therefore, in the switch depression process in S406, in S705, the CPU 106 backs up the various setting contents of the camera body 101 and the display contents of the display 109 in the memory 108. The contents backed up here are used for a return process of “(3) When the switch is released” of the operation “C” described later.

次に、操作「C」における「(2)スイッチを押下している最中に何らかのイベントが発生したとき」の処理について説明する。ここでは、ロック解除部200が押下されている。したがって、S403のロック解除部検出処理において、S501では、CPU106はロック解除部200が押下されていると判定して、S502に進む。S502では、CPU106はロック解除部検出フラグをセットする。その後、S404、S405、S406に進む。S406のスイッチ押下時処理において、S702では、CPU106は変数SWnowと変数SWlastとは同じ“1”であると判定して、S706に進む。S706では、CPU106は押下継続時間の長短に応じた処理を行う。次に、S708では、CPU106はロック解除部検出フラグがセットされていると判定して、S709に進む。S709では、CPU106はロック解除部履歴フラグをセットする。次に、S710では、CPU106は変数SWlastに“1”を代入する。その後、図4のフローチャートの先頭に戻る。   Next, the processing of “(2) When an event occurs while the switch is being pressed” in the operation “C” will be described. Here, the lock release unit 200 is pressed. Therefore, in the unlocking unit detection process of S403, in S501, the CPU 106 determines that the unlocking unit 200 is pressed, and proceeds to S502. In S502, the CPU 106 sets a lock release unit detection flag. Then, it progresses to S404, S405, S406. In the switch depression process in S406, in S702, the CPU 106 determines that the variable SWnow and the variable SWlast are the same “1”, and proceeds to S706. In S706, the CPU 106 performs processing according to the length of the pressing duration. Next, in S708, the CPU 106 determines that the lock release unit detection flag is set, and proceeds to S709. In S709, the CPU 106 sets a lock release unit history flag. Next, in S710, the CPU 106 substitutes “1” for the variable SWlast. Thereafter, the process returns to the top of the flowchart of FIG.

次に、操作「C」における「(3)スイッチを解放したとき」の処理について説明する。ここでは、S401、S403、S404は操作「C」の「(2)スイッチを押下している最中に何らかのイベントが発生したとき」の処理と同一である。次に、S405では、CPU106はスイッチが押下されていないと判定することから、S407に進む。S407のスイッチ解放時処理において、新たにスイッチが解放されたのでS801、S802、S803、S804に進む。S804では、CPU106はロック解除部検出フラグがセットされていると判定して、S814に進む。S814では、CPU106はロック解除部履歴フラグをクリアする。次に、S816では、CPU106はカメラ本体101の各種設定内容とディスプレイ109の表示内容とを、操作「C」の「(1)スイッチが押下したとき」のS705においてメモリ108にバックアップした状態に戻す復帰処理をする。次に、S909では、CPU106は変数SWlastに“0”を代入する。その後、図4のフローチャートの先頭に戻る。
すなわち、操作「C」のように、スイッチが押下されている状態でロック解除部200が押下された場合には、撮影レンズ102の着脱の状態に関わらず、操作「C」に応じた処理が実行されない。更に、カメラ本体101の状態は、操作「C」の直前の状態、具体的には操作「C」の「(1)スイッチを押下したとき」の状態に復帰される。
Next, the processing “(3) When the switch is released” in the operation “C” will be described. Here, S401, S403, and S404 are the same as the processing of the operation “C” “when an event occurs while the switch (2) is being pressed”. Next, in S405, since the CPU 106 determines that the switch is not pressed, the process proceeds to S407. In the switch release processing in S407, since the switch is newly released, the process proceeds to S801, S802, S803, and S804. In S804, the CPU 106 determines that the lock release unit detection flag is set, and proceeds to S814. In S814, the CPU 106 clears the lock release unit history flag. Next, in step S816, the CPU 106 restores the various setting contents of the camera body 101 and the display contents of the display 109 to the state backed up in the memory 108 in step S705 of the operation “C” “when the (1) switch is pressed”. Perform recovery processing. Next, in S909, the CPU 106 substitutes “0” for the variable SWlast. Thereafter, the process returns to the top of the flowchart of FIG.
That is, when the unlocking unit 200 is pressed while the switch is pressed, as in the operation “C”, the process corresponding to the operation “C” is performed regardless of whether the photographic lens 102 is attached or detached. Not executed. Furthermore, the state of the camera body 101 is returned to the state immediately before the operation “C”, specifically, the state “when the (1) switch is pressed” of the operation “C”.

次に、操作「D」における「(1)スイッチを押下したとき」の処理について説明する。ここでは、S401、S403、S404、S405、S406に進むまでは、操作「C」における「(2)スイッチを押下している最中に何らかのイベントが発生したとき」の処理と同一である。S406のスイッチ押下時処理において、S702では、CPU106は今回、変数SWnowと変数SWlastとが異なると判定して、S703、S704、S705に進む。S705では、CPU106はカメラ本体101の各種設定内容とディスプレイ109の表示内容をメモリ108にバックアップする。ここでバックアップされた内容は、後述する操作「D」の「(3)スイッチを解放したとき」の復帰処理に用いられる。次に、S708では、CPU106はロック解除部検出フラグがセットされていると判定して、S709に進む。S709では、CPU106はロック解除部履歴フラグをセットする。S710では、CPU106は変数SWlastに“1”を代入する。その後、図4のフローチャートの先頭に戻る。   Next, the processing of “(1) When the switch is pressed” in the operation “D” will be described. Here, the processing up to S401, S403, S404, S405, and S406 is the same as the processing of “when an event occurs while the switch is being pressed” in the operation “C”. In the switch pressing process in S406, in S702, the CPU 106 determines that the variable SWnow is different from the variable SWlast this time, and proceeds to S703, S704, and S705. In step S <b> 705, the CPU 106 backs up various setting contents of the camera body 101 and display contents of the display 109 in the memory 108. The contents backed up here are used for a return process of “(3) When the switch is released” in operation “D” described later. Next, in S708, the CPU 106 determines that the lock release unit detection flag is set, and proceeds to S709. In S709, the CPU 106 sets a lock release unit history flag. In S710, the CPU 106 substitutes “1” for the variable SWlast. Thereafter, the process returns to the top of the flowchart of FIG.

次に、操作「D」における「(2)スイッチを押下している最中に何らかのイベントが発生したとき」の処理について説明する。ここでは、イベントが発生する場合がないので、処理は行われない。
次に、操作「D」における「(3)スイッチを解放したとき」の処理について説明する。この処理は、上述した操作「C」の「(3)スイッチを解放したとき」の処理と同一である。したがって、S407のスイッチ解放時処理において、S816では、CPU106はカメラ本体101の各種設定内容とディスプレイ109の表示内容とを、操作「D」の「(1)スイッチが押下したとき」のS705においてメモリ108にバックアップした状態に戻す復帰処理をする。
すなわち、操作「D」のように、ロック解除部200が押下されている状態でスイッチが押下された場合には、撮影レンズ102の着脱の状態に関わらず、操作「D」に応じた処理が実行されない。更に、カメラ本体101の状態は、操作「D」の直前の状態、具体的には操作「D」の「(1)スイッチを押下したとき」の状態に復帰される。
Next, the process of “(2) When an event occurs while the switch is being pressed” in the operation “D” will be described. Here, no event occurs, so no processing is performed.
Next, the processing “(3) When the switch is released” in the operation “D” will be described. This process is the same as the process “(3) When the switch is released” of the operation “C” described above. Therefore, in the switch release processing of S407, in S816, the CPU 106 stores the various setting contents of the camera body 101 and the display contents of the display 109 in S705 of the operation “D” “(1) When the switch is pressed”. A return process for returning to the backed up state is performed at 108.
That is, when the switch is pressed while the lock release unit 200 is pressed as in the operation “D”, the process corresponding to the operation “D” is performed regardless of whether the photographic lens 102 is attached or detached. Not executed. Further, the state of the camera body 101 is returned to the state immediately before the operation “D”, specifically, the state “when the (1) switch is pressed” of the operation “D”.

次に、操作「E」における「(1)スイッチを押下したとき」の処理について説明する。この処理は、上述した操作「D」の「(1)スイッチを押下したとき」の処理と同一である。したがって、S406のスイッチ押下時処理において、S705では、CPU106はカメラ本体101の各種設定内容とディスプレイ109の表示内容をメモリ108にバックアップする。ここでバックアップされた内容は、後述する操作「E」の「(3)スイッチを解放したとき」の復帰処理に用いられる。
次に、操作「E」における「(2)スイッチを押下している最中に何らかのイベントが発生したとき」の処理について説明する。ここでは、撮影レンズ102が取り外される場合と、ロック解除部200が解放される場合の2つのイベントがあるために、イベントごとに図4のフローチャートに沿って説明する。
まず、撮影レンズ102が取り外された場合について説明する。この場合には、S404のレンズ着脱検出処理に変化が生じる。すなわち、S404のレンズ着脱検出処理において、S601では、CPU106は撮影レンズ102が装着されていないと判定して、S608に進む。S608では、CPU106はレンズ装着フラグをクリアする。その後、S405、S406に進む。S406のスイッチ押下時処理は、操作「C」の「(2)スイッチを押下している最中に何らかのイベントが発生したとき」の処理と同一である。したがって、S709においてCPU106はロック解除部履歴フラグをセットする。
Next, the processing of “(1) When the switch is pressed” in the operation “E” will be described. This process is the same as the above-described process “D” when “(1) switch is pressed”. Therefore, in the switch depression process in S406, in S705, the CPU 106 backs up the various setting contents of the camera body 101 and the display contents of the display 109 in the memory 108. The contents backed up here are used for the return process of “(3) When the switch is released” of the operation “E” described later.
Next, the process of “(2) When an event occurs while the switch is being pressed” in the operation “E” will be described. Here, since there are two events when the taking lens 102 is removed and when the unlocking unit 200 is released, each event will be described with reference to the flowchart of FIG.
First, the case where the taking lens 102 is removed will be described. In this case, a change occurs in the lens attachment / detachment detection process in S404. That is, in the lens attachment / detachment detection process in S404, in S601, the CPU 106 determines that the photographing lens 102 is not attached, and proceeds to S608. In S608, the CPU 106 clears the lens mounting flag. Then, it progresses to S405 and S406. The process at the time of pressing the switch in S406 is the same as the process of “(2) When an event occurs while the switch is being pressed” of the operation “C”. Therefore, in S709, the CPU 106 sets the unlocking unit history flag.

次に、ロック解除部200が解放される場合について説明する。この場合には、S403のロック解除部検出処理に変化が生じる。S501では、CPU106はロック解除部200が押下されていないと判定して、S503に進む。S503では、CPU106はロック解除部検出フラグがセットされていると判定して、S504に進む。S504では、CPU106はタイマTlockの計測を開始する。S505では、CPU106はロック解除部検出フラグをクリアする。図4のフローチャートに戻り、S404のレンズ着脱検出処理は、撮影レンズ102が取り外された状態であるため、撮影レンズ102が取り外された場合の処理と同一である。S406のスイッチ押下時処理において、CPU106は変数SWnowと変数SWlastとが一致すると判定するので、S706、S708に進む。S708では、CPU106はロック解除部検出フラグがクリアされていると判定して、S709を省略してS710に進む。S710では、CPU106は変数SWlastに“1”を代入する。その後、図4のフローチャートの先頭に戻る。   Next, a case where the lock release unit 200 is released will be described. In this case, a change occurs in the unlocking unit detection process in S403. In S501, the CPU 106 determines that the unlocking unit 200 has not been pressed, and proceeds to S503. In S503, the CPU 106 determines that the lock release unit detection flag is set, and proceeds to S504. In S504, the CPU 106 starts measuring the timer Tlock. In S505, the CPU 106 clears the lock release unit detection flag. Returning to the flowchart of FIG. 4, the lens attachment / detachment detection processing in S <b> 404 is the same as the processing when the photographing lens 102 is removed because the photographing lens 102 is detached. In the process of pressing the switch in S406, the CPU 106 determines that the variable SWnow and the variable SWlast match, and thus proceeds to S706 and S708. In S708, the CPU 106 determines that the lock release unit detection flag has been cleared, skips S709, and proceeds to S710. In S710, the CPU 106 substitutes “1” for the variable SWlast. Thereafter, the process returns to the top of the flowchart of FIG.

次に、操作「E」における「(3)スイッチを解放したとき」の処理について説明する。ここでは、S403およびS404は、操作「E」の「(2)スイッチを押下している最中に何らかのイベントが発生したとき」の撮影レンズ102が取り外される場合およびロック解除部200が解放される場合の処理とそれぞれ同一である。次に、S405を経て、S407に進む。S407のスイッチ解放時処理において、S801、S802、S803、S804に進む。S804では、CPU106はロック解除部検出フラグがセットされていないと判定して、S805に進む。S805では、CPU106はロック解除部履歴フラグがセットされていると判定して、S814に進む。S814では、CPU106はセットされているロック解除部履歴フラグをクリアする。次に、S816では、CPU106はカメラ本体101の各種設定内容とディスプレイ109の表示内容とを、操作「E」の「(1)スイッチが押下したとき」のS705においてメモリ108にバックアップした状態に戻す復帰処理をする。
すなわち、操作「E」のように、スイッチが押下されている状態でロック解除部200の解放、撮影レンズ102の取り外しがあった場合には、操作「E」に応じた処理が実行されない。更に、カメラ本体101の状態は、操作「E」の直前の状態、具体的には操作「E」の「(1)スイッチを押下したとき」の状態に復帰される。
Next, the processing “(3) When the switch is released” in the operation “E” will be described. Here, in steps S403 and S404, when the photographing lens 102 is removed when the operation “E” “when an event occurs while the switch (2) is being pressed” and the unlocking unit 200 is released. The processing in each case is the same. Next, the process proceeds to S407 via S405. In the switch release processing of S407, the process proceeds to S801, S802, S803, and S804. In S804, the CPU 106 determines that the lock release unit detection flag is not set, and proceeds to S805. In S805, the CPU 106 determines that the unlocking unit history flag is set, and proceeds to S814. In S814, the CPU 106 clears the set unlocking unit history flag. Next, in S816, the CPU 106 restores the various setting contents of the camera main body 101 and the display contents of the display 109 to the state backed up in the memory 108 in S705 of “when the (1) switch is pressed” of the operation “E”. Perform recovery processing.
That is, when the switch is pressed and the unlocking unit 200 is released and the taking lens 102 is removed as in the operation “E”, the process corresponding to the operation “E” is not executed. Further, the state of the camera body 101 is returned to the state immediately before the operation “E”, specifically, the state “when the (1) switch is pressed” of the operation “E”.

次に、操作「F」における「(1)スイッチを押下したとき」の処理について説明する。ここでは、S403およびS404は、操作「E」の「(3)スイッチを解放したとき」の処理と同一である。すなわち、S403のロック解除部検出処理において、S501、S503、S505に進む。S505では、CPU106はロック解除部検出フラグをクリアする。また、S404のレンズ着脱検出処理において、S601、S608に進む。S608では、CPU106はレンズ装着フラグをクリアする。なお、ロック解除部履歴フラグは、クリアされている。次に、S406のスイッチ押下時処理において、S701、S702、S703、S704、S705に進む。S705では、CPU106はカメラ本体101の各種設定内容とディスプレイ109の表示内容をメモリ108にバックアップする。ここでバックアップされた内容は、後述する操作「F」あるいは操作「G」の「(3)スイッチを解放したとき」の復帰処理に用いられる。その後、S708、S710に進む。S710では、CPU106は変数SWlastに“1”を代入する。その後、図4のフローチャートの先頭に戻る。この時点において、3つのフラグは全てクリアされている。   Next, the processing of “(1) When the switch is pressed” in the operation “F” will be described. Here, S403 and S404 are the same as the processing of “(3) When the switch is released” of the operation “E”. That is, in the unlocking unit detection process in S403, the process proceeds to S501, S503, and S505. In S505, the CPU 106 clears the lock release unit detection flag. In the lens attachment / detachment detection process in S404, the process proceeds to S601 and S608. In S608, the CPU 106 clears the lens mounting flag. The unlocking unit history flag is cleared. Next, in the switch depression process at S406, the process proceeds to S701, S702, S703, S704, and S705. In step S <b> 705, the CPU 106 backs up various setting contents of the camera body 101 and display contents of the display 109 in the memory 108. The contents backed up here are used for a return process of “(3) When switch is released” of operation “F” or operation “G” described later. Then, it progresses to S708 and S710. In S710, the CPU 106 substitutes “1” for the variable SWlast. Thereafter, the process returns to the top of the flowchart of FIG. At this point, all three flags are cleared.

次に、操作「F」における「(2)スイッチを押下している最中に何らかのイベントが発生したとき」の処理について説明する。ここでは、イベントが発生する場合がないので、処理は行われない。
次に、操作「F」における「(3)スイッチを解放したとき」の処理について説明する。ここでは、S403およびS404は、操作「F」の「(1)スイッチを押下したとき」の処理と同一である。次に、S407のスイッチ解放時処理において、S801、S802、S803、S804に進む。この時点において、3つのフラグは全てクリアされていることから、S804では、CPU106はロック解除部検出フラグがセットされていないと判定して、S805に進む。S805では、CPU106はロック解除部履歴フラグがセットされていないと判定して、S806に進む。S806では、CPU106はレンズ装着フラグがセットされていないと判定して、S807に進む。
Next, the processing of “(2) When an event occurs while the switch is being pressed” in the operation “F” will be described. Here, no event occurs, so no processing is performed.
Next, the processing of “(3) When the switch is released” in the operation “F” will be described. Here, S403 and S404 are the same as the processing of “when (1) switch is pressed” of operation “F”. Next, in the switch release processing of S407, the process proceeds to S801, S802, S803, and S804. At this point, since all the three flags are cleared, in S804, the CPU 106 determines that the lock release unit detection flag is not set, and proceeds to S805. In S805, the CPU 106 determines that the unlocking unit history flag is not set, and proceeds to S806. In S806, the CPU 106 determines that the lens mounting flag is not set, and proceeds to S807.

S807では、CPU106はタイマTlockが0よりも大きく、かつタイムアウト時間T3未満であるか否かを判定する。ここで、タイマTlockは、操作「E」のS504においてロック解除部200が解放された時点からの時間を計測しているので“0”ではない。また、タイムアウト時間T3にも到達していない。したがって、CPU106は、S807の条件を満たすと判定して、S810に進む。
S810では、CPU106は操作「F」に対応するスイッチに、機能が割り当てられているか否かを判定する。機能が割り当てられたスイッチの場合にはS811に進み、CPU106はタイマTswが0であるか否かを判定する。ここでは、タイマTswが0であるため、S813に進む。S813では、CPU106は今回、操作「F」に対応するスイッチが解放されてからの経過時間を示すタイマTswの計測を開始する。その後、S901以降の処理に進み、CPU106はスイッチの機能に応じた処理を行い、図4のフローチャートに戻る。
すなわち、撮影レンズ102が取り外された状態で、機能が割り当てられたスイッチが押下された場合には、スイッチの機能に応じた処理が行われる。
In S807, the CPU 106 determines whether or not the timer Tlock is greater than 0 and less than the timeout time T3. Here, the timer Tlock is not “0” because it measures the time from when the unlocking unit 200 is released in S504 of the operation “E”. Also, the timeout time T3 has not been reached. Therefore, the CPU 106 determines that the condition of S807 is satisfied, and proceeds to S810.
In S810, the CPU 106 determines whether or not a function is assigned to the switch corresponding to the operation “F”. In the case of a switch to which a function is assigned, the process proceeds to S811, and the CPU 106 determines whether or not the timer Tsw is 0. Here, since the timer Tsw is 0, the process proceeds to S813. In step S813, the CPU 106 starts measuring a timer Tsw indicating the elapsed time since the switch corresponding to the operation “F” is released this time. Thereafter, the processing proceeds to S901 and the subsequent steps, and the CPU 106 performs processing according to the function of the switch and returns to the flowchart of FIG.
That is, when a switch to which a function is assigned is pressed with the taking lens 102 removed, processing corresponding to the function of the switch is performed.

一方、S810において、機能が割り当てられていないスイッチの場合には、S815に進み、CPU106はタイマTswを“0”にリセットする。次に、S816では、CPU106はカメラ本体101の各種設定内容とディスプレイ109の表示内容とを、操作「F」の「(1)スイッチが押下したとき」のS705においてメモリ108にバックアップした状態に戻す復帰処理をする。
すなわち、撮影レンズ102が取り外された状態で、機能が割り当てられていないスイッチが押下された場合には、カメラ本体101の状態が操作「F」の「(1)スイッチを押下したとき」の状態に復帰される。したがって、ここでは、カメラ本体101の状態に変化は生じない。
On the other hand, in S810, in the case of a switch to which no function is assigned, the process proceeds to S815, and the CPU 106 resets the timer Tsw to “0”. Next, in S816, the CPU 106 restores the various setting contents of the camera body 101 and the display contents of the display 109 to the state backed up in the memory 108 in S705 of the operation “F” “when the (1) switch is pressed”. Perform recovery processing.
That is, when a switch to which a function is not assigned is pressed with the photographic lens 102 removed, the camera body 101 is in the state “when the (1) switch is pressed” in the operation “F”. Returned to Therefore, here, the state of the camera body 101 does not change.

次に、操作「G」の処理について説明する。操作「G」は、操作「F」の「(3)スイッチを解放したとき」において、S906で設定が完了しなかった場合にのみ発生するルーチンである。
まず、操作「G」における「(1)スイッチを押下したとき」の処理について説明する。ここでは、S403およびS404は、操作「E」の「(3)スイッチを解放したとき」の処理と同一である。すなわち、S403のロック解除部検出処理において、S501、S503、S505に進む。S505では、CPU106はロック解除部検出フラグをクリアする。また、S404のレンズ着脱検出処理において、S601、S608に進む。S608では、CPU106はレンズ装着フラグをクリアする。なお、ロック解除部履歴フラグは、クリアされている。次に、S406のスイッチ押下時処理において、S701、S702、S703、S704に進む。S704では、操作「G」のS813でタイマTswの計測を開始しているために、CPU106はタイマTswが“0”ではないと判定し、S705を省略して、S708、S710に進み、図4のフローチャートに戻る。すなわち、S705が省略されるために、バックアップされた情報は、操作「F」の「(1)スイッチを押下したとき」のS406のスイッチ押下時処理における、S705で記憶した内容のままである。
Next, the process of the operation “G” will be described. The operation “G” is a routine that occurs only when the setting is not completed in S906 in “(3) When the switch is released” of the operation “F”.
First, the processing of “(1) When the switch is pressed” in the operation “G” will be described. Here, S403 and S404 are the same as the processing of “(3) When the switch is released” of the operation “E”. That is, in the unlocking unit detection process in S403, the process proceeds to S501, S503, and S505. In S505, the CPU 106 clears the lock release unit detection flag. In the lens attachment / detachment detection process in S404, the process proceeds to S601 and S608. In S608, the CPU 106 clears the lens mounting flag. The unlocking unit history flag is cleared. Next, in the switch depression process at S406, the process proceeds to S701, S702, S703, and S704. In S704, since the measurement of the timer Tsw is started in S813 of the operation “G”, the CPU 106 determines that the timer Tsw is not “0”, omits S705, and proceeds to S708 and S710. Return to the flowchart. That is, since S705 is omitted, the backed up information remains the contents stored in S705 in the switch pressing process of S406 of “(1) When the switch is pressed” of the operation “F”.

次に、操作「G」における「(2)スイッチを押下している最中に何らかのイベントが発生したとき」の処理について説明する。ここでは、イベントが発生する場合がないので、処理は行われない。
次に、操作「G」における「(3)スイッチを解放したとき」の処理について説明する。ここでは、操作「F」の「(3)スイッチを解放したとき」の処理と同一である。すなわち、S407のスイッチ解放時処理において、S801、S802、S803、S804、S805、S806、S807、S810に進む。S810において、CPU106は操作「G」に対応するスイッチに、機能が割り当てられていないと判定した場合には、ステップS815、S816に進む。S816では、CPU106はカメラ本体101の各種設定内容とディスプレイ109の表示内容とを、バックアップした状態に戻す復帰処理をする。このとき、操作「G」の「(1)スイッチが押下したとき」ではバックアップされていないため、操作「F」の「(1)スイッチを押下したとき」のS406のスイッチ押下時処理における、S705で記憶した状態に復帰される。
Next, the processing of “(2) When an event occurs while the switch is being pressed” in the operation “G” will be described. Here, no event occurs, so no processing is performed.
Next, the processing of “(3) When the switch is released” in the operation “G” will be described. Here, it is the same as the processing of “(3) When the switch is released” of the operation “F”. That is, in the switch release processing of S407, the process proceeds to S801, S802, S803, S804, S805, S806, S807, and S810. If the CPU 106 determines in step S810 that no function is assigned to the switch corresponding to the operation “G”, the process proceeds to steps S815 and S816. In S <b> 816, the CPU 106 performs a return process for returning the various setting contents of the camera body 101 and the display contents of the display 109 to the backed up state. At this time, since “(1) when the switch is pressed” of the operation “G” is not backed up, S705 in the switch pressing process in S406 of “(1) when the switch is pressed” of the operation “F”. It will return to the state memorized.

一方、S810において、機能が割り当てられているスイッチの場合には、S811に進み、CPU106はタイマTswが“0”であるか否かを判定する。ここでは、操作「F」の図4のS407のスイッチ解放時処理において、S813でタイマTswの計測を開始しているので、タイマTswは“0”でなく、S812に進む。S812では、CPU106はタイマTswを“0”にリセットする。S813では、CPU106は再びスイッチが解放されてからの経過時間を示すタイマTswの計測を開始する。したがって、今回新たにスイッチが解放されてからの経過時間が計測される。   On the other hand, in step S810, if the switch is assigned with a function, the process advances to step S811, and the CPU 106 determines whether the timer Tsw is “0”. Here, in the switch release processing of S407 in FIG. 4 of the operation “F”, since the measurement of the timer Tsw is started in S813, the timer Tsw is not “0” and the process proceeds to S812. In S812, the CPU 106 resets the timer Tsw to “0”. In S813, the CPU 106 starts measuring the timer Tsw indicating the elapsed time after the switch is released again. Therefore, the elapsed time since the switch was newly released this time is measured.

その後、S901以降の処理に進み、CPU106はスイッチの機能に応じた処理を行う。次に、S906では、CPU106はカメラ本体101に関わる何らかの設定が完了したか否かを判定する。設定が完了した場合にはS907およびS908に進み、CPU106はタイマTlockおよびタイマTswを“0”にリセットする。この処理は、後述する3つのタイムアウト処理を停止するためである。   Thereafter, the process proceeds to S901 and subsequent steps, and the CPU 106 performs a process according to the function of the switch. In step S <b> 906, the CPU 106 determines whether any setting related to the camera body 101 has been completed. When the setting is completed, the process proceeds to S907 and S908, and the CPU 106 resets the timer Tlock and the timer Tsw to “0”. This process is for stopping three timeout processes described later.

すなわち、ここで、撮影レンズ102が取り外された状態で、操作「G」により設定が完了した後に、次の操作「G」があった場合を想定する。この場合、次の操作「G」の「(3)スイッチを解放したとき」のS407のスイッチ解放時処理において、S801、S802、S803、S804、S805、S806、S807に進む。S807では、CPU106はタイマTlockが0よりも大きく、かつタイムアウト時間T3未満であるか否かを判定において、タイマTlockが0にリセットされているために、S810には進まず、S808に進む。ここで、S810には進まないということは、S816での復帰処理や、S813でのタイマTswの計測が開始されることがない。したがって、後述するS817において、タイマTswがタイムアウト時間T1よりも大きくなることがないので、復帰処理に進む要素がない。そのため操作「F」や操作「G」などで設定が完了した場合には、撮影レンズ102が取り外されていても、CPU106は操作「A」や操作「B」と同様に、次の操作「G」に応じた処理を実行する。なお、後述するように設定が完了した場合には、タイムアウト時間T2、T3を用いた復帰処理も行われない。   That is, here, it is assumed that the next operation “G” is performed after the setting is completed by the operation “G” in a state where the photographing lens 102 is detached. In this case, the process proceeds to S801, S802, S803, S804, S805, S806, and S807 in the switch release processing in S407 of “(3) When the switch is released” of the next operation “G”. In S807, the CPU 106 determines whether or not the timer Tlock is larger than 0 and less than the timeout time T3. Since the timer Tlock is reset to 0, the CPU 106 does not proceed to S810 but proceeds to S808. Here, not proceeding to S810 means that the return process in S816 and the measurement of the timer Tsw in S813 are not started. Therefore, in S817, which will be described later, the timer Tsw does not become larger than the timeout time T1, so there is no element that proceeds to the return process. Therefore, when the setting is completed by the operation “F” or the operation “G”, the CPU 106 performs the next operation “G” similarly to the operation “A” or the operation “B” even if the photographing lens 102 is detached. ”Is executed. Note that when the setting is completed as described later, the return processing using the timeout times T2 and T3 is not performed.

一方、S906において、設定が完了しない場合には、ユーザにより次の操作「G」が繰り返される。この場合、タイマTswの計測を継続されている間は、S406のスイッチ押下時処理において、S704においてタイマTswが“0”ではないと判定されることから、S705が省略され続ける。したがって、設定が完了しない間は、バックアップされた情報は、操作「F」の「(1)スイッチを押下したとき」のS406のスイッチ押下時処理における、S705で記憶した内容のままである。
すなわち、設定が完了しないものの、機能が割り当てられた操作「F」から操作「G」が連続する場合には、そのスイッチの機能に応じた処理が行われる。一方、連続する操作「G」のうち、機能が割り当てられていないスイッチの操作「G」があった場合には、カメラ本体101の状態が操作「F」の「(1)スイッチを押下したとき」の状態に復帰される。
On the other hand, if the setting is not completed in S906, the user repeats the next operation “G”. In this case, while the measurement of the timer Tsw is continued, it is determined that the timer Tsw is not “0” in S704 in the switch pressing process in S406, and thus S705 is omitted. Therefore, while the setting is not completed, the backed up information remains the contents stored in S705 in the switch pressing process in S406 of “(1) When the switch is pressed” of the operation “F”.
That is, when the setting is not completed but the operation “F” to which the function is assigned continues from the operation “G”, processing according to the function of the switch is performed. On the other hand, when there is an operation “G” of a switch to which no function is assigned among consecutive operations “G”, the state of the camera body 101 is the operation “F” when the “(1) switch is pressed. ”Is restored.

次に、3つのタイムアウト処理について説明をする。
1つ目は、タイムアウト時間T1(第1の所定時間)を用いた処理である。ここでは、操作「F」あるいは操作「G」以降にタイムアウト時間T1以内に新たな操作が行われない場合にカメラ本体101の各種設定内容とディスプレイ109の表示内容を、操作「F」が押下される直前の状態に戻す復帰処理が行われる。
具体的には、図4のフローチャートにおいて、S401、S403、S404、S405に進む。ここでは、スイッチが押下されない状態が継続されているので、S405では、CPU106はスイッチが押下されていないと判定して、S407に進む。S407のスイッチ解放時処理において、S801、S802に進む。S802では、CPU106は変数SWnowと変数SWlastとを照合する。ここで、変数SWlastには“0”が代入されているために一致するために、S817に進む。S817では、CPU106はタイマTswがタイムアウト時間T1よりも大きい(長い)か否かを判定する。タイマTswがタイムアウト時間T1よりも大きくない場合には図4のフローチャートに戻り、タイマTswがタイムアウト時間T1よりも大きい場合にはS815に進む。
Next, three timeout processes will be described.
The first is processing using a timeout time T1 (first predetermined time). Here, when a new operation is not performed within the time-out time T1 after the operation “F” or the operation “G”, the operation “F” is pressed for various setting contents of the camera body 101 and the display contents of the display 109. Return processing is performed to return to the state immediately before starting.
Specifically, in the flowchart of FIG. 4, the process proceeds to S401, S403, S404, and S405. Here, since the state where the switch is not pressed is continued, in S405, the CPU 106 determines that the switch is not pressed, and proceeds to S407. In the switch release processing of S407, the process proceeds to S801 and S802. In S802, the CPU 106 collates the variable SWnow with the variable SWlast. Here, since “0” is assigned to the variable SWlast, the values coincide with each other, and the process proceeds to S817. In S817, the CPU 106 determines whether or not the timer Tsw is larger (longer) than the timeout time T1. When the timer Tsw is not greater than the timeout time T1, the process returns to the flowchart of FIG. 4, and when the timer Tsw is greater than the timeout time T1, the process proceeds to S815.

S815では、CPU106はタイマTswを“0”にリセットする。次に、S816では、CPU106はカメラ本体101の各種設定内容とディスプレイ109の表示内容とを、バックアップした状態に戻す復帰処理をする。したがって、メモリ108に記憶された操作「F」の「(1)スイッチを押下したとき」のS406のスイッチ押下時処理における、S705で記憶した状態に復帰される。
すなわち、撮影レンズ102が取り外された状態で、1回目の操作からカメラ本体101の設定が完了するに到るまでの間で、連続する操作の間隔時間がタイムアウト時間T1よりも長い場合には、直前の操作が誤操作であると判断できる。したがって、カメラ本体101の状態を1回目の操作の直前に復帰させることで、誤操作によるカメラ本体101の状態が変更されるのを防止することができる。なお、上述したように、カメラ本体101の設定が完了した場合には、撮影レンズ102が取り外された場合でも、設定が完了した後の操作「G」に応じた処理が実行されるので、ユーザの利便性を向上させることができる。
In S815, the CPU 106 resets the timer Tsw to “0”. In step S <b> 816, the CPU 106 performs a return process for returning the various setting contents of the camera body 101 and the display contents of the display 109 to the backed up state. Therefore, the state stored in S705 in the switch pressing process in S406 of “(1) When the switch is pressed” of the operation “F” stored in the memory 108 is restored.
That is, when the interval time between successive operations is longer than the time-out time T1 from the first operation until the setting of the camera body 101 is completed with the taking lens 102 removed, It can be determined that the previous operation is an erroneous operation. Therefore, by returning the state of the camera body 101 immediately before the first operation, it is possible to prevent the state of the camera body 101 from being changed due to an erroneous operation. As described above, when the setting of the camera body 101 is completed, the process corresponding to the operation “G” after the setting is completed is executed even when the photographing lens 102 is removed. Convenience can be improved.

2つ目は、タイムアウト時間T2(第2の所定時間)を用いた処理である。ここでは、ロック解除部200が解放された以降からのタイムアウト時間T2以内に、撮影レンズ102の装着が検出されない状態から検出される状態に移行した場合には、復帰処理が行われる。
具体的には、図4のフローチャートにおいて、S401、S403、S404に進む。S404のレンズ着脱検出処理において、S601、S602に進む。ここでは、前回の処理ではレンズ装着フラグがセットされておらず、今回、撮影レンズ102が装着されている。したがって、S602では、CPU106はレンズ装着フラグがセットされていないと判定し、S603に進む。
The second is processing using a timeout time T2 (second predetermined time). Here, when the state is changed from the state where the mounting of the photographing lens 102 is not detected within the timeout time T2 after the unlocking unit 200 is released, the return processing is performed.
Specifically, in the flowchart of FIG. 4, the process proceeds to S401, S403, and S404. In the lens attachment / detachment detection process in S404, the process proceeds to S601 and S602. Here, the lens mounting flag is not set in the previous processing, and the photographing lens 102 is mounted this time. Therefore, in S602, the CPU 106 determines that the lens mounting flag is not set, and the process proceeds to S603.

S603では、CPU106はタイマTlockが0よりも大きく、かつタイムアウト時間T2未満であるか否かを判定する。この条件を満たしている場合には、S604に進む。S604では、CPU106はカメラ本体101の各種設定内容とディスプレイ109の表示内容とを、バックアップした状態に戻す復帰処理をする。したがって、メモリ108に記憶された「(1)スイッチを押下したとき」のS406のスイッチ押下時処理における、S705で記憶した状態に復帰される。その後、S605、S606に進み、S606では、CPU106はタイマTlockを“0”にリセットし、図4のフローチャートに戻る。   In S603, the CPU 106 determines whether or not the timer Tlock is greater than 0 and less than the timeout time T2. If this condition is satisfied, the process proceeds to S604. In step S <b> 604, the CPU 106 performs a return process for returning the various setting contents of the camera body 101 and the display contents of the display 109 to the backed up state. Therefore, the state stored in S705 in the switch pressing process in S406 of “(1) When the switch is pressed” stored in the memory 108 is restored. Thereafter, the process proceeds to S605 and S606. In S606, the CPU 106 resets the timer Tlock to “0” and returns to the flowchart of FIG.

すなわち、撮影レンズ102が取り外された状態から、ユーザが誤って通信機能のない、すなわち装着が検出できない撮影レンズを装着し、操作部110を介してカメラ本体101に通信機能のない撮影レンズ用に設定を行っている場合を想定する。この場合でも、ユーザは誤りに気付き、タイムアウト時間T2内に通信機能のある撮影レンズ102を装着すれば、カメラ本体101の状態が通信機能のない撮影レンズ用に設定する直前に復帰される。したがって、ユーザが途中まで設定した通信機能を持たない撮影レンズ用の設定が取り消されるので、ユーザが設定を戻す操作が必要なく、ユーザの利便性を向上させることができる。なお、上述したように、カメラ本体101の設定が完了した場合には、タイマTlockが0にリセットされる(S907)ことから、S603からS604に進まず、復帰されることがないので、カメラ本体101の状態は設定が完了した状態に維持される。
なお、ここでは、ロック解除部200が解放されたことを起点にするタイマTlockを用いているが、タイマTlockは、例えば操作「F」の「(1)スイッチを押下したとき」または「(3)スイッチを解放したとき」を起点にしてもよい。この場合には、タイムアウト時間T3が参照するタイマTlockとは区別する。
In other words, from the state in which the photographic lens 102 is detached, the user accidentally attaches a photographic lens that does not have a communication function, that is, cannot be detected, and is attached to the camera body 101 via the operation unit 110 for a photographic lens that does not have a communication function. Assume that the settings have been made. Even in this case, if the user notices an error and attaches the photographing lens 102 having the communication function within the timeout time T2, the state of the camera body 101 is restored immediately before setting the photographing lens having no communication function. Therefore, since the setting for the photographing lens that does not have the communication function set halfway by the user is canceled, the user does not need to return the setting, and the convenience for the user can be improved. As described above, when the setting of the camera body 101 is completed, the timer Tlock is reset to 0 (S907), so the process does not proceed from S603 to S604 and is not restored. The state 101 is maintained in a state where the setting is completed.
Here, the timer Tlock starting from the release of the lock release unit 200 is used, but the timer Tlock is, for example, “when the (1) switch is pressed” or “(3” of the operation “F”. ) When the switch is released "may be the starting point. In this case, it is distinguished from the timer Tlock referred to by the timeout time T3.

3つ目は、タイムアウト時間T3(第3の所定時間)を用いた処理である。ここでは、ロック解除部200が解放された時点からタイムアウト時間T3以降は、何れも操作も受け付けるようにするものである。ここでは、操作「H」について説明する。
操作「H」における「(1)スイッチを押下したとき」の処理について説明する。図4のフローチャートにおいて、S401ではCPU106はタイマTlockがタイムアウト時間T3よりも大きいか否かを判定する。ここではタイマTlockがタイムアウト時間T3よりも大きいので、S402に進む。S402では、CPU106はタイマTlockを“0”にリセットする。その後、S403、S404、S405、S406の処理は、操作「F」の「(1)スイッチを押下したとき」の処理と同一である。
The third is processing using a timeout time T3 (third predetermined time). Here, any operation is accepted after the time-out period T3 from the time when the lock release unit 200 is released. Here, the operation “H” will be described.
The process of “(1) When the switch is pressed” in the operation “H” will be described. In the flowchart of FIG. 4, in S401, the CPU 106 determines whether or not the timer Tlock is greater than the timeout time T3. Since the timer Tlock is larger than the timeout time T3 here, the process proceeds to S402. In S402, the CPU 106 resets the timer Tlock to “0”. Thereafter, the processing of S403, S404, S405, and S406 is the same as the processing of “when (1) switch is pressed” of operation “F”.

次に、操作「H」における「(3)スイッチを解放したとき」の処理について説明する。図4のフローチャートにおいて、S401、S402、S403、S404の処理は、操作「H」の「(1)スイッチを押下したとき」の処理と同一である。次に、S405、S407に進む。S407のスイッチ解放時処理において、S801、S802、S803、S804、S805、S806、S807に進む。S807では、CPU106はタイマTlockが0よりも大きく、かつタイムアウト時間T3よりも小さいか否かを判定する。ここでは、タイマTlockが0であるため、S808に進む。S808では、CPU106タイマTlockを“0”にリセットする。次に、S809では、CPU106はタイマTswを“0”にリセットする。その後、S901以降の処理に進み、CPU106はスイッチの機能に応じた処理を行う。
したがって、タイマTlockがタイムアウト時間T3よりも大きい場合には、タイマTlockが“0”にリセットされ、S807からS810には進まないため、あたかもS806においてレンズ装着フラグがセットされS901に進む場合と同様の処理になる。したがって、操作「A」および操作「B」と同様な動作を実現することができる。
Next, the processing “(3) When the switch is released” in the operation “H” will be described. In the flowchart of FIG. 4, the processing of S401, S402, S403, and S404 is the same as the processing of “(1) When the switch is pressed” of the operation “H”. Next, the process proceeds to S405 and S407. In the switch release processing of S407, the process proceeds to S801, S802, S803, S804, S805, S806, and S807. In S807, the CPU 106 determines whether or not the timer Tlock is larger than 0 and smaller than the timeout time T3. Here, since the timer Tlock is 0, the process proceeds to S808. In S808, the CPU 106 timer Tlock is reset to “0”. In step S809, the CPU 106 resets the timer Tsw to “0”. Thereafter, the process proceeds to S901 and subsequent steps, and the CPU 106 performs a process according to the function of the switch.
Therefore, when the timer Tlock is larger than the timeout time T3, the timer Tlock is reset to “0” and does not advance from S807 to S810. It becomes processing. Therefore, an operation similar to the operation “A” and the operation “B” can be realized.

すなわち、ロック解除部200が解放されてからタイムアウト時間T3が経過した場合には、撮影レンズ102が取り外されていても、CPU106はユーザによる操作部110を介した操作に応じた処理を実行する。したがって、いつまでも操作を受け付けない状態が継続されるのを防止でき、ユーザの利便性を向上させることができる。なお、上述したように、カメラ本体101の設定が完了した場合には、タイマTlockが0にリセットされる(S907)ことから、S603からS604に進まず、復帰されることがないので、カメラ本体101の状態は設定が完了した状態に維持される。
なお、S808ではCPU106はタイマTlockを“0”にリセットしたが、実際にはタイムアウト時間T3を超えて計測を継続しても条件は同じである。ただし、メモリ108でタイマTlockの値がオーバフローするなどの原因によって、タイムアウト時間T3未満に戻ってしまうことがある場合には、タイマTlockを“0”にリセットしておくことが好ましい。
That is, when the time-out period T3 has elapsed since the unlocking unit 200 was released, the CPU 106 executes processing according to the operation performed by the user via the operation unit 110 even when the photographing lens 102 is removed. Therefore, it is possible to prevent a state where an operation is not accepted indefinitely, and to improve user convenience. As described above, when the setting of the camera body 101 is completed, the timer Tlock is reset to 0 (S907), so the process does not proceed from S603 to S604 and is not restored. The state 101 is maintained in a state where the setting is completed.
In S808, the CPU 106 resets the timer Tlock to “0”, but the condition is the same even if the measurement is actually continued beyond the timeout time T3. However, when the value of the timer Tlock overflows in the memory 108 and may return to less than the timeout time T3, it is preferable to reset the timer Tlock to “0”.

以上、本実施形態によれば、撮影レンズ102が取り外されている場合に、操作部110に対する操作を実行しないようにすることで、撮影レンズを交換する場合に誤操作により撮像装置の状態が変更されることを防止することができる。したがって、カメラ本体101に意図しない設定がされたり、ディスプレイ109が意図しない内容に変更されたりすることで、ユーザが混乱しないようにすることができる。また、ユーザが誤操作前の状態に戻す手間を削減することができる。
また、本実施形態では、撮影レンズ102が取り外されている場合に一律に操作部110に対する操作を実行しないのではなく、誤操作である可能性が高い場合を所定条件として、所定条件を満たす場合のみ操作部110に対する操作を実行しないようにする。換言すると、撮影レンズ102が取り外されていても意図的な操作の場合には操作に応じた処理が実行されるので、ユーザの利便性を向上させることができる。
As described above, according to the present embodiment, when the photographing lens 102 is detached, the state of the imaging device is changed by an erroneous operation when the photographing lens is replaced by not performing an operation on the operation unit 110. Can be prevented. Therefore, the user can be prevented from being confused by unintentionally setting the camera body 101 or changing the display 109 to an unintended content. Further, it is possible to reduce time and effort for the user to return to the state before the erroneous operation.
Further, in this embodiment, when the photographing lens 102 is detached, the operation unit 110 is not uniformly operated, but only when a predetermined condition is satisfied, assuming that there is a high possibility of an erroneous operation. The operation on the operation unit 110 is not executed. In other words, even if the photographic lens 102 is detached, in the case of an intentional operation, processing corresponding to the operation is executed, so that convenience for the user can be improved.

以上、本発明をその好適な実施形態に基づいて詳述したが、本発明は上述した実施形態に限られるものではなく、この発明の要旨を逸脱しない範囲の様々な形態も本発明に含まれる。すなわち、上述した実施形態は本発明の一実施形態を示すものにすぎず、この発明の範囲で適宜組み合わせることも可能である。   As mentioned above, although this invention was explained in full detail based on the suitable embodiment, this invention is not limited to embodiment mentioned above, Various forms of the range which does not deviate from the summary of this invention are also contained in this invention. . That is, the above-described embodiment is merely an embodiment of the present invention, and can be appropriately combined within the scope of the present invention.

なお、CPU106による制御は1つのハードウェアが行ってもよいし、複数のハードウェアが処理を分担することで、装置全体の制御を行ってもよい。
また、上述した実施形態では、本発明をカメラに適用した場合を例にして説明したが、この場合に限らず、撮影レンズ102を着脱可能な撮像装置であれば適用可能である。すなわち、本発明は、ビデオカメラ、スマートフォンなどの携帯端末などにも適用可能である。
Note that the control by the CPU 106 may be performed by a single piece of hardware, or the entire apparatus may be controlled by a plurality of pieces of hardware sharing the processing.
In the above-described embodiment, the case where the present invention is applied to a camera has been described as an example. However, the present invention is not limited to this case, and the present invention can be applied to any imaging device in which the photographing lens 102 can be attached and detached. That is, the present invention can be applied to portable terminals such as video cameras and smartphones.

(その他の実施例)
本発明は、上述の実施形態の1以上の機能を実現するプログラムを、ネットワーク又は記録媒体を介してシステム又は装置に供給し、そのシステム又は装置のコンピュータにおける1つ以上のプロセッサーがプログラムを読出し実行する処理でも実現可能である。また、1以上の機能を実現する回路(例えば、ASIC)によっても実現可能である。
(Other examples)
The present invention supplies a program that realizes one or more functions of the above-described embodiments to a system or apparatus via a network or a recording medium, and one or more processors in the computer of the system or apparatus read and execute the program This process can be realized. It can also be realized by a circuit (for example, ASIC) that realizes one or more functions.

100:撮像システム 101:カメラ本体 102:撮影レンズ 104:撮像部 105:画像処理部 106:CPU 107:ROM 108:メモリ 109:ディスプレイ 110:操作部 111:解除検出部 112:通信部 113:レンズ群 114:CPU 115:ROM 116:通信部 200:ロック解除部 201:ロック部 203:被ロック部   DESCRIPTION OF SYMBOLS 100: Imaging system 101: Camera main body 102: Shooting lens 104: Imaging part 105: Image processing part 106: CPU 107: ROM 108: Memory 109: Display 110: Operation part 111: Release detection part 112: Communication part 113: Lens group 114: CPU 115: ROM 116: Communication unit 200: Unlock unit 201: Lock unit 203: Locked unit

Claims (13)

撮影レンズを着脱可能な撮像装置であって、
撮影レンズの着脱を検出する検出手段と、
誤操作である可能性が高い少なくとも1つの所定条件のいずれも満たさない場合には、前記検出手段により撮影レンズが取り外されたことが検出された状態で行われたユーザによる操作部に対する操作に応じて、対応する処理を実行し、
前記少なくとも1つの所定条件のいずれかを満たす場合には、前記検出手段により撮影レンズが取り外されたことが検出された状態で行われた前記操作部に対する操作に応じた処理を無効とするように制御する制御手段と、
を有することを特徴とする撮像装置。
An imaging device in which a photographic lens can be attached and detached,
Detecting means for detecting attachment and detachment of the taking lens;
When none of the at least one predetermined condition that is highly likely to be an erroneous operation is satisfied, according to an operation performed on the operation unit by the user performed in a state where the detection unit detects that the photographing lens has been removed. , Execute the corresponding process,
In a case where any one of the at least one predetermined condition is satisfied, the processing corresponding to the operation on the operation unit performed in a state where the detection unit detects that the photographing lens is removed is invalidated. Control means for controlling;
An imaging device comprising:
前記制御手段は、
前記検出手段により前記撮影レンズが取り外されたことが検出された状態で行われた操作に応じて該撮像装置の状態を変更し、前記少なくとも1つの所定条件のいずれかが満たされた場合に、該撮像装置の状態を変更する前の状態に復帰させることで、前記操作に応じた処理を無効とするように制御することを特徴とする請求項1に記載の撮像装置。
The control means includes
When the state of the imaging device is changed in accordance with an operation performed in a state where it is detected that the photographing lens is removed by the detection unit, and when any one of the at least one predetermined condition is satisfied, The imaging apparatus according to claim 1, wherein control is performed so as to invalidate the processing according to the operation by returning the state of the imaging apparatus to a state before the change.
前記少なくとも1つの所定条件は、前記検出手段により前記撮影レンズが取り外されたことが検出された状態で行われた第1の操作の後、第1の期間で次の操作が行われなかったという第1の条件を含むことを特徴とする請求項1または2に記載の撮像装置。   The at least one predetermined condition is that the next operation is not performed in the first period after the first operation performed in a state where the detection unit detects that the photographing lens is removed. The imaging apparatus according to claim 1, wherein the imaging apparatus includes a first condition. 前記制御手段は、
前記第1の条件を満たす場合には、該撮像装置の状態を前記第1の操作の前の状態に復帰させることを特徴とする請求項3に記載の撮像装置。
The control means includes
The imaging apparatus according to claim 3, wherein when the first condition is satisfied, the state of the imaging apparatus is returned to a state before the first operation.
前記少なくとも1つの所定条件は、
前記検出手段により前記撮影レンズが取り外されたことが検出された状態で行われた第1の操作の後、前記操作部のうち機能が割り当てられていない操作部が操作されたという第2の条件を含むことを特徴とする請求項1乃至4の何れか1項に記載の撮像装置。
The at least one predetermined condition is:
A second condition that an operation unit to which no function is assigned is operated after the first operation performed in a state in which it is detected that the photographing lens is removed by the detection unit. 5. The imaging apparatus according to claim 1, comprising:
前記制御手段は、
前記第2の条件を満たす場合には、該撮像装置の状態を前記第1の操作の前の状態に復帰させることを特徴とする請求項5に記載の撮像装置。
The control means includes
The imaging apparatus according to claim 5, wherein when the second condition is satisfied, the state of the imaging apparatus is returned to the state before the first operation.
前記少なくとも1つの所定条件は、
前記検出手段により撮影レンズが取り外されたことが検出され、撮影レンズを取り外すための操作部材の操作から第2の期間内に前記検出手段により前記撮影レンズの装着が検出されたという第3の条件を含むことを特徴とする請求項1乃至6の何れか1項に記載の撮像装置。
The at least one predetermined condition is:
A third condition is that the detection means detects that the taking lens has been removed, and the detection means has detected that the taking lens has been mounted within a second period from the operation of the operation member for removing the taking lens. The imaging apparatus according to any one of claims 1 to 6, further comprising:
前記撮影レンズを前記撮像装置に装着された状態にロックするロック機構と、
撮影レンズを取り外すための操作部材としての、前記ロック機構によるロックを解除する操作を受け付けるロック解除部と、を更に有することを特徴とする請求項1乃至7の何れか1項に記載の撮像装置。
A locking mechanism that locks the photographing lens in a state of being mounted on the imaging device;
The image pickup apparatus according to claim 1, further comprising: a lock release unit that receives an operation of releasing the lock by the lock mechanism as an operation member for removing the photographing lens. .
前記制御手段は、
前記ロック解除部が操作されている場合には、前記検出手段により前記撮影レンズが取り外されたことが検出されているか否かに関わらず、前記ユーザによる操作部に対する操作に応じた処理を実行しないように制御することを特徴とする請求項8に記載の撮像装置。
The control means includes
When the unlocking unit is operated, regardless of whether or not the detection unit detects that the photographing lens has been removed, processing according to the operation on the operation unit by the user is not executed. The imaging apparatus according to claim 8, wherein the imaging apparatus is controlled as follows.
前記制御手段は、
前記ロック解除部の操作が解放されてから第3の期間が経過した場合には、前記検出手段により前記撮影レンズが取り外されたことが検出されている場合であっても、前記ユーザによる操作部に対する操作に応じた処理を実行するように制御することを特徴とする請求項9に記載の撮像装置。
The control means includes
When the third period has elapsed since the operation of the unlocking unit was released, the operation unit by the user can be detected even if the detection means detects that the photographing lens has been removed. The image pickup apparatus according to claim 9, wherein control is performed so as to execute a process according to an operation on the image.
撮影レンズを着脱可能な撮像装置の制御方法であって、
撮影レンズの着脱を検出する検出ステップと、
誤操作である可能性が高い少なくとも1つの所定条件のいずれも満たさない場合には、前記検出ステップにより撮影レンズが取り外されたことが検出された状態で行われたユーザによる操作部に対する操作に応じて、対応する処理を実行し、
前記少なくとも1つの所定条件のいずれかを満たす場合には、前記検出ステップにより撮影レンズが取り外されたことが検出された状態で行われた前記操作部に対する操作に応じた処理を無効とするように制御する制御ステップと、
を有することを特徴とする撮像装置の制御方法。
A method for controlling an imaging apparatus in which a photographic lens can be attached and detached,
A detection step for detecting attachment / detachment of the taking lens;
When none of the at least one predetermined condition that is highly likely to be an erroneous operation is satisfied, according to the operation performed on the operation unit by the user performed in a state where it is detected that the photographing lens is removed by the detection step. , Execute the corresponding process,
In a case where any one of the at least one predetermined condition is satisfied, processing corresponding to an operation on the operation unit performed in a state where it is detected that the photographing lens is removed by the detection step is invalidated. Control steps to control;
A method for controlling an imaging apparatus, comprising:
コンピュータを、請求項1乃至10の何れか1項に記載された撮像装置の各手段として機能させるためのプログラム。 The program for functioning a computer as each means of the imaging device described in any one of Claims 1 thru | or 10 . コンピュータを、請求項1乃至10の何れか1項に記載された撮像装置の各手段として機能させるためのプログラムを格納したコンピュータが読み取り可能な記録媒体。 A computer-readable recording medium storing a program for causing a computer to function as each unit of the imaging apparatus according to any one of claims 1 to 10 .
JP2015094953A 2015-05-07 2015-05-07 Imaging apparatus, control method thereof, and program Expired - Fee Related JP6173380B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2015094953A JP6173380B2 (en) 2015-05-07 2015-05-07 Imaging apparatus, control method thereof, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2015094953A JP6173380B2 (en) 2015-05-07 2015-05-07 Imaging apparatus, control method thereof, and program

Publications (2)

Publication Number Publication Date
JP2016213636A JP2016213636A (en) 2016-12-15
JP6173380B2 true JP6173380B2 (en) 2017-08-02

Family

ID=57551886

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015094953A Expired - Fee Related JP6173380B2 (en) 2015-05-07 2015-05-07 Imaging apparatus, control method thereof, and program

Country Status (1)

Country Link
JP (1) JP6173380B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20200096775A1 (en) * 2018-09-24 2020-03-26 Apple Inc. Display System With Interchangeable Lens
JP2022134941A (en) * 2021-03-04 2022-09-15 株式会社Jvcケンウッド Video recording device and video recording device control program

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002303924A (en) * 2001-04-09 2002-10-18 Canon Inc Camera
JP2007324795A (en) * 2006-05-31 2007-12-13 Olympus Imaging Corp Digital camera with interchangeable lenses

Also Published As

Publication number Publication date
JP2016213636A (en) 2016-12-15

Similar Documents

Publication Publication Date Title
RU2466447C1 (en) Image capturing device and method of controlling said device
US10057480B2 (en) Electronic apparatus and control method thereof
JP6742730B2 (en) Electronic device and control method thereof
US10057479B2 (en) Electronic apparatus and method for switching touch operations between states
JP2017073758A5 (en)
JP6173380B2 (en) Imaging apparatus, control method thereof, and program
US11068062B2 (en) Display device and method for cancelling a user selected feature on a graphical user interface according to a change in display device rotation
JP2014241099A (en) Imaging device
KR102326196B1 (en) Electronic apparatus and method for controlling the same
JP5575290B2 (en) Imaging apparatus and control method thereof
JP2020021174A (en) Electronic device, control method thereof, and program thereof
US11245835B2 (en) Electronic device
US11189008B2 (en) Image capture apparatus for panoramic photography, method of controlling same, and storage medium
JP6123562B2 (en) Imaging device
JP5975813B2 (en) Imaging apparatus, control method therefor, program, and recording medium
EP4340381A1 (en) Image capturing device and method of controlling thereof
US20240163547A1 (en) Image pickup apparatus, control method for image pickup apparatus, and storage medium
JP7361510B2 (en) Imaging device, its control method, program, storage medium
JP2011192210A (en) Image display device, image operation method, and program
JP6545048B2 (en) Electronic device, control method of electronic device, and program
JP2024122040A (en) Electronics
JP2021061531A (en) Imaging control device and control method thereof, program, and storage medium
JP2017146631A (en) Electronic apparatus, method for controlling the same, storage medium, and program
JP2017085359A (en) Electronic apparatus, control method and program
JP2014116687A (en) Imaging apparatus, imaging method, and program

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20170411

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20170516

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20170606

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20170704

R151 Written notification of patent or utility model registration

Ref document number: 6173380

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

LAPS Cancellation because of no payment of annual fees