The system that monitoring is executed for the calculating of the pulse width modulation duty of Motor Control

文档序号:1744371 发布日期:2019-11-26 浏览:26次 中文

阅读说明:本技术 监测用于电动机控制的脉宽调制占空比的计算执行的系统 (The system that monitoring is executed for the calculating of the pulse width modulation duty of Motor Control ) 是由 柳昌锡 康敏绣 金成道 李东勋 于 2018-10-10 设计创作,主要内容包括:一种监测用于电动机控制的脉宽调制占空比的计算执行的系统,其可以检测是否在中断执行时间内正常进行用于电动机扭矩和速度控制的PWM占空比计算执行,并且根据检测结果来进行故障诊断,从而增强电动机控制的稳定性。该系统包括:电动机控制单元,用于计算电动机控制的PWM占空比,并且将用于确定是否正常更新PWM占空比的PWM占空比计算执行的确认信号输出到检测和故障诊断电路;和检测和故障诊断电路,用于基于PWM占空比计算执行的确认信号,输出用于确定在PWM占空比更新参考时间内是否正常进行PWM占空比的计算执行和更新的故障确定信号。(A kind of system that the calculating for the pulse width modulation duty that monitoring is used for Motor Control executes, whether it can detecte to execute to be normally carried out to calculate for the PWM duty cycle of motor torque and speed control in the time in interruption and execute, and fault diagnosis is carried out according to testing result, to enhance the stability of Motor Control.The system includes: motor control unit, for calculating the PWM duty cycle of Motor Control, and will be used to determine whether that the PWM duty cycle for normally updating PWM duty cycle calculates the confirmation signal executed and is output to detection and fault diagnosis circuit;It is exported for calculating the confirmation signal executed based on PWM duty cycle for determining that updating the failure for whether being normally carried out the calculating execution of PWM duty cycle in the reference time and updating in PWM duty cycle determines signal with detection and fault diagnosis circuit.)

1. a kind of pulse-width modulation PWM duty ratio of monitoring for Motor Control calculates the system executed, the system comprises:

Motor control unit for calculating the PWM duty cycle of Motor Control, and will be used to determine whether normally to update institute The PWM duty cycle for stating PWM duty cycle calculates the confirmation signal executed and is output to detection and fault diagnosis circuit;With

The detection and fault diagnosis circuit, for calculating the confirmation signal executed based on the PWM duty cycle, output is for true It is true to be scheduled on the failure for whether being normally carried out the calculating execution of the PWM duty cycle in the PWM duty cycle update reference time and updating Determine signal.

2. as described in claim 1 calculate the system executed for monitoring PWM duty cycle, wherein the Motor Control list Member includes:

PWM duty cycle control unit, each PWM for calculating motor control the duty ratio in period;

PWM generation module, for receiving the duty ratio calculated in the PWM duty cycle control unit to generate pwm signal;And

PWM duty cycle calculates interrupt control unit, calculates trigger signal for receiving PWM duty cycle from the PWM generation module, so The interrupt signal that output PWM duty cycle calculates the confirmation signal executed is generated for the PWM duty cycle control unit afterwards, and will The interrupt signal is transmitted to the PWM duty cycle control unit.

3. as claimed in claim 2 calculate the system executed for monitoring PWM duty cycle,

Wherein, the PWM duty cycle control unit will include PWM duty cycle meter by numeral output portion according to the interrupt signal The confirmation signal that calculation executes the PWM duty cycle calculating execution in time and PWM duty cycle calculating execution period is output to the detection And fault diagnosis circuit.

4. as claimed in claim 2 calculate the system executed for monitoring PWM duty cycle,

Wherein, the motor control unit further includes fault message determining section, for receiving the detection and fault diagnosis electricity Failure in road determines signal, and only extracts fault message and store the fault message in memory.

5. as described in claim 1 calculate the system executed for monitoring PWM duty cycle, wherein the detection and failure are examined Deenergizing includes:

Clock PLL circuit is believed for receiving clock signal from external oscillator with clock needed for generating counter generator Number;

The counter generator, for receiving the PWM duty cycle exported from the numeral output portion of the motor control unit The clock signal for executing signal and exporting from the clock PLL circuit is calculated, to generate and export PWM duty cycle calculating and update Failure determine required the first counter signals and the second counter signals;And

Fault determination circuit, for based on the first counter signals exported from the counter generator and the second counter letter Number, output Fisrt fault determine signal and the second failure determine signal be used as determine the PWM duty cycle calculate execute and Update whether the signal for Shi Baiing.

6. as claimed in claim 5 calculate the system executed for monitoring PWM duty cycle,

Wherein, Fisrt fault is determined that signal is output to the fault message of the motor control unit by the fault determination circuit Determining section, the Fisrt fault determine that signal includes that the failure for the PWM duty cycle calculating execution time for being set to 1 determines signal The failure of execution time, which is calculated, with the PWM duty cycle for being set to 0 determines signal.

7. as claimed in claim 5 calculate the system executed for monitoring PWM duty cycle,

Wherein, the second failure is determined that signal is output to the fault message of the motor control unit by the fault determination circuit Determining section, second failure determine that signal includes that the failure in the PWM duty cycle calculating execution period for being set to 1 determines signal The failure in execution period, which is calculated, with the PWM duty cycle for being set to 0 determines signal.

8. as claimed in claim 5 calculate the system executed for monitoring PWM duty cycle,

Wherein, the fault message determining section analyzes the Fisrt fault and determines that signal and second failure determine signal, with To only it indicate the fault message storage of failure in memory.

9. as claimed in claim 8 calculate the system executed for monitoring PWM duty cycle,

Wherein, the motor control unit carries out the control of the fault message of warning user storage in the memory.

Technical field

It is calculated the present invention relates to a kind of monitoring for pulsewidth modulation (PWM) duty ratio of Motor Control and executes (duty Operation execution) system, more particularly, to can detecte that the PWM for whether being normally carried out Motor Control is accounted for Sky is than calculating execution and carrying out fault diagnosis according to testing result, to improve the monitoring of the stability of Motor Control for electricity The PWM duty cycle of motivation control calculates the system executed.

Background technique

In general, pulsewidth modulation (PWM) control method of three-phase inverter is used to carry out the torque or speed control of motor.

That is, can be by the way that in the middle calculating PWM duty cycle of motor control unit (inverter), simultaneously basis is calculated Duty ratio control be applied to the electric current of motor to control the torque or speed of motor.

Particularly, motor control unit must determine the duty ratio in each PWM control period, and be based on motor control Output current value, the phase current sensing value of current controller for including in unit (MCU) processed etc. calculates duty ratio at this time.

Period is controlled for each PWM, it is necessary to calculate PWM duty cycle again, and at this point, when due to calculate error without When can accurately calculate PWM duty cycle for each period, lead to the unstable of the current control of motor.In turn, this leads Cause carry out motor torque or speed control it is unstable, so as to cause Motor Control quality reduce and motor therefore Barrier.

It is therefore important that being confirmed whether to calculate PWM duty cycle for each PWM cycle and whether normally updating PWM Duty ratio is to maintain the stability of Motor Control.

As described above, updating PWM duty cycle includes by the output current value based on current controller, phase current sensing value etc. The PWM duty cycle of calculating is transmitted to the PWM generation module for including in motor control unit, and based on a received duty ratio Physics pwm signal is generated in PWM generation module.

PWM generation module needs the time to generate pwm signal according to the received duty ratio of institute, so that setting must be in PMW The minimum reference time of new duty ratio is updated before period end time, this is referred to as PWM renewal time.

PWM duty cycle is calculated in motor control unit however, executing in interrupt function, is accounted for when for calculating PWM When the interrupt function of empty ratio terminates and calculates time of PWM duty cycle and be more than PWM renewal time, generally can not normally it update PWM duty cycle causes the stability of Motor Control to reduce.

Therefore, in the related art, whether it is normally carried out in motor control unit in interrupt function to monitor PWM duty cycle is calculated, it is usually used that watchdog chip is arranged separately in the method in motor control unit, but disadvantage exists In usually only a few tens of milliseconds in the period that can be monitored as quickly as possible in watchdog chip, so that monitoring tens is micro- It is too slow that the interruption of second (it is general PWM cycle) executes the time, and is not suitable for interruption execution monitoring and uses.

Summary of the invention

The disclosure provides a kind of monitor and calculates the system executed for the PWM duty cycle of Motor Control, can detecte Whether interrupt to execute to be normally carried out to calculate for the PWM duty cycle of motor torque and speed control in the time in reference and execute, And fault diagnosis is carried out according to testing result, to enhance the stability of Motor Control.

The disclosure for achieving the object provides a kind of monitor and calculates execution for the PWM duty cycle of Motor Control System, comprising: motor control unit for calculating the PWM duty cycle of Motor Control, and will be used to determine whether normal The PWM duty cycle for updating PWM duty cycle calculates the confirmation signal executed and is output to detection and fault diagnosis circuit;And the detection And fault diagnosis circuit, for based on PWM duty cycle calculate execute confirmation signal, output for determine PWM duty cycle more The calculating that PWM duty cycle whether is normally carried out in the new reference time executes and the failure of update determines signal.

In a preferred embodiment, motor control unit is configured to include: PWM duty cycle control unit, electronic for calculating The duty ratio in each PWM control period of machine;PWM generation module, for receiving the duty calculated in PWM duty cycle control unit Than to generate pwm signal;PWM duty cycle calculates interrupt control unit, calculates touching for receiving PWM duty cycle from PWM generation module It signals, then generates interrupt signal for PWM duty cycle control unit, which exports what PWM duty cycle calculating executed Confirmation signal, and the interrupt signal is transmitted to PWM duty cycle control unit;Fault message determining section, for receive detection and Failure in fault diagnosis circuit determines signal, and extracts fault message only to store it in memory.

In a preferred embodiment, detection and fault diagnosis circuit are configured to include: clock PLL circuit, for shaking from outside It swings device and receives clock signal with clock signal needed for generating counter generator;The counter generator, for receiving from electricity The PWM duty cycle of the numeral output portion output of motivation control unit calculates the clock for executing signal and exporting from clock PLL circuit Signal determines that (confirmation PWM is accounted for the first required counter signals to generate and export the failure that PWM duty cycle is calculated and updated Sky executes the counter signals of time than calculating) and (counting in confirmation PWM duty cycle calculating execution period of the second counter signals Device signal);And fault determination circuit, determine that (PWM duty cycle calculates the failure of execution time to signal for exporting Fisrt fault Determine signal) and the second failure determine signal (PWM duty cycle calculate execute the failure in period determine signal), as being based on The first counter signals (confirmation PWM duty cycle calculates the counter signals for executing the time) exported from counter generator and the Two counter signals (confirmation PWM duty cycle calculate execute the period counter signals) come determine PWM duty cycle calculate execute and Update whether the signal for Shi Baiing.

Through the above configuration, the disclosure provides following effect.

Firstly, be able to detect Motor Control PWM duty cycle calculate execute confirmation signal (PWM duty cycle calculating hold The capable time and period), and the fault diagnosis of motor control unit is carried out based on signal detected, to enhance electricity The stability of motivation control.

Secondly, motor control unit is able to determine whether that normally updating the PWM calculated for each PWM control period accounts for Empty ratio, to accurately determine whether motor control unit breaks down.

Third, can determine the failure that PWM duty cycle does not update normally, then promote to safeguard motor by alerting Control unit.

Other aspects and preferred embodiment of the following discussion disclosure.

Detailed description of the invention

Carry out detailed description of the present invention above and other feature referring now to certain exemplary embodiments of the invention, under The attached drawing shown is only provided in text by way of illustration, and does not therefore limit the present invention, in which:

Fig. 1 is the curve graph for showing the renewal time of PWM duty cycle of Motor Control.

Fig. 2 is the song for showing the fault condition occurred in the calculating execution and update of the PWM duty cycle of Motor Control Line chart.

Fig. 3 is the configuration diagram for calculating the system executed for the PWM duty cycle of Motor Control according to the monitoring of the disclosure.

Fig. 4 is that the PWM duty cycle shown according to the monitoring of the disclosure for Motor Control calculates matching for the system executed The diagram of the operation of counter generator in setting.

Fig. 5 is that the PWM duty cycle shown according to the monitoring of the disclosure for Motor Control calculates matching for the system executed The diagram of the operation of fault determination circuit in setting.

Fig. 6 is to show to be for what the PWM duty cycle of Motor Control calculated execution according to the monitoring that depends on of the disclosure The failure of the operation of system determines the curve graph of logic.

It should be appreciated that the drawings are not necessarily drawn to scale, but the preferred feature for illustrating the basic principle of the disclosure is presented Slightly simplified expression.The specific of the disclosure disclosed herein will be determined by special intended application and use environment part Design feature, including such as specific size, orientation, location and shape.

In the accompanying drawings, reference label refers to the identical or equal parts of the disclosure in several figures of attached drawing.

Specific embodiment

It should be appreciated that terms used herein " vehicle " or " vehicle " or other similar term generally include motor vehicle , car, bus, truck, various commerial vehicles for example including sport vehicle (SUV), including it is various small The ship of ship and steamer, aircraft etc., and including hybrid vehicle, electric vehicle, plug-in hybrid electric vehicle, hydrogen power Vehicle and other alternative fuel vehicles (for example, the fuel for being originated from resource in addition to petroleum).As mentioned in this article, mixing is dynamic Power vehicle is the vehicle with two or more power sources, for example, petrol power and electric power vehicle.

Term used herein above is only for for the purpose of describing particular embodiments, rather than in order to limit the disclosure.Such as Used in herein, unless clearly indicated in context, otherwise singular "one", "an" and " described " be intended to It equally include plural form.It will be further understood that, when used in this manual, word " include " and or " include " is specified The feature, entirety, step, operation, the presence of element and/or component, but do not preclude the presence or addition of it is one or more its His feature, entirety, step, operation, element, component and/or their group.As it is used herein, word "and/or" includes one Any and all combinations of a or multiple related listed items.Through specification, except non-clearly describing on the contrary, otherwise word The variant of " comprising " and such as "comprising" or " having " will be appreciated that implying includes the element, but be not excluded for any other yuan Part.In addition, the term " unit " described in the description, "-device ", "-portion " and " module " refer to for handling at least one function The unit that can and operate, and can be implemented by hardware component or component software and combinations thereof.

In addition, the control logic of the disclosure can be presented as comprising the executable program by execution such as processor, controllers Non-transitory computer-readable medium on the computer-readable medium of instruction.The example of computer-readable medium includes but unlimited In ROM, RAM, CD (CD)-ROM, tape, floppy disk, flash drive, smart card and optical data storage devices.It is computer-readable Medium can also be distributed in the computer system of network coupling, so that computer-readable medium for example passes through telematics Server or controller zone network (CAN) store and execute in a distributed way.

Hereinafter, the exemplary embodiment that the disclosure will be described with reference to the drawings, holds those skilled in the art It changes places and practices the disclosure.However, the present disclosure is not limited to those exemplary embodiments, and can embody otherwise.

Hereinafter, preferred embodiment of the present disclosure will be described in detail with reference to the attached drawings.

As described above, motor control unit must determine the duty ratio in each PWM control period, and it is based on electric current control The output current value of device processed and the phase current sensing value etc. that motor is output to from inverter, pass through motor control unit (MCU) the PWM duty cycle control unit that includes in calculates duty ratio at this time.

For the torque or speed control of motor, it is confirmed whether normally to calculate and update for each PWM control period One of an important factor for PWM duty cycle is the stability of maintenance Motor Control.

Updating PWM duty cycle includes by the output current value based on current controller as described above, phase current sensing value The PWM duty cycle of equal calculating is transmitted to the PWM generation module for including in motor control unit, and is based on from PWM duty cycle The received duty ratio of control unit generates physics pwm signal in PWM generation module.

With reference to Fig. 1, PWM duty cycle control unit is based on phase current and senses Value Operations (calculating) PWM duty cycle, so that PWM is accounted for Sky is more defeated than the inverter that the time that control unit starts calculating PWM duty cycle can be considered as the phase current that detection is output to inverter Phase current senses the time out.

In addition, from inverter output current phase sense the time to update PWM duty cycle PWM duty cycle renewal time when Between (by Fig. 1Indicate) become PWM duty cycle in PWM duty cycle control unit and calculate to execute the time.

In addition, sensing the time of time to PWM duty cycle update reference time (by Fig. 1 from inverter output current phase 'sInstruction) become the PWM duty cycle update permission time.

With reference to the left part of Fig. 2, the time is executed when PWM duty cycle calculatesIt is not above PWM duty cycle and updates reference When the time, i.e., the time is executed when PWM duty cycle calculatesBeing not above PWM duty cycle and updating allows the timeWhen, PWM is generated Module is normally carried out PWM duty cycle update.

On the other hand, as shown in the right part of Fig. 2, when the example as fault condition, PWM duty cycle, which calculates, to be executed TimeThe reference time is updated more than PWM duty cycle, or as another example of fault condition, omits PWM duty cycle and calculates Itself is executed, abnormal update PWM duty cycle causes the stability of Motor Control to reduce.

Therefore, the disclosure be dedicated to by detection PWM duty cycle calculate execute confirmation signal (PWM duty cycle calculating hold Row time and period) and fault diagnosis is carried out to enhance the stability of Motor Control based on signal detected.

Fig. 3 is the hardware configuration diagram that the system executed is calculated for monitoring PWM duty cycle shown according to the disclosure;It is attached Icon note 100 indicates motor control unit, and appended drawing reference 200 indicates detection and fault diagnosis circuit.

Motor control unit 100 calculates the PWM duty cycle of Motor Control, and will be used to determine whether normally to update The PWM duty cycle of PWM duty cycle calculates the confirmation signal executed and is output to detection and fault diagnosis circuit 200, and the detection It is defeated with fault diagnosis circuit 200 based on the confirmation signal for calculating execution from the received PWM duty cycle of motor control unit 100 It is true to have the failure for determining and updating the calculating execution and the update that whether are normally carried out PWM duty cycle in the reference time in PWM duty cycle Determine signal.

Motor control unit 100 includes: PWM duty cycle control unit 110, for calculating accounting for for each PWM control period Empty ratio;And PWM generation module 120, for receiving the duty ratio calculated by PWM duty cycle control unit 110 to generate PWM letter Number.

Output of the PWM duty cycle control unit 110 based on the current controller (not shown) for including in motor control unit Current value and the phase current sensing value of motor is output to from inverter (not shown) to calculate PWM duty cycle, and PWM is generated Module 120 receives the duty ratio that is calculated by PWM duty cycle control unit 110, and pwm signal needed for generating Motor Control, with It is output to inverter.

PWM duty cycle calculate interrupt control unit 130 be connected to PWM generation module 120 and PWM duty cycle control unit 110 it Between, to transmit signal.

PWM duty cycle calculates interrupt control unit 130 and receives PWM duty cycle calculating trigger signal from PWM generation module 120 (for example, calculating the trigger signal for executing starting point output with the matched PWM duty cycle of the centre time of pwm signal), so Generating the confirmation signal that output PWM duty cycle calculating executes for PWM duty cycle control unit 110 afterwards, (PWM duty cycle, which calculates, to be executed Time and PWM duty cycle, which calculate, executes the period) interrupt signal and the interrupt signal is transmitted to PWM duty cycle control unit.

Therefore, PWM duty cycle control unit 110 is calculated PWM duty cycle by numeral output portion 140 according to interrupt signal The confirmation signal (PWM duty cycle, which calculates, executes time and PWM duty cycle calculating execution period) of execution is output to detection and failure The counter generator 220 of diagnostic circuit 200.

Meanwhile motor control unit 100 further includes fault message determining section 150, is examined for receiving by detection and failure The failure that deenergizing 200 determines determines signal, and only extracts fault message and store it in memory 160.

As described herein, it is true to receive the failure determined in detection and fault diagnosis circuit 200 for fault message determining section 150 Determine signal (for example, determine PWM duty cycle calculate execute the time whether be more than PWM duty cycle update the reference time signal, and Determine whether to carry out the signal that PWM duty cycle calculates execution), and only extract fault message and store it in memory 160 In, for use in warning.

Detection and fault diagnosis circuit 200 are executed based on the PWM duty cycle operation transmitted from PWM duty cycle control unit 110 Confirmation signal (PWM duty cycle calculate execute time and PWM duty cycle calculate execute the period) detect whether normally to update electricity The pwm signal of motivation control generates, and determines fault diagnosis according to testing result.

That is, detection and fault diagnosis circuit 200 are received from the numeral output portion 140 of motor control unit 100 (PWM duty cycle calculates the execution time to the confirmation signal that the PWM duty cycle calculating of output executes and PWM duty cycle calculating executes week Phase) to detect whether the PWM duty cycle calculating execution time is more than that PWM duty cycle updates the reference time, if carry out PWM duty cycle Calculate execute etc., and according to testing result come determine PWM duty cycle calculate and update etc. whether fail.

For this purpose, detection and fault diagnosis circuit 200 are configured to include clock phase-locked loop (PLL) circuit 210, counter generation Device 220, fault determination circuit 230, numeral output portion 240 are used for the fault-signal exported from fault determination circuit 230 is defeated Motor control unit etc. is arrived out.

Clock PLL circuit 210 receives clock signal from external oscillator 212, to generate needed for counter generator 220 Clock signal.

Counter generator 220 receives the PWM duty cycle exported from the numeral output portion 140 of motor control unit 100 The clock signal for executing signal and exporting from clock PPL circuit 210 is calculated, to generate and export the (confirmation of the first counter signals PWM duty cycle calculates the counter signals for executing the time) and the second counter signals (confirmation PWM duty cycle calculating execution period Counter signals) as PWM duty cycle calculate and update etc. failure determine two kinds of required counter signals.

Fault determination circuit 230 receives (the confirmation PWM duty cycle calculating of the first counter signals from counter generator 220 Execute the counter signals of time) and the second counter signals (confirmation PWM duty cycle calculates the counter signals for executing the period), Then compare the first counter signals (confirmation PWM duty cycle calculates the counter signals for executing the time) to remember with Fisrt fault reference (reference register) (confirmation PWM duty cycle calculates the fault reference record for executing the counter signals of time) is recorded, Compare the second counter signals (confirmation PWM duty cycle calculates the counter signals for executing the period) simultaneously to remember with the second fault reference Record (confirmation PWM duty cycle calculates the fault reference record for executing the counter signals in period), then exports Fisrt fault and determines (PWM duty cycle, which calculates, to be executed for signal (failure that PWM duty cycle calculates the execution time determines signal) and the second failure discrimination signal The failure in period determines signal) as determining whether out of order signal.

Here, it will be described below calculating execution for monitoring PWM duty cycle according to the disclosure with above-mentioned configuration The operating process of system.

Firstly, PWM duty cycle control unit 110 calculates the PWM duty cycle in each PWM control period, then by the PWM of calculating Duty ratio is transmitted to PWM generation module 120.

Then, PWM generation module 120 receives the PWM duty cycle calculated in PWM duty cycle control unit 110, and generates Pwm signal needed for Motor Control is to be output to inverter.

PWM duty cycle is calculated trigger signal (for example, matching in the centre time with pwm signal by PWM generation module 120 PWM duty cycle calculate execute starting point output trigger signal) be transmitted to PWM duty cycle calculate interrupt control unit 130.

Then, PWM duty cycle calculates interrupt control unit 130 based in the trigger signal generation of PWM duty cycle control unit 110 Break signal, (PWM duty cycle calculates the execution time to the confirmation signal that interrupt signal output PWM duty cycle calculating executes and PWM is accounted for Sky executes the period than calculating), and the interrupt signal is transmitted to PWM duty cycle control unit.

Therefore, PWM duty cycle control unit 110 is calculated PWM duty cycle by numeral output portion 140 according to interrupt signal The confirmation signal (signal for executing time and PWM duty cycle calculating execution period is calculated including PWM duty cycle) of execution is output to The counter generator 220 of detection and fault diagnosis circuit 200.

In addition, external oscillator 212 will generate counter signals needed for clock signal input to counter generator 220。

Then, confirmation signal (including the PWM duty executed is calculated based on the PWM duty cycle that inputs from numeral output portion 140 The signal in period is executed than calculating to execute time and PWM duty cycle and calculate) and from the clock signal that clock PPL circuit 210 inputs, Counter generator 220 generates and exports the first counter signals (counter letter of confirmation PWM duty cycle calculating execution time Number) and the second counter signals (confirmation PWM duty cycle calculate execute the period counter signals) as PWM duty cycle operation and The failure of update etc. determines two kinds of required counter signals.

Fig. 4 shows the configuration and operation of counter generator.

As shown in figure 4, counter generator 220, which receives PWM duty cycle, calculates confirmation signal (including the PWM duty executed The signal of time and PWM duty cycle calculating execution period are executed than calculating) and clock signal, then for each of clock signal Rising edge triggering (clock rises to the high time from low) carries out calculating PWM duty cycle what the confirmation signal executed was confirmed Operation.

Therefore, the PWM duty cycle of each clock cycle is calculated the confirmation counter for executing the time by counter generator 220 Increase by 1, and when it is 0 that PWM duty cycle, which calculates the confirmation signal executed, carries out AND operation to reset PWM duty cycle calculating and hold The confirmation counter of row time.

In addition, when the confirmation counter that PWM duty cycle calculates the execution time is 1, it is meant that PWM duty cycle, which calculates, to be executed Confirmation signal rising time so that at this time switch be set to 0 with reset PWM duty cycle calculate execute the period confirmation Counter;And under other conditions, PWM duty cycle calculates the confirmation counter for executing the period for the increase of each clock cycle 1。

The first counter signals (confirmation PWM duty cycle meter is being generated by the operation of counter generator 220 as described above Calculate the counter signals for executing the time) and the second counter signals (counter letter in confirmation PWM duty cycle calculating execution period Number) after, they are output to fault determination circuit 230.

Then, by the first counter signals, (confirmation PWM duty cycle calculates to be executed based on the time fault determination circuit 230 Number device signals) and the second counter signals (counter signals that confirmation PWM duty cycle calculates the execution period) Lai Jinhang failure is true Then operation calmly exports Fisrt fault and determines signal (failure that PWM duty cycle calculates the execution time determines signal) and the second event Hinder and determine signal (failure that PWM duty cycle calculates the execution period determines signal).

For this purpose, firstly, fault determination circuit 230 receives the first counter signals (A: when confirmation PWM duty cycle calculates execution Between counter signals) and the second counter signals (A': confirmation PWM duty cycle calculate execute the period counter signals), so Afterwards by the first counter signals (A: confirmation PWM duty cycle calculates the counter signals of execution time) and Fisrt fault reference record (B: confirmation PWM duty cycle calculates the fault reference record for executing the counter signals of time) is compared, and at the same time, by the Two counter signals (A': confirmation PWM duty cycle calculate execute the period counter signals) with the second fault reference record (B': Confirmation PWM duty cycle calculates the fault reference record for executing the counter signals in period) it is compared.

As comparative result, as shown in figure 5, when (A: confirmation PWM duty cycle calculates executes the time to the first counter signals Counter signals) it is more than that (B: confirmation PWM duty cycle calculates the failure for executing the counter signals of time to Fisrt fault reference record Reference record) when, the failure that PWM duty cycle calculates the execution time determines that signal is set to 1, and when the first counter signals (A: confirmation PWM duty cycle calculates the counter signals for executing the time) is less than Fisrt fault reference record (B: confirmation PWM duty cycle Calculate the fault reference record for executing the counter signals of time) when, the failure that PWM duty cycle calculates the execution time determines signal It is set to 0.

Therefore, Fisrt fault is determined that (it is true that PWM duty cycle calculating executes the failure of time to signal by fault determination circuit 230 Determine signal) it is output to the fault message determining section 150 in motor control unit 100 included, Fisrt fault determines that signal includes Be set to 1 PWM duty cycle calculate execute the time failure determine signal and be set to 0 PWM duty cycle calculating hold The failure of row time determines signal.

In addition, when the second counter signals (A': confirmation PWM duty cycle, which calculates, executes the counter signals in period) are more than the When two fault references record (B': confirmation PWM duty cycle calculates the fault reference record for executing the counter signals in period), PWM The failure that duty ratio calculates the execution period determines that signal is set to 1, and as the second counter signals (A': confirmation PWM duty cycle Calculate the counter signals for executing the period) less than the second fault reference record, (B': confirmation PWM duty cycle, which calculates, executes the period The fault reference of counter signals records) when, the failure that PWM duty cycle calculates the execution period determines that signal is set to 0.

Therefore, the second failure is determined that (it is true that PWM duty cycle calculating executes the failure in period to signal by fault determination circuit 230 Determine signal) it is output to the fault message determining section 150 in motor control unit 100 included, the second failure determines that signal includes Be set to 1 PWM duty cycle calculate execute the period failure determine signal and be set to 0 PWM duty cycle calculating hold The failure in row period determines signal.

Then, fault message determining section 150 analyzes Fisrt fault and determines that signal and the second failure determine signal, only will be true The fault message for being set to failure is stored in memory 160, and as follow-up, motor control unit 100 is warned Accuse the control that user (for example, the driver for being equipped with the environment-friendly type vehicle of motor) is stored in the fault message in memory 160 System.

Fault message determining section 150 analyzes Fisrt fault and determines that signal and the second failure determine signal, and such as a left side of Fig. 6 Shown in side section, when PWM duty cycle, which calculates, executes the time no more than the PWM duty cycle update reference time, i.e., when first counts Device signal (confirmation PWM duty cycle calculates the counter signals for executing the time) is less than Fisrt fault reference record (confirmation PWM duty The fault reference record of the counter signals of time is executed than calculating) when, it determines and is normally carried out PWM duty cycle update, and not Fault message is stored in memory 160.

On the other hand, as shown in the middle section of Fig. 6, as the example of fault condition, when PWM duty cycle, which calculates, to be executed Between when being more than that PWM duty cycle updates the reference time, that is, when (confirmation PWM duty cycle, which calculates, executes the time for first counter signals Counter signals) it is more than that (confirmation PWM duty cycle calculates the failure ginseng for executing the counter signals of time to Fisrt fault reference record Examine record) when, fault message determining section 150 determines the failure without normally updating PWM duty cycle, and failure at this time is believed Breath is stored in memory 160.

In addition, as another example of fault condition, being held when omitting PWM duty cycle calculating as shown in the right part of Fig. 6 When row itself, that is, when the second counter signals (counter signals that confirmation PWM duty cycle calculates the execution period) are more than the second event When hindering reference record (confirmation PWM duty cycle calculates the fault reference record for executing the counter signals in period), fault message is true It is determining without normally updating the failure of PWM duty cycle to determine portion 150, and fault message at this time is stored in memory 160.

Meanwhile motor control unit 100 can be by general warning device (display etc.) with being stored in memory 160 In fault message alert user (for example, the driver for being equipped with the environment-friendly type vehicle of motor), to promote to safeguard electronic Machine control unit.

Embodiment of the disclosure is described in detail by reference to attached drawing, the present disclosure is not limited to above-described embodiments, and not Various modifications can be carried out in the case where disengaging scope of the presently disclosed technology.

17页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种五相电机空间矢量计算方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!