Encoder, motor system, recording method, and program

The encoder system addresses the limitation of existing encoders by using a dual power source setup to record rotational data even when the main power is off, ensuring data storage and efficient power use.

WO2024247551A1PCT designated stage expired Publication Date: 2024-12-05PANASONIC INTELLECTUAL PROPERTY MANAGEMENT CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
PCT/JP2024/015889
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-05-30
Filing Date
2024-04-23
Publication Date
2024-12-05

AI Technical Summary

Technical Problem

Existing multi-rotation type absolute encoders cannot detect physical quantities other than rotation count or record processed information when the main power is turned off.

Method used

An encoder system with a rotation detection section powered by a main power source and a sub power source, including a first processing section for determining rotational speed and a second processing section for recording information, which can store data even when the main power is off using a power supply flag to manage power distribution from the sub power source.

Benefits of technology

Enables the recording of processed information, including rotational speed and position, even when the main power is out, while minimizing auxiliary power consumption by only using it when necessary.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure JP2024015889_05122024_PF_FP_ABST
    Figure JP2024015889_05122024_PF_FP_ABST
Patent Text Reader

Abstract

The present invention stores processed information even when a main power supply fails. This encoder (6) is provided with a rotation detection unit, a first processing unit (661), and a second processing unit (662). The rotation detection unit is powered by a main power supply (11) or an auxiliary power supply (12). A first processing unit (661) is powered by the main power supply (11) or the auxiliary power supply (12). The first processing unit (661) performs first processing and management processing. The first processing is processing for determining the rotation speed of a subject to be detected. The management processing is processing for managing a power supply flag indicating whether power is supplied from the auxiliary power supply (12) to the second processing unit (662) when the main power supply (11) fails. The second processing unit (662) is powered by the auxiliary power supply (12) when the power supply flag is on. The second processing unit (662) performs second processing different from the first processing. The second processing unit (662) performs storing processing for storing information processed by the second processing in the storage unit (63) when the power supply flag is on.
Need to check novelty before this filing date? Find Prior Art

Description

Encoder, motor system, recording method and program

[0001] The present disclosure generally relates to an encoder, a motor system, a recording method, and a program, and more particularly to an encoder that detects the rotation speed of an object to be detected, a motor system including the encoder, and a recording method and a program used for the encoder.

[0002] Japanese Patent Application Laid-Open No. 2003-144992 discloses a multi-rotation absolute encoder that includes a rotation amount counter and a battery that supplies power to peripheral circuits when the main power supply is cut off.

[0003] Japanese Patent Application Publication No. 9-218054

[0004] The multi-rotation absolute encoder (encoder) described in Patent Document 1 detects the amount of rotation (number of rotations) of a detection target when the main power is turned off. However, the multi-rotation absolute encoder (encoder) described in Patent Document 1 has a problem in that it cannot detect physical quantities other than the number of rotations or record the processed information when the main power is turned off.

[0005] The present disclosure has been made in consideration of the above-mentioned reasons, and aims to provide an encoder, a motor system, a recording method, and a program that can store processed information even when the main power supply is out.

[0006] An encoder according to one aspect of the present disclosure includes a rotation detection unit, a first processing unit, and a second processing unit. The rotation detection unit is powered by a main power supply and, when the main power supply is out of power, is powered by a secondary power supply. The first processing unit is powered by the main power supply. The second processing unit is powered by the main power supply. When the main power supply is out of power, the first processing unit is powered by the secondary power supply. The first processing unit performs a first process and a management process. The first process is a process of determining the rotation speed of a detection target based on a detection result from the rotation detection unit. The management process is a process of managing a power supply flag that indicates whether or not to supply power from the secondary power supply to the second processing unit when the main power supply is out of power. When the main power supply is out of power and the power supply flag is on, the second processing unit is powered from the secondary power supply. The second processing unit performs a second process that is different from the first process. The second processing unit performs a recording process of storing information processed in the second process in a storage unit when the power supply flag is on.

[0007] A motor system according to another aspect of the present disclosure includes the encoder, a motor, a servo amplifier, and a controller. The motor is a detection target of the encoder. The servo amplifier controls the motor. The controller transmits a control signal to the servo amplifier.

[0008] A recording method according to another aspect of the present disclosure is a recording method used in an encoder. The encoder is powered by a main power supply and, when the main power supply is out of power, is powered by a secondary power supply. The encoder includes a rotation detection unit, a first processing unit, and a second processing unit. The recording method includes a first processing step, a management step, a second processing step, and a recording processing step. In the first processing step, the first processing unit determines the rotation speed of the detection object based on the detection result from the rotation detection unit. In the management step, the first processing unit manages a power supply flag indicating whether or not to supply power from the secondary power supply to the second processing unit when the main power supply is out of power. In the second processing step, when the power supply flag is on, a process different from the first processing step is performed. In the recording processing step, when the power supply flag is on, information processed in the second processing step is stored in a memory unit.

[0009] A program according to another aspect of the present disclosure is a program for causing one or more processors to execute the recording method.

[0010] According to the encoder, motor system, recording method, and program according to the above aspects of the present disclosure, processed information can be recorded even if the main power supply is out of power.

[0011] Fig. 1 is a schematic diagram showing the configuration of a motor system according to embodiment 1. Fig. 2 is a block diagram showing the configuration of an encoder included in the motor system according to embodiment 1. Fig. 3 is a timing chart showing the operation of the encoder according to embodiment 1. Fig. 4 is a flowchart showing the operation of the encoder according to embodiment 1. Fig. 5 is a block diagram showing the configuration of an encoder included in the motor system according to embodiment 2. Fig. 6 is a flowchart showing the operation of the encoder according to embodiment 2.

[0012] Preferred embodiments of the present disclosure will be described in detail below with reference to the drawings. In the embodiments described below, common elements are designated by the same reference numerals, and redundant descriptions of the common elements may be omitted. Each of the following embodiments is merely one of various embodiments of the present disclosure. Various modifications of each embodiment may be made depending on the design, etc., as long as the object of the present disclosure can be achieved. Furthermore, each embodiment (including each modified example) may be realized in appropriate combination with other embodiments (including modified examples).

[0013] First Embodiment (1) Overview First, an overview of a motor system 1 according to a first embodiment will be described with reference to FIGS. 1 and 2. FIG.

[0014] Fig. 1 is a schematic diagram showing the configuration of a motor system 1 according to embodiment 1. As shown in Fig. 1, the motor system 1 of embodiment 1 includes a motor unit 4. The motor unit 4 includes a motor 5, which is, for example, a servo motor, and an encoder 6 that detects the rotation speed of the motor 5, which is an object of detection.

[0015] Fig. 2 is a block diagram showing the configuration of the encoder 6 included in the motor system 1 according to embodiment 1. As shown in Fig. 2, the encoder 6 normally operates on power supplied from a main power supply 11. Furthermore, when the main power supply 11 experiences a power outage, a portion of the configuration of the encoder 6 operates on power supplied from a secondary power supply 12.

[0016] As shown in FIG. 2 , the encoder 6 includes a first detector 61 (rotation detector), a first processor 661 , and a second processor 662 .

[0017] The first detection unit 61 is normally supplied with power from the main power supply 11, and is supplied with power from the secondary power supply 12 when the main power supply 11 is in a power outage.

[0018] The first processing unit 661 is normally supplied with power from the main power supply 11, and is supplied with power from the secondary power supply 12 when the main power supply 11 experiences a power outage. The first processing unit 661 performs a first process to determine the rotation speed of the detection object (the motor 5 in the first embodiment) based on the detection result from the first detection unit 61. The first processing unit 661 also performs a management process to manage a power supply flag. The power supply flag is a flag that indicates whether or not to supply power from the secondary power supply 12 to the second processing unit 662 when the main power supply 11 experiences a power outage.

[0019] When the main power supply 11 is out of power and the power supply flag is on, the second processing unit 662 receives power from the secondary power supply 12. The second processing unit 662 performs a second process that is different from the first process. Furthermore, when the power supply flag is on, the second processing unit 662 performs a recording process that stores information processed in the second process in the storage unit 63.

[0020] According to the encoder 6 of the first embodiment, even if the main power supply 11 is experiencing a power outage, the processed information can be stored in the storage unit 63. Furthermore, according to the encoder 6 of the first embodiment, when the main power supply 11 is experiencing a power outage, the second process and management process are performed on the condition that the power supply flag is on. Therefore, it is possible to reduce the power consumption of the secondary power supply 12 compared to, for example, when the second process and management process are always performed when the main power supply 11 is experiencing a power outage.

[0021] (2) Details The detailed configuration of the motor system 1 according to the first embodiment will be described below with reference to Figures 1 to 3. Figure 3 is a timing chart showing the operation of the encoder 6 according to the first embodiment.

[0022] (2.1) Overall Configuration As shown in FIG. 1, the motor system 1 includes a controller 2, a servo amplifier 3, and a motor unit 4.

[0023] (2.2) Configuration of the Controller The controller 2 is a higher-level device than the servo amplifier 3 and the motor unit 4. In the first embodiment, the controller 2 is a programmable logic controller (PLC). However, the controller 2 may also be an electronic control unit (ECU), a desktop or laptop personal computer, a server, or the like.

[0024] The controller 2 is configured to be able to communicate with the servo amplifier 3. In this disclosure, "able to communicate" means being able to send and receive signals directly or indirectly via a network, a repeater, etc., using an appropriate communication method such as wired communication or wireless communication. The controller 2 transmits a control signal to the servo amplifier 3, which includes information such as the rotation direction and target rotation speed of the motor 5.

[0025] (2.3) Configuration of the Servo Amplifier The servo amplifier 3 is a higher-level device than the motor unit 4. The servo amplifier 3 is configured to be able to communicate with the controller 2 and the encoder 6 of the motor unit 4. The servo amplifier 3 controls the operation of the motor 5 of the motor unit 4 based on a control signal received from the controller 2. More specifically, the servo amplifier 3 performs closed-loop control. That is, the servo amplifier 3 controls the operation of the motor 5 based on a control signal received from the controller 2 and a feedback signal received from the encoder 6. The feedback signal includes information on physical quantities such as the rotation speed and rotation position of the motor 5.

[0026] (2.4) Configuration of the Motor Unit As shown in Fig. 1, the motor unit 4 includes a motor 5 and an encoder 6. In the first embodiment, the motor 5 and the encoder 6 are integrally configured. However, it is not essential that the motor 5 and the encoder 6 are integrally configured.

[0027] The motor unit 4 of the first embodiment further includes a secondary power supply 12 that supplies power to the encoder 6 when a main power supply 11, such as a power grid, is out of service. The secondary power supply 12 is, for example, a battery including a lithium-ion battery or a nickel-metal hydride battery.

[0028] (2.4.1) Motor Configuration The motor 5 is a servo motor. The motor 5 has a stator, a rotor that rotates relative to the stator, and an output shaft that rotates together with the rotor.

[0029] (2.4.2) Encoder Configuration The encoder 6 of the first embodiment is a rotary encoder. As shown in Fig. 2 , the encoder 6 includes a first detector 61, a second detector 62, a storage unit 63, a communication unit 64, a switching unit 65, and a processing unit 66.

[0030] In the first embodiment, the first detection unit 61 and the first processing unit 661 of the processing unit 66 are included in the power supply range R1 during a power outage. The "power supply range R1 during a power outage" in the present disclosure is a conceptual range to which a configuration in which, when the main power supply 11 is out of power, power is supplied from the secondary power supply 12 as long as the remaining capacity of the secondary power supply 12 is equal to or greater than a predetermined amount belongs. In other words, the first detection unit 61 and the first processing unit 661 included in the power supply range R1 during a power outage are normally supplied with power from the main power supply 11, and when the main power supply 11 is out of power, power is supplied from the secondary power supply 12 as long as the remaining capacity of the secondary power supply 12 is equal to or greater than a predetermined amount. Note that, in the present disclosure, "powered from the main power supply 11" is intended to include both a case in which power is supplied directly from the main power supply 11 and a case in which power is supplied indirectly from the main power supply 11 via a power supply circuit or the like. Similarly, "powered from the secondary power supply 12" is intended to include a case in which power is supplied directly from the secondary power supply 12 and a case in which power is supplied indirectly from the secondary power supply 12 via a power supply circuit or the like.

[0031] In the first embodiment, the second detection unit 62, the storage unit 63, and the second processing unit 662 of the processing unit 66 are included in the extended power supply range R2. The "extended power supply range R2" in the present disclosure is a range obtained by expanding the power supply range R1 during a power outage. Specifically, the extended power supply range R2 is a conceptual range to which a configuration that receives power from the secondary power supply 12 belongs when the main power supply 11 is out of power and a predetermined condition is met. Here, the predetermined condition is that the extension flag is on. The second detection unit 62, the storage unit 63, and the second processing unit 662 included in the extended power supply range R2 are normally supplied with power from the main power supply 11. Furthermore, the second detection unit 62, the storage unit 63, and the second processing unit 662 included in the extended power supply range R2 are supplied with power from the secondary power supply 12 when the main power supply 11 is out of power and the power supply flag is on.

[0032] The first detector 61 is a rotation detector that detects the rotation speed or rotation position of the rotor of the motor 5. The first detector 61 includes a sensor for detecting the rotation speed or rotation position of the rotor of the motor 5. Specifically, the first detector 61 of the first embodiment includes a photo IC (photo integrated circuit). The first detector 61 outputs an electrical signal corresponding to the rotation speed or rotation position of the rotor of the motor 5 to a rotation speed processing unit 663 of the first processing unit 661.

[0033] The second detection unit 62 in the first embodiment is an acceleration detection unit that detects the acceleration of the motor 5. It includes an acceleration sensor for detecting the acceleration of the motor 5. The acceleration sensor is, for example, a three-axis acceleration sensor. The three-axis acceleration sensor detects acceleration along three mutually orthogonal axes, and outputs an electrical signal corresponding to the acceleration to an acceleration processing unit 666 of the second processing unit 662.

[0034] The storage unit 63 of the first embodiment includes an electrically readable and writable nonvolatile memory. More specifically, the storage unit 63 of the first embodiment includes an EEPROM (Electrically Erasable Programmable Read Only Memory). Note that the storage unit 63 may include a rewritable ROM (Read Only Memory) other than an EEPROM.

[0035] As described above, when the main power supply 11 experiences a power outage and the power supply flag is on, the storage unit 63 in the first embodiment is supplied with power from the secondary power supply 12. Because the storage unit 63 is a non-volatile storage unit, it can retain the information stored in the recording process even when the storage unit 63 is no longer supplied with power from the main power supply 11 or the secondary power supply 12.

[0036] The communication unit 64 includes a communication interface configured to be able to communicate with the servo amplifier 3. The communication unit 64 transmits a feedback signal including information on physical quantities other than the rotation speed determined by the first processing unit 661 in the first process and the rotation speed determined by the second processing unit 662 in the second process to the servo amplifier 3. Note that the communication unit 64 may include a communication interface configured to be able to communicate with the controller 2.

[0037] The switching unit 65 electrically connects, directly or indirectly, the secondary power supply 12 to each component included in the extended power supply range R2 when a predetermined condition is met. Here, the predetermined condition is that the power supply flag is on.

[0038] The processing unit 66 is embodied by, for example, an application specific integrated circuit (ASIC) or a field-programmable gate array (FPGA), etc. As shown in FIG. 2 , the processing unit 66 includes a first processing unit 661, a second processing unit 662, and a trigger detection unit 668.

[0039] As described above, the first processing unit 661 is included in the power failure power supply range R1. In other words, when the main power supply 11 is out of power, the components included in the first processing unit 661 are powered by the secondary power supply 12 as long as there is remaining capacity in the secondary power supply 12. The first processing unit 661 has a rotation speed processing unit 663 and a flag management unit 664.

[0040] As the first process described above, the rotation speed processing unit 663 determines the rotation speed and rotational speed [rpm] of the rotor of the motor 5, which is the detection target, based on the detection result of the first detection unit 61. Specifically, the rotation speed processing unit 663 determines the rotation speed of the rotor of the motor 5 based on an electrical signal output by a photo IC included in the first detection unit 61. Note that, with respect to rpm, which is a unit of rotational speed, 1 rpm = 1 rotation / minute = 360° / minute.

[0041] The flag management unit 664 manages a power supply flag that indicates whether or not power is to be supplied from the secondary power supply 12 to each component included in the extended power supply range R2 when the main power supply 11 is experiencing a power outage. In the first embodiment, when the main power supply 11 is experiencing a power outage and the power supply flag is on, power is supplied from the secondary power supply 12 to each component included in the extended power supply range R2. On the other hand, when the power supply flag is off, power is not supplied from the secondary power supply 12 to each component included in the extended power supply range R2.

[0042] In the first embodiment, the flag management unit 664 turns on the power supply flag when the trigger detection unit 668 detects a log trigger. The log trigger is a signal that indicates the start of power supply. The flag management unit 664 then turns off the power supply flag when a predetermined time has elapsed since the power supply flag was turned on. The predetermined time is, for example, approximately 1 to 5 seconds. The predetermined time can be set arbitrarily by the user of the encoder 6. Because the power supply flag remains on for only the predetermined time, when the main power supply 11 is out of power, power consumption by the secondary power supply 12 can be reduced as long as the remaining capacity of the secondary power supply 12 is equal to or greater than a predetermined amount compared to when power is supplied from the secondary power supply 12 to the extended power supply range R2.

[0043] As described above, the second processing unit 662 is included in the extended power supply range R2. That is, when the main power supply 11 is out of power and the power supply flag is on, the components included in the second processing unit 662 are powered by the secondary power supply 12. The second processing unit 662 has a position processing unit 665, an acceleration processing unit 666, and a recording processing unit 667.

[0044] As the second process described above, the position processing unit 665 determines the rotational position of the rotor of the motor 5, which is the detection target, based on the detection result of the first detection unit 61. Specifically, the position processing unit 665 determines the rotational position of the rotor of the motor 5 based on the electrical signal output by the photo IC included in the first detection unit 61.

[0045] As the second process described above, the acceleration processing unit 666 determines the acceleration of the motor 5, which is the detection target, based on the detection result of the second detection unit 62. Specifically, the acceleration processing unit 666 determines the acceleration of the motor 5 based on the electrical signal output by the acceleration sensor included in the second detection unit 62.

[0046] As described above, the recording processing unit 667 performs a recording process when the power supply flag is on. In the recording process, the recording processing unit 667 stores, in the storage unit 63, information processed in the second process performed while the power supply flag is on. For example, the recording processing unit 667 stores, in the storage unit 63, information on the rotational position obtained in the second process, information on acceleration, information on the time or duration at which each process was performed, and CRC (Cyclic Redundancy Check) information for a communication error with the first detection unit 61 or the second detection unit 62. Note that, in the recording process, the recording processing unit 667 may store, in the storage unit 63, information processed in the first process performed while the power supply flag is on.

[0047] In the first embodiment, the second process determines the rotational position of the rotor of the motor 5 and the acceleration of the motor 5. Therefore, even if the main power supply 11 is out of power, information on the rotational position of the rotor of the motor 5 and information on the acceleration of the motor 5 can be stored in the storage unit 63.

[0048] The trigger detection unit 668 detects a log trigger. The trigger detection unit 668 detects at least one of a predetermined abnormality and a predetermined error as a log trigger. That is, the flag management unit 664 of the first processing unit 661 turns on the power supply flag based on at least one of the predetermined abnormality and the predetermined error. The predetermined abnormality or predetermined error is, for example, an abnormality or error that may cause a power outage in the main power supply 11, and triggers the recording processing unit 667 of the second processing unit 662 to start recording processing. That is, in the present disclosure, "detecting a log trigger" is intended to include detecting at least one of a predetermined abnormality and a predetermined error that serve as a log trigger. According to the encoder 6 of embodiment 1, in the case where the main power supply 11 experiences a power outage after detecting at least one of a predetermined abnormality and a predetermined error, the information processed in the second processing can be stored in the storage unit 63.

[0049] The trigger detection unit 668 of the first embodiment detects a log trigger based on the amount of change per unit time in the number of rotations determined in the first process. That is, the flag management unit 664 of the first processing unit 661 turns on the power supply flag based on the amount of change per unit time in the number of rotations detected in the first process.

[0050] For example, the trigger detection unit 668 of the first embodiment detects a log trigger when the amount of change per unit time in the rotation speed detected in the first process is greater than the rotation speed threshold value. According to the encoder 6 of the first embodiment, in the case where the main power supply 11 experiences a power outage after a large change in the rotation speed of the detection target, the information processed in the second process can be stored in the storage unit 63.

[0051] Furthermore, the trigger detection unit 668 detects a log trigger based on the amount of change per unit time in the rotational position of the rotor of the motor 5 obtained in the second process. That is, the flag management unit 664 of the first processing unit 661 turns on the power supply flag based on the amount of change per unit time in the rotational position of the rotor of the motor 5 obtained in the second process.

[0052] For example, the trigger detection unit 668 of the first embodiment detects a log trigger when the amount of change [°] per unit time of the rotational position obtained in the second process is greater than the position threshold [°]. According to the encoder 6 of the first embodiment, in the case where the main power supply 11 loses power after a large change in the rotational position of the detection target, the information processed in the second process can be stored in the storage unit 63.

[0053] Furthermore, the trigger detection unit 668 turns on the power supply flag based on the acceleration obtained in the second process. That is, the flag management unit 664 of the first processing unit 661 turns on the power supply flag based on the acceleration of the motor 5 obtained in the second process.

[0054] For example, the trigger detection unit 668 of the first embodiment detects a log trigger when the acceleration detected in the second process is greater than the acceleration threshold value. According to the encoder 6 of the first embodiment, in a case where the main power supply 11 experiences a power outage after the acceleration of the detection target becomes greater than the acceleration threshold value, the information processed in the second process can be stored in the storage unit 63.

[0055] The trigger detection unit 668 of the first embodiment is not included in the power failure power supply range R1 and the extended power supply range R2. In other words, when the main power supply 11 is in a power failure state, the trigger detection unit 668 is not supplied with power from the secondary power supply 12.

[0056] (3) Operation of the Encoder Next, the operation of the encoder 6 will be described with reference to Fig. 3 and Fig. 4. As described above, Fig. 3 is a timing chart showing the operation of the encoder 6 according to the first embodiment. Fig. 4 is a flowchart showing the operation of the encoder 6 according to the first embodiment.

[0057] First, the encoder 6 detects a log trigger (step S1 in FIG. 4). When the encoder 6 detects the log trigger, it turns on the power supply flag (step S2 in FIG. 4). FIG. 3 shows an example in which the encoder 6 detects the log trigger at timing T1.

[0058] As shown in FIG. 3 , the encoder 6 performs a recording process when the power supply flag is on. In the example of FIG. 3 , the recording process to the memory unit is performed between timing T1 and timing T4. FIG. 3 shows an example in which the main power supply 11 experiences a power outage at timing T2. At timing T2, the main power supply 11 experiences a power outage due to, for example, an interlock or malfunction of the vehicle in which the motor system 1 is installed. However, because the power supply flag is on at timing T2, the encoder 6 performs the first process, the second process, and the recording process using power supplied from the auxiliary power supply 12 after timing T2, when the main power supply experiences a power outage. Note that the operation of the communication unit 64, which is not included in the power outage power supply range R1 or the extended power supply range R2, stops at timing T2.

[0059] 3, for example, an impact is applied to the motor 5 at timing T3, causing a change in the acceleration calculated in the second process. Information about the acceleration calculated in the second process is stored in the storage unit 63. According to the encoder 6 of the first embodiment, even if the main power supply 11 is powered out, a record (log) of the abnormality can be kept.

[0060] As shown in FIG. 4 , the encoder 6 determines whether a predetermined time has elapsed since the power supply flag was turned on (step S3 in FIG. 4 ). The predetermined time is the time from timing T1, when log counting by the flag management unit 664 in FIG. 3 , to timing T4, when log counting ends. That is, FIG. 3 illustrates an example in which the flag management unit 664 turns off the power supply flag at timing T4. If the predetermined time has not elapsed (step S3: No in FIG. 4 ), the encoder 6 repeats the process of step S3. On the other hand, if the predetermined time has elapsed (step S3: Yes), that is, if log counting has ended, the encoder 6 turns off the power supply flag (step S4 in FIG. 4 ). Then, the encoder 6 ends the series of processes illustrated in FIG. 4 .

[0061] As shown in FIG. 3, when the power supply flag is turned off, power supply to the extended power supply range R2 ends, and the encoder 6 ends the second process and the recording process.

[0062] The flowchart shown in FIG. 4 is merely an example, and the order of the processes may be changed as appropriate, and processes may be added or deleted as appropriate.

[0063] (4) Modifications Modifications of the first embodiment are listed below.

[0064] (4.1) First Modification The trigger detection unit 668 may detect a log trigger when the communication unit 64 receives a predictive warning signal from an external device such as the controller 2 or the servo amplifier 3. In other words, the flag management unit 664 turns on the power supply flag when the communication unit 64 receives a predictive warning signal from an external device such as the controller 2 or the servo amplifier 3.

[0065] The predictive warning signal is a signal transmitted from the controller 2 or the servo amplifier 3 to the encoder 6 when an abnormality such as a power outage of the main power supply 11 is predicted. In the first modification, the controller 2 predicts the occurrence of an abnormality. For example, when the controller 2 receives an earthquake early warning, the controller 2 predicts the occurrence of an abnormality such as a power outage of the main power supply 11. Furthermore, for example, when the motor system 1 is installed in a vehicle, the controller 2 predicts the occurrence of an abnormality such as a power outage of the main power supply 11 (e.g., a collision accident) when it detects the sudden approach of another vehicle, a wall, or the like based on the detection results of a camera or a TOF (Time of Flight) sensor. When the controller 2 predicts the occurrence of an abnormality, it transmits a predictive warning signal to the servo amplifier 3. When the servo amplifier 3 receives the predictive warning signal from the controller 2, it transmits the predictive warning signal to the encoder 6.

[0066] According to the encoder 6 of the first modified example, when an external device such as the controller 2 or a servo amplifier predicts the occurrence of an abnormality, the power supply flag can be turned on in advance.

[0067] (4.2) Other Modifications A function equivalent to the processing unit 66 of the encoder 6 according to the first embodiment may be embodied as a recording method, a (computer) program, a non-transitory recording medium on which a program is recorded, or the like. A recording method according to one aspect is a recording method used in the encoder 6. The encoder 6 is powered by the main power supply 11 and, when the main power supply 11 is powered, is powered by the secondary power supply 12. The encoder 6 includes a rotation detection unit (first detection unit 61), a first processing unit 661, and a second processing unit 662. The recording method includes a first processing step, a management step, a second processing step, and a recording processing step. In the first processing step, the first processing unit 661 determines the rotation speed of the detection target based on the detection result from the rotation detection unit. In the management step, the first processing unit 661 manages a power supply flag indicating whether or not to supply power from the secondary power supply 12 to the second processing unit 662 when the main power supply 11 is powered. In the second processing step, when the power supply flag is on, a process different from the first processing step is performed. In the recording processing step, if the power supply flag is on, the information processed in the second processing step is stored in the storage unit 63. A program according to one aspect is a program for causing one or more processors to execute the above-described recording method.

[0068] The entity that executes the recording method of the present disclosure includes a computer system. The computer system is primarily composed of a processor and memory as hardware. The processor executes a program stored in the memory of the computer system to realize the functions of the encoder 6 or the entity that executes the recording method of the present disclosure. The program may be pre-recorded in the memory of the computer system, provided via a telecommunications line, or provided by being recorded on a non-transitory recording medium readable by the computer system, such as a memory card, optical disk, or hard disk drive. The processor of the computer system is composed of one or more electronic circuits including a semiconductor integrated circuit (IC) or a large-scale integrated circuit (LSI). The integrated circuits, such as ICs and LSIs, are referred to by different names depending on the degree of integration, and include integrated circuits called system LSIs, very large-scale integrations (VLSIs), or ultra-large-scale integrations (ULSIs). Furthermore, FPGAs, which are programmed after the LSI is manufactured, or logic devices that are capable of reconfiguring the connections within the LSI or reconfiguring the circuit partitions within the LSI, can also be used as processors. The electronic circuits may be integrated into one chip or distributed across multiple chips. The chips may be integrated into one device or distributed across multiple devices. The computer system referred to here includes a microcontroller having one or more processors and one or more memories. Therefore, the microcontroller is also composed of one or more electronic circuits including a semiconductor integrated circuit or a large-scale integrated circuit.

[0069] The second detection unit 62 may function as a temperature detection unit. That is, the second detection unit 62 may include a sensor for detecting the temperature of the detection target (e.g., the motor 5). The sensor for detecting the temperature is, for example, a thermistor. The second detection unit 62 outputs an electrical signal corresponding to the temperature of the detection target to the second processing unit 662. As the second processing, the second processing unit 662 determines the temperature of the detection target based on the electrical signal output by the second detection unit 62. For example, the trigger detection unit 668 detects a log trigger when the temperature of the detection target is higher than a temperature threshold. That is, the flag management unit 664 turns on the power supply flag when the temperature of the detection target is higher than the temperature threshold.

[0070] The second detection unit 62 may also function as a detection unit that detects the remaining capacity of the secondary power supply 12. When the second detection unit 62 detects that the remaining capacity of the secondary power supply 12 is equal to or less than a predetermined capacity, the flag management unit 664 may turn on a power supply flag. The second detection unit 62 may also function as a detection unit that detects the generated voltage of a device that generates power using the rotation of the motor 5 in the motor system 1. When the second detection unit 62 detects that the generated voltage is equal to or less than a predetermined voltage, the flag management unit 664 may turn on a power supply flag.

[0071] Second Embodiment (1) Overview An overview of an encoder 6A according to a second embodiment will be described with reference to FIG.

[0072] The encoder 6A of embodiment 2 differs from the encoder 6 of embodiment 1 in that, when the power supply flag is on, the second processing unit 662 performs a recording process to store the information processed in the second process in the memory unit 63 possessed by the first processing unit 661.

[0073] (2) Encoder Configuration Fig. 5 is a block diagram showing the configuration of the encoder 6A included in the motor system 1 according to the second embodiment. As shown in Fig. 5, the first processing unit 661 according to the second embodiment has a storage unit 63 (first storage unit). The storage unit 63 according to the second embodiment includes a static random access memory (SRAM).

[0074] The encoder 6A further includes a storage unit 67 (second storage unit) separate from the storage unit 63 (first storage unit). The storage unit 67 is not included in the power failure power supply range R1 or the extended power supply range R2, and is therefore not supplied with power from the secondary power supply 12. The storage unit 67 includes an electrically writable nonvolatile memory. The storage unit 67 of the second embodiment includes an EEPROM.

[0075] As described above, the recording processing unit 667 of the second processing unit 662 of the second embodiment stores the information processed in the second process performed while the power supply flag is on in the storage unit 63, which is an SRAM. Here, the power consumption when storing information in SRAM is smaller than the power consumption when storing information in EEPROM. According to the encoder 6A of the second embodiment, the information processed in the second process can be stored in the storage unit 63 with relatively little power consumption.

[0076] Moreover, the first processing unit 661 of the second embodiment further includes a storage management unit 669 .

[0077] When the main power supply 11 is restored from a power outage, the memory management unit 669 stores the information stored in the memory unit 63 (first memory unit), which is SRAM, in the memory unit 67 (second memory unit), which is EEPROM.

[0078] When the main power supply 11 is in a power outage, the encoder 6A of the second embodiment temporarily stores the information processed in the second process in the storage unit 63, which is an SRAM, in order to reduce the power consumption of the secondary power supply 12. When the main power supply 11 is restored from the power outage, the encoder 6A copies the information stored in the storage unit 63, which is an SRAM, to the storage unit 67, which is an EEPROM, thereby non-temporarily storing the information in the storage unit 67.

[0079] (3) Operation of the Encoder Next, the operation of the encoder 6A will be described with reference to Fig. 6. Fig. 6 is a flowchart showing the operation of the encoder 6A of the second embodiment. Note that the processing of steps S1 to S4 in Fig. 6 is the same as steps S1 to S4 in Fig. 4 described in the first embodiment, and therefore the description thereof will be omitted.

[0080] When the encoder 6A detects that the main power supply 11 has been restored (step S5 in FIG. 6), it copies the log (information processed in the second process) stored in the storage unit 63 (first storage unit) to the storage unit 67 (second storage unit) (step S6 in FIG. 6). Then, the encoder 6A ends the series of processes shown in FIG. 6.

[0081] The flowchart shown in FIG. 6 is merely an example, and the order of the processes may be changed as appropriate, and processes may be added or deleted as appropriate.

[0082] (4) Modifications Modifications of the second embodiment are listed below.

[0083] The storage unit 63 may be, for example, a dynamic random access memory (DRAM), and the storage unit 67 may be a writable ROM other than an EEPROM.

[0084] (Summary) As is clear from the above-described embodiment, the encoder (6; 6A) according to the first aspect includes a rotation detection unit (first detection unit 61), a first processing unit (661), and a second processing unit (662). The rotation detection unit is powered by the main power supply (11), and is powered by the secondary power supply (12) when the main power supply (11) is in a power outage. The first processing unit (661) is powered by the main power supply (11). The second processing unit (662) is powered by the main power supply (11). The first processing unit (661) is powered by the secondary power supply (12) when the main power supply (11) is in a power outage. The first processing unit (661) performs a first process and a management process. The first process is a process of determining the rotation speed of the detection target based on the detection result by the rotation detection unit. The management process is a process for managing a power supply flag that indicates whether or not to supply power from the secondary power supply (12) to the second processing unit (662) when the main power supply (11) is experiencing a power outage. When the main power supply (11) is experiencing a power outage and the power supply flag is on, the second processing unit (662) receives power from the secondary power supply (12). The second processing unit (662) performs a second process that is different from the first process. When the power supply flag is on, the second processing unit (662) performs a recording process that stores information processed in the second process in the storage unit (63).

[0085] According to this aspect, even if the main power supply (11) is out of power, information other than the rotation speed of the detection target can be stored in the storage unit (63). Also, power consumption of the auxiliary power supply (12) can be reduced.

[0086] In the encoder (6; 6A) according to the second aspect, in the first aspect, the second processing unit (662) determines the rotational position of the object to be detected based on the detection result of the rotation detection unit (first detection unit 61) in the second processing.

[0087] According to this aspect, even if the main power supply (11) is out of power, information on the rotational position of the detection target can be stored in the storage unit (63).

[0088] The encoder (6; 6A) according to the third aspect is the encoder of the first or second aspect, further comprising an acceleration detection unit (second detection unit 62). The acceleration detection unit detects the acceleration of the detection object. The power supply flag indicates whether or not to supply power from the secondary power supply (12) to the second processing unit (662) and the acceleration detection unit when the main power supply (11) is out of power. In the second processing, the second processing unit (662) determines the acceleration of the detection object based on the detection result from the acceleration detection unit.

[0089] According to this aspect, even if the main power supply (11) is out of power, the information on the acceleration of the detection object can be stored in the storage unit (63).

[0090] The encoder (6) according to a fourth aspect is the encoder (6) of any one of the first to third aspects, further comprising a storage unit (63). The storage unit (63) includes an electrically writable nonvolatile memory, and is supplied with power from the secondary power supply (12) when the power supply flag is on.

[0091] According to this aspect, even if the storage unit (63) is no longer supplied with power from the main power supply (11) or the auxiliary power supply (12), the information stored in the recording process can be retained.

[0092] In an encoder (6A) according to a fifth aspect, in any one of the first to third aspects, the first processing unit (661) has a storage unit (63). The storage unit (63) includes an SRAM.

[0093] According to this aspect, it is possible to store information with less power consumption than when storing information in an EEPROM or the like.

[0094] The encoder (6A) according to a sixth aspect is the encoder (6A) of the fifth aspect, in which the memory unit (63) is a first memory unit and further includes a second memory unit (memory unit 67) separate from the first memory unit. The second memory unit is not powered by the secondary power supply (12). The second memory unit includes an electrically writable nonvolatile memory. When the main power supply (11) is restored from a power outage, the first processing unit (661) causes the information stored in the first memory unit to be stored in the second memory unit.

[0095] According to this aspect, the information processed in the second process is temporarily stored in an SRAM (storage unit 63) when the main power supply (11) is experiencing a power outage, and is then stored in a non-volatile second storage unit (storage unit 67) after the main power supply (11) recovers from the power outage, thereby reducing the power consumption of the secondary power supply (12).

[0096] In the encoder (6; 6A) according to the seventh aspect, in any one of the first to fifth aspects, the first processing unit (661) turns on the power supply flag when it detects at least one of a specified abnormality and a specified error.

[0097] According to this aspect, in the case where the main power supply (11) experiences a power outage after detecting at least one of a specified abnormality and a specified error, the information processed in the second process can be stored in the memory unit (63).

[0098] In the encoder (6; 6A) according to the eighth aspect, in the seventh aspect, the first processing unit (661) turns on the power supply flag based on the amount of change per unit time in the rotation speed determined by the first processing.

[0099] According to this aspect, in the case where the main power supply (11) experiences a power outage after a large change in the rotation speed of the object to be detected, the information processed in the second process can be stored in the memory unit (63).

[0100] In the encoder (6; 6A) according to the ninth aspect, in the seventh or eighth aspect, the second processing unit (662) determines the rotational position of the detection target based on the detection result of the rotation detection unit (first detection unit 61) in the second process. The first processing unit (661) turns on the power supply flag based on the amount of change per unit time in the rotational position determined in the second process.

[0101] According to this aspect, for example, in the case where the main power supply (11) is interrupted after a large change in the rotational position of the object to be detected, the information processed in the second process can be stored in the memory unit (63).

[0102] The encoder (6; 6A) according to a tenth aspect is any one of the seventh to ninth aspects, and further includes an acceleration detection unit (second detection unit 62). The acceleration detection unit detects the acceleration of the detection object. The power supply flag indicates whether or not to supply power from the secondary power supply (12) to the second processing unit (662) and the acceleration detection unit when the main power supply (11) is out of power. In the second process, the second processing unit (662) determines the acceleration of the detection object based on the detection result from the acceleration detection unit. The first processing unit (661) turns on the power supply flag based on the acceleration determined in the second process.

[0103] According to this aspect, for example, in the case where the main power supply (11) is interrupted after the acceleration of the detection object increases, the information processed in the second process can be stored in the memory unit (63).

[0104] The encoder (6; 6A) according to an eleventh aspect is the encoder (6; 6A) of any one of the first to tenth aspects, further including a communication unit (64) configured to be able to communicate with an external device (the controller 2 or the servo amplifier 3). The first processing unit (661) turns on a power supply flag when the communication unit (64) receives a predictive warning signal from the external device.

[0105] According to this aspect, when an external device such as the controller (2) predicts the occurrence of an abnormality, it can turn on the power supply flag in advance.

[0106] In the encoder (6; 6A) according to the twelfth aspect, in any one of the first to eleventh aspects, the first processing unit (661) turns off the power supply flag when a predetermined time has elapsed since the power supply flag was turned on.

[0107] According to this aspect, the power consumption of the secondary power supply (12) can be reduced.

[0108] The configurations other than the first aspect are not essential for the encoder (6; 6A) and can be omitted as appropriate.

[0109] A motor system (1) according to a thirteenth aspect includes an encoder (6; 6A) according to any one of the first to twelfth aspects, a motor (5), a servo amplifier (3), and a controller (2). The motor (5) is a detection target of the encoder (6). The servo amplifier (3) controls the motor (5). The controller (2) transmits a control signal to the servo amplifier (3).

[0110] According to this aspect, even if the main power supply (11) is out of power, information other than the rotation speed of the detection target can be stored in the storage unit (63). Also, power consumption of the auxiliary power supply (12) can be reduced.

[0111] A recording method according to a fourteenth aspect is a recording method used in an encoder (6; 6A). The encoder (6; 6A) is powered by a main power supply (11) and, when the main power supply (11) is powered, is powered by a secondary power supply (12). The encoder (6; 6A) includes a rotation detection unit (first detection unit 61), a first processing unit (661), and a second processing unit (662). The recording method includes a first processing step, a management step, a second processing step, and a recording processing step. In the first processing step, the first processing unit (661) determines the rotation speed of the detection object based on the detection result from the rotation detection unit. In the management step, the first processing unit (661) manages a power supply flag indicating whether or not to supply power from the secondary power supply (12) to the second processing unit (662) when the main power supply (11) is powered. In the second processing step, when the power supply flag is on, a process different from the first processing step is performed. In the recording process step, if the power supply flag is on, the information processed in the second process step is stored in the storage unit (63).

[0112] According to this aspect, even if the main power supply (11) is out of power, the processed information can be stored in the storage unit (63). Also, the power consumption of the secondary power supply (12) can be reduced.

[0113] A program according to a fifteenth aspect is a program for causing one or more processors to execute the recording method according to the fourteenth aspect.

[0114] According to this aspect, even if the main power supply (11) is out of power, the processed information can be stored in the storage unit (63). Also, the power consumption of the secondary power supply (12) can be reduced.

[0115] The encoder, motor system, recording method, and program disclosed herein are industrially useful because they can record processed information even when the main power supply is out of service.

[0116] REFERENCE SIGNS LIST 1 Motor system 11 Main power supply 12 Sub-power supply 2 Controller (external device) 3 Servo amplifier (external device) 5 Motor (detection object) 6 Encoder 6A Encoder 61 First detection unit (rotation detection unit) 62 Second detection unit (acceleration detection unit) 661 First processing unit 662 Second processing unit 63 Storage unit 64 Communication unit 67 Storage unit

Claims

1. An encoder comprising: a rotation detection unit that is powered by a main power source and that is powered by a secondary power source when the main power source is out of power; a first processing unit that is powered by the main power source; and a second processing unit that is powered by the main power source, wherein the first processing unit is powered by the secondary power source when the main power source is out of power, and performs a first process of determining the rotation speed of a detection object based on a detection result by the rotation detection unit, and a management process of managing a power supply flag that indicates whether or not power is to be supplied from the secondary power source to the second processing unit when the main power source is out of power, wherein the second processing unit is powered by the secondary power source when the main power source is out of power and the power supply flag is on, and performs a second process different from the first process, and performs a recording process of storing information processed in the second process in a memory unit when the power supply flag is on.

2. The encoder according to claim 1, wherein the second processing section, in the second process, determines a rotational position of the detection object based on the detection result by the rotation detection section.

3. The encoder of claim 1, further comprising an acceleration detection unit that detects the acceleration of the detection object, wherein the power supply flag indicates whether or not to supply power from the secondary power supply to the second processing unit and the acceleration detection unit when the main power supply is out of power, and wherein the second processing unit, in the second processing, determines the acceleration of the detection object based on the detection result by the acceleration detection unit.

4. The encoder according to claim 1, further comprising the storage unit, the storage unit including an electrically writable non-volatile memory, and powered by the secondary power supply when the power supply flag is on.

5. The encoder according to claim 1, wherein the first processing unit has the memory unit, and the memory unit includes a static random access memory.

6. The encoder of claim 5, further comprising a second memory unit separate from the first memory unit, the second memory unit not powered by the secondary power supply and including an electrically writable non-volatile memory, and the first processing unit causes the information stored in the first memory unit to be stored in the second memory unit when the main power supply is restored from a power outage.

7. The encoder according to claim 1, wherein the first processing unit turns on the power supply flag when at least one of a predetermined abnormality and a predetermined error is detected.

8. The encoder according to claim 7, wherein the first processing unit turns on the power supply flag based on an amount of change per unit time of the number of rotations determined in the first process.

9. The encoder of claim 7, wherein the second processing unit, in the second process, determines the rotational position of the detection object based on the detection result by the rotation detection unit, and the first processing unit turns on the power supply flag based on the amount of change per unit time of the rotational position determined in the second process.

10. The encoder of claim 7, further comprising an acceleration detection unit which detects the acceleration of the detection object, wherein the power supply flag indicates whether or not to supply power to the second processing unit and the acceleration detection unit from the secondary power supply when the main power supply is out of power, wherein the second processing unit, in the second process, determines the acceleration of the detection object based on the detection result by the acceleration detection unit, and the first processing unit turns on the power supply flag based on the acceleration determined in the second process.

11. The encoder of claim 1, further comprising a communication unit configured to communicate with an external device, wherein the first processing unit turns on the power supply flag when the communication unit receives a predictive warning signal from the external device.

12. The encoder according to claim 1, wherein the first processing unit turns off the power supply flag when a predetermined time has elapsed since the power supply flag was turned on.

13. A motor system comprising: an encoder according to any one of claims 1 to 12; a motor that is the detection target of said encoder; a servo amplifier that controls said motor; and a controller that transmits a control signal to said servo amplifier.

14. A recording method used in an encoder that is powered from a main power source and, when the main power source is out of power, is powered from a secondary power source, and that has a rotation detection unit, a first processing unit, and a second processing unit, comprising: a first processing step in which the first processing unit determines the number of rotations of an object to be detected based on a detection result from the rotation detection unit; a management step in which the first processing unit manages a power supply flag indicating whether or not power is to be supplied from the secondary power source to the second processing unit when the main power source is out of power; a second processing step in which, when the power supply flag is on, a process different from the first processing step is performed; and a recording processing step in which, when the power supply flag is on, information processed in the second processing step is stored in a memory unit.

15. A program for causing one or more processors to execute the recording method according to claim 14.

Citation Information

Patent Citations

  • Multi-rotation type absolute encoder

    JP1997218054A

  • Multi rotation absolute encoder

    JP1997273943A

  • Magnetic absolute encoder

    JP2008180698A

  • Magnetic type absolute value encoder device

    JP2008224283A

  • Encode

    JP2015090288A