Motor control circuit, control method thereof, and motor drive control device
By using first and second storage areas in the motor control circuit to store the control algorithm and parameter group respectively, and by specifying parameters to select which parameter group to use to execute the program, the problem of increased batch production time is solved, flexible changes and adjustments to functions are realized, and production efficiency is improved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- MINEBEAMITSUMI INC
- Filing Date
- 2021-05-19
- Publication Date
- 2026-07-07
AI Technical Summary
In motor control circuits, during mass production, the control algorithm and parameters are stored in two separate non-volatile memories, which increases the production cycle time and makes it difficult to flexibly change or adjust functions during development.
The control algorithm and the first parameter group are stored in the first storage area, and the second parameter group is stored in the second storage area. The motor control program can be executed by specifying parameters to achieve changes or adjustments in functions.
It effectively suppresses the increase in production cycle time during mass production, and allows for flexible changes or adjustments to functions during development, thereby improving production efficiency.
Smart Images

Figure CN113708699B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to motor control circuits, motor drive control devices, and control methods for motor control circuits. Background Technology
[0002] In recent years, motor control circuits used in motor drive control devices that drive fan motors have been able to change or adjust various functions controlled by the motor control circuit, such as speed and advance angle, by changing parameters stored in an onboard non-volatile memory. Thus, by forming a configuration that allows for functional modification / adjustment, cost and substrate area can be reduced without the need for external components.
[0003] For example, Patent Document 1 describes a motor control device equipped with a non-volatile memory that stores the correction gain of a current sensor as a parameter. In this motor control device, the current sensor is calibrated by using the correction gain stored in the non-volatile memory, thus eliminating the need for a separate current sensor for inspection.
[0004] (Prior technical documents)
[0005] (Patent Documents)
[0006] Patent document 1: JP 2010-63325. Summary of the Invention
[0007] (The problem the invention aims to solve)
[0008] In a motor control circuit included in a motor control device, as described in Patent Document 1, various functions can be achieved by using parameters stored in non-volatile memory and executing a program by a control algorithm, as described above. In such a motor control circuit, in order to achieve a low-cost configuration, it is common for the control algorithm and parameters constituting the program to be stored in two separate non-volatile memories.
[0009] On the other hand, during mass production, writing the control algorithm and parameters to the two non-volatile memories requires separate writing methods. Therefore, in existing motor control circuits, the process operation time, i.e., the production cycle time, increases during mass production.
[0010] To avoid the above situation, consider writing the control algorithm and parameters into a non-volatile memory during mass production.
[0011] However, assuming the control algorithm and parameters are written to a single non-volatile memory, the following problems arise. If the storage area for the control algorithm also contains the storage area for the parameters, it becomes difficult to easily rewrite the parameters. Therefore, during the development of motor control circuits, it is not easy to modify parameters that are related to changes or adjustments in accompanying functions. Furthermore, if the storage areas for the control algorithm and parameters are configured separately, similar to storing the control algorithm and parameters in two separate non-volatile memories, it may increase the process operation time, i.e., the production cycle time, during mass production.
[0012] The present invention addresses the aforementioned problems and aims to suppress the increase in production cycle time during mass production in a motor control circuit that can modify or adjust the functions to be implemented.
[0013] (Technical solution used to solve the problem)
[0014] To address the aforementioned issues, one embodiment describes a motor control circuit that controls a motor drive unit. This circuit includes a first storage region and a second storage region. The first storage region stores a control algorithm for the motor control circuit and a first set of parameters for the control algorithm. The second storage region stores a second set of parameters for the control algorithm.
[0015] (Invention Effects)
[0016] According to the motor control circuit of the present invention, in a motor control circuit that can change or adjust the function to be implemented, it is possible to suppress the increase in production cycle time during mass production. Attached Figure Description
[0017] Figure 1 This is a schematic diagram illustrating an example of a fan device equipped with a motor drive control device having a motor control circuit.
[0018] Figure 2 This is a block diagram illustrating an example of the hardware configuration of a motor control circuit.
[0019] Figure 3 This diagram illustrates the motor control program stored in the first non-volatile memory and the second non-volatile memory.
[0020] Figure 4 This is a flowchart illustrating the process by which the control algorithm reads the parameter set and executes the motor control program.
[0021] Figure 5 It is a diagram used to illustrate the function of a specified parameter.
[0022] Figure 6This is a timing diagram illustrating the method for writing the motor control program during mass production of a fan device equipped with the motor control circuit of this embodiment.
[0023] Figure 7 This diagram illustrates the method for changing parameter groups during development before mass production or during changes or adjustments after mass production.
[0024] Figure 8 It is a diagram that shows the method of changing parameters during development before mass production or during changes or adjustments after mass production.
[0025] Figure 9 It is a diagram that shows the method of changing specified parameters during development before mass production or during changes or adjustments after mass production. Detailed Implementation
[0026] 1. Overview of the implementation method
[0027] First, a summary description of representative embodiments of the invention disclosed in this application will be provided. Furthermore, in the following description, as an example, reference numerals in the accompanying drawings corresponding to the components of the invention will be enclosed in parentheses.
[0028] [1] The motor control circuit (10) involved in the representative embodiment of the present invention is a motor control circuit (10) for controlling the motor drive unit (20), which has a first storage area (3) and a second storage area (4). In the first storage area (3), the control algorithm (200) of the motor control circuit (10) and a first parameter set (201) for the control algorithm are stored. In the second storage area (4), the second parameter set (202) used by the control algorithm can be stored.
[0029] [2] The motor control circuit described in [1] above may have the following structure: the second storage area has a specified parameter, the specified parameter specifies which parameter group of the first parameter group and the second parameter group the control algorithm uses to execute the motor control program, the control algorithm reads the value of the specified parameter when it starts up, and uses the parameter group specified by the read value to execute the motor control program.
[0030] [3] The motor control circuit described in [2] above can have the following structure: when the specified parameters are initial values, the control algorithm uses the first parameter group to execute the motor control program.
[0031] [4] The motor control circuit described in any one of [1] to [3] above may have the following structure: the control algorithm uses either the first parameter group or the second parameter group to execute the motor control program, thereby outputting the drive control signal for controlling the motor drive to the motor drive unit.
[0032] [5] The motor drive control device (104) according to the representative embodiment of the present invention includes: a motor control circuit as described in any one of [1] to [4] above; and a motor drive unit that drives a motor based on a drive control signal output from the motor control circuit.
[0033] [6] In the control method of the motor control circuit according to the representative embodiment of the present invention, the motor control circuit includes a first storage area and a second storage area, and outputs a drive control signal to a motor drive unit. In the first storage area, a control algorithm of the motor control circuit and a first parameter group for the control algorithm are stored. In the second storage area, a second parameter group for the control algorithm can be stored. The control method of the motor control circuit includes: a step of referring to the value of a specified parameter in the second storage area when the control algorithm is started; a step of determining which parameter group of the first parameter group and the second parameter group to use to execute the motor control program according to the value of the specified parameter; and a step of executing the motor control program by the control algorithm using the determined parameter group.
[0034] [7] In the control method of the motor control circuit described in [6] above, the following decision can be made in the decision-making step: when the value of the specified parameter is an initial value, the control algorithm uses the first parameter group stored in the first storage area to execute the motor control program.
[0035] Hereinafter, specific examples of embodiments of the present invention will be described with reference to the accompanying drawings. Furthermore, in the following description, common components in each embodiment will be given the same reference numerals, and repeated descriptions will be omitted.
[0036] 2. Specific examples of implementation methods
[0037] Hereinafter, specific examples of this embodiment will be described with reference to the accompanying drawings. Furthermore, in the following description, common components in each embodiment will be given the same reference numerals, and repeated descriptions will be omitted.
[0038] The motor control circuit of this embodiment can, for example, be used as a circuit to generate drive control signals within a motor drive control device mounted on a fan assembly. First, a fan assembly equipped with a motor drive control device having the motor control circuit of this embodiment will be described.
[0039] Figure 1 This is a schematic diagram illustrating an example of a fan assembly 100 equipped with a motor drive control device 104 having a motor control circuit 10. The fan assembly 100 includes an impeller 101, a motor 102, a position sensor 103, and a motor drive control device 104.
[0040] like Figure 1 As shown, in the fan assembly 100, the impeller 101 is connected to the motor 102 and rotates with the rotation of the rotor in the motor 102 (also referred to as "rotation of the motor 102"). The motor 102 is driven to rotate by the motor drive control device 104. For example, a three-phase brushless motor can be used as the motor 102, but the type of motor is not particularly limited, and the number of phases is not limited to three.
[0041] The position sensor 103 outputs a signal corresponding to the rotational position of the rotor in the motor 102 to the motor drive control device 104. In this embodiment, the rotational position signal of the rotor is generated in the motor drive control device 104 by estimating the rotational position of the rotor based on the output signal of the Hall element, which serves as the position sensor 103. The position sensor 103 is not limited to a Hall element; it is not particularly limited to any sensor capable of determining the rotational position of the rotor in the motor 102. Alternatively, a sensorless method without a position sensor may be used.
[0042] The motor drive control device 104 drives the motor 102 to rotate by causing a drive current (also called "motor current") to flow through the three-phase armature coils of the motor 102 based on the rotor's rotational position signal. The motor drive control device 104 includes: a motor control circuit 10 that generates a drive control signal Sd for controlling the drive of the motor 102; a motor drive unit 20 that has an inverter circuit 21 that causes the drive current to flow through the motor 102 based on the drive control signal Sd; a current detection unit 25 that detects the drive current of the motor drive unit 20; and a position detection unit 26 that detects the rotational position of the rotor based on the output signal from the position sensor 103 and generates a rotational position signal.
[0043] The motor control circuit 10 can be accessed, for example, via a communication unit. When an upper-level device that instructs the operation of the fan unit 100 instructs a target speed via the communication unit, the motor control circuit 10 outputs a drive control signal Sd to the motor drive unit 20 to make the rotation of the motor 102 reach the target speed. In addition, when receiving a notification request for the actual speed (also known as "current speed") from the upper-level device, the motor control circuit 10 can also notify the upper-level device of the actual speed of the motor 102 per unit time.
[0044] The rotational position signal generated by the position detection unit 26 is input to the motor control circuit 10. The motor control circuit 10 can measure the actual number of revolutions of the motor 102 per unit time, i.e., the actual rotational speed, based on the rotational position of the rotor, which is obtained from the rotational position signal generated in the position detection unit 26. The motor control circuit 10 can output a drive control signal Sd to the motor drive unit 20 according to the measured actual rotational speed, so that the rotation of the motor 102 reaches the target rotational speed.
[0045] The motor drive unit 20 has an inverter circuit 21, and through the inverter circuit 21, a drive current flows through the motor 102 based on the drive control signal Sd output from the motor control circuit 10.
[0046] The current detection unit 25 detects the drive current of the inverter circuit 21 as the motor current and inputs it to the motor control circuit 10. The motor control circuit 10 outputs a drive control signal Sd to the motor drive unit 20 to control its drive, so that the motor current reaches the desired value.
[0047] The motor control circuit 10 controls and notifies based on instructions from the upper-level device, and as a functional unit for outputting drive control signal Sd, it includes a transmitting unit 11, a receiving unit 12, a communication processing unit 13, an advance angle and duty cycle determination unit 15, a duty cycle setting unit 16, an advance angle control unit 17, a power-on control unit 18, and a speed measurement unit 19. These functional units are implemented by performing prescribed processing through the hardware configuration of the motor control circuit 10.
[0048] The transmitting unit 11 transmits arbitrary signals to the superior device and external devices via the communication unit, and the receiving unit 12 receives arbitrary signals from the superior device and external devices via the communication unit. The transmitting unit 11 and the receiving unit 12 are controlled by the communication processing unit 13 to perform interface functions for transmitting or receiving specified content.
[0049] When the communication processing unit 13 receives an instruction for the target speed of the motor from the upper-level device, it notifies the advance angle and duty cycle determination unit 15 of the target speed. When the communication processing unit 13 receives a speed notification request from the upper-level device, it sends the information indicating the actual speed of the motor 102 received from the speed measurement unit 19, i.e., the actual speed information, to the upper-level device that is the source of the notification request via the transmission unit 11.
[0050] The advance angle and duty cycle determination unit 15 performs the following function: it determines the advance angle value corresponding to the target speed and the duty cycle adjusted in a way that achieves the target speed as a combination of the advance angle value and the duty cycle of the drive control signal Sd.
[0051] The advance angle and duty cycle determination unit 15 outputs the advance angle value of the drive control signal Sd, which is predetermined as the advance angle value of the drive control signal Sd corresponding to the target speed, to the advance angle control unit 17, and outputs an arbitrary duty cycle to the duty cycle setting unit 16. The advance angle value of the drive control signal Sd, predetermined as the advance angle value of the drive control signal Sd corresponding to the target speed, can be used as a parameter described later, and the combination of the target speed and the corresponding advance angle value of the drive control signal Sd can be stored in the memory. Figure 2 The first non-volatile memory 3 and the second non-volatile memory 4 are shown. The parameter sets stored in these memories can be used to execute a motor control program (also called a "program") using a control algorithm, thereby determining the advance angle value and generating a drive control signal Sd using that advance angle value. An arbitrary duty cycle is determined to a value that causes the speed of the motor 102, which receives feedback input, to converge to a target speed. The actual speed of the motor 102 can be obtained using the value acquired from the speed measurement unit 19. Regarding any duty cycle, a drive control signal Sd with a duty cycle determined by using the parameter sets stored in the memory and executing the program using a control algorithm can also be generated.
[0052] The power-on control unit 18 functions as a drive control signal generation unit that generates the drive control signal Sd based on the combination of the advance angle value and the duty cycle of the drive control signal Sd determined by the duty cycle setting unit 16 and the advance angle control unit 17.
[0053] The duty cycle setting unit 16 and the advance angle control unit 17 notify the power-on control unit 18 of the determined advance angle value and duty cycle of the drive control signal Sd. The power-on control unit 18 generates a drive control signal Sd for controlling the drive of the inverter circuit 21 of the motor drive unit 20 based on the notified advance angle value and duty cycle. The power-on control unit 18 can obtain the generation time of the drive control signal Sd based on the rotational position signal generated by the position detection unit 26. Based on the determined advance angle value of the drive control signal Sd and referring to the rotational position signal generated by the position detection unit 26, the power-on control unit 18 controls and outputs the drive control signal Sd so that the phase of the drive signal of the inverter circuit 21 is at a predetermined advance angle value. Furthermore, the power-on control unit 18 controls and outputs, for example, the duty cycle of the drive control signal Sd generated as a PWM signal based on the duty cycle of the drive control signal Sd.
[0054] Figure 2 This is a block diagram illustrating an example of the hardware configuration of the motor control circuit 10. The motor control circuit 10 is composed of a program processing device (e.g., a microcontroller: MCU), such as... Figure 2As shown, it has hardware components such as CPU1, RAM2, first non-volatile memory 3 (an example of the first storage area), second non-volatile memory 4 (an example of the second storage area), A / D conversion circuit 5, input / output (I / F) circuit 6, and clock circuit, and the components are interconnected via bus and dedicated lines.
[0055] In the motor control circuit 10, the CPU 1, which functions as a processor, performs various calculations according to the program stored in the first non-volatile memory 3 or the second non-volatile memory 4 and retrieved by the RAM 2, and controls the A / D conversion circuit 5 and the input / output (I / F) circuit 6, thereby realizing... Figure 1 The configuration of each functional unit within the motor control circuit 10 shown.
[0056] like Figure 2 As shown, in the motor control circuit 10 of this embodiment, the CPU 1, which functions as a processor, retrieves a program stored in the first non-volatile memory 3 or the second non-volatile memory 4 and stores it in the RAM 2. It then performs various calculations according to the program stored in the RAM 2 to achieve the aforementioned functions. The program executed by the CPU 1 includes a control algorithm and a parameter set. The various functions implemented by the program can be changed or adjusted according to the parameters. For example, the power supply mode can be changed according to the parameter set. Furthermore, the drive control signal Sd of the motor control circuit 10 can be appropriately changed according to the parameter set to adjust the desired function. Parameters include, for example, the "motor speed curve" and "advance angle value" in the case of the fan device of this embodiment, but are not particularly limited as long as they are parameters used to change or adjust functions.
[0057] Figure 3 This diagram illustrates the motor control program stored in the first non-volatile memory 3 and the second non-volatile memory 4. The motor control circuit 10 of this embodiment includes two non-volatile memories 3 and 4.
[0058] Since there is no intention to rewrite the first non-volatile memory 3, any non-volatile memory can be used regardless of whether it can be rewritten. Examples of non-volatile memories that can be used as the first non-volatile memory 3 include, but are not limited to, ROM (Read Only Memory), flash memory, EPROM (Erasable Programmable ROM), and EEPROM (Electrically Erasable Programmable ROM).
[0059] As the second non-volatile memory 4, unlike the first non-volatile memory 3, it can use memory that is rewritable. Examples of non-volatile memories that can be used as the second non-volatile memory 4 include flash memory, EPROM (Erasable Programmable ROM), and EEPROM (Electrically Erasable Programmable ROM), etc. It is not limited to these, as long as it is a rewritable non-volatile memory.
[0060] In the motor control circuit 10 of this embodiment, during mass production, both the control algorithm 200 constituting the program and the first parameter set 201 for implementing basic functions are stored in the first non-volatile memory 3. Regarding the second non-volatile memory 4, the second parameter set 202 other than the specified parameter X is not used during mass production. By storing only the control algorithm 200 and the first parameter set 201 corresponding to mass production in the first non-volatile memory 3, program storage can be executed in one process, thus suppressing the increase in production cycle time. On the other hand, in the second non-volatile memory 4, for example, during development before mass production, or during changes or adjustments after mass production, the second parameter set 202 can be appropriately changed from an external device such as a PC (personal computer) 300 at times different from mass production. By appropriately changing the second parameter set 202, which is different from the first parameter set 201, in the second non-volatile memory 4, the functions implemented by executing the program (executing a motor control program using the second parameter set using the control algorithm 200) can be appropriately changed or adjusted.
[0061] In the motor control circuit 10, the second non-volatile memory 4 has a specified parameter X whose value can be appropriately changed. This specified parameter X specifies which parameter group (parameter 1A, 1B, ..., 1W) stored in the first non-volatile memory 3 and the second parameter group 202 (parameter 2A, 2B, ..., 2W) stored in the second non-volatile memory 4 should be used by the control algorithm 200 to execute the motor control program. In the motor control circuit 10, when the CPU 1 starts the control algorithm 200 stored in the first non-volatile memory 3, the control algorithm 200 refers to the value of the specified parameter X to determine which parameter group (first parameter group 201 or second parameter group 202) should be used, and executes the motor control program using the determined parameter group. Thus, functions that can be changed or adjusted as needed can be realized.
[0062] (Control methods for motor control circuits)
[0063] Figure 4This is a flowchart illustrating the process by which control algorithm 200 reads the parameter set and executes the motor control program. Figure 5 This diagram illustrates the function of the specified parameter X. First, in the motor control circuit 10, when the control algorithm 200 stored in the first non-volatile memory 3 is read by the RAM 2 and the control algorithm 200 is started, the specified parameter X in the second non-volatile memory 4 is read (step S101), and it is determined whether the specified parameter X is "0" or "1" (step S102). Furthermore, this specification describes the following situations: when the specified parameter X is "0", the control algorithm 200 uses the second parameter group 202 (parameters 2A, 2B, ..., 2W) stored in the second non-volatile memory 4 to execute the program; when the specified parameter X is "1", the control algorithm 200 uses the first parameter group 201 (parameters 1A, 1B, ..., 1W) stored in the first non-volatile memory 3 to execute the program, but it is not limited to these situations.
[0064] When parameter X is specified as "0" (step S102: "Yes"), the program is executed by reading the second parameter set 202 (parameters 2A, 2B, ..., 2W) stored in the second non-volatile memory 4 and storing it in RAM 2 (step S103) (step S105). The control algorithm 200 uses the second parameter set 202 (parameters 2A, 2B, ..., 2W) stored in the second non-volatile memory 4 to execute the program, thereby enabling the implementation of the changed or adjusted functions.
[0065] When parameter X is specified as "1" (step S102: "No"), the program is executed by reading the first parameter group 201 (parameters 1A, 1B, ..., 1W) stored in the first non-volatile memory 3 and storing it in RAM 2 (step S104) (step S105). The control algorithm 200 uses the first parameter group 201 (parameters 1A, 1B, ..., 1W) stored in the first non-volatile memory 3 to execute the program, thereby enabling the implementation of the basic functions defined during mass production.
[0066] Continue the execution of the program (return to step S105) until the program execution ends (step S106: "Yes").
[0067] In this embodiment, the initial value of the specified parameter X is "1". That is, without rewriting the value of the specified parameter X, the value of the specified parameter X is "1", therefore in Figure 4In the parameter readout process of the control algorithm 200, the control algorithm 200 uses the first parameter set 201 (parameters 1A, 1B, ..., 1W) stored in the first non-volatile memory 3 to execute the program. When the control algorithm 200 wants to use the second parameter set 202 stored in the second non-volatile memory 4 to execute the program, it rewrites the specified parameter X to "0" and uses the second parameter set 202 (parameters 2A, 2B, ..., 2W) to execute the desired program processing.
[0068] (Program writing method)
[0069] Here, the method for writing the program in the fan device 100 equipped with the motor control circuit 10 of this embodiment will be described.
[0070] Figure 6 This is a timing diagram illustrating the method of writing the motor control program to the fan device 100 equipped with the motor control circuit 10 of this embodiment during mass production. In this timing diagram, an example is shown where the program is written from outside the fan device 100 using a writing tool 400 (see reference 400). Figure 3 ), via the loader 203 in the first non-volatile memory 3 of the motor control circuit 10 (refer to Figure 3 Write it into the program.
[0071] like Figure 6 As shown, in the fan device 100 equipped with the motor control circuit 10 of this embodiment, the writing tool 400 can request the loader 203 to write all parameters and the control algorithm 200. The loader 203 performs the writing of all parameters (first parameter group 201) and the writing of the control algorithm 200 to the first non-volatile memory 3 in the same procedure. If the writing is completed, the loader 203 notifies the writing tool 400 that the writing is complete. Thus, according to the motor control circuit 10 of this embodiment, during mass production, the program (all parameters and the control algorithm 200) can be stored with a single write request from the writing tool 400. Furthermore, in the motor control circuit 10 of this embodiment, the program can also be written to the first non-volatile memory 3 in the same way as during mass production during development before mass production.
[0072] In fan units equipped with existing motor control circuits, during mass production, the control algorithm is stored in one non-volatile memory, and the parameter set is stored in other non-volatile memories. In this case, the writing tool cannot simultaneously request the write of all parameters and the control algorithm to the loader. That is, a write request for the control algorithm is made first, and then a parameter write request is made only after receiving notification that the control algorithm write is complete. Therefore, in existing motor control circuits, during mass production, the program needs to be stored using a two-step write request from the writing tool.
[0073] Thus, during mass production, compared to the existing motor control circuit which requires two write requests from the writing tool to store the program, the motor control circuit 10 according to this embodiment can store the program using a single write request from the writing tool 400. Therefore, it can be said that compared to the existing motor control circuit, the motor control circuit 10 according to this embodiment can suppress the increase in production cycle time during mass production.
[0074] In the fan device 100 equipped with the motor control circuit 10 of this embodiment, such as Figure 6 As shown, during mass production, the parameters for changing or adjusting functions (second parameter group 202) are not used. Instead, when changes or adjustments to functions are required, such as during function adjustments that include changes or adjustments to functions before or after mass production (hereinafter referred to as "function adjustment"), the parameters for changing or adjusting functions (second parameter group 202) can be used.
[0075] Figures 7 to 9 This diagram illustrates the methods for changing the motor control program during development before mass production or during functional adjustments after mass production. Figure 7 This diagram illustrates the method for changing parameter groups during development before mass production or during feature adjustments after mass production (specifically, an example of changing all parameters in the second parameter group 202 used for feature changes or adjustments). Figure 8 This diagram illustrates how parameters are changed during development before mass production or during feature adjustments after mass production (specifically, an example of changing parameters in a portion of the second parameter group 202 used for feature changes or adjustments). Figure 9 This is a diagram illustrating how specified parameters are changed during development before mass production or during functional adjustments after mass production (specifically, an example of returning the parameter set used by control algorithm 200 to the first parameter set 201 during mass production). Figures 7 to 9 This is an example of CPU1 changing the parameter group via control algorithm 200 in response to a parameter change request from PC300.
[0076] When the control algorithm 200 executes the program using a second parameter set 202 that is different from the first parameter set 201 stored in the first non-volatile memory 3 during batch production, in order to change or adjust the functions defined for batch production, such as... Figure 7 As shown, it is possible to change the parameter group at the same time. Figure 7As shown, if CPU1 receives a request from PC300 to change all parameter groups, it changes the second parameter group 202 in the second non-volatile memory 4 according to control algorithm 200. If the change of the second parameter group 202 in the second non-volatile memory 4 is completed, CPU1 notifies PC300 of the completion of the change according to control algorithm 200. The change of the second parameter group 202 also includes the change of a specified parameter X, which is changed to "0" instead of its initial value. Since the specified parameter X becomes "0", control algorithm 200 reads the second parameter group 202 stored in the second non-volatile memory 4 to execute the program. Thus, the functions defined during mass production are changed or adjusted.
[0077] In order to modify or adjust only a portion of the functions defined during mass production, and to execute the motor control program using parameters different from those stored in the first parameter group 201 of the first non-volatile memory 3 during mass production, a portion of the second parameter group 202 can be changed. For example... Figure 8 As shown, if CPU1 receives a request from PC300 to change parameter 2C, which is part of the second parameter group 202, then according to control algorithm 200, it changes parameter 2C and the specified parameter X in the second non-volatile memory 4. The specified parameter X is changed to "0" which is different from its initial value. If the specified parameter X was already "0" which is different from its initial value when the change of parameter 2C is received, then it is not necessary to change the value. If the changes of parameter 2C and the specified parameter X in the second non-volatile memory 4 are completed, then CPU1 notifies PC300 that the change of parameter 2C is complete according to control algorithm 200. Along with parameter 2C, the specified parameter X is changed to "0" which is different from its initial value, so control algorithm 200 uses the second parameter group 202, including parameter 2C stored in the second non-volatile memory 4, to execute the program. Therefore, only a part of the function defined during mass production is changed or adjusted.
[0078] If, after modifying or adjusting the functions defined during mass production, in order to revert to the functions defined during mass production, the first parameter set 201 stored in the first non-volatile memory 3 during mass production is used and the program is executed by the control algorithm 200, as follows: Figure 9 As shown, it is possible to change a specified parameter X. For example... Figure 9As shown, if CPU1 receives a request from PC300 to change a specified parameter X, it changes the specified parameter X stored in the second parameter group 202 of the second non-volatile memory 4 according to control algorithm 200. The specified parameter X is changed to "1", the same as its initial value. If the change of the specified parameter X in the second non-volatile memory 4 is completed, CPU1 notifies PC300 of the completion of the change of the specified parameter X according to control algorithm 200. The specified parameter X becomes "1", the same as its initial value, so control algorithm 200 reads the first parameter group 201 stored in the first non-volatile memory 3 and executes the program. Thus, the function defined for mass production is executed.
[0079] (Modifications of the implementation method)
[0080] According to the motor control circuit of this embodiment described above, in a motor control circuit that can change or adjust the function implemented by rewriting the parameters stored in the non-volatile memory, the increase in production cycle time during mass production can be suppressed.
[0081] In the above implementation methods, using Figure 1 The fan assembly described is a specific example. However, the configuration of the fan assembly, the motor control circuit, and the motor drive control device are not limited to the example described.
[0082] The same applies to the hardware configuration of the motor control circuit. Figure 2 The configurations shown are for illustrative purposes only and are not limited to this configuration. For example, in the above embodiments, the case where the first non-volatile memory 3 and the second non-volatile memory 4 are configured as physically independent non-volatile memories has been described as an example. These two non-volatile memories 3 and 4 do not necessarily have to be physically independent; they can also be configured using a single non-volatile memory with two storage regions. For example, by using a flash memory, defining a virtual address space, and corresponding multiple actual memory spaces that are actually accessed, it is possible to transform the memory using software to make it appear as if there are two storage regions. These two storage regions can then be used as the first non-volatile memory 3 and the second non-volatile memory 4, respectively.
[0083] Regarding the inclusion of Figure 4 , 5 The control method of the motor control circuit, which includes the control algorithm 200 in the motor control circuit reading parameters to execute program processing, is also illustrated using a specific example, but is not limited to this specific example.
[0084] about Figure 6 The program writing method shown and Figures 7 to 9The method for changing the parameters shown is illustrated with a specific example, but is not limited to that specific example.
[0085] In addition, in this embodiment, the case where the specified parameter X is included in the second parameter group 202 is described, but it is sufficient as long as the specified parameter X is included in the second non-volatile memory 4 (i.e., the second storage area), it does not necessarily have to be included in the second parameter group 202.
[0086] Label Explanation
[0087] 1 CPU, 2 RAM, 3 First non-volatile memory (an example of the first storage area), 4 Second non-volatile memory (an example of the second storage area), 5 A / D conversion circuit, 6 Input / output (I / F) circuit, 10 Motor control circuit, 11 Transmitting unit, 12 Receiving unit, 13 Communication processing unit, 15 Advance angle and duty cycle determination unit, 16 Duty cycle setting unit, 17 Advance angle control unit, 18 Power-on control unit, 19 Speed measurement unit, 20 Motor drive unit, 21 Inverter circuit, 25 Current detection unit, 26 Position detection unit, 100 Fan device, 101 Impeller, 102 Motor, 103 Position sensor, 104 Motor drive control device, 200 Control algorithm, 201 First parameter group, 202 Second parameter group, 203 Loader, 300 PC, 400 Writing tool, X specified parameters, 1A~1W, 2A~2W parameters.
Claims
1. A motor control circuit for controlling a motor drive unit, characterized in that it comprises: First storage area; and Second storage area, The first storage area stores the control algorithm of the motor control circuit and the first parameter set used by the control algorithm. The second storage area can store the second set of parameters used by the control algorithm. The second storage area has specified parameters that specify which parameter group, either the first or the second parameter group, the control algorithm uses to execute the motor control program. When the control algorithm starts, it reads the value of the specified parameter and, based on the read value, determines which parameter group, the first parameter group or the second parameter group, to use to execute the motor control program, and uses the determined parameter group to execute the motor control program.
2. The motor control circuit according to claim 1, wherein, With the specified parameters set to initial values, the control algorithm uses the first parameter set to execute the motor control program.
3. The motor control circuit according to claim 1, wherein, The control algorithm uses either the first parameter group or the second parameter group to execute the motor control program, thereby outputting a drive control signal for controlling the motor drive to the motor drive unit.
4. A motor drive control device, characterized in that, have: The motor control circuit according to any one of claims 1 to 3; and The motor drive unit drives the motor based on the drive control signal output from the motor control circuit.
5. A control method for a motor control circuit, characterized in that, The motor control circuit includes a first storage area and a second storage area, and outputs a drive control signal to the motor drive unit. The first storage area stores the control algorithm of the motor control circuit and a first set of parameters used by the control algorithm. The second storage area can store a second set of parameters used by the control algorithm. The control method of the motor control circuit includes: Referring to the steps, when starting the control algorithm, the value of a specified parameter in the second storage area is referenced; The decision step involves determining, based on the value of the specified parameter, which parameter group (the first or the second) the control algorithm will use to execute the motor control program; and The execution step involves the control algorithm using the determined set of parameters to execute the motor control program.
6. The control method for the motor control circuit according to claim 5, wherein, In the decision-making step, the following decision is made: if the value of the specified parameter is an initial value, the control algorithm uses the first parameter group stored in the first storage area to execute the motor control program.