JP2017159449A - Device for electric appliance - Google Patents

Device for electric appliance Download PDF

Info

Publication number
JP2017159449A
JP2017159449A JP2017092482A JP2017092482A JP2017159449A JP 2017159449 A JP2017159449 A JP 2017159449A JP 2017092482 A JP2017092482 A JP 2017092482A JP 2017092482 A JP2017092482 A JP 2017092482A JP 2017159449 A JP2017159449 A JP 2017159449A
Authority
JP
Japan
Prior art keywords
date
time
information
battery
battery pack
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.)
Granted
Application number
JP2017092482A
Other languages
Japanese (ja)
Other versions
JP6483752B2 (en
Inventor
卓也 草川
Takuya Kusakawa
卓也 草川
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.)
Makita Corp
Original Assignee
Makita Corp
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 Makita Corp filed Critical Makita Corp
Priority to JP2017092482A priority Critical patent/JP6483752B2/en
Publication of JP2017159449A publication Critical patent/JP2017159449A/en
Application granted granted Critical
Publication of JP6483752B2 publication Critical patent/JP6483752B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Portable Power Tools In General (AREA)
  • General Factory Administration (AREA)

Abstract

PROBLEM TO BE SOLVED: To correctly detect date information representing a current date in a device for an electric appliance comprised of an electric appliance body or peripheral devices thereof.SOLUTION: An electric power tool 2 comprises terminals 16 to 19 for connecting an outside device 8 having correct date information, and a control circuit 20 acquires the date information from the outside device 8 via communication terminals 18 and 19. The control circuit 20 stores history information representing switching or abnormality detection in a nonvolatile memory 27 when a control mode is switched or when abnormality is detected, and the date information which has been updated (measured) on the basis of the date information acquired from the outside device 8 is applied to the history information. The control circuit 20 transmits the date information acquired from the outside device 8 to a battery pack 4 to correct the date information measured in the battery pack 4.SELECTED DRAWING: Figure 1

Description

本発明は、電動機器本体若しくはその周辺装置からなる電動機器用装置に関する。   The present invention relates to a device for an electric device including an electric device main body or a peripheral device thereof.

従来、電動工具には、トレーサビリティ管理のために、電動工具の使用時に、締め付けトルク等のデータを収集し、使用日時を表す日時情報と共にメモリに記憶することで、電動工具の使用履歴を残すように構成されたものが知られている(例えば、特許文献1参照)。   Conventionally, in order to manage traceability, the power tool collects data such as tightening torque when using the power tool, and stores it in a memory together with date / time information indicating the use date / time, thereby leaving a use history of the power tool. (See, for example, Patent Document 1).

特開2010−12587号公報Japanese Patent Application Laid-Open No. 2010-12587

この種の電動工具によれば、メモリに記憶された履歴情報から、電動工具を用いて組み立てられた製品の締め付け不良を検出するとか、その不良箇所を特定するといったことができる。   According to this type of power tool, it is possible to detect a tightening failure of a product assembled using the power tool from the history information stored in the memory, or to specify the defective portion.

しかしながら、メモリに履歴情報の一つとして記憶される日時情報は、電動工具に内蔵された時計(マイコンのタイマ等)から得られるものであるため、日時情報自体が正規のものからずれることがある。   However, since the date / time information stored as one of the history information in the memory is obtained from a clock (such as a microcomputer timer) built in the power tool, the date / time information itself may deviate from a regular one. .

そして、日時情報が正規のものからずれていると、メモリに記憶される履歴情報の信頼性が低下し、トレーサビリティ管理を良好に実行することができない。
また、こうした日時情報のずれによる問題は、履歴情報を残すように構成された電動工具に限らず、日時情報を利用して各種制御を行う制御回路を備えた電動工具や電動作業機であれば同様に発生する。
If the date and time information is deviated from the regular one, the reliability of the history information stored in the memory is lowered, and the traceability management cannot be performed well.
In addition, the problem due to the deviation of the date / time information is not limited to the electric tool configured to leave the history information, but any electric tool or electric work machine having a control circuit for performing various controls using the date / time information. It occurs in the same way.

また、電動工具や電動作業機等の電動機器本体に接続される周辺装置(例えば、電動機器に電力供給を行う電源装置やバッテリパック、電動機器に内蔵されたバッテリやバッテリパックへの充電装置、等)においても同様に発生する。   Also, peripheral devices connected to the main body of an electric device such as an electric tool or electric work machine (for example, a power supply device or a battery pack for supplying electric power to the electric device, a battery built in the electric device or a charging device for the battery pack, Etc.).

本発明は、こうした問題に鑑みなされたものであり、電動機器本体若しくはその周辺装置からなる電動機器用装置において、現在の日時を表す日時情報を正確に検知できるようにすることを目的とする。   The present invention has been made in view of these problems, and an object of the present invention is to make it possible to accurately detect date and time information representing the current date and time in an electric device apparatus including an electric device main body or a peripheral device thereof.

請求項1に記載の電動機器用装置においては、現在の日時を表す日時情報を有する外部機器との間で通信を行うための通信手段が備えられている。そして、日時情報取得手段が、その通信手段を介して外部機器から日時情報を取得し、制御手段が、その日時情報取得手段にて取得された日時情報に基づき制御を行う。   According to another aspect of the present invention, there is provided a communication device for communicating with an external device having date and time information representing the current date and time. Then, the date information acquisition unit acquires date information from the external device via the communication unit, and the control unit performs control based on the date information acquired by the date information acquisition unit.

従って、請求項1に記載の電動機器用装置によれば、現在の日時を計測する計測手段(時計・タイマ等)を有するか有しないかに関わらず、制御手段は、正確な日時情報を外部機器から取得し、その日時情報を用いた制御を、適正に実行することができる。よって、本発明によれば、制御手段による制御の信頼性を向上することができる。   Therefore, according to the apparatus for electric equipment of the first aspect, regardless of whether or not the measurement means (clock, timer, etc.) for measuring the current date and time is included, the control means provides accurate date and time information to the outside. Control acquired from the device and using the date and time information can be appropriately executed. Therefore, according to the present invention, the reliability of control by the control means can be improved.

次に、請求項2に記載の電動機器用装置においては、現在の日時を計測する計測手段を備える。そして、制御手段は、日時情報取得手段にて取得された日時情報に基づき、計測手段により計測される日時を更新する。   Next, in the apparatus for electric equipment of Claim 2, it has a measurement means which measures the present date. And a control means updates the date measured by a measurement means based on the date information acquired by the date information acquisition means.

このため、請求項2に記載の電動機器用装置によれば、計測手段により計測される日時に誤差があったとしても、その誤差を、日時情報取得手段が取得した日時情報に基づき修正し、計測手段が計測する日時の信頼性を高めることができる。   For this reason, according to the apparatus for electric equipment of claim 2, even if there is an error in the date and time measured by the measuring means, the error is corrected based on the date and time information acquired by the date and time information acquiring means, The reliability of the date and time measured by the measuring means can be improved.

そして、日時情報取得手段が通信手段を介して外部機器から日時情報を取得できない場合であっても、制御手段は、計測手段により計測される信頼性の高い日時に従い所定の制御動作を実行できるので、制御手段による制御の信頼性をより向上することができる。   Even when the date / time information acquisition unit cannot acquire the date / time information from the external device via the communication unit, the control unit can execute a predetermined control operation according to the highly reliable date / time measured by the measurement unit. The reliability of control by the control means can be further improved.

一方、請求項3に記載の電動機器用装置においては、現在の日時を計測する計測手段を備え、制御手段は、計測手段にて計測された日時と、日時情報取得手段にて取得された日時情報から得られる日時との差分を表す差分情報を生成する。   On the other hand, in the apparatus for electric equipment according to claim 3, it is provided with a measuring unit that measures the current date and time, and the control unit is the date and time measured by the measuring unit and the date and time acquired by the date and time information acquiring unit. Difference information representing a difference from the date and time obtained from the information is generated.

このため、請求項3に記載の電動機器用装置によれば、計測手段により計測される日時に誤差がある場合、その誤差が、差分情報として生成されることになる。
従って、日時情報取得手段が通信手段を介して外部機器から日時情報を取得できない場合であっても、制御手段は、計測手段から得られる日時と差分情報とに基づき、現在の日時を正確に検知することができる。
For this reason, according to the apparatus for electric equipment of Claim 3, when there exists an error in the date measured by a measurement means, the error will be produced | generated as difference information.
Therefore, even when the date / time information acquisition unit cannot acquire the date / time information from the external device via the communication unit, the control unit accurately detects the current date / time based on the date / time obtained from the measurement unit and the difference information. can do.

よって、請求項3に記載の電動機器用装置においても、請求項2に記載のものと同様、制御手段による制御の信頼性をより向上することができる。
また、例えば、バッテリ電圧の低下等によって、装置全体が動作を停止した際には、計測手段による日時の計測動作も停止される。このため、請求項3に記載の電動機器用装置によれば、電動機器用装置の動作開始後に生成される差分情報から、電動機器用装置の動作停止時間を推定することもできる。
Therefore, also in the apparatus for electric equipment of Claim 3, like the thing of Claim 2, the reliability of control by a control means can be improved more.
Further, for example, when the entire apparatus stops operating due to a decrease in battery voltage or the like, the date and time measuring operation by the measuring unit is also stopped. For this reason, according to the apparatus for electric devices of Claim 3, the operation stop time of the apparatus for electric devices can also be estimated from the difference information produced | generated after the operation | movement start of the apparatus for electric devices.

次に、請求項4に記載の電動機器用装置においては、当該電動機器用装置が他の電動機器用装置に接続されているとき、制御手段が、日時情報取得手段にて取得された日時情報を他の電動機器用装置に提供する。   Next, in the apparatus for electric equipment according to claim 4, when the electric equipment apparatus is connected to another electric equipment apparatus, the control means acquires the date information acquired by the date information acquisition means. Is provided to other devices for electric devices.

従って、請求項4に記載の電動機器用装置によれば、日時情報取得手段が外部機器から取得した正確な日時情報を、他の電動機器用装置に提供することができ、他の電動機器用装置側では、その提供された正確な日時情報に基づく制御を実行できるようになる。   Therefore, according to the apparatus for electric equipment of the fourth aspect, the accurate date and time information acquired by the date and time information acquisition unit from the external apparatus can be provided to another apparatus for electric equipment. On the device side, control based on the provided accurate date and time information can be executed.

また、請求項2又は請求項3に記載の電動機器用装置のように、他の電動機器用装置が、現在の日時を計測する計測手段を備えている場合には、計測手段による計測日時を修正させるか、或いは、計測手段による計測日時の誤差を差分情報として生成させることができる。   Moreover, when the other electric device apparatus includes a measuring unit that measures the current date and time as in the electric device apparatus according to claim 2 or 3, the measurement date and time by the measuring unit is set. It can be corrected, or an error in the measurement date and time by the measurement means can be generated as difference information.

次に、請求項5に記載の電動機器用装置においては、通信手段は、外部機器として、GPS受信機、標準電波受信機、通信携帯端末、及び、パーソナルコンピュータの少なくとも一つと通信可能である。   Next, in the apparatus for electric equipment according to claim 5, the communication means can communicate with at least one of a GPS receiver, a standard radio wave receiver, a communication portable terminal, and a personal computer as an external device.

GPS受信機、標準電波受信機、通信携帯端末、パーソナルコンピュータ(特にネットワークに接続されたもの)は、通常、正確な日時情報を有する。
このため、請求項5に記載の電動機器用装置によれば、これらの機器から正確な日時情
報を取得し、制御に用いる日時情報の信頼性を高めることができる。
GPS receivers, standard radio wave receivers, communication portable terminals, and personal computers (especially those connected to a network) usually have accurate date and time information.
For this reason, according to the apparatus for electric equipment of Claim 5, exact date information is acquired from these apparatuses, and the reliability of the date information used for control can be improved.

次に、請求項6に記載の電動機器用装置においては、当該電動機器用装置の動作の履歴を記憶する記憶手段を備える。そして、制御手段は、その動作の履歴を表す履歴情報を、日時情報と関連付けて記憶手段に格納する。   Next, in the apparatus for electric equipment of Claim 6, the memory | storage means which memorize | stores the log | history of operation | movement of the said apparatus for electric equipment is provided. Then, the control means stores the history information representing the history of the operation in the storage means in association with the date / time information.

従って、記憶手段に対し履歴情報に関連付けて格納される日時情報は、日時情報取得手段が外部機器から取得した正確な日時情報に対応するものとなる。
よって、当該電動機器用装置の使用者は、記憶手段に記憶された履歴情報から、電動機器用装置の動作履歴を、その動作日時と共に正確に把握することができ、当該電動機器用装置を含む電動機器システムのトレーサビリティ管理を適正に行うことができる。
Therefore, the date and time information stored in association with the history information in the storage unit corresponds to the accurate date and time information acquired from the external device by the date and time information acquisition unit.
Therefore, the user of the device for electric equipment can accurately grasp the operation history of the device for electric equipment together with the operation date and time from the history information stored in the storage means, including the device for electric equipment. It is possible to properly manage the traceability of the electric equipment system.

次に、請求項7に記載の電動機器用装置において、制御手段は、履歴情報に対応する動作の発生回数を計数し、記憶手段に履歴情報を格納する際には、履歴情報に動作の発生回数を付与する。   Next, in the apparatus for electric equipment according to claim 7, the control unit counts the number of times of the operation corresponding to the history information, and when the history information is stored in the storage unit, the operation occurs in the history information. Give the number of times.

このため、記憶手段の記憶容量の制限から、最新の履歴情報を書き込む際に、古い履歴情報が消去されたとしても、記憶手段に記憶された履歴情報から、その履歴情報に対応する動作の発生回数を検知することができる。   For this reason, even when old history information is erased when writing the latest history information due to the limitation of the storage capacity of the storage means, an operation corresponding to the history information is generated from the history information stored in the storage means. The number of times can be detected.

よって、請求項7に記載の電動機器用装置によれば、記憶手段の記憶容量の制限により、電動機器システムのトレーサビリティ管理を実施できなくなるのを防止することができる。   Therefore, according to the apparatus for electric equipment described in claim 7, it is possible to prevent the traceability management of the electric equipment system from being disabled due to the limitation of the storage capacity of the storage means.

実施形態の電動工具、バッテリパック、及び外部機器の構成を表すブロック図である。It is a block diagram showing the structure of the electric tool of embodiment, a battery pack, and an external apparatus. 図1のバッテリパックに接続される充電器の構成を表すブロック図である。It is a block diagram showing the structure of the charger connected to the battery pack of FIG. 電動工具の制御回路にて実行される制御処理を表すフローチャートである。It is a flowchart showing the control processing performed in the control circuit of an electric tool. 電動工具の不揮発性メモリに格納される履歴情報を表す説明図である。It is explanatory drawing showing the log | history information stored in the non-volatile memory of an electric tool. 図3に示すモード設定切り替え処理を表すフローチャートである。It is a flowchart showing the mode setting switching process shown in FIG. 図3に示す通信処理を表すフローチャートである。It is a flowchart showing the communication process shown in FIG. 図3に示す異常状態確認処理を表すフローチャートである。It is a flowchart showing the abnormal condition confirmation process shown in FIG. 図3に示すメモリ操作処理を表すフローチャートである。It is a flowchart showing the memory operation process shown in FIG. 図8に示す書き込みデータ用意処理を表すフローチャートである。It is a flowchart showing the write data preparation process shown in FIG. 図3に示す取得日時カウントアップ処理を表すフローチャートである。It is a flowchart showing the acquisition date count-up process shown in FIG. 図3に示すスリープ処理を表すフローチャートである。It is a flowchart showing the sleep process shown in FIG. 充電器の制御回路にて実行される制御処理を表すフローチャートである。It is a flowchart showing the control processing performed in the control circuit of a charger. 充電器の不揮発性メモリに格納される履歴情報を表す説明図である。It is explanatory drawing showing the historical information stored in the non-volatile memory of a charger. 図12に示すバッテリ接続確認処理を表すフローチャートである。It is a flowchart showing the battery connection confirmation process shown in FIG. 図12に示す異常状態確認処理を表すフローチャートである。It is a flowchart showing the abnormal condition confirmation process shown in FIG. 図12に示すメモリ操作処理にて実行される書き込みデータ用意処理を表すフローチャートである。It is a flowchart showing the write data preparation process performed in the memory operation process shown in FIG. 図12に示すスリープ処理を表すフローチャートである。It is a flowchart showing the sleep process shown in FIG. バッテリパックの制御回路にて実行される制御処理を表すフローチャートである。It is a flowchart showing the control processing performed in the control circuit of a battery pack. バッテリパックの不揮発性メモリに格納される履歴情報を表す説明図である。It is explanatory drawing showing the historical information stored in the non-volatile memory of a battery pack. 図18に示す通信処理を表すフローチャートである。It is a flowchart showing the communication processing shown in FIG. 図18に示す異常状態確認処理を表すフローチャートである。It is a flowchart showing the abnormal condition confirmation process shown in FIG. 図18に示すメモリ操作処理にて実行される書き込みデータ用意処理を表すフローチャートである。It is a flowchart showing the write data preparation process performed in the memory operation process shown in FIG. 図18に示すスリープ処理を表すフローチャートである。It is a flowchart showing the sleep process shown in FIG. 電動工具の不揮発性メモリに格納される履歴情報の他の例を表す説明図である。It is explanatory drawing showing the other example of the log | history information stored in the non-volatile memory of an electric tool. 商用電源から電源供給を受けて動作する電動工具への外部機器の接続状態を表すブロック図である。It is a block diagram showing the connection state of the external apparatus to the electric tool which receives power supply from a commercial power source and operates. バッテリパックへの外部機器の接続状態を表すブロック図である。It is a block diagram showing the connection state of the external apparatus to a battery pack. 外部機器から日時情報を取得するのに用いられるアダプタを表す説明図である。It is explanatory drawing showing the adapter used in order to acquire date information from an external apparatus.

以下に本発明の実施形態を図面と共に説明する。
[電動工具システムの構成]
本実施形態は、電動工具2、電動工具2に電力供給を行うバッテリパック4、及び、バッテリパック4への充電を行う充電器6、にて構成される電動工具システムに本発明を適用したものである。そして、これら電動工具2、バッテリパック4、及び、充電器6は、それぞれ、本発明の電動機器用装置として機能する。
Embodiments of the present invention will be described below with reference to the drawings.
[Configuration of power tool system]
In the present embodiment, the present invention is applied to a power tool system including a power tool 2, a battery pack 4 that supplies power to the power tool 2, and a charger 6 that charges the battery pack 4. It is. And these electric tool 2, battery pack 4, and charger 6 each function as the apparatus for electric devices of this invention.

図1に示すように、本実施形態の電動工具2は、バッテリパック4を着脱自在に装着可能に構成されており、バッテリパック4から電源供給を受けて動作する。
電動工具2には、バッテリパック4に接続するための端子として、バッテリ端子11、グランド端子12、及び、通信端子13、14が備えられており、動力源として、直流モータからなる駆動モータ(以下、単にモータという)21が備えられている。
As shown in FIG. 1, the electric power tool 2 of the present embodiment is configured so that the battery pack 4 can be detachably attached, and operates by receiving power supply from the battery pack 4.
The electric tool 2 includes a battery terminal 11, a ground terminal 12, and communication terminals 13 and 14 as terminals for connection to the battery pack 4, and a drive motor (hereinafter referred to as a DC motor) as a power source. (Simply called a motor) 21 is provided.

電動工具2にバッテリパック4が装着された際、バッテリ端子11は、バッテリパック4のバッテリ端子31を介してバッテリ36の正極側に接続され、グランド端子12は、バッテリパック4のグランド端子32を介してバッテリ36の負極側に接続される。   When the battery pack 4 is attached to the electric power tool 2, the battery terminal 11 is connected to the positive side of the battery 36 via the battery terminal 31 of the battery pack 4, and the ground terminal 12 is connected to the ground terminal 32 of the battery pack 4. To the negative electrode side of the battery 36.

また、電動工具2内では、バッテリ端子11は、使用者により操作されるトリガスイッチ23を介してモータ21の一端に接続されており、グランド端子12は、駆動回路24を介して、モータ21の他端に接続されている。なお、モータ21には、モータ21のオフ時に誘発する逆方向の電力を回生するためのダイオード(所謂フライホイールダイオード)22が並列接続されている。   Further, in the electric tool 2, the battery terminal 11 is connected to one end of the motor 21 via a trigger switch 23 operated by a user, and the ground terminal 12 is connected to the motor 21 via a drive circuit 24. Connected to the other end. The motor 21 is connected in parallel with a diode 22 (so-called flywheel diode) 22 for regenerating reverse power induced when the motor 21 is turned off.

電動工具2には、バッテリパック4を接続するとトリガスイッチ23のオン・オフに関係なく、バッテリパック4から電源供給を受け、内部回路駆動用の電源電圧(直流定電圧)を生成するレギュレータ28、及び、レギュレータ28から電源供給を受けてモータ21を駆動制御する制御回路20が備えられている。   When the battery pack 4 is connected to the power tool 2, a regulator 28 that receives power supply from the battery pack 4 and generates a power supply voltage (DC constant voltage) for driving an internal circuit regardless of whether the trigger switch 23 is on or off. In addition, a control circuit 20 that receives power supply from the regulator 28 and controls driving of the motor 21 is provided.

制御回路20は、CPUを中心に構成されたマイクロコントローラ(MCU)にて構成されており、駆動回路24を介してモータ21を駆動制御するための制御プログラムや制御データが予め格納されたROM25、及び、各種データを一時的に記憶するためのRAM26を備える。   The control circuit 20 is composed of a microcontroller (MCU) mainly composed of a CPU, and a ROM 25 in which a control program and control data for controlling the drive of the motor 21 via the drive circuit 24 are stored in advance. A RAM 26 for temporarily storing various data is provided.

そして、制御回路20は、駆動回路24を介してモータ21を駆動制御する際、通信端子13、14を介してバッテリパック4内の制御回路40と通信を行うことで、バッテリパック4からバッテリ温度、バッテリ電圧、バッテリ電流を取り込み、制御に利用する。   The control circuit 20 communicates with the control circuit 40 in the battery pack 4 via the communication terminals 13 and 14 when driving the motor 21 via the drive circuit 24, so that the battery temperature from the battery pack 4 is increased. The battery voltage and battery current are taken in and used for control.

また、制御回路20には、電動工具2の動作履歴を表す履歴情報を記憶するための不揮
発性メモリ27、及び、モータ21駆動時の制御モード(例えば、高速/低速)を設定するためのモード切り替えスイッチ29が接続されている。
Further, the control circuit 20 has a nonvolatile memory 27 for storing history information representing the operation history of the electric power tool 2 and a mode for setting a control mode (for example, high speed / low speed) when the motor 21 is driven. A changeover switch 29 is connected.

なお、本実施形態で使用される不揮発性メモリ27は、後述の不揮発性メモリ45、69を含めて、データの書き換えが可能なEEPROM若しくはフラッシュメモリにて構成されている。   The non-volatile memory 27 used in the present embodiment includes an EEPROM or a flash memory capable of rewriting data, including non-volatile memories 45 and 69 described later.

そして、制御回路20は、モード切り替えスイッチ29を介して使用者により設定された制御モードに従いモータ21を駆動制御し、その制御モードの切り替え時や異常検出時には、その旨を表す履歴情報を、不揮発性メモリ27に格納する。   Then, the control circuit 20 controls the drive of the motor 21 according to the control mode set by the user via the mode change switch 29. When the control mode is switched or when an abnormality is detected, history information indicating that fact is stored in a nonvolatile manner. Stored in the memory 27.

また、電動工具2には、外部機器8に接続するための端子16、17、18、19が設けられている。
このうち、端子16、17は、バッテリ端子11及びグランド端子12にそれぞれ接続されて、バッテリパック4から外部機器8への電源供給を中継するためのものであり、端子18、19は、制御回路20を、外部機器8と通信可能に接続するためのものである。
The electric power tool 2 is provided with terminals 16, 17, 18, and 19 for connecting to the external device 8.
Among these, the terminals 16 and 17 are connected to the battery terminal 11 and the ground terminal 12, respectively, for relaying the power supply from the battery pack 4 to the external device 8, and the terminals 18 and 19 are control circuits. 20 is connected to the external device 8 in a communicable manner.

そして、制御回路20は、端子18、19を介して外部機器8と通信を行うことで、外部機器8から現在の日時情報を取得する。
なお、外部機器8は、GPS受信機としてのGPSモジュール85、及び、標準電波受信機としての標準電波受信モジュール86を備えた携帯通信端末(例えば、携帯電話、スマートフォン等)である。
Then, the control circuit 20 acquires current date / time information from the external device 8 by communicating with the external device 8 via the terminals 18 and 19.
The external device 8 is a mobile communication terminal (for example, a mobile phone, a smartphone, or the like) provided with a GPS module 85 as a GPS receiver and a standard radio wave receiving module 86 as a standard radio wave receiver.

外部機器8は、電動工具2や後述の充電器6(図2参照)に対し、端子81、82、83、84を介して接続可能である。
そして、外部機器8には、端子81、82を介して、電動工具2若しくは充電器6からの供給電力を取り込み、内部回路駆動用の電源電圧を生成するレギュレータ87、及び、レギュレータ87にて生成された電源電圧を受けて動作する制御回路90が備えられている。
The external device 8 can be connected to the electric tool 2 and a charger 6 (see FIG. 2) described later via terminals 81, 82, 83, and 84.
Then, the external device 8 takes in the power supplied from the power tool 2 or the charger 6 via the terminals 81 and 82, and generates the power supply voltage for driving the internal circuit by the regulator 87 and the regulator 87. A control circuit 90 that operates in response to the supplied power supply voltage is provided.

この制御回路90は、電動工具2の制御回路20と同様、MCUにて構成されており、ROM88及びRAM89を備える。そして、制御回路90は、端子83、84を介して、電動工具2の制御回路20や充電器6内の制御回路70(図2参照)との間で通信を行い、GPSモジュール85や標準電波受信モジュール86を介して得られる現在の日時を表す日時情報を提供する。   Similar to the control circuit 20 of the electric power tool 2, the control circuit 90 is configured by an MCU and includes a ROM 88 and a RAM 89. The control circuit 90 communicates with the control circuit 20 of the electric power tool 2 and the control circuit 70 (see FIG. 2) in the charger 6 via the terminals 83 and 84, and the GPS module 85 and the standard radio wave. Date and time information representing the current date and time obtained via the receiving module 86 is provided.

次に、バッテリパック4には、上述したバッテリ端子31、グランド端子32に加えて、通信端子33、34が備えられている。
この通信端子33、34は、バッテリパック4を電動工具2若しくは充電器6に装着した際、電動工具2の通信端子13、14若しくは充電器6の通信端子53、54(図2参照)に接続される。
Next, the battery pack 4 includes communication terminals 33 and 34 in addition to the battery terminal 31 and the ground terminal 32 described above.
The communication terminals 33 and 34 are connected to the communication terminals 13 and 14 of the electric tool 2 or the communication terminals 53 and 54 of the charger 6 (see FIG. 2) when the battery pack 4 is attached to the electric tool 2 or the charger 6. Is done.

従って、バッテリパック4内の制御回路40は、通信端子33、34を介して、電動工具2内の制御回路20若しくは充電器6内の制御回路70との間で通信が可能である。
なお、バッテリパック4内の制御回路40と、電動工具2若しくは充電器6の制御回路20、70との間の通信は、バッテリパック4がスレーブ、電動工具2若しくは充電器6がマスタとなり、電動工具2若しくは充電器6の制御の下に行われる。
Therefore, the control circuit 40 in the battery pack 4 can communicate with the control circuit 20 in the electric power tool 2 or the control circuit 70 in the charger 6 via the communication terminals 33 and 34.
Communication between the control circuit 40 in the battery pack 4 and the control circuits 20 and 70 of the electric tool 2 or the charger 6 is performed by the battery pack 4 as a slave and the electric tool 2 or the charger 6 as a master. This is performed under the control of the tool 2 or the charger 6.

また、バッテリパック4は、図2に示す充電器6に装着した際、バッテリ端子31及びグランド端子32が、充電器6側のバッテリ端子51及びグランド端子52に接続される
ことにより、充電器6からバッテリ36を充電できるようにされている。
Further, when the battery pack 4 is attached to the charger 6 shown in FIG. 2, the battery terminal 31 and the ground terminal 32 are connected to the battery terminal 51 and the ground terminal 52 on the charger 6 side, whereby the charger 6. The battery 36 can be charged.

また、バッテリパック4には、充電器6に装着された際に、充電器6の電源端子55に接続されて、充電器6から電源電圧Vccの供給を受ける電源端子35が設けられている。そして、この電源端子35には、充電器6からの供給電圧により、バッテリパック4が充電器6に装着されたことを検出する充電器検出回路43が接続されている。   Further, the battery pack 4 is provided with a power supply terminal 35 that is connected to the power supply terminal 55 of the charger 6 and receives the supply of the power supply voltage Vcc from the charger 6 when the battery pack 4 is attached. The power supply terminal 35 is connected to a charger detection circuit 43 that detects that the battery pack 4 is attached to the charger 6 by a supply voltage from the charger 6.

次に、バッテリパック4内では、バッテリ36の正極側とバッテリ端子31とを接続する電源ラインに、バッテリ電圧を測定する電圧測定回路37が設けられている。また、バッテリ36の負極側とグランド端子32とを接続するグランドラインには、バッテリ36に流れるバッテリ電流(詳しくはバッテリ36への充電電流及びバッテリ36からの放電電流)を検出する電流測定回路38が設けられている。   Next, in the battery pack 4, a voltage measurement circuit 37 that measures the battery voltage is provided on a power supply line that connects the positive electrode side of the battery 36 and the battery terminal 31. In addition, a current measurement circuit 38 that detects a battery current flowing through the battery 36 (specifically, a charging current to the battery 36 and a discharging current from the battery 36) is connected to the ground line connecting the negative electrode side of the battery 36 and the ground terminal 32. Is provided.

また、バッテリパック4には、バッテリ36の温度を検出する温度測定回路39、バッテリ36から電源供給を受けて内部回路駆動用の電源電圧(直流定電圧)を生成するレギュレータ44、及び、不揮発性メモリ45も設けられている。   The battery pack 4 includes a temperature measurement circuit 39 that detects the temperature of the battery 36, a regulator 44 that receives power supply from the battery 36 and generates a power supply voltage (DC constant voltage) for driving an internal circuit, and a nonvolatile A memory 45 is also provided.

次に、バッテリパック4内の制御回路40は、電動工具2や外部機器8の制御回路20、90と同様、MCUにて構成されており、ROM41及びRAM42を備える。
そして、制御回路40は、通信端子33、34を介して電動工具2からモータ21の駆動開始が通知されると、電圧測定回路37、電流測定回路38、及び温度測定回路39を介して、バッテリ電圧、バッテリ電流、バッテリ温度を検出し、その検出結果を電動工具2の制御回路20に通知する。
Next, the control circuit 40 in the battery pack 4 is configured by an MCU, like the control circuits 20 and 90 of the electric power tool 2 and the external device 8, and includes a ROM 41 and a RAM 42.
When the control circuit 40 is notified of the start of driving of the motor 21 from the electric tool 2 via the communication terminals 33 and 34, the battery is passed through the voltage measurement circuit 37, the current measurement circuit 38, and the temperature measurement circuit 39. The voltage, battery current, and battery temperature are detected, and the detection result is notified to the control circuit 20 of the power tool 2.

また、制御回路40は、充電器検出回路43を介してバッテリパック4が充電器6に装着されていることを検知した際にも、上記各測定回路37〜39を介して、バッテリ電圧、バッテリ電流、バッテリ温度を検出し、充電器6の制御回路70からの要求に従い、これら検出結果を通知する。   In addition, when the control circuit 40 detects that the battery pack 4 is attached to the charger 6 via the charger detection circuit 43, the control circuit 40 sends the battery voltage and the battery via the measurement circuits 37 to 39. The current and battery temperature are detected, and the detection results are notified in accordance with a request from the control circuit 70 of the charger 6.

また、制御回路40は、起動中、バッテリパック4の動作を監視し、その監視結果である動作履歴を履歴情報として不揮発性メモリ45に格納する。
次に、充電器6には、図2に示すように、バッテリパック4が装着された際に、バッテリパック4のバッテリ端子31、グランド端子32、通信端子33、34、及び電源端子35に接続される、バッテリ端子51、グランド端子52、通信端子53、54、及び電源端子55が備えられている。
Further, the control circuit 40 monitors the operation of the battery pack 4 during startup, and stores the operation history as the monitoring result in the nonvolatile memory 45 as history information.
Next, as shown in FIG. 2, the battery pack 4 is connected to the battery terminal 31, the ground terminal 32, the communication terminals 33 and 34, and the power supply terminal 35 of the battery pack 4 when the battery pack 4 is attached to the charger 6. The battery terminal 51, the ground terminal 52, the communication terminals 53 and 54, and the power supply terminal 55 are provided.

また、充電器6には、電源プラグ61を介して商用電源から入力される交流電圧を整流・平滑する整流平滑回路62と、整流平滑回路62からの出力によりバッテリ36への充電電圧及び内部回路駆動用の電源電圧(直流定電圧)Vccをそれぞれ生成するメインコンバータ63及びサブコンバータ64が備えられている。   The charger 6 includes a rectifying / smoothing circuit 62 for rectifying and smoothing an AC voltage input from a commercial power supply via a power plug 61, and a charging voltage for the battery 36 and an internal circuit by an output from the rectifying / smoothing circuit 62. A main converter 63 and a sub-converter 64 for generating a driving power supply voltage (DC constant voltage) Vcc are provided.

そして、サブコンバータ64にて生成された電源電圧Vccは、制御回路90を始めとする充電器6の内部回路に供給され、更に、電源端子53を介してバッテリパック4にも出力される。   The power supply voltage Vcc generated by the sub-converter 64 is supplied to the internal circuit of the charger 6 including the control circuit 90, and is also output to the battery pack 4 via the power supply terminal 53.

また、メインコンバータ63の出力は、バッテリ端子51に接続されており、その接続経路(換言すればバッテリ36への正極側の充電経路)には、充電電圧を測定するための電圧測定回路65、及び、過電圧保護回路66が設けられている。   The output of the main converter 63 is connected to the battery terminal 51, and a voltage measuring circuit 65 for measuring the charging voltage is connected to the connection path (in other words, the charging path on the positive electrode side to the battery 36). An overvoltage protection circuit 66 is provided.

なお、過電圧保護回路66は、充電電圧が過大になったときに、メインコンバータ63
内のスイッチング素子をPWM制御するPWM制御IC67に停止指令を出力することで、バッテリ36への充電を停止させるためのものである。
The overvoltage protection circuit 66 is configured so that the main converter 63 is activated when the charging voltage becomes excessive.
This is to stop the charging of the battery 36 by outputting a stop command to the PWM control IC 67 that performs PWM control of the switching element.

また、グランド端子52からメインコンバータ63及びサブコンバータ64に至る負極側の充電経路には、電流測定回路68が設けられている。そして、この電流測定回路68及び電圧測定回路65による測定結果は、制御回路70に入力される。   A current measurement circuit 68 is provided on the negative-side charging path from the ground terminal 52 to the main converter 63 and the sub-converter 64. The measurement results obtained by the current measurement circuit 68 and the voltage measurement circuit 65 are input to the control circuit 70.

制御回路70は、電動工具2やバッテリパック4の制御回路20、40と同様、MCUにて構成されており、ROM71及びRAM72を備える。
そして、制御回路70は、通信端子53、54を介して、バッテリパック4からバッテリ36の状態(バッテリ温度等)を取り込み、その取り込んだバッテリ状態、及び、電流測定回路68、電圧測定回路65により検出された充電電流及び充電電圧に基づき、PWM制御IC67によるメインコンバータ63の制御パラメータ(駆動デューティ等)を設定する。
The control circuit 70 is configured by an MCU, like the control circuits 20 and 40 of the electric power tool 2 and the battery pack 4, and includes a ROM 71 and a RAM 72.
The control circuit 70 takes in the state of the battery 36 (battery temperature, etc.) from the battery pack 4 via the communication terminals 53 and 54, and uses the taken-in battery state, the current measuring circuit 68, and the voltage measuring circuit 65 Based on the detected charging current and charging voltage, the control parameters (drive duty, etc.) of the main converter 63 by the PWM control IC 67 are set.

また、制御回路70には、充電器6の動作履歴を表す履歴情報を記憶するための不揮発性メモリ69が接続されており、制御回路70は、バッテリ36への充電動作など、各種動作履歴を履歴情報として不揮発性メモリ69に格納する。   The control circuit 70 is connected to a non-volatile memory 69 for storing history information representing the operation history of the charger 6. The control circuit 70 stores various operation histories such as a charging operation for the battery 36. Stored in the nonvolatile memory 69 as history information.

また、充電器6には、外部機器8に接続するための端子56、57、58、59が設けられている。
このうち、端子56、57は、バッテリ端子51及びグランド端子52にそれぞれ接続されて、バッテリパック4に供給する充電電圧を外部機器8にも供給できるようにするためのものであり、端子58、59は、制御回路70を、外部機器8と通信可能に接続するためのものである。
Further, the charger 6 is provided with terminals 56, 57, 58 and 59 for connection to the external device 8.
Among these, the terminals 56 and 57 are connected to the battery terminal 51 and the ground terminal 52, respectively, so that the charging voltage supplied to the battery pack 4 can be supplied also to the external device 8. 59 is for connecting the control circuit 70 to the external device 8 so as to be communicable.

そして、制御回路70は、端子58、59を介して外部機器8と通信を行うことで、外部機器8から現在の日時情報を取得する。
以上説明したように、電動工具2、バッテリパック4及び充電器6において、制御回路20、40及び70は、それぞれ、モータ21の駆動制御、バッテリ36の充放電制御(詳しくはバッテリ充・放電時の状態監視)、及び、バッテリ36に対する充電制御を実行する。
Then, the control circuit 70 acquires current date and time information from the external device 8 by communicating with the external device 8 via the terminals 58 and 59.
As described above, in the electric power tool 2, the battery pack 4, and the charger 6, the control circuits 20, 40, and 70 are respectively the drive control of the motor 21 and the charge / discharge control of the battery 36 (specifically, when the battery is charged / discharged). State monitoring) and charging control for the battery 36 is executed.

また、各制御回路20、40、70は、これら各制御のための制御処理実行時に、各装置(電動工具2、バッテリパック4、充電器6)の動作状態を監視し、動作状態が変化したときや異常が発生したときには、履歴を残すべきイベントが発生したものと判断して、その旨を表す履歴情報を不揮発性メモリ27、45、69に格納する。   Each control circuit 20, 40, 70 monitors the operating state of each device (power tool 2, battery pack 4, charger 6) during execution of the control processing for each of these controls, and the operating state has changed. When an event or abnormality occurs, it is determined that an event that should have a history has occurred, and history information indicating that fact is stored in the nonvolatile memories 27, 45, and 69.

また、各制御回路20、40、70は、不揮発性メモリ27、45、69に履歴情報を格納する際、その履歴情報に対応した動作発生時の日時を表す日時情報を、履歴情報に付与する。   Further, when storing the history information in the nonvolatile memories 27, 45, 69, each control circuit 20, 40, 70 gives the history information date / time information indicating the date / time when the operation corresponding to the history information occurred. .

そして、その日時情報に誤りがあると、各装置のトレーサビリティ管理を正確に行うことができないため、各制御回路20、40、70は、外部機器8から日時情報を取得する。なお、バッテリパック4は、外部機器8に直接接続することができないので、電動工具2又は充電器6を介して、外部機器8から日時情報を取得する。   If there is an error in the date / time information, the traceability management of each device cannot be performed accurately, and each control circuit 20, 40, 70 acquires the date / time information from the external device 8. Since the battery pack 4 cannot be directly connected to the external device 8, the date and time information is acquired from the external device 8 via the power tool 2 or the charger 6.

次に、電動工具2、バッテリパック4及び充電器6の制御回路20、40、70において実行される制御処理について説明する。
[電動工具2の制御回路20による制御処理]
図3に示すように、電動工具2の制御回路20においては、レギュレータ28から電源が投入されて、制御処理を開始すると、S100(Sはステップを表す)にて、モータ21の駆動制御に用いられる各種パラメータや後述する各種フラグを初期設定する初期化処理を実行する。
Next, control processing executed in the control circuits 20, 40, and 70 of the electric tool 2, the battery pack 4, and the charger 6 will be described.
[Control processing by the control circuit 20 of the electric tool 2]
As shown in FIG. 3, in the control circuit 20 of the electric tool 2, when power is turned on from the regulator 28 and control processing is started, it is used for drive control of the motor 21 in S 100 (S represents a step). An initialization process for initializing various parameters and various flags to be described later is executed.

また、この初期化処理では、後述の処理で新たな履歴情報を生成して不揮発性メモリ27に書き込むために、現在不揮発性メモリ27に格納されている履歴情報の中から、電動工具2の動作履歴として保存される異常状態の検出回数を読み込む。   In this initialization process, in order to generate new history information and write it to the nonvolatile memory 27 in the process described later, the operation of the power tool 2 is selected from the history information currently stored in the nonvolatile memory 27. Reads the number of abnormal state detections saved as history.

つまり、電動工具2においては、制御回路20のスリープ状態への移行時、バッテリ電圧の低下時、モータ21の過負荷運転時、モータ21の過熱時、バッテリ36の状態異常時、及び、制御モードの切り替え時に、それぞれ、図4に示す記憶内容1〜6の履歴情報を不揮発性メモリ27に格納するようにされている。   That is, in the power tool 2, when the control circuit 20 shifts to the sleep state, when the battery voltage decreases, when the motor 21 is overloaded, when the motor 21 is overheated, when the state of the battery 36 is abnormal, and when the control mode is At the time of switching, the history information of the stored contents 1 to 6 shown in FIG.

そして、制御回路20のスリープ状態への移行時には、履歴情報として、バッテリ電圧の低下、モータ21の過負荷、モータ21の過熱(高温)、及び、バッテリ異常の過去の検出回数を表す回数情報「1」に、日時情報「7」を付与したもの(記憶内容1)が、不揮発性メモリ27に格納される。   Then, when the control circuit 20 shifts to the sleep state, the history information includes the number of times “ The information (stored content 1) provided with date information “7” to “1” is stored in the nonvolatile memory 27.

また、回数情報「1」は、電圧低下検出時、過負荷検出時、高温検出時、バッテリ異常検出時、及び、制御モードの切り替え時にも、履歴情報として、不揮発性メモリ27に格納される。   The count information “1” is also stored in the nonvolatile memory 27 as history information at the time of voltage drop detection, overload detection, high temperature detection, battery abnormality detection, and control mode switching.

これは、不揮発性メモリ27に履歴情報を書き込む際に、不揮発性メモリ27の容量不足によって、過去の履歴情報を消去したとしても、最新の履歴情報から、過去の異常内容と発生回数を検知できるようにするためである。   This is because when past history information is written to the non-volatile memory 27, even if past history information is erased due to insufficient capacity of the non-volatile memory 27, past abnormal contents and the number of occurrences can be detected from the latest history information. It is for doing so.

このため、S100の初期化処理では、不揮発性メモリ27に格納された最新の履歴情報から上記各異常状態の検出回数を読み込むことで、その後、上記各異常検出時に検出回数を更新し、その更新された検出回数を付与した履歴情報を、不揮発性メモリ27に保存できるようにしている。   For this reason, in the initialization process of S100, the number of detections of each abnormal state is read from the latest history information stored in the nonvolatile memory 27, and then the number of detections is updated when each abnormality is detected. The history information to which the detected number of times is given can be stored in the nonvolatile memory 27.

なお、電圧低下検出時、過負荷検出時、高温検出時、バッテリ異常検出時、及び、制御モードの切り替え時に、不揮発性メモリ27に格納される履歴情報は、図4に記憶内容2〜6として記載されている通りである。   The history information stored in the non-volatile memory 27 at the time of voltage drop detection, overload detection, high temperature detection, battery abnormality detection, and control mode switching is shown in FIG. As described.

すなわち、電圧低下検出時には、そのときの制御モード、モータ駆動時間、及びバッテリ電圧を表す情報「2」に、回数情報「1」と日時情報「7」を付与したもの(記憶内容2)が、履歴情報として不揮発性メモリ27に格納される。   That is, when the voltage drop is detected, information (2) indicating the control mode, motor drive time, and battery voltage at that time is added with the count information “1” and the date information “7” (stored content 2). It is stored in the nonvolatile memory 27 as history information.

また、過負荷検出時には、そのときの制御モード、電流分布、及び、モータ駆動時間を表す情報「3」に、回数情報「1」と日時情報「7」を付与したもの(記憶内容3)が、履歴情報として不揮発性メモリ27に格納される。   When overload is detected, information (3) indicating the control mode, current distribution, and motor driving time at that time is added with number information “1” and date / time information “7” (stored content 3). The history information is stored in the nonvolatile memory 27.

また、高温検出時には、過負荷検出時の情報「3」と同様、そのときの制御モード、電流分布、及び、モータ駆動時間を表す情報「4」に、回数情報「1」と日時情報「7」を付与したもの(記憶内容4)が、履歴情報として不揮発性メモリ27に格納される。   Further, at the time of detecting a high temperature, similarly to the information “3” at the time of overload detection, the information “4” indicating the control mode, current distribution, and motor driving time at that time, the number information “1” and the date information “7” (Stored content 4) is stored in the nonvolatile memory 27 as history information.

また、バッテリ異常検出時には、そのときの制御モード、コントローラ(つまり制御回路20)の温度、バッテリ36の状態情報、及び、電流分布を表す情報「5」に、回数情
報「1」と日時情報「7」を付与したもの(記憶内容5)が、履歴情報として不揮発性メモリ27に格納される。
When the battery abnormality is detected, the number of times information “1” and date / time information “ 7 ”(stored content 5) is stored in the nonvolatile memory 27 as history information.

また、制御モードの切り替え時には、切り替え後の制御モード、コントローラ温度、及び、バッテリ電圧を表す情報「6」に、回数情報「1」と日時情報「7」を付与したもの(記憶内容6)が、履歴情報として不揮発性メモリ27に格納される。   In addition, when the control mode is switched, information (6) indicating the control mode, controller temperature, and battery voltage after switching is added with the count information “1” and the date information “7” (stored content 6). The history information is stored in the nonvolatile memory 27.

次に、S110では、トリガスイッチ23、モード切り替えスイッチ29、回転方向切り替えスイッチ(図示せず)等からのスイッチ信号を確認し、続くS120にて、バッテリ電圧、コントローラ温度、モータ電流、トリガスイッチ23の引き量等のAD変換値を取り込む。   Next, in S110, switch signals from the trigger switch 23, the mode change switch 29, the rotation direction change switch (not shown), etc. are confirmed. In S120, the battery voltage, controller temperature, motor current, trigger switch 23 are checked. The AD conversion value such as the amount of drawing is taken in.

そして、S130では、モード切り替えスイッチ29の切り替え状態に基づき制御モードを設定する制御モード設定切り替え処理を実行し、続くS140では、外部機器8及びバッテリパック4との間で通信を行う通信処理を実行する。   In S130, a control mode setting switching process for setting the control mode based on the switching state of the mode selector switch 29 is executed. In subsequent S140, a communication process for performing communication between the external device 8 and the battery pack 4 is executed. To do.

また、S150では、上述したバッテリ電圧等の異常状態を確認する異常状態確認処理を実行し、S160にて、モータ21を駆動制御するモータ制御処理を実行する。
なお、モータ制御処理では、異常状態確認処理にて、異常が検出されると、モータ21の駆動を停止し、その後、使用者によるトリガスイッチ23の操作が終了するまで、駆動停止状態を保持する。
In S150, an abnormal state confirmation process for confirming the abnormal state such as the battery voltage described above is executed, and in S160, a motor control process for driving and controlling the motor 21 is executed.
In the motor control process, if an abnormality is detected in the abnormal state confirmation process, the drive of the motor 21 is stopped, and then the drive stop state is maintained until the user finishes operating the trigger switch 23. .

次に、S170では、不揮発性メモリ27への履歴情報の書き込みを行うメモリ操作処理を実行し、続くS180では、外部機器8から取得した日時情報に基づき、現在の日時を更新(カウントアップ)する、取得日時カウントアップ処理を実行する。   Next, in S170, a memory operation process for writing history information to the nonvolatile memory 27 is executed, and in subsequent S180, the current date and time is updated (counted up) based on the date and time information acquired from the external device 8. The acquisition date / time count-up process is executed.

そして、最後に、S190にて、トリガスイッチ23等のスイッチ操作がない状態が所定時間以上経過しているときにスリープ状態に移行し、スリープ状態への移行後にトリガスイッチ23等のスイッチ操作があるとウェイクアップする、スリープ処理を実行する。   Finally, in S190, when the state where there is no switch operation such as the trigger switch 23 has passed for a predetermined time or more, the state transitions to the sleep state, and after the transition to the sleep state, there is a switch operation such as the trigger switch 23. Wake up and execute the sleep process.

なお、スリープ処理実行後は、再度S110に移行することにより、上記一連の処理を繰り返し実行する。
次に、上記一連の処理の内、不揮発性メモリ27への履歴情報の書き込みに関連する処理について説明する。
Note that after executing the sleep process, the above-described series of processes is repeatedly executed by shifting to S110 again.
Next, processing related to writing history information to the nonvolatile memory 27 in the series of processing will be described.

図5に示すように、S130のモード設定切り替え処理では、まずS131にて、使用者によるモード切り替えスイッチ29の操作があったか否か判断する。
そして、モード切り替えスイッチ29の操作がなければ、当該モード設定切り替え処理を終了し、モード切り替えスイッチ29の操作があれば、S132に移行して、モータ21の制御モードの設定を高速若しくは低速に切り替える。
As shown in FIG. 5, in the mode setting switching process in S130, it is first determined in S131 whether or not the user has operated the mode switching switch 29.
If there is no operation of the mode change switch 29, the mode setting change process is terminated, and if there is an operation of the mode change switch 29, the process proceeds to S132 and the setting of the control mode of the motor 21 is changed to high speed or low speed. .

また、制御モードの切り替え後は、その切り替え動作を動作履歴として残すために、S133にて、書き込み要求フラグをセットし、当該モード設定切り替え処理を終了する。
次に、図6に示すように、S140の通信処理では、まずS201にて、外部機器8から通信があったか否かを判断する。
In addition, after the control mode is switched, in order to leave the switching operation as an operation history, a write request flag is set in S133, and the mode setting switching process ends.
Next, as shown in FIG. 6, in the communication process of S140, first, in S201, it is determined whether or not there is communication from the external device 8.

そして、外部機器8から通信があれば、S202に移行して、外部機器8からの送信データの中から、現在の日時情報を取得し、S203にて、外部日時取得完了フラグをセットする。また、続くS204では、外部日時受け渡し完了フラグをクリアし、S209に移行する。   If there is communication from the external device 8, the process proceeds to S202, where the current date / time information is acquired from the transmission data from the external device 8, and the external date / time acquisition completion flag is set in S203. In subsequent S204, the external date / time transfer completion flag is cleared, and the process proceeds to S209.

なお、外部日時受け渡し完了フラグは、外部機器8から取得した日時情報をバッテリパック4へ通知したか否かを表すフラグであり、このフラグがクリアされている場合、日時情報の受け渡しは完了していないことを表している。   The external date / time delivery completion flag is a flag indicating whether or not the date / time information acquired from the external device 8 has been notified to the battery pack 4. If this flag is cleared, the date / time information delivery has been completed. It means not.

次に、S201にて、外部機器8からの通信はないと判断されると、S205に移行して、外部日時取得完了フラグはセットされているか否かを判断する。
そして、外部日時取得完了フラグがセットされていれば、既に外部機器8から日時情報を取得しているので、S209に移行し、外部日時取得完了フラグがセットされていなければ、S206に移行する。
Next, when it is determined in S201 that there is no communication from the external device 8, the process proceeds to S205, and it is determined whether or not the external date / time acquisition completion flag is set.
If the external date / time acquisition completion flag is set, the date / time information has already been acquired from the external device 8, and the process proceeds to S209. If the external date / time acquisition completion flag is not set, the process proceeds to S206.

S206では、バッテリ日時取得完了フラグがセットされているか否かを判断することにより、バッテリパック4から日時情報を取得したか否かを判断する。そして、バッテリ日時完了フラグがセットされていれば、バッテリパック4から日時情報が取得されているので、S209に移行する。   In S206, it is determined whether date / time information has been acquired from the battery pack 4 by determining whether the battery date / time acquisition completion flag is set. If the battery date / time completion flag is set, the date / time information has been acquired from the battery pack 4, and the process proceeds to S209.

また、バッテリ日時完了フラグがセットされていなければ、日時情報は、外部機器8からもバッテリパック4からも取得されていないので、S207に移行し、バッテリパック4に日時情報を要求することで、バッテリパック4から現在の日時情報を取得する。   If the battery date / time completion flag is not set, the date / time information has not been acquired from the external device 8 or the battery pack 4, so the process proceeds to S207 to request the date / time information from the battery pack 4. Current date / time information is acquired from the battery pack 4.

そして、続くS208では、バッテリ日時取得完了フラグをセットし、S209に移行する。
なお、外部機器8から日時情報を取得できていないときに、バッテリパック4から日時情報を取得するのは、バッテリパック4ではバッテリ36が放電していない限り、制御回路40がバッテリ36からの電源供給を受けて日時の計測を行っているからである。
In subsequent S208, the battery date / time acquisition completion flag is set, and the process proceeds to S209.
When the date / time information cannot be acquired from the external device 8, the date / time information is acquired from the battery pack 4 as long as the battery 36 does not discharge the battery 36 and the control circuit 40 supplies power from the battery 36. This is because the date and time are measured after receiving the supply.

つまり、電動工具2は、バッテリパック4が装着されていなければ完全に動作を停止し、日時を計測することができないことから、バッテリパック4が装着されて制御回路20が起動した直後には、少なくともバッテリパック4から日時情報を取得できるようにしているのである。   That is, the power tool 2 completely stops operating unless the battery pack 4 is attached, and cannot measure the date and time, so immediately after the battery pack 4 is attached and the control circuit 20 is activated, The date and time information can be acquired from at least the battery pack 4.

次に、S209では、外部日時受け渡し完了フラグがセットされているか否かを判断し、外部日時受け渡し完了フラグがセットされていれば、S212に移行し、外部日時受け渡し完了フラグがセットされていなければ、S210に移行する。   Next, in S209, it is determined whether or not the external date / time delivery completion flag is set. If the external date / time delivery completion flag is set, the process proceeds to S212, and if the external date / time delivery completion flag is not set. The process proceeds to S210.

S210では、外部機器8から取得した日時情報に基づく現在の日時情報をバッテリパック4へ通知することで、バッテリパック4にて計測されている日時情報を、正確な日時情報に更新させる。そして、その後は、S211にて、外部日時受け渡し完了フラグをセットし、S212に移行する。   In S210, the current date and time information based on the date and time information acquired from the external device 8 is notified to the battery pack 4, thereby updating the date and time information measured by the battery pack 4 to accurate date and time information. Thereafter, in S211, an external date / time delivery completion flag is set, and the process proceeds to S212.

S212では、バッテリ状態取得フラグがセットされているか否かを判断する。このバッテリ状態取得フラグは、以降の処理で、バッテリパック4からバッテリ温度やバッテリ電圧等のバッテリ状態を表すバッテリ状態情報が取得された際にセットされるフラグであり、バッテリ状態取得フラグがセットされていなければ、S213に移行する。   In S212, it is determined whether or not a battery state acquisition flag is set. This battery state acquisition flag is a flag that is set when battery state information indicating the battery state such as the battery temperature and the battery voltage is acquired from the battery pack 4 in the subsequent processing, and the battery state acquisition flag is set. If not, the process proceeds to S213.

S213では、バッテリパック4にバッテリ状態情報を要求することにより、バッテリパック4からバッテリ状態情報を取得する。そして、続くS214では、その取得したバッテリ状態情報に基づき、バッテリ36に異常があるか否かを判断し、バッテリ36に異常があれば、S215に移行して、バッテリ異常フラグをセットする。そして、その後にS216に移行して、バッテリ状態取得フラグをセットし、当該通信処理を終了する。   In S <b> 213, the battery state information is acquired from the battery pack 4 by requesting the battery state information from the battery pack 4. In subsequent S214, it is determined whether or not there is an abnormality in the battery 36 based on the acquired battery state information. If there is an abnormality in the battery 36, the process proceeds to S215 and a battery abnormality flag is set. Then, the process proceeds to S216, the battery state acquisition flag is set, and the communication process is terminated.

S214にて、バッテリ36に異常はないと判断されると、当該通信処理を終了する。
また、S212にて、バッテリ状態取得フラグがセットされていると判断された場合にも、当該通信処理を終了する。
If it is determined in S214 that there is no abnormality in battery 36, the communication process is terminated.
Further, when it is determined in S212 that the battery state acquisition flag is set, the communication process is ended.

次に、図7に示すように、S150の異常状態確認処理では、まずS151にて、上述した電圧低下、過負荷、高温、バッテリ異常等の異常状態が発生しているかどうかを確認し、S152に移行する。   Next, as shown in FIG. 7, in the abnormal state confirmation processing in S150, first, in S151, it is confirmed whether or not the abnormal state such as the above-described voltage drop, overload, high temperature, battery abnormality or the like has occurred. Migrate to

S152では、異常検出中フラグがセットされているか否かを判断し、異常検出中フラグがセットされていなければ、S153にて、S151では何らかの異常状態が検出されたか否かを判断する。   In S152, it is determined whether an abnormal detection flag is set. If the abnormal detection flag is not set, it is determined in S153 whether any abnormal state is detected in S151.

S153にて、異常状態が検出されていると判断されると、その検出した異常状態を電動工具2の動作履歴として残すために、S154に移行して、書き込み要求フラグをセットし、続くS155にて、異常検出中フラグをセットする。   If it is determined in S153 that an abnormal state has been detected, in order to leave the detected abnormal state as the operation history of the power tool 2, the process proceeds to S154, the write request flag is set, and the subsequent S155 To set the abnormal detection flag.

そして、S153にて異常状態が検出されていないと判断されるか、或いは、S155にて異常検出中フラグをセットすると、当該異常状態確認処理を終了する。
一方、S152にて、異常検出中フラグがセットされていると判断された場合には、S156に移行して、使用者によるトリガスイッチ23の操作が終了したか否かを判断する。
If it is determined in S153 that no abnormal state has been detected, or if an abnormal detection flag is set in S155, the abnormal state confirmation processing is terminated.
On the other hand, if it is determined in S152 that the abnormality detection flag is set, the process proceeds to S156 to determine whether or not the operation of the trigger switch 23 by the user is completed.

そして、トリガスイッチ23の操作が終了していなければ、当該異常状態確認処理を終了する。また、トリガスイッチ23の操作が終了していれば、S157にて、異常検出中フラグをクリアし、S158にて、バッテリ異常フラグ及びバッテリ状態取得フラグをクリアした後、当該異常確認処理を終了する。   If the operation of the trigger switch 23 has not ended, the abnormal state confirmation process ends. If the operation of the trigger switch 23 has been completed, the abnormality detection flag is cleared in S157, the battery abnormality flag and the battery state acquisition flag are cleared in S158, and then the abnormality confirmation process is terminated. .

なお、このように、使用者によるトリガスイッチ23の操作が終了しているときに上記各フラグをクリアするのは、使用者によるトリガスイッチ23の操作が一旦終了し、その後、トリガスイッチ23が操作された際には、S160のモータ制御処理にて、モータ21が駆動されるからである。   As described above, when the operation of the trigger switch 23 is completed by the user, the above-described flags are cleared because the operation of the trigger switch 23 by the user is once completed and then the trigger switch 23 is operated. This is because the motor 21 is driven in the motor control process of S160 when the operation is performed.

つまり、本実施形態では、トリガスイッチ23の操作が終了した際に、上記各フラグをクリアすることで、次のモータ駆動時にも、異常状態の検出を実施できるようにしているのである。   That is, in the present embodiment, when the operation of the trigger switch 23 is finished, the respective flags are cleared so that the abnormal state can be detected even when the next motor is driven.

そして、本実施形態では、異常状態が検出された際には、書き込み要求フラグがセットされるので、異常状態が検出される度に、その旨を表す履歴情報が検出回数と共に不揮発性メモリ27に記憶されることになる。   In this embodiment, when an abnormal state is detected, a write request flag is set. Therefore, every time an abnormal state is detected, history information indicating that fact is stored in the nonvolatile memory 27 together with the number of detections. Will be remembered.

次に、図8に示すように、S170のメモリ操作処理では、まずS171にて、書き込み要求フラグがセットされているか否かを判断する。
そして、書き込み要求フラグがセットされていなければ、当該メモリ操作処理を終了し、書き込み要求フラグがセットされていれば、S172に移行して、不揮発性メモリ27に、新たな履歴情報を書き込み可能な領域(書き込み可能領域)があるか否かを判断する。
Next, as shown in FIG. 8, in the memory operation process of S170, first, in S171, it is determined whether or not the write request flag is set.
If the write request flag is not set, the memory operation process is terminated. If the write request flag is set, the process proceeds to S172, and new history information can be written to the nonvolatile memory 27. It is determined whether or not there is an area (writable area).

不揮発性メモリ27に履歴情報の書き込み可能領域がない場合には、S173にて、不揮発性メモリ27の記憶領域の全域若しくは一部を消去した後、S174に移行し、不揮
発性メモリ27に書き込み可能領域がある場合には、そのままS174に移行する。
If there is no history information writable area in the non-volatile memory 27, the whole or part of the storage area of the non-volatile memory 27 is erased in S 173, and then the process proceeds to S 174 where the non-volatile memory 27 can be written. If there is an area, the process proceeds to S174 as it is.

S174では、不揮発性メモリ27に履歴情報を書き込むための書き込みデータを用意し、S175にて、その用意した書き込みデータ(つまり履歴情報)を、不揮発性メモリ27に格納する。そして、最後に、S176にて、書き込み要求フラグをクリアし、当該メモリ操作処理を終了する。   In S174, write data for writing history information to the nonvolatile memory 27 is prepared. In S175, the prepared write data (that is, history information) is stored in the nonvolatile memory 27. Finally, in S176, the write request flag is cleared, and the memory operation process ends.

ここで、S174の書き込みデータ用意処理は、図9に示す手順で実行される。
すなわち、書き込みデータ用意処理では、まずS220にて、S190のスリープ処理にてスリープ状態への移行時にセットされるスリープ移行要求フラグが、セットされているか否かを判断する。
Here, the write data preparation process of S174 is executed according to the procedure shown in FIG.
That is, in the write data preparation process, first, in S220, it is determined whether or not the sleep transition request flag that is set at the time of transition to the sleep state in the sleep process of S190 is set.

そして、スリープ移行要求フラグがセットされていれば、S221に移行して、図4に示した記憶内容1を構成している各情報(電圧低下回数、過負荷検出回数、高温検出回数、バッテリ異常検出回数、現在日時を表す日時情報)の最新値を取得し、S222にて、スリープ移行許可フラグをセットした後、当該書き込みデータ用意処理を終了する。   If the sleep transition request flag is set, the process proceeds to S221, where each piece of information (voltage drop count, overload detection count, high temperature detection count, battery abnormality) constituting the stored content 1 shown in FIG. The latest value of the number of times of detection and date / time information indicating the current date / time is acquired, and after setting the sleep transition permission flag in S222, the write data preparation process is terminated.

次に、S220にて、スリープ移行要求フラグはセットされていないと判断されると、S230にて、S150の異常状態確認処理にて、バッテリ電圧の低下が検出されているか否かを判断する。   Next, if it is determined in S220 that the sleep transition request flag is not set, it is determined in S230 whether or not a decrease in battery voltage is detected in the abnormal state confirmation processing in S150.

そして、バッテリ電圧の低下が検出されていれば、S231に移行して、電圧低下検出回数をインクリメント(+1)し、続くS232にて、図4に示した記憶内容2を構成している情報(モード設定、モータ駆動時間、バッテリ電圧、日時情報、及び、各異常状態の検出回数)の最新値を取得し、当該書き込みデータ用意処理を終了する。   If a decrease in the battery voltage is detected, the process proceeds to S231, where the number of times of voltage decrease detection is incremented (+1), and in the subsequent S232, information constituting the storage content 2 shown in FIG. The latest value of mode setting, motor driving time, battery voltage, date and time information, and the number of detections of each abnormal state) is acquired, and the write data preparation process is terminated.

次に、S230にて、バッテリ電圧の低下は検出されていないと判断された場合には、S240に移行し、S150の異常状態確認処理にて、モータ21の過負荷運転が検出されているか否かを判断する。   Next, in S230, when it is determined that a decrease in the battery voltage is not detected, the process proceeds to S240, and whether or not the overload operation of the motor 21 is detected in the abnormal state confirmation processing in S150. Determine whether.

そして、モータ21の過負荷運転が検出されていれば、S241に移行して、過負荷検出回数をインクリメント(+1)し、続くS242にて、図4に示した記憶内容3を構成している情報(モード設定、電流分布、モータ駆動時間、日時情報、及び、各異常状態の検出回数)の最新値を取得し、当該書き込みデータ用意処理を終了する。   If overload operation of the motor 21 is detected, the process proceeds to S241, where the number of overload detection is incremented (+1), and the stored content 3 shown in FIG. The latest value of information (mode setting, current distribution, motor drive time, date / time information, and number of detections of each abnormal state) is acquired, and the write data preparation process ends.

また次に、S240にて、モータ21の過負荷は検出されていないと判断された場合には、S250に移行し、S150の異常状態確認処理にて、モータ21の過熱(高温)が検出されているか否かを判断する。   Next, when it is determined in S240 that the overload of the motor 21 has not been detected, the process proceeds to S250, and overheating (high temperature) of the motor 21 is detected in the abnormal state confirmation processing in S150. Judge whether or not.

そして、モータ21の過熱(高温)が検出されていれば、S251に移行して、高温検出回数をインクリメント(+1)し、続くS252にて、図4に示した記憶内容4を構成している情報(モード設定、電流分布、モータ駆動時間、日時情報、及び、各異常状態の検出回数)の最新値を取得し、当該書き込みデータ用意処理を終了する。   If overheating (high temperature) of the motor 21 is detected, the process proceeds to S251, where the number of high temperature detections is incremented (+1), and the stored contents 4 shown in FIG. The latest value of information (mode setting, current distribution, motor drive time, date / time information, and number of detections of each abnormal state) is acquired, and the write data preparation process ends.

また、S250にて、モータ21の過熱(高温)は検出されていないと判断された場合には、S260に移行し、S150の異常状態確認処理にて、バッテリ異常が検出されているか否かを判断する。   If it is determined in S250 that overheating (high temperature) of the motor 21 has not been detected, the process proceeds to S260, and whether or not a battery abnormality is detected in the abnormal state confirmation processing in S150. to decide.

そして、バッテリ異常が検出されていれば、S261に移行して、バッテリ異常検出回数をインクリメント(+1)し、続くS262にて、図4に示した記憶内容5を構成して
いる情報(モード設定、コントローラ温度、バッテリの状態情報、電流分布、日時情報、及び、各異常状態の検出回数)の最新値を取得し、当該書き込みデータ用意処理を終了する。
If a battery abnormality is detected, the process proceeds to S261, where the number of battery abnormality detections is incremented (+1), and in the subsequent S262, the information (mode setting) constituting the storage content 5 shown in FIG. , Controller temperature, battery state information, current distribution, date and time information, and the number of detections of each abnormal state) are acquired, and the write data preparation process ends.

また、S260にて、モータ異常は検出されていないと判断された場合には、S270に移行し、S130のモード設定切り替え処理にて、制御モードの切り替えが行われたか否かを判断する。   If it is determined in S260 that no motor abnormality is detected, the process proceeds to S270, and it is determined whether or not the control mode has been switched in the mode setting switching process in S130.

そして、制御モードの切り替えが行われていれば、S272に移行して、図4に示した記憶内容6を構成している情報(モード設定、コントローラ温度、バッテリ電圧、日時情報、及び、各異常状態の検出回数)の最新値を取得し、当該書き込みデータ用意処理を終了する。また、S270にて、制御モードの切り替えは行われていないと判断された場合にも、当該書き込みデータ用意処理を終了する。   If the control mode has been switched, the process proceeds to S272, and information (mode setting, controller temperature, battery voltage, date / time information, and each abnormality) constituting the storage content 6 shown in FIG. The latest value of the number of state detections) is acquired, and the write data preparation process ends. If it is determined in S270 that the control mode has not been switched, the write data preparation process is also terminated.

このように、S170のメモリ操作処理では、書き込み要求フラグがセットされているとき、S174の書き込みデータ用意処理を実行することにより、不揮発性メモリ27に書き込むべき履歴情報(図4に示す記憶内容1〜6)を構成する各種情報を収集する。そして、続くS175にて、その収集した各種情報に基づき、履歴情報を生成し、不揮発性メモリ27に格納する。   As described above, in the memory operation process in S170, when the write request flag is set, the write data preparation process in S174 is executed, whereby history information to be written in the nonvolatile memory 27 (stored content 1 shown in FIG. 4). Collect various types of information that constitutes ~ 6). In subsequent S 175, history information is generated based on the collected information and stored in the nonvolatile memory 27.

次に、図10に示すように、S180の取得日時カウントアップ処理では、まずS181にて、第1更新完了フラグがセットされているか否かを判断する。
また、第1更新完了フラグがセットされていなければ、S182に移行し、S140の通信処理にて外部機器8から日時情報を取得した際にセットされる外部日時取得完了フラグがセットされているか否かを判断する。
Next, as shown in FIG. 10, in the acquisition date count-up process in S180, it is first determined in S181 whether or not the first update completion flag is set.
If the first update completion flag is not set, the process proceeds to S182, and whether or not the external date / time acquisition completion flag that is set when date / time information is acquired from the external device 8 in the communication processing of S140 is set. Determine whether.

そして、S182にて、外部日時取得完了フラグはセットされていると判断されると、S183に移行して、制御回路20が認識している現在の日時情報を、外部機器8から取得した最新の日時情報に書き換え、S184に移行する。   If it is determined in S182 that the external date / time acquisition completion flag is set, the process proceeds to S183, and the current date / time information recognized by the control circuit 20 is acquired from the external device 8. The date information is rewritten, and the process proceeds to S184.

S184では、第1更新完了フラグをセットし、続くS189にて、S184にて更新された日時情報をカウントアップすることで、現在の日時情報を更新し、当該取得日時カウントアップ処理を終了する。   In S184, the first update completion flag is set, and in the subsequent S189, the current date information is updated by counting up the date information updated in S184, and the acquisition date count-up process ends.

なお、S189による日時情報のカウントアップは、S181にて、第1更新完了フラグがセットされていると判断された場合にも実行される。
次に、S182にて、外部日時取得完了フラグはセットされていないと判断された場合には、S185に移行し、第2更新完了フラグがセットされているか否かを判断する。
The count-up of the date / time information in S189 is also executed when it is determined in S181 that the first update completion flag is set.
Next, in S182, when it is determined that the external date / time acquisition completion flag is not set, the process proceeds to S185 to determine whether or not the second update completion flag is set.

そして、S185にて、第2更新完了フラグはセットされていないと判断されると、S186に移行し、S140の通信処理にてバッテリパック4から日時情報を取得した際にセットされるバッテリ日時取得完了フラグがセットされているか否かを判断する。   If it is determined in S185 that the second update completion flag is not set, the process proceeds to S186, and the battery date and time acquisition that is set when the date and time information is acquired from the battery pack 4 in the communication process of S140. It is determined whether the completion flag is set.

S186にて、バッテリ日時取得完了フラグはセットされていると判断されると、S187に移行して、制御回路20が認識している現在の日時情報を、バッテリパック4から取得した最新の日時情報に書き換え、S188に移行する。   If it is determined in S186 that the battery date / time acquisition completion flag is set, the process proceeds to S187, and the current date / time information recognized by the control circuit 20 is obtained from the latest date / time information acquired from the battery pack 4. To S188.

そして、S188では、第2更新完了フラグをセットし、続くS189にて、S187にて更新された日時情報をカウントアップすることで、現在の日時情報を更新し、当該取得日時カウントアップ処理を終了する。   In S188, the second update completion flag is set, and in subsequent S189, the current date information is updated by counting up the date information updated in S187, and the acquisition date count-up process ends. To do.

なお、S189による日時情報のカウントアップは、S185にて、第2更新完了フラグがセットされていると判断された場合、及び、S186にて、バッテリ日時取得完了フラグはセットされていないと判断された場合にも実行される。   The date / time information is counted up in S189 when it is determined in S185 that the second update completion flag is set, and in S186, it is determined that the battery date / time acquisition completion flag is not set. It is also executed when

このように、S180の取得日時カウントアップ処理では、S189の処理をメインルーチンの一つとして周期的にくり返し実行することで、日時情報を周期的にカウントアップし、現在の日時を計測する。   As described above, in the acquisition date and time count-up process of S180, the process of S189 is periodically repeated as one of the main routines to periodically count up the date and time information and measure the current date and time.

そして、S140の通信処理にて、外部機器8若しくはバッテリパック4から日時情報が取得されている場合には、その計測中の日時を、外部機器8若しくはバッテリパック4から取得した最新の日時情報に基づき書き換え、日時の計測を継続する。   If the date and time information is acquired from the external device 8 or the battery pack 4 in the communication processing of S140, the date and time during the measurement is updated to the latest date and time information acquired from the external device 8 or the battery pack 4. Rewrite based on and continue measuring date and time.

次に、図11に示すように、S190のスリープ処理では、S191にて、トリガスイッチ23等のスイッチ操作がない状態が所定時間以上経過しているか否かを判断し、スイッチ操作がない状態が所定時間以上経過していなければ、当該スリープ処理を終了する。   Next, as shown in FIG. 11, in the sleep process of S190, in S191, it is determined whether or not a state where there is no switch operation such as the trigger switch 23 has elapsed for a predetermined time or more. If the predetermined time or more has not elapsed, the sleep process is terminated.

一方、スイッチ操作がない状態が所定時間以上経過している場合には、S192に移行して、スリープ移行要求フラグをセットし、続くS193にて、書き込み要求フラグをセットした後、S194に移行する。   On the other hand, if the switch operation has not been performed for a predetermined time or more, the process proceeds to S192, the sleep transition request flag is set, and after the write request flag is set in S193, the process proceeds to S194. .

S194では、S174の書き込みデータ用意処理にてスリープ移行時の履歴情報(記憶内容1)を構成する各種情報が取得された際にセットされる、スリープ移行許可フラグがセットされているか否かを判断する。   In S194, it is determined whether or not the sleep transition permission flag that is set when various information constituting the history information (stored content 1) at the time of sleep transition is acquired in the write data preparation process of S174 is set. To do.

そして、スリープ移行許可フラグがセットされていなければ、当該スリープ処理を終了し、スリープ移行許可フラグがセットされていれば、S195に移行し、当該スリープ処理を含む制御処理の実行を停止することで、制御回路20の消費電力を低減するスリープ状態に移行する。   If the sleep transition permission flag is not set, the sleep process is terminated. If the sleep transition permission flag is set, the process proceeds to S195, and the execution of the control process including the sleep process is stopped. Then, the control circuit 20 shifts to a sleep state that reduces power consumption.

制御回路20は、スリープ状態への移行によって、制御処理の実行を停止するが、その後、トリガスイッチ23の操作等、予め設定されたウェイクアップ条件が成立すると、ウェイクアップする(S196)。   The control circuit 20 stops the execution of the control process by shifting to the sleep state, but then wakes up when a preset wake-up condition such as an operation of the trigger switch 23 is established (S196).

そして、ウェイクアップ後は、S197にて、スリープ移行要求フラグ及びスリープ移行許可フラグをクリアし、S198にて、外部日時取得完了フラグ及びバッテリ日時取得完了フラグをクリアし、S199にて、第1更新完了フラグ及び第2更新完了フラグをクリアすることで、これら各フラグを初期化し、当該スリープ処理を終了する。   After the wake-up, the sleep transition request flag and the sleep transition permission flag are cleared in S197, the external date / time acquisition completion flag and the battery date / time acquisition completion flag are cleared in S198, and the first update is performed in S199. By clearing the completion flag and the second update completion flag, these flags are initialized, and the sleep process ends.

以上説明したように、電動工具2においては、制御回路20のスリープ状態への移行時、各種異常検出時、及び制御モードの切り替え時に、そのときの日時を表す日時情報を含む履歴情報を不揮発性メモリ27に格納する。   As described above, in the power tool 2, when the control circuit 20 shifts to the sleep state, when various abnormalities are detected, and when the control mode is switched, history information including date and time information indicating the date and time at that time is nonvolatile. Store in the memory 27.

また、制御回路20は、起動直後に外部機器8又はバッテリパック4から日時情報を取得し、その取得した日時情報に基づき、現在の日時を計測(カウント)する。
また、起動直後にバッテリパック4から日時情報を取得した際には、その後、外部機器8から日時情報を取得すると、その日時情報に基づき、計測中の日時を更新し、更に、その日時情報をバッテリパック4に通知することで、バッテリパック4が計測中の日時を更新させる。
The control circuit 20 acquires date / time information from the external device 8 or the battery pack 4 immediately after startup, and measures (counts) the current date / time based on the acquired date / time information.
In addition, when date / time information is acquired from the battery pack 4 immediately after startup, when date / time information is acquired from the external device 8, the date / time being measured is updated based on the date / time information. By notifying the battery pack 4, the date and time that the battery pack 4 is measuring is updated.

従って、本実施形態の電動工具2によれば、制御回路20において、現在の日時を正確に把握することができ、不揮発性メモリ27に履歴情報を格納する際、履歴情報に正確な日時情報を付与することができる。   Therefore, according to the power tool 2 of the present embodiment, the control circuit 20 can accurately grasp the current date and time, and when storing history information in the nonvolatile memory 27, accurate date and time information is stored in the history information. Can be granted.

よって、電動工具2の使用者は、不揮発性メモリ27に記憶された履歴情報から、電動工具2の動作履歴を、その動作日時と共に正確に把握することができ、電動工具2のトレーサビリティ管理を適正に行うことができる。   Therefore, the user of the electric tool 2 can accurately grasp the operation history of the electric tool 2 together with the operation date and time from the history information stored in the nonvolatile memory 27, and the traceability management of the electric tool 2 is properly performed. Can be done.

また、制御回路20は、何らかの異常を検出すると、その異常内容毎に、異常検出回数をカウントし、不揮発性メモリ27に格納する履歴情報には、そのカウントした各異常の検出回数を表す回数情報を付与する。   Further, when detecting any abnormality, the control circuit 20 counts the number of abnormality detections for each abnormality content, and the history information stored in the nonvolatile memory 27 includes the number information indicating the number of times each abnormality is detected. Is granted.

このため、不揮発性メモリ27の記憶容量の制限から、最新の履歴情報を書き込む際に、古い履歴情報が消去されたとしても、不揮発性メモリ27の記憶された履歴情報から、過去に検出された異常内容とその検出回数を検知することができる。   For this reason, due to the limitation of the storage capacity of the non-volatile memory 27, even when old history information is erased when writing the latest history information, it has been detected in the past from the history information stored in the non-volatile memory 27. Abnormal content and the number of detections can be detected.

よって、本実施形態の電動工具2によれば、不揮発性メモリ27の記憶容量の制限により、電動工具2のトレーサビリティ管理を実施できなくなるのを防止できる。
なお、本実施形態の電動工具2においては、MCUにて構成され、上述した制御処理を実行する制御回路20が、本発明の通信手段、日時情報取得手段、制御手段、及び、計測手段に相当し、不揮発性メモリ27は、本発明の記憶手段に相当する。
Therefore, according to the power tool 2 of the present embodiment, it is possible to prevent the traceability management of the power tool 2 from being performed due to the limitation of the storage capacity of the nonvolatile memory 27.
In the electric power tool 2 of the present embodiment, the control circuit 20 configured by the MCU and executing the above-described control processing corresponds to the communication unit, date / time information acquisition unit, control unit, and measurement unit of the present invention. The nonvolatile memory 27 corresponds to the storage unit of the present invention.

また特に、制御回路20にて実行される制御処理の内、S140にて実行される通信処理は、本発明の通信手段及び日時情報取得手段として機能し、S130、S150〜S170にて実行されるモード設定切換処理、異常状態確認処理、モータ制御処理、及びメモリ操作処理は、本発明の制御手段として機能し、S180にて実行される取得日時カウントアップ処理は、本発明の計測手段として機能する。
[充電器6の制御回路70による制御処理]
図12に示すように、充電器6の制御回路70においては、サブコンバータ64から電源が投入されて、制御処理を開始すると、S300にて、バッテリ36の充電制御に用いられる各種パラメータや後述する各種フラグを初期設定する初期化処理を実行する。
In particular, among the control processes executed by the control circuit 20, the communication process executed at S140 functions as the communication means and date / time information acquisition means of the present invention, and is executed at S130 and S150 to S170. The mode setting switching process, the abnormal state confirmation process, the motor control process, and the memory operation process function as the control means of the present invention, and the acquisition date count-up process executed in S180 functions as the measurement means of the present invention. .
[Control processing by the control circuit 70 of the charger 6]
As shown in FIG. 12, in the control circuit 70 of the charger 6, when the power is turned on from the sub-converter 64 and the control process is started, various parameters used for charging control of the battery 36 and later described in S300. An initialization process for initializing various flags is executed.

また、この初期化処理では、電動工具2と同様、後述の処理で新たな履歴情報を生成して不揮発性メモリ69に書き込むために、現在不揮発性メモリ69に格納されている履歴情報の中から、充電器6の動作履歴として保存される異常状態の検出回数を読み込む。   Further, in this initialization process, as with the power tool 2, in order to generate new history information and write it to the nonvolatile memory 69 in the process described later, the history information currently stored in the nonvolatile memory 69 is used. Then, the number of abnormal state detections stored as the operation history of the charger 6 is read.

つまり、充電器6においては、制御回路70のスリープ状態への移行時、バッテリ36の過電圧検出時、過電流検出時、充電ステート異常検出時、及びバッテリ異常検出時に、それぞれ、図13に示す記憶内容1〜5の履歴情報を不揮発性メモリ69に格納するようにされている。   That is, in the charger 6, when the control circuit 70 shifts to the sleep state, when the overvoltage of the battery 36 is detected, when the overcurrent is detected, when the charging state abnormality is detected, and when the battery abnormality is detected, the memory shown in FIG. History information of contents 1 to 5 is stored in the nonvolatile memory 69.

なお、充電ステート異常は、充電器6側でのバッテリパック4の認識結果と、バッテリパック4側での充電器6の認識結果とに違いがあり、バッテリ36への充電を正常に実行できないときに検出される異常である。また、バッテリ異常は、温度測定回路39にて検出されるバッテリ温度等、バッテリ36に何らかの異常が生じたときに検出される異常である。   In addition, when the charging state abnormality is different between the recognition result of the battery pack 4 on the charger 6 side and the recognition result of the charger 6 on the battery pack 4 side, the charging of the battery 36 cannot be performed normally. Is detected. The battery abnormality is an abnormality detected when some abnormality occurs in the battery 36, such as a battery temperature detected by the temperature measurement circuit 39.

そして、制御回路70のスリープ状態への移行時には、履歴情報として、過電圧検出回数、過電流検出回数、充電ステート異常検出回数、バッテリ異常検出回数を表す回数情報「1」に、日時情報「6」を付与したもの(記憶内容1)が、不揮発性メモリ69に格納
される。
When the control circuit 70 shifts to the sleep state, the history information includes the number of times of overvoltage detection, the number of overcurrent detections, the number of times of charge state abnormality detection, and the number of times “1” indicating the number of battery abnormality detections. Is stored in the nonvolatile memory 69 (stored content 1).

また、回数情報「1」は、電動工具2と同様、上記各異常検出時にも、履歴情報の一部として、不揮発性メモリ69に格納される。
このため、S300の初期化処理では、電動工具2の初期化処理と同様、不揮発性メモリ69に格納された最新の履歴情報から上記各異常の検出回数を読み込むことで、その後、上記各異常検出時に検出回数を更新し、その更新後の検出回数を付与した履歴情報を、不揮発性メモリ69に格納できるようにしている。
The number information “1” is stored in the nonvolatile memory 69 as a part of the history information even when each abnormality is detected, as in the case of the power tool 2.
For this reason, in the initialization process of S300, as in the initialization process of the electric power tool 2, the number of times of detection of each abnormality is read from the latest history information stored in the nonvolatile memory 69, and then each abnormality detection is performed. The number of detections is sometimes updated, and history information to which the updated number of detections is added can be stored in the nonvolatile memory 69.

なお、過電圧検出時、過電流検出時、充電ステート異常検出時、及び、バッテリ異常検出時に、不揮発性メモリ69に格納される履歴情報は、図13に記憶内容2〜5として記載されている通りである。   The history information stored in the non-volatile memory 69 at the time of overvoltage detection, overcurrent detection, charge state abnormality detection, and battery abnormality detection is as described in memory contents 2 to 5 in FIG. It is.

すなわち、過電圧検出時には、そのときのバッテリパック4の接続状態を表すステート情報、バッテリ36への充電経過時間、及び充電電圧を表す情報「2」に、回数情報「1」と日時情報「6」を付与したもの(記憶内容2)が、履歴情報として不揮発性メモリ69に格納される。   That is, when overvoltage is detected, the state information indicating the connection state of the battery pack 4 at that time, the charging elapsed time to the battery 36, and the information “2” indicating the charging voltage are added to the count information “1” and the date information “6”. Is stored in the nonvolatile memory 69 as history information.

また、過電流検出時には、そのときのステート情報、充電電流分布、及び充電経過時間を表す情報「3」に、回数情報「1」と日時情報「6」を付与したもの(記憶内容3)が、履歴情報として不揮発性メモリ69に格納される。   Further, when overcurrent is detected, information (3) indicating the state information, charging current distribution, and charging elapsed time at the time is added with number information “1” and date and time information “6” (stored content 3). The information is stored in the nonvolatile memory 69 as history information.

また、充電ステート異常検出時には、過電流検出時の情報「3」と同様、そのときのステート情報、充電電流分布、及び充電経過時間を表す情報「4」に、回数情報「1」と日時情報「6」を付与したもの(記憶内容4)が、履歴情報として不揮発性メモリ69に格納される。   When the charging state abnormality is detected, the count information “1” and the date / time information are added to the information “4” indicating the state information, the charging current distribution, and the elapsed charging time at the time, as well as the information “3” at the time of detecting the overcurrent. What is given “6” (stored content 4) is stored in the nonvolatile memory 69 as history information.

また、バッテリ異常検出時には、そのときのステート情報、バッテリの状態情報(バッテリ温度等)、及び充電経過時間を表す情報「5」に、回数情報「1」と日時情報「6」を付与したもの(記憶内容5)が、履歴情報として不揮発性メモリ69に格納される。   In addition, when battery abnormality is detected, state information at that time, battery state information (battery temperature, etc.), and information “5” indicating elapsed charging time are added count information “1” and date and time information “6”. (Storage content 5) is stored in the nonvolatile memory 69 as history information.

次に、S310では、充電器6に対するバッテリパック4の接続状態を確認し、続くS320にて、充電電圧、充電電流等のAD変換値を取り込む。
また、S330では、外部機器8及びバッテリパック4との間で通信を行う通信処理を実行し、続くS340では、充電時に生じる過電圧、過電流や、充電ステート異常の発生状態を確認する異常状態確認処理を実行する。
Next, in S310, the connection state of the battery pack 4 with respect to the charger 6 is confirmed, and in subsequent S320, AD conversion values such as a charging voltage and a charging current are captured.
In S330, a communication process for performing communication between the external device 8 and the battery pack 4 is executed, and in subsequent S340, an abnormal state confirmation for confirming an overvoltage, an overcurrent, or a charge state abnormality occurrence state that occurs during charging. Execute the process.

そして、S350では、バッテリ36への充電を行う充電制御処理を実行する。なお、この充電制御処理では、異常状態確認処理にて、異常が検出されると、その後、充電器6からバッテリパック4が外されるまで、バッテリ36への充電を停止する。   In S350, a charging control process for charging the battery 36 is executed. In the charging control process, when an abnormality is detected in the abnormal state confirmation process, the charging of the battery 36 is stopped until the battery pack 4 is removed from the charger 6 thereafter.

次に、S360では、不揮発性メモリ69への履歴情報の書き込みを行うメモリ操作処理を実行し、続くS370では、外部機器8から取得した日時情報に基づき、現在の日時を更新(カウントアップ)する、取得日時カウントアップ処理を実行する。   Next, in S360, a memory operation process for writing history information to the nonvolatile memory 69 is executed, and in the subsequent S370, the current date and time is updated (counted up) based on the date and time information acquired from the external device 8. The acquisition date / time count-up process is executed.

そして、最後に、S380にて、充電器6からバッテリパック4が外されている状態が所定時間以上経過しているときに、スリープ状態に移行し、スリープ状態への移行後にバッテリパック4が接続されるとウェイクアップする、スリープ処理を実行する。   Finally, in S380, when the state where the battery pack 4 has been removed from the charger 6 has elapsed for a predetermined time or longer, the state transitions to the sleep state, and the battery pack 4 is connected after the transition to the sleep state. When it is done, it wakes up and executes sleep processing.

なお、スリープ処理実行後は、再度S310に移行することにより、上記一連の処理を
繰り返し実行する。
次に、上記一連の処理の内、不揮発性メモリ69への履歴情報の書き込みに関連する処理について説明する。
Note that after executing the sleep process, the above-described series of processes is repeatedly executed by moving to S310 again.
Next, of the series of processes described above, processes related to writing history information to the nonvolatile memory 69 will be described.

但し、S330の通信処理、S360のメモリ操作処理(書き込みデータ用意処理を除く)、及び、S370の取得日時カウントアップ処理は、図6、図8、図10に示した電動工具2における通信処理、メモリ操作処理、取得日時カウントアップ処理と同様に実行されるので、ここでは説明を省略する。   However, the communication process of S330, the memory operation process of S360 (except for the write data preparation process), and the acquisition date count-up process of S370 are the communication process in the electric tool 2 shown in FIGS. Since it is executed in the same manner as the memory operation process and the acquisition date count-up process, the description thereof is omitted here.

図14に示すように、S310のバッテリ接続確認処理では、S311にて、充電器6に対しバッテリパック4が接続されているか否かを判断し、バッテリパック4が接続されていなければ、当該バッテリ確認処理を終了する。   As shown in FIG. 14, in the battery connection confirmation process in S310, it is determined in S311 whether or not the battery pack 4 is connected to the charger 6, and if the battery pack 4 is not connected, the battery The confirmation process ends.

また、バッテリパック4が接続されていれば、S312に移行して、バッテリ日時取得完了フラグをクリアし、当該バッテリ確認処理を終了する。
次に、図15に示すように、S340の異常状態確認処理では、S341にて、上述した各種異常状態(過電圧、過電流、充電ステート異常、バッテリ異常)が発生しているか否かを確認し、S342に移行する。
If the battery pack 4 is connected, the process proceeds to S312 to clear the battery date / time acquisition completion flag, and the battery confirmation process is terminated.
Next, as shown in FIG. 15, in the abnormal state confirmation processing in S340, it is confirmed in S341 whether or not the above-described various abnormal states (overvoltage, overcurrent, charge state abnormality, battery abnormality) have occurred. , The process proceeds to S342.

S342では、異常検出中フラグがセットされているか否かを判断し、異常検出中フラグがセットされていなければ、S343にて、S341では何らかの異常状態が検出されたか否かを判断する。   In S342, it is determined whether an abnormal detection flag is set. If the abnormal detection flag is not set, it is determined in S343 whether any abnormal state is detected in S341.

S343にて、異常状態が検出されていると判断されると、S344に移行して、その検出した異常状態を充電器6の動作履歴として残すために、書き込み要求フラグをセットし、続くS345にて、異常検出中フラグをセットする。   If it is determined in S343 that an abnormal state has been detected, the process proceeds to S344, in order to leave the detected abnormal state as the operation history of the charger 6, a write request flag is set, and then in S345 To set the abnormal detection flag.

そして、S343にて異常状態が検出されていないと判断されるか、或いは、S345にて異常検出中フラグをセットすると、当該異常状態確認処理を終了する。
一方、S342にて、異常検出中フラグがセットされていると判断された場合には、S346に移行して、充電器6からバッテリパック4が抜かれたか否かを判断する。そして、充電器6からバッテリパック4が抜かれていなければ、当該異常状態確認処理を終了する。また、充電器6からバッテリパック4が抜かれていれば、S347にて、異常検出中フラグをクリアし、S348にて、バッテリ異常フラグ及びバッテリ状態取得フラグをクリアした後、当該異常確認処理を終了する。
If it is determined in S343 that no abnormal state has been detected, or if an abnormal detection flag is set in S345, the abnormal state confirmation process is terminated.
On the other hand, when it is determined in S342 that the abnormality detection flag is set, the process proceeds to S346, where it is determined whether or not the battery pack 4 is removed from the charger 6. If the battery pack 4 has not been removed from the charger 6, the abnormal state confirmation process ends. If the battery pack 4 has been removed from the charger 6, the abnormality detection flag is cleared in S347, the battery abnormality flag and the battery state acquisition flag are cleared in S348, and the abnormality confirmation process is terminated. To do.

なお、このように、充電器6にバッテリパック4が装着されていないときに上記各フラグをクリアするのは、次にバッテリパック4が装着された際にも、異常状態の検出を実施できるようにするためである。   As described above, when the battery pack 4 is not attached to the charger 6, the flags are cleared so that the abnormal state can be detected even when the battery pack 4 is attached next time. It is to make it.

そして、S343にて異常状態が検出された際には、書き込み要求フラグがセットされるので、電動工具2と同様、異常状態が検出される度に、その旨を表す履歴情報が検出回数と共に不揮発性メモリ69に記憶されることになる。   When an abnormal state is detected in S343, a write request flag is set. Therefore, like the power tool 2, every time an abnormal state is detected, history information indicating that is non-volatile along with the number of detections. Stored in the memory 69.

次に、図16に示すように、S360のメモリ操作処理にて実行される書き込みデータ用意処理では、まずS410にて、スリープ移行要求フラグがセットされているか否かを判断する。   Next, as shown in FIG. 16, in the write data preparation process executed in the memory operation process in S360, it is first determined in S410 whether or not the sleep transition request flag is set.

そして、スリープ移行要求フラグがセットされていれば、S411に移行して、図13に示した記憶内容1を構成している各情報(過電圧検出回数、過電流検出回数、充電ステ
ート異常検出回数、バッテリ異常検出回数、及び日時情報)の最新値を取得する。
If the sleep transition request flag is set, the process proceeds to S411, where each piece of information (overvoltage detection count, overcurrent detection count, charge state abnormality detection count, The latest value of the battery abnormality detection count and date / time information) is acquired.

また、続くS412では、スリープ移行許可フラグをセットし、当該書き込みデータ用意処理を終了する。
次に、S410にて、スリープ移行要求フラグはセットされていないと判断されると、S420に移行し、S340の異常状態確認処理にて、過電圧が検出されたか否かを判断する。
In subsequent S412, the sleep transition permission flag is set, and the write data preparation process is terminated.
Next, in S410, if it is determined that the sleep transition request flag is not set, the process proceeds to S420, and it is determined whether or not an overvoltage is detected in the abnormal state confirmation processing in S340.

そして、過電圧が検出されていれば、S421に移行して、過電圧検出回数をインクリメント(+1)し、続くS422にて、図13に示した記憶内容2を構成している情報(ステート情報、充電経過時間、充電電圧、日時情報、及び、各異常状態の検出回数)の最新値を取得し、当該書き込みデータ用意処理を終了する。   If an overvoltage is detected, the process proceeds to S421, where the number of overvoltage detections is incremented (+1), and in the subsequent S422, the information (state information, charge) constituting the storage content 2 shown in FIG. The latest value of elapsed time, charging voltage, date and time information, and the number of detections of each abnormal state) is acquired, and the write data preparation process is terminated.

次に、S420にて、過電圧は検出されていないと判断された場合には、S430に移行し、S340の異常状態確認処理にて、過電流が検出されているか否かを判断する。
そして、過電流が検出されていれば、S431に移行して、過電流検出回数をインクリメント(+1)し、続くS432にて、図13に示した記憶内容3を構成している情報(ステート情報、充電電流分布、充電経過時間、日時情報、及び、各異常状態の検出回数)の最新値を取得し、当該書き込みデータ用意処理を終了する。
Next, in S420, when it is determined that no overvoltage is detected, the process proceeds to S430, and it is determined whether or not an overcurrent is detected in the abnormal state confirmation processing in S340.
If an overcurrent is detected, the process proceeds to S431, where the number of overcurrent detections is incremented (+1), and in the subsequent S432, information (state information) constituting the storage content 3 shown in FIG. The latest value of the charging current distribution, the elapsed charging time, the date information, and the number of detections of each abnormal state) is acquired, and the write data preparation process is terminated.

また次に、S430にて、過電流は検出されていないと判断された場合には、S440に移行し、S340の異常状態確認処理にて、充電ステート異常が検出されているか否かを判断する。   Next, when it is determined in S430 that no overcurrent has been detected, the process proceeds to S440, and it is determined whether or not a charging state abnormality is detected in the abnormal state confirmation processing in S340. .

そして、充電ステート異常が検出されていれば、S441に移行して、充電ステート異常検出回数をインクリメント(+1)し、続くS442にて、図13に示した記憶内容4を構成している情報(ステート情報、充電電流分布、充電経過時間、日時情報、及び、各異常状態の検出回数)の最新値を取得し、当該書き込みデータ用意処理を終了する。   If a charging state abnormality is detected, the process proceeds to S441 to increment (+1) the number of times the charging state abnormality is detected, and in subsequent S442, the information constituting the storage content 4 shown in FIG. The latest values of state information, charging current distribution, elapsed charging time, date and time information, and the number of detections of each abnormal state) are acquired, and the write data preparation process ends.

また、S440にて、充電ステート異常は検出されていないと判断された場合には、S450に移行し、S340の異常状態確認処理にて、バッテリ異常が検出されているか否かを判断する。   If it is determined in S440 that the charging state abnormality is not detected, the process proceeds to S450, and it is determined whether or not a battery abnormality is detected in the abnormal state confirmation processing in S340.

そして、バッテリ異常が検出されていれば、S451に移行して、バッテリ異常検出回数をインクリメント(+1)し、続くS452にて、図13に示した記憶内容5を構成している情報(ステート情報、バッテリの状態情報、充電経過時間、日時情報、及び、各異常状態の検出回数)の最新値を取得し、当該書き込みデータ用意処理を終了する。   If a battery abnormality is detected, the process proceeds to S451, where the number of battery abnormality detections is incremented (+1), and in the subsequent S452, information (state information) constituting the storage content 5 shown in FIG. The latest value of the battery state information, the elapsed charging time, the date and time information, and the number of detections of each abnormal state) is acquired, and the write data preparation process ends.

また、S450にて、バッテリ異常は検出されていないと判断された場合にも、当該書き込みデータ用意処理を終了する。
このように、S360のメモリ操作処理では、書き込み要求フラグがセットされているときに、図16に示す書き込みデータ用意処理を実行することにより、不揮発性メモリ69に書き込むべき履歴情報(図13に示す記憶内容1〜5)を構成する各種情報を収集する。そして、その収集した各種情報に基づき履歴情報を生成し、不揮発性メモリ69に格納する。
If it is determined in S450 that no battery abnormality has been detected, the write data preparation process is also terminated.
As described above, in the memory operation process of S360, when the write request flag is set, the write data preparation process shown in FIG. 16 is executed, whereby history information to be written in the nonvolatile memory 69 (shown in FIG. 13). Various information constituting the storage contents 1 to 5) is collected. Then, history information is generated based on the collected various information and stored in the nonvolatile memory 69.

次に、図17に示すように、S380のスリープ処理では、S381にて、充電器6にバッテリパック4が装着されていない状態が所定時間以上経過しているか否かを判断し、バッテリパック4が装着されていない状態が所定時間以上経過していなければ、当該スリープ処理を終了する。   Next, as shown in FIG. 17, in the sleep process of S380, it is determined in S381 whether or not a state where the battery pack 4 is not attached to the charger 6 has passed for a predetermined time or more. If the state in which the is not attached has not elapsed for a predetermined time or longer, the sleep process is terminated.

一方、バッテリパック4が装着されていない状態が所定時間以上経過している場合には、S382に移行して、スリープ移行要求フラグをセットし、続くS383にて、書き込み要求フラグをセットした後、S384に移行する。   On the other hand, if the battery pack 4 is not attached for a predetermined time or more, the process proceeds to S382, the sleep transition request flag is set, and the write request flag is set in the subsequent S383. The process proceeds to S384.

S384では、図16の書き込みデータ用意処理にてスリープ移行時の履歴情報(記憶内容1)を構成する各種情報が取得された際にセットされる、スリープ移行許可フラグがセットされているか否かを判断する。   In S384, it is determined whether or not the sleep transition permission flag that is set when various information constituting the history information (stored content 1) at the time of transition to sleep is acquired in the write data preparation process of FIG. 16 is set. to decide.

そして、スリープ移行許可フラグがセットされていなければ、当該スリープ処理を終了し、スリープ移行許可フラグがセットされていれば、S385に移行し、当該スリープ処理を含む制御処理の実行を停止することで、制御回路70の消費電力を低減するスリープ状態に移行する。   If the sleep transition permission flag is not set, the sleep process is terminated. If the sleep transition permission flag is set, the process proceeds to S385, and the execution of the control process including the sleep process is stopped. Then, the control circuit 70 shifts to a sleep state that reduces power consumption.

制御回路70は、スリープ状態への移行によって、制御処理の実行を停止するが、その後、バッテリパック4が装着される等、予め設定されたウェイクアップ条件が成立すると、ウェイクアップする(S386)。   The control circuit 70 stops the execution of the control process due to the transition to the sleep state, but then wakes up when a preset wake-up condition is met, such as when the battery pack 4 is attached (S386).

そして、ウェイクアップ後は、S387にて、スリープ移行要求フラグ及びスリープ移行許可フラグをクリアし、S388にて、外部日時取得完了フラグをクリアし、S389にて、バッテリ日時取得完了フラグをクリアすることで、これら各フラグを初期化し、当該スリープ処理を終了する。   After the wakeup, the sleep transition request flag and the sleep transition permission flag are cleared in S387, the external date / time acquisition completion flag is cleared in S388, and the battery date / time acquisition completion flag is cleared in S389. Thus, each of these flags is initialized, and the sleep process is terminated.

以上説明したように、充電器6においては、制御回路70のスリープ状態への移行時、及び、各種異常検出時に、そのときの日時を表す日時情報を含む履歴情報を不揮発性メモリ69に格納する。   As described above, in the charger 6, history information including date and time information indicating the date and time at that time is stored in the nonvolatile memory 69 when the control circuit 70 shifts to the sleep state and when various abnormalities are detected. .

また、制御回路70は、電動工具2と同様の手順で通信処理を実行することで、起動直後に外部機器8又はバッテリパック4から日時情報を取得し、その取得した日時情報に基づき、現在の日時を計測(カウント)する。   In addition, the control circuit 70 executes date and time information from the external device 8 or the battery pack 4 immediately after startup by executing communication processing in the same procedure as the electric power tool 2, and based on the acquired date and time information, Measure (count) the date and time.

従って、本実施形態の充電器6によれば、電動工具2と同様、制御回路70において、現在の日時を正確に把握することができ、不揮発性メモリ69に履歴情報を格納する際、履歴情報に正確な日時情報を付与することができる。   Therefore, according to the charger 6 of the present embodiment, the current date and time can be accurately grasped in the control circuit 70 as in the case of the power tool 2, and the history information is stored when the history information is stored in the nonvolatile memory 69. Can be given accurate date and time information.

よって、充電器6の使用者は、不揮発性メモリ69に記憶された履歴情報から、充電器6の動作履歴を、その動作日時と共に正確に把握することができ、充電器6のトレーサビリティ管理を適正に行うことができる。   Therefore, the user of the charger 6 can accurately grasp the operation history of the charger 6 together with the operation date and time from the history information stored in the nonvolatile memory 69, and the traceability management of the charger 6 is properly performed. Can be done.

また、不揮発性メモリ69に履歴情報を格納する際、履歴情報に、各種異常状態の検出回数を表す回数情報が付与されることから、履歴情報を書き込むために不揮発性メモリ69に記憶された古い履歴情報が消去されたとしても、不揮発性メモリ69の記憶された履歴情報から、過去に検出された異常内容とその検出回数を検知することができる。   Further, when history information is stored in the non-volatile memory 69, the history information is given count information indicating the number of detections of various abnormal states, so that the old information stored in the non-volatile memory 69 for writing the history information is stored. Even if the history information is deleted, it is possible to detect abnormal contents detected in the past and the number of detections from the history information stored in the nonvolatile memory 69.

よって、充電器6においても、電動工具2と同様、不揮発性メモリ69の記憶容量の制限により、充電器6のトレーサビリティ管理を実施できなくなるのを防止できる。
なお、本実施形態の充電器6においては、制御回路70が、本発明の通信手段、日時情報取得手段、制御手段、及び、計測手段に相当し、不揮発性メモリ69は、本発明の記憶手段に相当する。
Therefore, in the charger 6 as well as the electric power tool 2, it is possible to prevent the traceability management of the charger 6 from being performed due to the limitation of the storage capacity of the nonvolatile memory 69.
In the charger 6 of the present embodiment, the control circuit 70 corresponds to the communication means, date / time information acquisition means, control means, and measurement means of the present invention, and the nonvolatile memory 69 is the storage means of the present invention. It corresponds to.

また特に、制御回路70にて実行される制御処理の内、S330にて実行される通信処理は、本発明の通信手段及び日時情報取得手段として機能し、S340〜S360にて実行される異常状態確認処理、充電制御処理、及びメモリ操作処理は、本発明の制御手段として機能し、S370にて実行される取得日時カウントアップ処理は、本発明の計測手段として機能する。
[バッテリパック4の制御回路40による制御処理]
図18に示すように、バッテリパック4の制御回路40においては、レギュレータ44から電源が投入されて、制御処理を開始すると、S500にて、バッテリ36への充放電制御に用いられる各種パラメータや後述する各種フラグを初期設定する初期化処理を実行する。
In particular, among the control processes executed by the control circuit 70, the communication process executed in S330 functions as the communication means and date / time information acquisition means of the present invention, and the abnormal state executed in S340 to S360. The confirmation process, the charge control process, and the memory operation process function as a control unit of the present invention, and the acquisition date count-up process executed in S370 functions as a measurement unit of the present invention.
[Control processing by control circuit 40 of battery pack 4]
As shown in FIG. 18, in the control circuit 40 of the battery pack 4, when power is turned on from the regulator 44 and the control process is started, various parameters used for charge / discharge control for the battery 36 are described in S500 and will be described later. An initialization process for initializing various flags to be executed is executed.

また、この初期化処理では、電動工具2や充電器6と同様、後述の処理で新たな履歴情報を生成して不揮発性メモリ45に書き込むために、現在不揮発性メモリ45に格納されている最新の履歴情報の中から、異常状態の検出回数を読み込む。   In addition, in this initialization process, as in the case of the electric power tool 2 and the charger 6, the latest information currently stored in the nonvolatile memory 45 is used to generate new history information and write it to the nonvolatile memory 45 in the process described later. The number of abnormal state detections is read from the history information.

つまり、バッテリパック4においては、制御回路40のスリープ状態への移行時、バッテリ36の過電圧検出時、過電流検出時、及びバッテリ異常検出時に、それぞれ、図19に示す記憶内容1〜4の履歴情報を不揮発性メモリ45に格納するようにされている。   That is, in the battery pack 4, when the control circuit 40 shifts to the sleep state, when the overvoltage of the battery 36 is detected, when the overcurrent is detected, and when the battery abnormality is detected, the history of the storage contents 1 to 4 shown in FIG. Information is stored in the nonvolatile memory 45.

そして、制御回路40のスリープ状態への移行時には、履歴情報として、過電圧検出回数、過電流検出回数、バッテリ異常検出回数を表す回数情報「1」に、後述の差分情報を加えた日時情報「5」を付与したもの(記憶内容1)が、不揮発性メモリ45に格納される。   When the control circuit 40 shifts to the sleep state, the history information is the number information “1” representing the number of times of overvoltage detection, the number of overcurrent detections, and the number of times of battery abnormality detection, and date / time information “5” obtained by adding difference information described later. (Stored content 1) is stored in the nonvolatile memory 45.

また、回数情報「1」は、電動工具2や充電器6と同様、上記各異常検出時にも、履歴情報の一部として、不揮発性メモリ45に格納される。
このため、S500の初期化処理では、電動工具2及び充電器6における初期化処理と同様、不揮発性メモリ45に格納された最新の履歴情報から上記各異常の検出回数を読み込むことで、その後、上記各異常検出時に検出回数を更新し、その更新後の検出回数を付与した履歴情報を、不揮発性メモリ45に格納できるようにしている。
Further, the number information “1” is stored in the nonvolatile memory 45 as a part of the history information even when each abnormality is detected, similarly to the power tool 2 and the charger 6.
For this reason, in the initialization process of S500, like the initialization process in the electric power tool 2 and the charger 6, by reading the number of times of detection of each abnormality from the latest history information stored in the nonvolatile memory 45, The number of detections is updated when each abnormality is detected, and history information to which the number of detections after the update is added can be stored in the nonvolatile memory 45.

なお、過電圧検出時、過電流検出時、及び、バッテリ異常検出時に、不揮発性メモリ45に格納される履歴情報は、図19に記憶内容2〜4として記載されている通りである。
すなわち、過電圧検出時には、そのときの電動工具2若しくは充電器6への接続状態を表すステート情報、バッテリ36への充電経過時間、及び充電電圧を表す情報「2」に、回数情報「1」と日時情報「5」を付与したもの(記憶内容2)が、履歴情報として不揮発性メモリ45に格納される。
The history information stored in the non-volatile memory 45 at the time of overvoltage detection, overcurrent detection, and battery abnormality detection is as described in the memory contents 2 to 4 in FIG.
That is, at the time of detecting the overvoltage, the state information indicating the connection state to the electric power tool 2 or the charger 6 at that time, the elapsed charging time of the battery 36, and the information “2” indicating the charging voltage include the number information “1”. Information with the date / time information “5” (stored content 2) is stored in the nonvolatile memory 45 as history information.

また、過電流検出時には、そのときのステート情報、充電/放電電流分布、及び、充電/放電経過時間を表す情報「3」に、回数情報「1」と日時情報「5」を付与したもの(記憶内容3)が、履歴情報として不揮発性メモリ45に格納される。   In addition, when overcurrent is detected, the state information, the charge / discharge current distribution, and the information “3” indicating the charge / discharge elapsed time are added with the count information “1” and the date information “5” ( The stored content 3) is stored in the nonvolatile memory 45 as history information.

また、バッテリ異常検出時には、そのときのステート情報、バッテリの状態情報(バッテリ温度等)、及び、充電/放電経過時間を表す情報「4」に、回数情報「1」と日時情報「5」を付与したもの(記憶内容4)が、履歴情報として不揮発性メモリ45に格納される。   When battery abnormality is detected, count information “1” and date / time information “5” are added to state information at that time, battery state information (battery temperature, etc.), and information “4” indicating elapsed charge / discharge time. The given information (stored content 4) is stored in the nonvolatile memory 45 as history information.

次に、S510では、電動工具2若しくは充電器6に対するバッテリパック4の接続状態を確認し、続くS520にて、バッテリ電圧、バッテリ電流、バッテリ温度等のAD変換値を取り込む。   Next, in S510, the connection state of the battery pack 4 with respect to the electric tool 2 or the charger 6 is confirmed, and in subsequent S520, AD conversion values such as battery voltage, battery current, and battery temperature are taken in.

また、S530では、バッテリパック4が接続された電動工具2若しくは充電器6との間で通信を行う通信処理を実行し、続くS540では、過電圧、過電流、バッテリ異常等の異常発生状態を確認する異常状態確認処理を実行する。   In S530, a communication process for communicating with the power tool 2 or the charger 6 to which the battery pack 4 is connected is executed. In S540, an abnormal state such as overvoltage, overcurrent, or battery abnormality is confirmed. Execute abnormal status confirmation processing.

そして、S550では、電動工具2若しくは充電器6への接続状態に応じて、バッテリ36からの放電若しくはバッテリ36への充電を制御する充放電制御処理を実行する。なお、この充放電制御処理では、異常状態確認処理にて、異常が検出されると、その後、バッテリパック4が電動工具2若しくは充電器6から外されるまで、バッテリ36への充放電を停止する。   In S550, a charge / discharge control process for controlling the discharge from the battery 36 or the charge to the battery 36 is executed according to the connection state to the power tool 2 or the charger 6. In this charge / discharge control process, if an abnormality is detected in the abnormal state confirmation process, charging / discharging of the battery 36 is stopped until the battery pack 4 is removed from the electric tool 2 or the charger 6 thereafter. To do.

次に、S560では、不揮発性メモリ45への履歴情報の書き込みを行うメモリ操作処理を実行し、続くS570では、現在の日時を更新(カウントアップ)することで日時を計測する、日時カウントアップ処理を実行する。   Next, in S560, a memory operation process for writing history information to the nonvolatile memory 45 is executed, and in subsequent S570, the current date and time is updated (counted up) to measure the date and time. Execute.

そして、最後に、S580にて、バッテリパック4が電動工具2及び充電器6のいずれにも接続されていない状態が所定時間以上経過しているときに、スリープ状態に移行し、スリープ状態への移行後にバッテリパック4が電動工具2若しくは充電器6接続されるとウェイクアップする、スリープ処理を実行する。   Finally, in S580, when the state in which the battery pack 4 is not connected to either the electric power tool 2 or the charger 6 has elapsed for a predetermined time or longer, the state shifts to the sleep state, and enters the sleep state. When the battery pack 4 is connected to the power tool 2 or the charger 6 after the transition, a sleep process is executed to wake up.

なお、スリープ処理実行後は、再度S310に移行することにより、上記一連の処理を繰り返し実行する。
次に、上記一連の処理の内、不揮発性メモリ45への履歴情報の書き込みに関連する処理について説明する。
Note that after executing the sleep process, the above-described series of processes is repeatedly executed by moving to S310 again.
Next, processing related to writing history information to the nonvolatile memory 45 in the series of processing will be described.

但し、S530のメモリ操作処理(書き込みデータ用意処理を除く)は、図8に示した電動工具2におけるメモリ操作処理と同様に実行されるので、ここでは説明を省略する。
また、S570の日時カウントアップ処理は、電動工具2及び充電器6にて実行される取得日時カウントアップ処理とは異なり、制御回路40がスリープ状態であるときにも、レギュレータ44がバッテリ36から電源供給を受けて制御回路40に電源供給を行っているときには、定期的に実行される。
However, since the memory operation process (except for the write data preparation process) in S530 is executed in the same manner as the memory operation process in the power tool 2 shown in FIG. 8, the description thereof is omitted here.
The date / time count-up process in S570 is different from the acquisition date / time count-up process executed by the power tool 2 and the charger 6, and the regulator 44 is powered from the battery 36 even when the control circuit 40 is in the sleep state. When the power is supplied to the control circuit 40 in response to the supply, the control circuit 40 is periodically executed.

そして、S570では、バッテリパック4の製造時に設定された日時を順次カウントアップしてゆくことで、バッテリパック4単独で現在の日時を計測する。
図20に示すように、S530の通信処理では、まずS531にて、バッテリパック4が接続されている電動工具2若しくは充電器6から通信があったか否かを判断する。
In S570, the date and time set at the time of manufacturing the battery pack 4 are sequentially counted up, thereby measuring the current date and time by the battery pack 4 alone.
As shown in FIG. 20, in the communication process of S530, first, in S531, it is determined whether or not there is communication from the electric tool 2 or the charger 6 to which the battery pack 4 is connected.

そして、電動工具2若しくは充電器6から通信があれば、S532に移行して、電動工具2若しくは充電器6からの送信データに含まれている現在の日時情報を取得する。
次に、S533では、S532で取得した日時情報から得られる現在の日時と、制御回路40が認識(換言すればカウント)している現在の日時との差分を算出し、その算出した差分を、差分情報として、現在カウント中の日時に関連付ける。
And if there exists communication from the electric tool 2 or the charger 6, it will transfer to S532 and will acquire the present date information contained in the transmission data from the electric tool 2 or the charger 6.
Next, in S533, a difference between the current date and time obtained from the date and time information acquired in S532 and the current date and time recognized by the control circuit 40 (in other words, counted) is calculated. The difference information is associated with the date and time currently being counted.

また、続くS534では、バッテリパック4が接続されている電動工具2若しくは充電器6から、バッテリ状態情報の要求があったか否かを判断する。
そして、電動工具2若しくは充電器6からバッテリ状態情報の要求があれば、S535にて、その要求されたバッテリ状態情報を電動工具2若しくは充電器6に出力した後、当該通信処理を終了し、バッテリ状態情報の要求がなければ、そのまま当該通信処理を終了する。
In subsequent S534, it is determined whether or not there is a request for battery state information from the power tool 2 or the charger 6 to which the battery pack 4 is connected.
If there is a request for battery state information from the electric tool 2 or the charger 6, the requested battery state information is output to the electric tool 2 or the charger 6 in S535, and then the communication process is terminated. If there is no request for battery status information, the communication processing is terminated as it is.

このように、S530の通信処理では、電動工具2若しくは充電器6からの通信に従い、日時情報の取得、及び、バッテリ状態情報の送信を行う。これは、上述したように、バッテリパック4と電動工具2若しくは充電器6との通信時には、バッテリパック4がスレーブ、電動工具2若しくは充電器6がマスタとなるように設定されているためである。   Thus, in the communication process of S530, according to the communication from the electric power tool 2 or the charger 6, the acquisition of the date / time information and the transmission of the battery state information are performed. This is because the battery pack 4 is set as a slave and the power tool 2 or the charger 6 is set as a master during communication between the battery pack 4 and the power tool 2 or the charger 6 as described above. .

次に、図21に示すように、S540の異常状態確認処理では、S541にて、上述した各種異常状態(過電圧、過電流、バッテリ異常)が発生しているか否かを確認し、S542に移行する。   Next, as shown in FIG. 21, in the abnormal state confirmation processing in S540, it is confirmed in S541 whether or not the above-described various abnormal states (overvoltage, overcurrent, battery abnormality) have occurred, and the process proceeds to S542. To do.

S542では、異常検出中フラグがセットされているか否かを判断し、異常検出中フラグがセットされていなければ、S543にて、S541では何らかの異常状態が検出されたか否かを判断する。   In S542, it is determined whether an abnormal detection flag is set. If the abnormal detection flag is not set, it is determined in S543 whether any abnormal condition is detected in S541.

S543にて、異常状態が検出されていると判断されると、S544に移行して、その検出した異常状態をバッテリパック4の動作履歴として残すために、書き込み要求フラグをセットし、続くS545にて、異常検出中フラグをセットする。   If it is determined in S543 that an abnormal state has been detected, the process proceeds to S544, in order to leave the detected abnormal state as the operation history of the battery pack 4, a write request flag is set, and the subsequent S545 To set the abnormal detection flag.

そして、S543にて異常状態が検出されていないと判断されるか、或いは、S545にて異常検出中フラグをセットすると、当該異常状態確認処理を終了する。
一方、S542にて、異常検出中フラグがセットされていると判断された場合には、S546に移行して、バッテリパック4が電動工具2若しくは充電器6から一旦外されてから、電動工具2に装着されたか否かを判断する。
If it is determined in S543 that no abnormal state has been detected, or if an abnormal detection flag is set in S545, the abnormal state confirmation process is terminated.
On the other hand, if it is determined in S542 that the abnormality detection flag is set, the process proceeds to S546, and after the battery pack 4 is temporarily removed from the power tool 2 or the charger 6, the power tool 2 is removed. It is determined whether or not it is attached to.

そして、バッテリパック4が充電器6に新たに装着されたときには、S547にて、異常検出中フラグをクリアした後、当該異常状態確認処理を終了し、バッテリパック4が充電器6に新たに装着されていなければ、そのまま当該異常状態確認処理を終了する。   When the battery pack 4 is newly attached to the charger 6, the abnormality detection flag is cleared in S 547, and then the abnormal state confirmation process is terminated, and the battery pack 4 is newly attached to the charger 6. If not, the abnormal state confirmation process is terminated as it is.

なお、このように、バッテリパック4が充電器6に新たに装着されたときに、異常検出中フラグをクリアするのは、次にバッテリパック4が充電器6に装着されて充電を開始し、その後、電動工具2に装着されて電動工具2への電力供給を行う際にも、上記各種異常状態を検出できるようにするためである。   As described above, when the battery pack 4 is newly attached to the charger 6, the abnormality detection flag is cleared when the battery pack 4 is next attached to the charger 6 and charging starts. After that, when the electric tool 2 is mounted and power is supplied to the electric tool 2, the various abnormal states can be detected.

そして、S543にて異常状態が検出された際には、書き込み要求フラグがセットされるので、電動工具2や充電器6と同様、異常状態が検出される度に、その旨を表す履歴情報が検出回数と共に不揮発性メモリ45に記憶されることになる。   And when an abnormal state is detected in S543, since a write request flag is set, each time an abnormal state is detected, as in the case of the power tool 2 and the charger 6, history information indicating that fact is displayed. It is stored in the nonvolatile memory 45 together with the number of detections.

次に、図22に示すように、S560のメモリ操作処理にて実行される書き込みデータ用意処理では、まずS610にて、スリープ移行要求フラグがセットされているか否かを判断する。   Next, as shown in FIG. 22, in the write data preparation process executed in the memory operation process of S560, first, in S610, it is determined whether or not the sleep transition request flag is set.

そして、スリープ移行要求フラグがセットされていれば、S611に移行して、図19に示した記憶内容1を構成している各情報(過電圧検出回数、過電流検出回数、バッテリ異常検出回数、及び、S533にて関連付けられた差分情報を含む日時情報)の最新値を取得する。また、続くS612では、スリープ移行許可フラグをセットし、当該書き込みデータ用意処理を終了する。   If the sleep transition request flag is set, the process proceeds to S611, and each piece of information (overvoltage detection count, overcurrent detection count, battery abnormality detection count, and , The latest value of the date / time information including the difference information associated in S533 is acquired. In the subsequent S612, the sleep transition permission flag is set, and the write data preparation process ends.

次に、S610にて、スリープ移行要求フラグはセットされていないと判断されると、S620に移行し、S540の異常状態確認処理にて、過電圧が検出されたか否かを判断する。   Next, if it is determined in S610 that the sleep transition request flag is not set, the process proceeds to S620, and it is determined whether or not an overvoltage is detected in the abnormal state confirmation processing in S540.

そして、過電圧が検出されていれば、S621に移行して、過電圧検出回数をインクリメント(+1)し、続くS622にて、図19に示した記憶内容2を構成している情報(ステート情報、充電経過時間、充電電圧、差分情報を含む日時情報、及び、各異常状態の検出回数)の最新値を取得し、当該書き込みデータ用意処理を終了する。   If an overvoltage is detected, the process proceeds to S621, where the number of overvoltage detections is incremented (+1), and in the subsequent S622, information (state information, charge) constituting the storage content 2 shown in FIG. The latest value of the elapsed time, charging voltage, date and time information including difference information, and the number of detections of each abnormal state) is acquired, and the write data preparation process is terminated.

次に、S620にて、過電圧は検出されていないと判断された場合には、S630に移行し、S540の異常状態確認処理にて、過電流が検出されているか否かを判断する。
そして、過電流が検出されていれば、S631に移行して、過電流検出回数をインクリメント(+1)し、続くS632にて、図19に示した記憶内容3を構成している情報(ステート情報、充電/放電電流分布、充電/放電経過時間、差分情報を含む日時情報、及び、各異常状態の検出回数)の最新値を取得し、当該書き込みデータ用意処理を終了する。
Next, in S620, when it is determined that no overvoltage is detected, the process proceeds to S630, and it is determined whether or not an overcurrent is detected in the abnormal state confirmation processing in S540.
If an overcurrent is detected, the process proceeds to S631, the number of overcurrent detections is incremented (+1), and in the subsequent S632, information (state information) constituting the storage content 3 shown in FIG. , The latest value of the charging / discharging current distribution, the charging / discharging elapsed time, the date / time information including the difference information, and the number of detections of each abnormal state) is acquired, and the write data preparation process is terminated.

また次に、S630にて、過電流は検出されていないと判断された場合には、S640に移行し、S540の異常状態確認処理にて、バッテリ異常が検出されているか否かを判断する。   Next, when it is determined in S630 that no overcurrent is detected, the process proceeds to S640, and it is determined whether or not a battery abnormality is detected in the abnormal state confirmation processing in S540.

そして、バッテリ異常が検出されていれば、S641に移行して、バッテリ異常検出回数をインクリメント(+1)し、続くS642にて、図19に示した記憶内容4を構成している情報(ステート情報、バッテリの状態情報、充電/放電経過時間、差分情報を含む日時情報、及び、各異常状態の検出回数)の最新値を取得し、当該書き込みデータ用意処理を終了する。   If a battery abnormality is detected, the process proceeds to S641, the number of battery abnormality detections is incremented (+1), and information (state information) constituting the storage content 4 shown in FIG. The latest value of the battery state information, the charging / discharging elapsed time, the date / time information including the difference information, and the number of detections of each abnormal state) is acquired, and the write data preparation process is terminated.

また、S640にて、バッテリ異常は検出されていないと判断された場合にも、当該書き込みデータ用意処理を終了する。
このように、S560のメモリ操作処理では、書き込み要求フラグがセットされているときに、図22に示す書き込みデータ用意処理を実行することにより、不揮発性メモリ45に書き込むべき履歴情報(図19に示す記憶内容1〜4)を構成する各種情報を収集する。そして、その収集した各種情報に基づき履歴情報を生成し、不揮発性メモリ45に格納する。
If it is determined in S640 that no battery abnormality has been detected, the write data preparation process is also terminated.
As described above, in the memory operation process of S560, when the write request flag is set, the write data preparation process shown in FIG. 22 is executed, whereby history information to be written in the nonvolatile memory 45 (shown in FIG. 19). Various information constituting the memory contents 1 to 4) is collected. Then, history information is generated based on the collected information and stored in the nonvolatile memory 45.

次に、図23に示すように、S580のスリープ処理では、S581にて、バッテリパック4が電動工具2若しくは充電器6に装着されていない状態が所定時間以上経過しているか否かを判断し、バッテリパック4が電動工具2若しくは充電器6に装着されていない状態が所定時間以上経過していなければ、当該スリープ処理を終了する。   Next, as shown in FIG. 23, in the sleep process of S580, it is determined in S581 whether or not a state in which the battery pack 4 is not attached to the electric tool 2 or the charger 6 has passed for a predetermined time or more. If the state in which the battery pack 4 is not attached to the electric tool 2 or the charger 6 has not elapsed for a predetermined time or longer, the sleep process is terminated.

一方、バッテリパック4が電動工具2若しくは充電器6に装着されていない状態が所定時間以上経過している場合には、S582に移行して、スリープ移行要求フラグをセットし、続くS583にて、書き込み要求フラグをセットした後、S584に移行する。   On the other hand, if the state where the battery pack 4 is not attached to the electric tool 2 or the charger 6 has passed for a predetermined time or longer, the process proceeds to S582, the sleep transition request flag is set, and in the subsequent S583, After setting the write request flag, the process proceeds to S584.

S584では、図22の書き込みデータ用意処理にてスリープ移行時の履歴情報(記憶内容1)を構成する各種情報が取得された際にセットされる、スリープ移行許可フラグがセットされているか否かを判断する。   In S584, it is determined whether or not the sleep transition permission flag that is set when various information constituting the history information (stored content 1) at the time of transition to sleep is acquired in the write data preparation process of FIG. to decide.

そして、スリープ移行許可フラグがセットされていなければ、当該スリープ処理を終了し、スリープ移行許可フラグがセットされていれば、S585に移行し、当該スリープ処理を含む制御処理の実行を停止することで、制御回路40の消費電力を低減するスリープ状態に移行する。   If the sleep transition permission flag is not set, the sleep process is terminated. If the sleep transition permission flag is set, the process proceeds to S585 to stop execution of the control process including the sleep process. Then, the control circuit 40 shifts to a sleep state that reduces power consumption.

なお、バッテリパック4においては、上述したように、スリープ状態であっても、制御
回路40は、S570の日時カウントアップ処理を実行するために定期的に起動し、日時の計測を継続する。
In the battery pack 4, as described above, even in the sleep state, the control circuit 40 is periodically started to perform the date / time count-up process in S570 and continues to measure the date / time.

そして、制御回路40は、スリープ状態への移行後、バッテリパック4が電動工具2若しくは充電器6へ装着されることにより、所定のウェイクアップ条件が成立すると、ウェイクアップする(S586)。   Then, after the transition to the sleep state, the control circuit 40 wakes up when a predetermined wake-up condition is satisfied by mounting the battery pack 4 to the power tool 2 or the charger 6 (S586).

また、ウェイクアップ後は、S587にて、スリープ移行要求フラグ及びスリープ移行許可フラグをクリアすることで、これら各フラグを初期化し、当該スリープ処理を終了する。   After wakeup, in S587, the sleep transition request flag and the sleep transition permission flag are cleared to initialize these flags, and the sleep process ends.

以上説明したように、バッテリパック4においては、制御回路40のスリープ状態への移行時、及び、各種異常検出時に、そのときの日時を表す日時情報を含む履歴情報を不揮発性メモリ45に格納する。   As described above, in the battery pack 4, when the control circuit 40 shifts to the sleep state and when various abnormalities are detected, history information including date and time information indicating the date and time at that time is stored in the nonvolatile memory 45. .

また、制御回路40は、バッテリパック4が電動工具2若しくは充電器6に装着された際に、電動工具2若しくは充電器6から日時情報(詳しくは、電動工具2若しくは充電器6が外部機器8から取得した日時情報)を取得する。   When the battery pack 4 is attached to the electric tool 2 or the charger 6, the control circuit 40 receives date / time information from the electric tool 2 or the charger 6 (specifically, the electric tool 2 or the charger 6 uses the external device 8. Date / time information obtained from).

そして、その取得した日時情報から得られる日時と、バッテリパック4側で計測中の日時との差分を、差分情報として算出し、不揮発性メモリ45に履歴情報を格納する際には、その差分情報を含む日時情報を、履歴情報に付与する。   When the difference between the date and time obtained from the acquired date and time information and the date and time being measured on the battery pack 4 side is calculated as difference information and the history information is stored in the nonvolatile memory 45, the difference information The date and time information including is added to the history information.

従って、本実施形態のバッテリパック4によれば、制御回路40において、日時カウントアップ処理にて計測される日時と、差分情報とに基づき、現在の日時を正確に把握することができる。   Therefore, according to the battery pack 4 of the present embodiment, the control circuit 40 can accurately grasp the current date and time based on the date and time measured by the date and time count-up process and the difference information.

また、不揮発性メモリ45には、差分情報を含む日時情報が付与された履歴情報が格納されるので、バッテリパック4の使用者は、不揮発性メモリ45に記憶された履歴情報から、バッテリパック4の動作履歴を、動作日時と共に正確に把握することができ、バッテリパック4のトレーサビリティ管理を適正に行うことができる。   Moreover, since the history information to which the date / time information including the difference information is added is stored in the nonvolatile memory 45, the user of the battery pack 4 can use the battery pack 4 from the history information stored in the nonvolatile memory 45. The operation history can be accurately grasped together with the operation date and time, and the traceability management of the battery pack 4 can be appropriately performed.

また、不揮発性メモリ45に履歴情報を格納する際、履歴情報には、各種異常状態の検出回数を表す回数情報が付与されることから、履歴情報を書き込むために不揮発性メモリ45に記憶された古い履歴情報が消去されたとしても、不揮発性メモリ45の記憶された履歴情報から、過去に検出された異常内容とその検出回数を検知することができる。   Further, when history information is stored in the nonvolatile memory 45, since the history information is provided with count information indicating the number of detections of various abnormal states, the history information is stored in the nonvolatile memory 45 in order to write the history information. Even if the old history information is deleted, it is possible to detect abnormal contents detected in the past and the number of detections from the history information stored in the nonvolatile memory 45.

よって、バッテリパック4においても、電動工具2や充電器6と同様、不揮発性メモリ45の記憶容量の制限により、バッテリパック4のトレーサビリティ管理を実施できなくなるのを防止できる。   Therefore, in the battery pack 4 as well, like the power tool 2 and the charger 6, it is possible to prevent the traceability management of the battery pack 4 from being impossible due to the limitation of the storage capacity of the nonvolatile memory 45.

また、例えば、バッテリ電圧の低下等によって、制御回路40が完全に動作を停止した際には、S570の日時カウントアップ処理も停止され、日時計測を継続することができなくなる。しかし、充電によりバッテリ電圧が上昇して、制御回路40が動作を開始すれば、差分情報が生成されることから、制御回路40は、その差分情報と計測中の日時情報とから現在の日時を正確に検知することができる。また、差分情報から、制御回路40の動作停止時間(換言すればバッテリ36の電圧低下期間)を推定することもできる。   Further, for example, when the control circuit 40 completely stops operating due to a decrease in battery voltage or the like, the date / time count-up process in S570 is also stopped, and the date / time measurement cannot be continued. However, if the battery voltage rises due to charging and the control circuit 40 starts operation, difference information is generated. Therefore, the control circuit 40 determines the current date and time from the difference information and the date and time information being measured. It can be detected accurately. Further, the operation stop time of the control circuit 40 (in other words, the voltage drop period of the battery 36) can be estimated from the difference information.

なお、本実施形態のバッテリパック4においては、制御回路40が、本発明の通信手段、日時情報取得手段、制御手段、及び、計測手段に相当し、不揮発性メモリ45は、本発
明の記憶手段に相当する。
In the battery pack 4 of the present embodiment, the control circuit 40 corresponds to the communication means, date / time information acquisition means, control means, and measurement means of the present invention, and the nonvolatile memory 45 is the storage means of the present invention. It corresponds to.

また特に、制御回路40にて実行される制御処理の内、S530にて実行される通信処理は、本発明の通信手段及び日時情報取得手段として機能し、S540〜S560にて実行される異常状態確認処理、充電制御処理、及びメモリ操作処理は、本発明の制御手段として機能し、S570にて実行される日時カウントアップ処理は、本発明の計測手段として機能する。
[変形例]
以上、本発明の実施形態について説明したが、本発明は、上記実施形態に限定されるものではなく、本発明の要旨を逸脱しない範囲内にて、種々の態様をとることができる。
In particular, among the control processes executed by the control circuit 40, the communication process executed in S530 functions as the communication means and date / time information acquisition means of the present invention, and is in an abnormal state executed in S540 to S560. The confirmation process, the charge control process, and the memory operation process function as a control unit of the present invention, and the date / time count-up process executed in S570 functions as a measurement unit of the present invention.
[Modification]
As mentioned above, although embodiment of this invention was described, this invention is not limited to the said embodiment, In the range which does not deviate from the summary of this invention, a various aspect can be taken.

上記実施形態では、電動工具2、バッテリパック4、及び、充電器6の各制御回路20、40、70は、不揮発性メモリ27、45、69に格納する履歴情報には、全て、各異常状態の検出回数を表す回数情報を付与するものとして説明した。   In the above embodiment, each control circuit 20, 40, 70 of the electric tool 2, the battery pack 4, and the charger 6 includes all abnormal states in the history information stored in the nonvolatile memories 27, 45, 69. In the above description, it is assumed that the number-of-times information indicating the number of times of detection is given.

しかし、各異常状態の検出回数は、各制御回路20、40、70が制御処理を開始する際に、不揮発性メモリ27、45、69から最新値が読み込まれ、その後の制御処理にて更新される。   However, the number of times of detection of each abnormal state is updated in the subsequent control process by reading the latest value from the non-volatile memories 27, 45, and 69 when each control circuit 20, 40, 70 starts the control process. The

このため、図24に例示する電動工具の履歴情報のように、各制御回路20、40、70がスリープ状態に移行するときの履歴情報(記憶内容1)にだけ、異常検出回数を付与し、他の履歴情報(記憶内容2〜6)には、異常検出回数を付与しないようにしてもよい。   For this reason, like the history information of the power tool illustrated in FIG. 24, the abnormality detection count is given only to the history information (stored content 1) when each control circuit 20, 40, 70 shifts to the sleep state, The other history information (stored contents 2 to 6) may not be given the number of times of abnormality detection.

このようにすれば、不揮発性メモリ27、45、69に格納される履歴情報のデータ量を少なくして、不揮発性メモリ27、45、69の書き替え回数(換言すれば消去回数)を減らし、延いては、不揮発性メモリ27、45、69の寿命を延ばすことができる。   In this way, the data amount of the history information stored in the nonvolatile memories 27, 45, 69 is reduced, and the number of times of rewriting (in other words, the number of erasures) of the nonvolatile memories 27, 45, 69 is reduced. As a result, the lifetime of the non-volatile memories 27, 45, 69 can be extended.

なお、この場合、不揮発性メモリ27、45、69に履歴情報を書き込む際に、過去の履歴情報が消去され、その後、スリープ状態へ移行する迄に、制御回路20、40、70への電源供給が遮断されると、それまでカウントした異常検出回数が消滅してしまう。   In this case, when history information is written in the nonvolatile memories 27, 45, and 69, the past history information is erased, and then power is supplied to the control circuits 20, 40, and 70 until the sleep state is entered. If is blocked, the number of abnormal detections counted so far will disappear.

そこで、この場合には、各制御回路20、40、70が、不揮発性メモリ27、45、69に記憶された履歴情報を消去した際には、その時点で認識している異常検出回数を、不揮発性メモリ27、45、69に格納するようにするとよい。   Therefore, in this case, when each control circuit 20, 40, 70 erases the history information stored in the non-volatile memories 27, 45, 69, the number of abnormality detections recognized at that time is It is good to store in the non-volatile memories 27, 45, and 69.

次に、上記実施形態では、電動工具2は、バッテリパック4から電源供給を受けて動作するものとして説明した。しかし、本発明は、図25に例示するように、電動工具2が交流電力を供給する商用電源に接続するための電源プラグ91を備え、電源プラグ91を介して得られる交流電力にてモータ94を駆動するように構成されていても、上記実施形態と同様に適用することができる。   Next, in the above embodiment, the power tool 2 has been described as operating by receiving power supply from the battery pack 4. However, as illustrated in FIG. 25, the present invention includes a power plug 91 for connecting the electric power tool 2 to a commercial power source that supplies AC power, and the motor 94 uses AC power obtained via the power plug 91. Even if it is configured to drive, it can be applied in the same manner as in the above embodiment.

つまり、図25に示す電動工具2においては、駆動回路24として、交流電力を受けてモータ94を駆動する駆動回路が備えられ、制御回路20がこの駆動回路24を介してモータ94を駆動制御する。また、図25の電動工具2には、交流電力を受けて、内部回路駆動用の電源電圧(直流定電圧)Vccを生成する電源回路95が設けられている。   That is, in the electric power tool 2 shown in FIG. 25, a drive circuit that receives AC power and drives the motor 94 is provided as the drive circuit 24, and the control circuit 20 drives and controls the motor 94 via the drive circuit 24. . 25 is provided with a power supply circuit 95 that receives AC power and generates a power supply voltage (DC constant voltage) Vcc for driving an internal circuit.

そして、このような電動工具2においても、外部機器8を接続するための端子16〜19を設け、制御回路20が、通信用の端子18、19を介して外部機器8との間で通信を行うことで、日時情報を取得するようにすれば、上記実施形態の電動工具2と同様の効果
を得ることができる。
And also in such an electric tool 2, the terminals 16-19 for connecting the external apparatus 8 are provided, and the control circuit 20 communicates with the external apparatus 8 via the terminals 18 and 19 for communication. By doing so, if the date and time information is acquired, the same effect as the power tool 2 of the above embodiment can be obtained.

また、上記実施形態では、バッテリパック4は、電動工具2又は充電器6に選択的に装着可能に構成され、電動工具2又は充電器6から日時情報を取得するものとして説明した。しかし、図26に例示するように、バッテリパック4は、電動工具2及び充電器6だけでなく、外部機器8にも接続できるよう、構成されていてもよい。そして、このようにすれば、バッテリパック4の制御回路40は、外部機器8から直接日時情報を取得することができるようになる。   Moreover, in the said embodiment, the battery pack 4 was comprised so that it could selectively mount to the electric tool 2 or the charger 6, and it demonstrated as what acquires date information from the electric tool 2 or the charger 6. FIG. However, as illustrated in FIG. 26, the battery pack 4 may be configured to be connected not only to the electric power tool 2 and the charger 6 but also to the external device 8. In this way, the control circuit 40 of the battery pack 4 can acquire the date / time information directly from the external device 8.

また、上記実施形態では、外部機器8が、GPS衛星からの送信電波や標準電波から正確な日時を取得可能なGPSモジュール85及び標準電波受信モジュール86を備えた携帯通信端末であり、電動工具2及び充電器6には、その外部機器8を直接接続できるものとして説明した。   In the above embodiment, the external device 8 is a portable communication terminal including the GPS module 85 and the standard radio wave receiving module 86 that can acquire accurate date and time from the radio wave transmitted from the GPS satellite or the standard radio wave. In the above description, the external device 8 can be directly connected to the charger 6.

しかし、例えば、図27に例示するように、外部機器8がパーソナルコンピュータ(PC)であり、外部機器8を電動工具2及び充電器6に直接接続することができない場合には、電動工具2及び充電器6に、外部機器8との間の通信を中継するアダプタ9を接続するようにしてもよい。   However, for example, as illustrated in FIG. 27, when the external device 8 is a personal computer (PC) and the external device 8 cannot be directly connected to the power tool 2 and the charger 6, An adapter 9 that relays communication with the external device 8 may be connected to the charger 6.

このようにすれば、電動工具2及び充電器6は、アダプタ9を介して、外部機器8と通信を行い、外部機器8から正確な日時情報を取得することが可能となる。
なお、アダプタ9は、電動工具2若しくは充電器6から電力供給を受けるための端子81、82と、電動工具2及び充電器6に接続するための通信端子83、84と、外部機器8を接続するための通信端子97、98とを備える。
In this way, the electric power tool 2 and the charger 6 can communicate with the external device 8 via the adapter 9 and acquire accurate date and time information from the external device 8.
The adapter 9 connects terminals 81 and 82 for receiving power supply from the electric tool 2 or the charger 6, communication terminals 83 and 84 for connection to the electric tool 2 and the charger 6, and the external device 8. Communication terminals 97 and 98 are provided.

そして、通信端子83、84と通信端子97、98との間には、各装置間で送受信される通信信号を適正なロジックレベルに変換するロジックレベル変換回路96が設けられており、端子81、82には、ロジックレベル変換回路96に電源供給を行うレギュレータ87が接続されている。   Between the communication terminals 83 and 84 and the communication terminals 97 and 98, a logic level conversion circuit 96 that converts a communication signal transmitted and received between the devices to an appropriate logic level is provided. A regulator 87 for supplying power to the logic level conversion circuit 96 is connected to 82.

また次に、上記実施形態及び上記変形例では、電動工具2及び充電器6、若しくはバッテリパック4は、外部機器8から日時情報を取得するために、外部機器8を、端子を介して接続可能に構成されるものとして説明した。   Next, in the above embodiment and the above modification, the electric tool 2 and the charger 6 or the battery pack 4 can connect the external device 8 via a terminal in order to acquire date and time information from the external device 8. It was described as being configured.

しかし、電動工具2、バッテリパック4、充電器6が外部機器8から日時情報を取得するようにするには、必ずしも、外部機器8を、端子を介して接続するように構成する必要はなく、外部機器8との間で無線通信することで、日時情報を取得するようにしてもよい。また、電動工具2、バッテリパック4、充電器6と、外部機器8との間の通信は、外部機器8に電源供給を行うのに利用される電力線を用いて行うようにしてもよい。   However, in order for the power tool 2, the battery pack 4, and the charger 6 to acquire date and time information from the external device 8, it is not always necessary to configure the external device 8 to be connected via a terminal. Date and time information may be acquired by wireless communication with the external device 8. Communication between the electric tool 2, the battery pack 4, the charger 6, and the external device 8 may be performed using a power line that is used to supply power to the external device 8.

また更に、上記実施形態及び変形例では、本発明を、電動工具システムを構成する電動工具2、バッテリパック4、充電器6、若しくは、商用電源から交流電力を受けて動作する電動工具2に適用する場合について説明したが、本発明は、例えば、草刈り器や掃除機等の電動作業機に適用することもできる。   Furthermore, in the above-described embodiment and modification, the present invention is applied to the electric tool 2 that constitutes the electric power tool system, the battery pack 4, the charger 6, or the electric power tool 2 that operates by receiving AC power from a commercial power source. However, the present invention can also be applied to an electric working machine such as a mower or a vacuum cleaner.

また、上記実施形態及び変形例では、不揮発性メモリ27、45、69は、制御回路20,40,70とは別に設けられているが、制御回路20,40,70を構成するMCU内に設けてもよい。   In the embodiment and the modification, the nonvolatile memories 27, 45, and 69 are provided separately from the control circuits 20, 40, and 70. However, the nonvolatile memories 27, 45, and 69 are provided in the MCU configuring the control circuits 20, 40, and 70. May be.

また、不揮発性メモリ27、45、69に記憶された履歴情報は、パーソナルコンピュ
ータ(PC)等の情報機器にコピー若しくは移動し、情報機器内で各種処理をすることで、履歴情報を閲覧できるようにしてもよい。
In addition, history information stored in the non-volatile memories 27, 45 and 69 can be copied or moved to an information device such as a personal computer (PC), and the history information can be browsed by performing various processes in the information device. It may be.

そして、特に、図27に示したシステムによれば、外部機器8としてのPCを、アダプタ9を介して電動工具2に接続できるので、不揮発性メモリ27内の情報を外部機器8に簡単にコピー若しくは移動することができる。よって、使用者は、外部機器8としてのPCを利用して、不揮発性メモリ27に格納された履歴情報を閲覧することができるようになる。   In particular, according to the system shown in FIG. 27, since the PC as the external device 8 can be connected to the power tool 2 via the adapter 9, information in the nonvolatile memory 27 can be easily copied to the external device 8. Or it can move. Therefore, the user can browse the history information stored in the nonvolatile memory 27 using the PC as the external device 8.

また、上記実施形態及び変形例では、外部機器8は、電動工具2や充電器6とは別体で構成されるものとして説明したが、例えば、電動工具2(若しくは充電器6)に外部機器8の機能(GPSモジュール85、標準電波受信モジュール86等を利用した日時情報検出機能)を設け、電動工具2(若しくは充電器6)がバッテリパック4に対する外部機器となって、バッテリパック4に日時情報を提供するようにしてもよい。   Moreover, in the said embodiment and modification, although the external apparatus 8 was demonstrated as what was comprised separately from the electric tool 2 and the charger 6, for example, an external apparatus is added to the electric tool 2 (or charger 6). 8 function (a date / time information detection function using the GPS module 85, the standard radio wave reception module 86, etc.), and the power tool 2 (or the charger 6) becomes an external device for the battery pack 4, and the date and time are stored in the battery pack 4. Information may be provided.

2…電動工具、4…バッテリパック、6…充電器、8…外部機器、9…アダプタ、20,40,70,90…制御回路、21,94…モータ、23…トリガスイッチ、24…駆動回路、27,45,69…不揮発性メモリ、28,44,87…レギュレータ、29…モード切り替えスイッチ、36…バッテリ、37,65…電圧測定回路、38,68…電流測定回路、39…温度測定回路、43…充電器検出回路、61,91…電源プラグ、62…整流平滑回路、63…メインコンバータ、64…サブコンバータ、66…過電圧保護回路、67…PWM制御IC、85…GPSモジュール、86…標準電波受信モジュール、95…電源回路、96…ロジックレベル変換回路。   DESCRIPTION OF SYMBOLS 2 ... Electric tool, 4 ... Battery pack, 6 ... Charger, 8 ... External apparatus, 9 ... Adapter, 20, 40, 70, 90 ... Control circuit, 21, 94 ... Motor, 23 ... Trigger switch, 24 ... Drive circuit 27, 45, 69 ... non-volatile memory, 28, 44, 87 ... regulator, 29 ... mode changeover switch, 36 ... battery, 37, 65 ... voltage measurement circuit, 38, 68 ... current measurement circuit, 39 ... temperature measurement circuit 43 ... Charger detection circuit, 61, 91 ... Power plug, 62 ... Rectification smoothing circuit, 63 ... Main converter, 64 ... Sub-converter, 66 ... Overvoltage protection circuit, 67 ... PWM control IC, 85 ... GPS module, 86 ... Standard radio wave receiving module, 95... Power supply circuit, 96... Logic level conversion circuit.

しかしながら、上記従来の電動工具では、締め付けトルク等のデータを履歴情報として残すことはできるものの、電圧低下、温度上昇、…といった、電動工具の動作状態の異常を判定して、履歴情報として残すことはできなかった。  However, in the above-described conventional electric tool, although data such as tightening torque can be left as history information, abnormalities in the operating state of the electric tool such as voltage drop, temperature increase, etc. are determined and left as history information. I couldn't.

従って、上記従来の電動工具においては、履歴情報から締め付け不良が発生した被加工材を特定することはできるものの、履歴情報から電動工具自体のトレーサビリティ管理を行うことは難しいという問題があった。  Therefore, the conventional power tool has a problem that it is difficult to perform traceability management of the power tool itself from the history information, although it is possible to identify the workpiece in which the fastening failure has occurred from the history information.

また、この問題は、電動工具や電動作業機等の電動機器本体に接続される周辺装置(例えば、電動機器に電力供給を行う電源装置やバッテリパック、電動機器に内蔵されたバッテリやバッテリパックへの充電装置、等)においても同様に発生する。 In addition, this problem is caused by peripheral devices connected to the main body of an electric device such as an electric tool or an electric work machine (for example, a power supply device or a battery pack for supplying electric power to the electric device, a battery or a battery pack built in the electric device). This also occurs in the same charging device.

本発明は、こうした問題に鑑みなされたものであり、電動機器本体若しくはその周辺装置からなる電動機器用装置において、電動機器用装置自体の異常を判定して、日時情報と共に残すことができるようにすることを目的とする。 The present invention has been made in view of such problems, and in an apparatus for electric equipment including an electric apparatus main body or its peripheral device, it is possible to determine abnormality of the electric apparatus itself and leave it together with date and time information. The purpose is to do.

請求項1に記載の電動機器用装置においては、当該電動機器用装置の動作の履歴を記憶する記憶部と、日時を計測する日時計測部と、当該電動機器用装置の状態を監視して異常判定を行う異常判定部と、を備える。 In the apparatus for electric equipment according to claim 1, a storage unit that stores an operation history of the apparatus for electric appliances, a date and time measuring unit that measures the date and time, and an abnormality by monitoring the state of the apparatus for electric devices An abnormality determination unit that performs the determination.

そして、異常判定部は、異常判定により異常状態を検出すると、その検出した異常状態を表す情報に日時計測部にて計測された日時情報を付与した履歴情報を、記憶部に格納する。  Then, when the abnormality determination unit detects an abnormal state by the abnormality determination, the abnormality determination unit stores history information in which the date and time information measured by the date and time measurement unit is added to the information indicating the detected abnormal state in the storage unit.

このため、本発明の電動機器用装置によれば、電動機器用装置自体の異常を判定して、履歴情報として残すことができるようになり、その履歴情報から、電動機器用装置のトレーサビリティ管理を実施することが可能となる。  For this reason, according to the device for electric equipment of the present invention, it becomes possible to determine abnormality of the device for electric equipment itself and leave it as history information. From the history information, traceability management of the device for electric equipment can be performed. It becomes possible to carry out.

ここで、異常判定部は、複数の異常内容毎に異常判定を行い、記憶部には異常内容毎に異常履歴を格納するよう構成されていてもよい。  Here, the abnormality determination unit may perform an abnormality determination for each of a plurality of abnormality contents, and the storage unit may be configured to store an abnormality history for each abnormality content.

またこの場合、異常判定部は、複数の異常内容毎に異常検出回数をカウントし、異常判定により異常状態を検出して、異常状態を表す情報に日時情報を付与した履歴情報を記憶部に格納するときには、異常内容毎の異常検出回数についても、記憶部に格納するよう構成されていてもよい。  Also, in this case, the abnormality determination unit counts the number of abnormality detections for each of a plurality of abnormality contents, detects an abnormal state by abnormality determination, and stores history information in which date and time information is added to information representing the abnormal state in the storage unit When it does, you may be comprised so that the abnormality detection frequency | count for every abnormality content may also be stored in a memory | storage part.

このようにすれば、記憶部の記憶容量の制限から、最新の履歴情報を書き込む際に、古い履歴情報が消去されたとしても、記憶部に記憶された履歴情報から、過去に検出された異常内容とその検出回数を検知することができるようになる。よって、このようにすれば、記憶部の記憶容量の制限により、電動機器用装置のトレーサビリティ管理を実施できなくなるのを防止できる。  In this way, because of the limitation of the storage capacity of the storage unit, even when old history information is erased when writing the latest history information, abnormalities detected in the past from the history information stored in the storage unit The contents and the number of detections can be detected. Therefore, in this case, it is possible to prevent the traceability management of the device for electric equipment from being unable to be performed due to the limitation of the storage capacity of the storage unit.

なお、異常判定部は、複数の異常内容毎に異常検出回数をカウントし、当該電動機器用装置の動作停止時には、異常内容毎の異常検出回数を、履歴情報として記憶部に格納するよう構成されていてもよい。このようにしても、上記と同様の効果を得ることができる。  The abnormality determination unit is configured to count the number of abnormality detections for each of a plurality of abnormality contents, and store the number of abnormality detections for each abnormality content in the storage unit as history information when the operation of the electric device device is stopped. It may be. Even if it does in this way, the effect similar to the above can be acquired.

よって、本実施形態の電動工具2によれば、不揮発性メモリ27の記憶容量の制限により、電動工具2のトレーサビリティ管理を実施できなくなるのを防止できる。
なお、本実施形態の電動工具2においては、MCUにて構成され、上述した制御処理を実行する制御回路20が、本発明の日時計測部及び異常判定部に相当し、不揮発性メモリ27は、本発明の記憶部に相当する。
Therefore, according to the power tool 2 of the present embodiment, it is possible to prevent the traceability management of the power tool 2 from being performed due to the limitation of the storage capacity of the nonvolatile memory 27.
In the electric power tool 2 of the present embodiment, the control circuit 20 configured by the MCU and executing the above-described control processing corresponds to the date and time measurement unit and the abnormality determination unit of the present invention, and the nonvolatile memory 27 is This corresponds to the storage unit of the present invention.

また特に、制御回路20にて実行される制御処理の内、S150及びS170にて実行される異常状態確認処理及びメモリ操作処理は、本発明の異常判定部として機能し、S180にて実行される取得日時カウントアップ処理は、本発明の日時計測部として機能する。
[充電器6の制御回路70による制御処理]
図12に示すように、充電器6の制御回路70においては、サブコンバータ64から電源が投入されて、制御処理を開始すると、S300にて、バッテリ36の充電制御に用いられる各種パラメータや後述する各種フラグを初期設定する初期化処理を実行する。
In particular, among the control processes executed by the control circuit 20, the abnormal state confirmation process and the memory operation process executed in S150 and S170 function as the abnormality determination unit of the present invention and are executed in S180. The acquisition date / time count-up process functions as a date / time measuring unit of the present invention.
[Control processing by the control circuit 70 of the charger 6]
As shown in FIG. 12, in the control circuit 70 of the charger 6, when the power is turned on from the sub-converter 64 and the control process is started, various parameters used for charging control of the battery 36 and later described in S300. An initialization process for initializing various flags is executed.

よって、充電器6においても、電動工具2と同様、不揮発性メモリ69の記憶容量の制限により、充電器6のトレーサビリティ管理を実施できなくなるのを防止できる。
なお、本実施形態の充電器6においては、制御回路70が、本発明の日時計測部及び異常判定部に相当し、不揮発性メモリ69は、本発明の記憶部に相当する。
Therefore, in the charger 6 as well as the electric power tool 2, it is possible to prevent the traceability management of the charger 6 from being performed due to the limitation of the storage capacity of the nonvolatile memory 69.
In the charger 6 of the present embodiment, the control circuit 70 corresponds to a date / time measuring unit and an abnormality determination unit of the present invention, and the nonvolatile memory 69 corresponds to a storage unit of the present invention.

また特に、制御回路70にて実行される制御処理の内、S340及びS360にて実行される異常状態確認処理及びメモリ操作処理は、本発明の異常判定部として機能し、S370にて実行される取得日時カウントアップ処理は、本発明の日時計測部として機能する。
[バッテリパック4の制御回路40による制御処理]
図18に示すように、バッテリパック4の制御回路40においては、レギュレータ44から電源が投入されて、制御処理を開始すると、S500にて、バッテリ36への充放電制御に用いられる各種パラメータや後述する各種フラグを初期設定する初期化処理を実行する。
In particular, among the control processes executed by the control circuit 70, the abnormal state confirmation process and the memory operation process executed in S340 and S360 function as the abnormality determination unit of the present invention and are executed in S370. The acquisition date / time count-up process functions as a date / time measuring unit of the present invention.
[Control processing by control circuit 40 of battery pack 4]
As shown in FIG. 18, in the control circuit 40 of the battery pack 4, when power is turned on from the regulator 44 and the control process is started, various parameters used for charge / discharge control for the battery 36 are described in S500 and will be described later. An initialization process for initializing various flags to be executed is executed.

なお、本実施形態のバッテリパック4においては、制御回路40が、本発明の日時計測部及び異常判定部に相当し、不揮発性メモリ45は、本発明の記憶部に相当する。 In the battery pack 4 of the present embodiment, the control circuit 40 corresponds to the date / time measurement unit and the abnormality determination unit of the present invention, and the nonvolatile memory 45 corresponds to the storage unit of the present invention.

また特に、制御回路40にて実行される制御処理の内、S540及びS560にて実行される異常状態確認処理及びメモリ操作処理は、本発明の異常判定部として機能し、S570にて実行される日時カウントアップ処理は、本発明の日時計測部として機能する。
[変形例]
以上、本発明の実施形態について説明したが、本発明は、上記実施形態に限定されるものではなく、本発明の要旨を逸脱しない範囲内にて、種々の態様をとることができる。
In particular, among the control processes executed by the control circuit 40, the abnormal state confirmation process and the memory operation process executed in S540 and S560 function as the abnormality determination unit of the present invention and are executed in S570. The date / time count-up process functions as a date / time measuring unit of the present invention.
[Modification]
As mentioned above, although embodiment of this invention was described, this invention is not limited to the said embodiment, In the range which does not deviate from the summary of this invention, a various aspect can be taken.

Claims (7)

電動機器本体若しくはその周辺装置からなる電動機器用装置であって、
現在の日時を表す日時情報を有する外部機器との間で通信を行う通信手段と、
該通信手段を介して前記外部機器から前記日時情報を取得する日時情報取得手段と、
前記日時情報取得手段にて取得された前記日時情報に基づき制御を行う制御手段と、
を備え、
前記制御手段は、起動後、前記日時情報取得手段にて前記外部機器から前記日時情報が取得されるまでは、当該電動機器用装置に接続されたバッテリパックから日時情報を取得して前記制御を行うように構成されていることを特徴とする電動機器用装置。
A device for an electric device comprising an electric device main body or a peripheral device thereof,
A communication means for communicating with an external device having date and time information representing the current date and time;
Date and time information acquisition means for acquiring the date and time information from the external device via the communication means;
Control means for performing control based on the date information acquired by the date information acquisition means;
With
The control means acquires the date / time information from the battery pack connected to the device for the electric device and performs the control until the date / time information is acquired from the external device by the date / time information acquisition means after activation. An apparatus for an electric device characterized by being configured to perform.
現在の日時を計測する計測手段を備え、
前記制御手段は、前記日時情報取得手段にて取得された前記日時情報に基づき、前記計測手段により計測される日時を更新することを特徴とする請求項1に記載の電動機器用装置。
It has a measuring means to measure the current date and time,
The apparatus for an electric device according to claim 1, wherein the control unit updates the date and time measured by the measurement unit based on the date and time information acquired by the date and time information acquisition unit.
現在の日時を計測する計測手段を備え、
前記制御手段は、前記計測手段にて計測された日時と、前記日時情報取得手段にて取得された前記日時情報から得られる日時との差分を表す差分情報を生成することを特徴とする請求項1に記載の電動機器用装置。
It has a measuring means to measure the current date and time,
The control means generates difference information representing a difference between a date and time measured by the measurement means and a date and time obtained from the date and time information acquired by the date and time information acquisition means. The apparatus for electric devices of 1.
前記制御手段は、当該電動機器用装置が他の電動機器用装置に接続されているとき、前記日時情報取得手段にて取得された日時情報を他の電動機器用装置に提供することを特徴とする請求項1〜請求項3のいずれか1項に記載の電動機器用装置。   The control means provides the date and time information acquired by the date and time information acquisition means to another electric device when the electric device is connected to another electric device. The device for an electric device according to any one of claims 1 to 3. 前記通信手段は、前記外部機器として、GPS受信機、標準電波受信機、通信携帯端末、及び、パーソナルコンピュータの少なくとも一つと通信可能であることを特徴とする請求項1〜請求項4のいずれか1項に記載の電動機器用装置。   The communication means is capable of communicating with at least one of a GPS receiver, a standard radio wave receiver, a communication portable terminal, and a personal computer as the external device. The apparatus for electric equipment of 1 item | term. 当該電動機器用装置の動作の履歴を記憶する記憶手段を備え、
前記制御手段は、前記動作の履歴を表す履歴情報を、前記日時情報と関連付けて前記記憶手段に格納することを特徴とする請求項1〜請求項5のいずれか1項に記載の電動機器用装置。
Comprising storage means for storing a history of operation of the device for electric equipment,
6. The electric device according to claim 1, wherein the control unit stores history information representing a history of the operation in the storage unit in association with the date and time information. apparatus.
前記制御手段は、前記履歴情報に対応する前記動作の発生回数を計数し、前記記憶手段に前記履歴情報を格納する際には、前記履歴情報に前記動作の発生回数を付与することを特徴とする請求項6に記載の電動機器用装置。   The control means counts the number of occurrences of the action corresponding to the history information, and gives the number of occurrences of the action to the history information when storing the history information in the storage means. The apparatus for electric equipment of Claim 6 to do.
JP2017092482A 2017-05-08 2017-05-08 Equipment for electric equipment Active JP6483752B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2017092482A JP6483752B2 (en) 2017-05-08 2017-05-08 Equipment for electric equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2017092482A JP6483752B2 (en) 2017-05-08 2017-05-08 Equipment for electric equipment

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2013097673A Division JP6141678B2 (en) 2013-05-07 2013-05-07 Electric equipment

Publications (2)

Publication Number Publication Date
JP2017159449A true JP2017159449A (en) 2017-09-14
JP6483752B2 JP6483752B2 (en) 2019-03-13

Family

ID=59854394

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2017092482A Active JP6483752B2 (en) 2017-05-08 2017-05-08 Equipment for electric equipment

Country Status (1)

Country Link
JP (1) JP6483752B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2019067265A (en) * 2017-10-03 2019-04-25 マクセル株式会社 Processing tool information management device, power storage device, processing device, power tool, and processing device management device
WO2020054775A1 (en) * 2018-09-14 2020-03-19 株式会社マキタ Power-driven tool

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04333103A (en) * 1991-05-08 1992-11-20 Murata Mach Ltd Controller for automatic machining equipment
JP2004287821A (en) * 2003-03-20 2004-10-14 Matsushita Electric Works Ltd Use support method and device for power tool
JP2011161533A (en) * 2010-02-05 2011-08-25 Makita Corp Power tool and program
JP2014217908A (en) * 2013-05-07 2014-11-20 株式会社マキタ Device for electric appliance

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04333103A (en) * 1991-05-08 1992-11-20 Murata Mach Ltd Controller for automatic machining equipment
JP2004287821A (en) * 2003-03-20 2004-10-14 Matsushita Electric Works Ltd Use support method and device for power tool
JP2011161533A (en) * 2010-02-05 2011-08-25 Makita Corp Power tool and program
JP2014217908A (en) * 2013-05-07 2014-11-20 株式会社マキタ Device for electric appliance
JP6141678B2 (en) * 2013-05-07 2017-06-07 株式会社マキタ Electric equipment

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2019067265A (en) * 2017-10-03 2019-04-25 マクセル株式会社 Processing tool information management device, power storage device, processing device, power tool, and processing device management device
WO2020054775A1 (en) * 2018-09-14 2020-03-19 株式会社マキタ Power-driven tool
JPWO2020054775A1 (en) * 2018-09-14 2021-09-02 株式会社マキタ Electric work machine
JP7427599B2 (en) 2018-09-14 2024-02-05 株式会社マキタ electric work equipment
US11979049B2 (en) 2018-09-14 2024-05-07 Makita Corporation Electric work machine

Also Published As

Publication number Publication date
JP6483752B2 (en) 2019-03-13

Similar Documents

Publication Publication Date Title
JP6141678B2 (en) Electric equipment
KR101355218B1 (en) Battery for electric-powered tool
US5432429A (en) System for charging/monitoring batteries for a microprocessor based system
JP2009063502A (en) Battery remaining capacity management system and its control method
EP2887085B1 (en) Method and apparatus for indicating a low battery level
JP5914599B2 (en) Smart battery with supply voltage management electronics
JP2007215309A (en) Battery pack control method
JP2008309796A (en) Diagnostic device and diagnostic method for battery
JP2007240536A (en) Battery pack and communication method
US11245278B2 (en) Semiconductor device and battery pack
JP6483752B2 (en) Equipment for electric equipment
JPH10164764A (en) Battery capacity monitoring method
JP5153380B2 (en) Charge / discharge method of secondary battery.
JP6815884B2 (en) Battery level alarm device, numerical control device and machine tool system
JPH0681425B2 (en) Battery system method and device and battery pack
CN111742438B (en) Sensor device and method for the operation thereof
CN203942298U (en) Electric tool device
JP5082368B2 (en) Battery status detection system
CN114137423B (en) Electronic device, method for detecting degradation of rechargeable battery, and recording medium
TWI821056B (en) Electronic device and reporting method of battery capacity
US20030146027A1 (en) Residual power indicator for a storage battery of an electric-powered vehicle
US20220082628A1 (en) Method of monitoring a state of charge of a battery
IL299340A (en) A battery powered device and methods in a battery powered device
CN118112440A (en) Electronic device and battery capacity reporting method
TW202411680A (en) Battery management device, battery management method, battery management program

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20180605

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20180730

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20180918

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20181114

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: 20190205

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20190214

R150 Certificate of patent or registration of utility model

Ref document number: 6483752

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250