[go: up one dir, main page]

CN102425503B - Rail pressure pre-control system and control method based on hardware constant current control - Google Patents

Rail pressure pre-control system and control method based on hardware constant current control Download PDF

Info

Publication number
CN102425503B
CN102425503B CN 201110283816 CN201110283816A CN102425503B CN 102425503 B CN102425503 B CN 102425503B CN 201110283816 CN201110283816 CN 201110283816 CN 201110283816 A CN201110283816 A CN 201110283816A CN 102425503 B CN102425503 B CN 102425503B
Authority
CN
China
Prior art keywords
current
constant current
control
pulsewidth
pwm
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN 201110283816
Other languages
Chinese (zh)
Other versions
CN102425503A (en
Inventor
李克
张宏超
崔国旭
高章
牟连嵩
崔巍
刘双喜
高海洋
李广霞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
CATARC Tianjin Automotive Engineering Research Institute Co Ltd
Original Assignee
China Automotive Technology and Research Center Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Automotive Technology and Research Center Co Ltd filed Critical China Automotive Technology and Research Center Co Ltd
Priority to CN 201110283816 priority Critical patent/CN102425503B/en
Publication of CN102425503A publication Critical patent/CN102425503A/en
Application granted granted Critical
Publication of CN102425503B publication Critical patent/CN102425503B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Electrical Control Of Air Or Fuel Supplied To Internal-Combustion Engine (AREA)

Abstract

The invention relates to a rail pressure pre-control system based on hardware constant-current control and a control method. The system comprises an ECU (electronic control unit) internal timing interruption module, a reference current inquiry module, a current distribution module, a constant-current drive pulse width capturing and calculation module and a PWM (pulse width modulation) drive pulsewidth calculation module; timing interruption is triggered under effects of the ECU internal timing unit; the reference current inquiring module is used for calculating the reference current of a measurement unit; the current distribution module is used for dividing the reference current into a current regulating value and a current setting value and transmitting the current regulating value and the current setting value; the constant-current drive pulse width capturing and calculation module is used for capturing constant-current drive pulses, calculating the width of the constant-current drive pulses, and simultaneously transmitting calculation results to the PWM drive pulse width calculation module; and the PWM drive pulse width calculation module is used for calculating the drive pulse width of a PWM drive unit and transmitting calculation results to the PWM drive unit. In the method, ECU internal timing interruption produced by a timer in an ECU and external interruption producedby the triggering edge of the constant-current drive pulses are implemented in operation of main programs of ECU control. Accurate control and high response speed can be achieved, the difficulty and the complexity in software control can be reduced simultaneously, and hardware resources of processors can be saved.

Description

基于硬件恒流控制的轨压预控制系统及控制方法Rail pressure pre-control system and control method based on hardware constant current control

技术领域 technical field

本发明涉及一种轨压预控制算法。特别是涉及一种基于恒流控制的共轨式发动机燃油喷射系统的基于硬件恒流控制的轨压预控制系统及控制方法。The invention relates to a rail pressure pre-control algorithm. In particular, it relates to a rail pressure pre-control system and control method based on hardware constant current control of a common rail engine fuel injection system based on constant current control.

背景技术 Background technique

通常轨压控制逻辑主要包含以下几个部分:轨压实际值测量并滤波、轨压控制目标值计算、轨压控制器PID设计、轨压控制状态机设计、轨压控制执行器输出控制等。其基本思想是:根据实际测量的轨压值经过合适的滤波算法作为闭环控制的反馈值;计算轨压控制偏差作为PID输入,而控制器输出决定着高压油泵输出的流量,这就和高压油泵的特性联系起来。高压油泵主要采用PWM控制来控制油量计量单元的开度(电流),其参数为控制周期和占空比,共轨管的需求供油流量可以直接转化为油量计量单元的驱动电流。因此,当发动机转速大于一定值时,泵的流量直接由流量计量单元的开度(电流)决定,可根据所需电流计算出电磁阀的控制占空比,这是公知/周知的。Usually the rail pressure control logic mainly includes the following parts: actual rail pressure measurement and filtering, rail pressure control target value calculation, rail pressure controller PID design, rail pressure control state machine design, rail pressure control actuator output control, etc. The basic idea is: according to the actual measurement of the rail pressure value through a suitable filter algorithm as the feedback value of the closed-loop control; calculate the rail pressure control deviation as the PID input, and the output of the controller determines the output flow of the high-pressure oil pump, which is similar to the high-pressure oil pump properties are linked. The high-pressure oil pump mainly uses PWM control to control the opening (current) of the oil metering unit. Its parameters are the control period and duty cycle. The demanded oil supply flow of the common rail pipe can be directly converted into the drive current of the oil metering unit. Therefore, when the engine speed is greater than a certain value, the flow rate of the pump is directly determined by the opening (current) of the flow metering unit, and the control duty cycle of the solenoid valve can be calculated according to the required current, which is known/well known.

目前,更为先进的轨压控制方法是将轨压预控制和反馈控制相结合,预控制是根据发动机转速、循环喷油量以及目标轨压计算电流基准,其主要作用是减少轨压控制器的延迟时间并保持控制器偏差很小。其实质为开环控制,同时PID控制器在此基础之上对轨压进行微调,从而使轨压控制模块实现良好的目标轨压跟随特性,这也是公知/周知的(参考专利文献:申请号201010601766.7)At present, the more advanced rail pressure control method is to combine the rail pressure pre-control and feedback control. The pre-control is to calculate the current reference according to the engine speed, cycle fuel injection volume and target rail pressure. Its main function is to reduce the rail pressure controller. delay time and keep the controller deviation small. Its essence is open-loop control. At the same time, the PID controller fine-tunes the rail pressure on this basis, so that the rail pressure control module can achieve good target rail pressure following characteristics, which is also known/well known (refer to patent literature: application number 201010601766.7)

可是,考虑到油量计量单元控制阀的实际电阻会随内部温度变化而变化,同时控制阀线圈的卷绕方式和装配工艺,以及工作时电源状态的波动,都会导致实际控制阀占宽比(目标电流)和控制阀开度电流(实际电流)产生较大偏差,使得轨压控制器预控制产生较大设定偏差。所以,更精细的控制还应该加入油量计量单元控制阀电流的反馈控制,保证控制电流理想的跟随目标设定电流。However, considering that the actual resistance of the control valve of the oil metering unit will change with the internal temperature, the winding method and assembly process of the control valve coil, as well as the fluctuation of the power supply state during operation, will cause the actual control valve duty ratio ( The target current) and the control valve opening current (actual current) produce a large deviation, which makes the pre-control of the rail pressure controller produce a large setting deviation. Therefore, more fine control should also be added to the feedback control of the fuel metering unit control valve current to ensure that the control current ideally follows the target setting current.

在现有技术中,为了实现高精度控制电磁式比例控制阀的通电电流,引入了电流闭环控制,并在通电控制中添加了积分处理,其中积分项初始值设定有两种方式。一种方式使用控制阀电阻值而计算得到,另一种采用目标电流和实际电流差值积分增益方式(参考专利文献:申请号200880120382.4),后一种方式是对前一种方式的优化。基于软件方法的电流闭环控制模式,始终难以快速精确的跟随目标电流。In the prior art, in order to achieve high-precision control of the energizing current of the electromagnetic proportional control valve, a current closed-loop control is introduced, and integral processing is added to the energizing control. There are two ways to set the initial value of the integral term. One method is calculated by using the control valve resistance value, and the other method is obtained by using the integral gain method of the difference between the target current and the actual current (refer to patent document: application number 200880120382.4), and the latter method is an optimization of the former method. The current closed-loop control mode based on the software method is always difficult to follow the target current quickly and accurately.

由于控制阀环境的温度变动很大,从启动过程到高负荷工作过程控制阀的环境温度差异大,实际控制阀电阻总是偏离设定的标准电阻,而且偏离值总处于波动,这势必影响不同工作环境下轨压控制器的性能。同时,软件闭环控制方法由于处理器中断延时和计算能力的限制,响应周期长,电流跟随控制响应也变慢,从而不能使轨压预控制达到最佳效果。Because the temperature of the control valve environment changes greatly, the ambient temperature of the control valve varies greatly from the start-up process to the high-load work process, the actual control valve resistance always deviates from the set standard resistance, and the deviation value is always fluctuating, which will inevitably affect different The performance of the rail pressure controller in the working environment. At the same time, the software closed-loop control method has a long response cycle due to the limitation of processor interrupt delay and computing power, and the response of current following control is also slow, so that the rail voltage pre-control cannot achieve the best effect.

发明内容Contents of the invention

本发明所要解决的技术问题是,提供一种以提高轨压调节性能,实现轨压快速跟随,同时尽可能降低软件算法复杂度,节约处理器硬件资源为目的基于硬件恒流控制的轨压预控制系统及控制方法。The technical problem to be solved by the present invention is to provide a rail pressure pre-control based on hardware constant current control for the purpose of improving rail pressure regulation performance, realizing rail pressure fast tracking, reducing software algorithm complexity as much as possible, and saving processor hardware resources. Control system and control method.

本发明所采用的技术方案是:一种基于硬件恒流控制的轨压预控制系统及控制方法。基于硬件恒流控制的轨压预控制系统,是用于分别通过恒流驱动单元和PWM驱动单元驱动高压油泵-油量计量单元的轨压预控制系统,包括:The technical solution adopted in the present invention is: a rail pressure pre-control system and control method based on hardware constant current control. The rail pressure pre-control system based on hardware constant current control is a rail pressure pre-control system used to drive the high-pressure oil pump-oil quantity metering unit through the constant current drive unit and the PWM drive unit respectively, including:

ECU内部定时中断模块:在ECU内部定时单元作用下,触发定时中断,以便产生同步的恒流控制值和PWM驱动脉冲;ECU internal timing interrupt module: under the action of ECU internal timing unit, trigger timing interrupt to generate synchronous constant current control value and PWM drive pulse;

基准电流查询模块:通过发动机平均转速、循环喷射油量和目标轨压来计算该工况油量计量单元的基准电流;Baseline current query module: calculate the base current of the oil quantity metering unit in this working condition through the average engine speed, cycle injection oil quantity and target rail pressure;

电流分配模块:将基准电流查询模块计算的基准电流分为电流调节值和电流设定值,并将电流调节值发送到恒流驱动单元,将电流调节值和电流设定值发送到PWM驱动脉宽计算模块,基准电流的分配比例在5%-95%区间内;Current distribution module: divide the reference current calculated by the reference current query module into current adjustment value and current setting value, and send the current adjustment value to the constant current drive unit, and send the current adjustment value and current setting value to the PWM drive pulse Wide calculation module, the distribution ratio of the reference current is in the range of 5%-95%;

恒流驱动脉宽捕捉计算模块:由恒流驱动单元的恒流驱动脉冲触发,用于捕捉恒流驱动脉冲,并计算该恒流驱动脉冲脉宽,同时将计算结果发送到PWM驱动脉宽计算模块;Constant current drive pulse width capture calculation module: triggered by the constant current drive pulse of the constant current drive unit, used to capture the constant current drive pulse, calculate the pulse width of the constant current drive pulse, and send the calculation result to the PWM drive pulse width calculation module;

PWM驱动脉宽计算模块:根据电流分配模块发来的电流调节值和电流设定值以及恒流驱动脉宽捕捉计算模块发来的捕捉的恒流驱动脉冲脉宽计算得到PWM驱动单元的驱动脉宽,并将计算结果转化为定时计数值,并发送到PWM驱动单元。PWM drive pulse width calculation module: Calculate the drive pulse of the PWM drive unit according to the current adjustment value and current set value sent by the current distribution module and the captured constant current drive pulse pulse width sent by the constant current drive pulse width capture calculation module Wide, and convert the calculation result into a timing count value, and send it to the PWM drive unit.

所述的PWM驱动脉宽计算模块的计算公式是:d=b×c/a,其中:The calculation formula of the described PWM driving pulse width calculation module is: d=b×c/a, wherein:

a是电流调节值,b是电流设定值,c是恒流驱动脉冲脉宽,d是PWM驱动单元的驱动脉宽。a is the current adjustment value, b is the current setting value, c is the pulse width of the constant current drive pulse, and d is the drive pulse width of the PWM drive unit.

采用基于硬件恒流控制的轨压预控制系统的控制方法,是在ECU控制主程序运行过程中,执行由ECU中的定时器产生的ECU内部定时中断和由恒流驱动脉冲触发沿产生的外部中断;The control method of the rail pressure pre-control system based on hardware constant current control is to execute the ECU internal timing interrupt generated by the timer in the ECU and the external one generated by the constant current drive pulse trigger edge during the operation of the ECU control main program. interruption;

所述的内部中断包括如下步骤:Described internal interrupt comprises the steps:

1)轨压预控制基准电流查询,通过发动机平均转速、循环喷射油量和目标轨压来计算该工况油量计量单元的基准电流;1) Query the reference current of rail pressure pre-control, calculate the reference current of the fuel quantity metering unit in this working condition through the average engine speed, cycle injection oil quantity and target rail pressure;

2)基准电流配比计算,将步骤1所计算的基准电流分为电流调节值和电流设定值,并将电流调节值发送到恒流驱动单元;2) Calculating the ratio of the reference current, dividing the reference current calculated in step 1 into a current adjustment value and a current setting value, and sending the current adjustment value to the constant current drive unit;

3)恒流控制电流值设定,由恒流驱动单元的恒流驱动脉冲触发,来捕捉恒流驱动脉冲;3) The constant current control current value setting is triggered by the constant current drive pulse of the constant current drive unit to capture the constant current drive pulse;

4)基准电流配比值保存,保存步骤2得到的电流调节值和电流设定值,以及步骤3捕捉到的恒流驱动脉冲;4) Save the reference current ratio value, save the current adjustment value and current setting value obtained in step 2, and the constant current drive pulse captured in step 3;

5)内部定时中断服务程序中断响应结束,返回主程序5) The interrupt response of the internal timing interrupt service program is completed and returns to the main program

所述的外部中断包括如下步骤:Described external interruption comprises the steps:

1)计算恒流驱动脉冲脉宽,是根据内部中断程序捕捉到的恒流驱动脉冲,来计算该恒流驱动脉冲脉宽;1) Calculating the pulse width of the constant current driving pulse is to calculate the pulse width of the constant current driving pulse according to the constant current driving pulse captured by the internal interrupt program;

2)PWM驱动脉宽计算,PWM驱动脉宽计数值转换,触发驱动信号,是根据内部中断程序所得到的电流调节值和电流设定值,以及步骤1所得到的恒流驱动脉冲脉宽,计算得到PWM驱动单元的驱动脉宽,并将计算结果转化为定时计数值,并发送到PWM驱动单元(5)。2) PWM drive pulse width calculation, PWM drive pulse width count value conversion, and trigger drive signal are based on the current adjustment value and current setting value obtained by the internal interrupt program, as well as the constant current drive pulse width obtained in step 1, The driving pulse width of the PWM driving unit is calculated, and the calculation result is converted into a timing count value, and sent to the PWM driving unit (5).

3)外部定时中断服务程序中断响应结束,返回主程序。3) The interrupt response of the external timing interrupt service program is completed, and returns to the main program.

外部中断程序和步骤2所述的计算PWM驱动单元(5)的驱动脉宽,是采用如下公式计算:The drive pulse width of the calculation PWM drive unit (5) described in external interrupt program and step 2 is to adopt the following formula to calculate:

d=b×c/a,d=b×c/a,

其中:a是电流调节值,b是电流设定值,c是恒流驱动脉冲脉宽,d是PWM驱动单元的驱动脉宽。Among them: a is the current adjustment value, b is the current setting value, c is the pulse width of the constant current driving pulse, and d is the driving pulse width of the PWM driving unit.

本发明的基于硬件恒流控制的轨压预控制系统及控制方法,具有响应时间快,跟随性好的特点;其完全不受油量计量单元线圈电阻随温度变化的影响,控制精确、响应速度快;同时减少了软件控制的难度和复杂福,节约了处理器的硬件资源。The rail pressure pre-control system and control method based on hardware constant current control of the present invention have the characteristics of fast response time and good followability; it is completely not affected by the temperature change of the coil resistance of the oil metering unit, and has precise control and fast response Fast; at the same time, it reduces the difficulty and complexity of software control, and saves the hardware resources of the processor.

附图说明 Description of drawings

图1是本发明的整体构成模块示意图;Fig. 1 is a schematic diagram of the overall constituent modules of the present invention;

图2是本发明的同步驱动信号时序图;Fig. 2 is a synchronous drive signal timing diagram of the present invention;

图3是本发明的内部定时中断流程图;Fig. 3 is the internal timing interrupt flowchart of the present invention;

图4是本发明外部中断流程图。Fig. 4 is a flowchart of the external interrupt of the present invention.

其中:in:

1:基准电流查询模块    2:电流分配模块1: Reference current query module 2: Current distribution module

3:恒流驱动单元        4:高压油泵和油量计量单元3: Constant current drive unit 4: High pressure oil pump and oil quantity metering unit

5:PWM驱动单元         6:外部中断5: PWM drive unit 6: External interrupt

7:PWM驱动脉宽计算模块 8:恒流驱动脉宽捕捉计算模块7: PWM drive pulse width calculation module 8: Constant current drive pulse width capture calculation module

9:ECU轨压预控制模块   10:ECU内部定时中断9: ECU rail pressure pre-control module 10: ECU internal timing interrupt

a:发动机平均转速      b:循环喷射油量a: Average engine speed b: Cycle injection oil quantity

c:目标轨压            d:恒流驱动脉冲c: target rail pressure d: constant current drive pulse

e:周期同步            f:驱动同步e: cycle synchronization f: drive synchronization

g:PWM驱动脉冲         m:上升沿g: PWM drive pulse m: Rising edge

n:下降沿              h:脉宽捕捉计算n: falling edge h: pulse width capture calculation

具体实施方式 Detailed ways

下面结合实施例和附图对本发明的基于硬件恒流控制的轨压预控制系统及控制方法做出详细说明。The rail pressure pre-control system and control method based on hardware constant current control of the present invention will be described in detail below with reference to the embodiments and the accompanying drawings.

如图1所示,本发明的基于硬件恒流控制的轨压预控制系统,是用于分别通过恒流驱动单元3和PWM驱动单元5驱动高压油泵和油量计量单元4的轨压预控制系统,主要实现目标基准电流的闭环控制,使轨压控制快速响应和跟随目标轨压,主要用于产生同步的恒流控制值和PWM驱动脉冲。包括有:As shown in Figure 1, the rail pressure pre-control system based on hardware constant current control of the present invention is a rail pressure pre-control system for driving the high-pressure oil pump and the oil metering unit 4 through the constant current drive unit 3 and the PWM drive unit 5 respectively. The system mainly realizes the closed-loop control of the target reference current, so that the rail voltage control responds quickly and follows the target rail voltage, and is mainly used to generate synchronous constant current control values and PWM drive pulses. Including:

ECU内部定时中断10:在执行ECU控制主程序时,由ECU中的定时器产生,用于设定恒流驱动调节值的发送周期,即在ECU内部定时单元作用下,触发定时中断,以便产生同步的恒流控制值和PWM驱动脉冲;ECU internal timing interrupt 10: When the ECU control main program is executed, it is generated by the timer in the ECU, which is used to set the sending cycle of the constant current drive adjustment value, that is, under the action of the internal timing unit of the ECU, the timing interrupt is triggered to generate Synchronous constant current control value and PWM drive pulse;

外部中断6:由恒流驱动脉冲触发沿产生,用于同步恒流驱动脉冲和PWM驱动脉冲;External interrupt 6: generated by the trigger edge of the constant current drive pulse, used to synchronize the constant current drive pulse and PWM drive pulse;

基准电流查询模块1:通过发动机平均转速a、循环喷射油量b和目标轨压c来计算该工况油量计量单元的基准电流;Reference current query module 1: Calculate the reference current of the oil quantity metering unit in this working condition through the average engine speed a, the circulating injection oil quantity b and the target rail pressure c;

电流分配模块2:将基准电流查询模块1计算的基准电流分为电流调节值和电流设定值,并通过通讯机制将电流调节值发送到恒流驱动单元3,通过变量赋值将电流调节值和电流设定值发送到PWM驱动脉宽计算模块7,基准电流的分配比例可以根据实际需要自由设定,可在5%-95%区间内;Current distribution module 2: Divide the reference current calculated by the reference current query module 1 into current adjustment value and current setting value, and send the current adjustment value to the constant current drive unit 3 through the communication mechanism, and assign the current adjustment value and current setting value through variable assignment The current setting value is sent to the PWM drive pulse width calculation module 7, and the distribution ratio of the reference current can be freely set according to actual needs, and can be within the range of 5%-95%;

恒流驱动脉宽捕捉计算模块8:由恒流驱动单元3的恒流驱动脉冲通过硬件连接输入触发恒流驱动脉宽捕捉计算模块8。该恒流驱动脉冲的触发沿(下降沿)主要用于产生恒流驱动脉冲和PWM驱动脉冲的同步机制,使PWM驱动脉冲始终保持和恒流驱动脉冲周期同步和驱动同步(如图2所示)。恒流驱动脉宽捕捉计算模块8捕捉恒流驱动脉冲,并计算该恒流驱动脉冲脉宽,计算是通过ECU内部定时单元捕捉和累加恒流驱动脉冲的高电平,将捕捉和累加的计数值×定时单元时钟频率,即恒流驱动脉冲脉宽,同时将计算结果发送到PWM驱动脉宽计算模块7;Constant current drive pulse width capture calculation module 8: The constant current drive pulse width capture calculation module 8 is triggered by the constant current drive pulse of the constant current drive unit 3 through hardware connection input. The trigger edge (falling edge) of the constant current drive pulse is mainly used to generate the synchronization mechanism of the constant current drive pulse and the PWM drive pulse, so that the PWM drive pulse is always synchronized with the constant current drive pulse cycle and drive synchronization (as shown in Figure 2 ). The constant current drive pulse width capture calculation module 8 captures the constant current drive pulse and calculates the constant current drive pulse width. The calculation is to capture and accumulate the high level of the constant current drive pulse through the ECU internal timing unit, and capture and accumulate the count Value × clock frequency of the timing unit, i.e. the pulse width of the constant current drive pulse, and the calculation result is sent to the PWM drive pulse width calculation module 7;

PWM驱动脉宽计算模块7:根据电流分配模块2发来的电流调节值和电流设定值以及恒流驱动脉宽捕捉计算模块8发来的捕捉的恒流驱动脉冲脉宽计算得到PWM驱动单元5的驱动脉宽,并将计算结果转化为定时计数值,具体是根据定时器频率,即PWM驱动单元5的驱动脉宽/定时器频率,并发送到PWM驱动单元5。PWM drive pulse width calculation module 7: Calculate the PWM drive unit according to the current adjustment value and current set value sent by the current distribution module 2 and the captured constant current drive pulse pulse width sent by the constant current drive pulse width capture calculation module 8 The driving pulse width of 5, and the calculation result is converted into a timing count value, specifically according to the timer frequency, that is, the driving pulse width of the PWM driving unit 5/timer frequency, and sent to the PWM driving unit 5.

所述的PWM驱动脉宽计算模块7的计算公式是:d=b×c/a,其中:The calculation formula of the described PWM driving pulse width calculation module 7 is: d=b×c/a, wherein:

a是电流调节值,b是电流设定值,c是恒流驱动脉冲脉宽,d是PWM驱动单元的驱动脉宽。a is the current adjustment value, b is the current setting value, c is the pulse width of the constant current drive pulse, and d is the drive pulse width of the PWM drive unit.

由于恒流驱动单元3是基于硬件的电流闭环控制,其控制精度高、响应快,其恒流驱动脉冲跟随高压油泵油量计量单元电磁控制阀电阻的变化而变化,而恒流驱动脉宽捕捉计算8捕捉计算的参数具有很好的实时性。同时,恒流驱动单元3和PWM驱动单元5是并联驱动油量计量单元电磁阀,两者所在的硬件环境一致(包括电源,油量计量单元电磁阀、驱动回路等)。所以说,同周期同驱动脉宽可以保证油量计量单元电磁阀流过的电流相同,同周期时恒流驱动脉宽和PWM驱动脉宽的比值就是两者分配电流的比值。Since the constant current drive unit 3 is a current closed-loop control based on hardware, its control precision is high and its response is fast. Calculation 8 captures the calculated parameters with good real-time performance. At the same time, the constant current drive unit 3 and the PWM drive unit 5 drive the solenoid valve of the oil metering unit in parallel, and the hardware environment where the two are located is consistent (including power supply, solenoid valve of the oil metering unit, drive circuit, etc.). Therefore, the same cycle and the same driving pulse width can ensure that the current flowing through the solenoid valve of the oil metering unit is the same, and the ratio of the constant current driving pulse width to the PWM driving pulse width in the same cycle is the ratio of the current distribution between the two.

本发明的采用基于硬件恒流控制的轨压预控制系统的控制方法,是在ECU控制主程序运行过程中,依次执行由ECU中的定时器产生的用于设定恒流驱动调节值的发送周期的ECU内部定时中断10和由恒流驱动脉冲触发沿产生的用于同步恒流驱动脉冲和PWM驱动脉冲的外部中断6;The control method of the present invention using the rail pressure pre-control system based on hardware constant current control is to sequentially execute the transmission of the constant current drive adjustment value generated by the timer in the ECU during the operation of the ECU control main program. Periodic ECU internal timing interrupt 10 and external interrupt 6 for synchronous constant current drive pulse and PWM drive pulse generated by the trigger edge of the constant current drive pulse;

如图3所示,内部定时中断服务程序在中断响应后进行包括如下步骤:As shown in Figure 3, the internal timing interrupt service routine includes the following steps after the interrupt response:

1)轨压预控制基准电流查询,通过发动机平均转速、循环喷射油量和目标轨压来计算该工况油量计量单元的基准电流;1) Query the reference current of rail pressure pre-control, calculate the reference current of the fuel quantity metering unit in this working condition through the average engine speed, cycle injection oil quantity and target rail pressure;

2)基准电流配比计算,将步骤1所计算的基准电流分为电流调节值和电流设定值,并将电流调节值发送到恒流驱动单元3;2) Calculating the ratio of the reference current, dividing the reference current calculated in step 1 into a current adjustment value and a current setting value, and sending the current adjustment value to the constant current drive unit 3;

3)恒流控制电流值设定,由恒流驱动单元3的恒流驱动脉冲触发,来捕捉恒流驱动脉冲;3) The constant current control current value setting is triggered by the constant current drive pulse of the constant current drive unit 3 to capture the constant current drive pulse;

4)基准电流配比值保存,保存步骤2得到的电流调节值和电流设定值,以及步骤3捕捉到的恒流驱动脉冲;4) Save the reference current ratio value, save the current adjustment value and current setting value obtained in step 2, and the constant current drive pulse captured in step 3;

5)内部定时中断服务程序中断响应结束,返回主程序。5) The interrupt response of the internal timing interrupt service program is completed, and returns to the main program.

如图4所示,外部中断服务程序在中断响应(由恒流驱动脉冲下降沿触发)后进行包括如下步骤:As shown in Figure 4, the external interrupt service routine includes the following steps after the interrupt response (triggered by the falling edge of the constant current drive pulse):

1)计算恒流驱动脉冲脉宽,是根据内部中断程序捕捉到的恒流驱动脉冲,来计算该恒流驱动脉冲脉宽;1) Calculating the pulse width of the constant current driving pulse is to calculate the pulse width of the constant current driving pulse according to the constant current driving pulse captured by the internal interrupt program;

2)PWM驱动脉宽计算,PWM驱动脉宽计数值转化,触发驱动信号,是根据内部中断程序所得到的电流调节值和电流设定值,以及步骤1所得到的恒流驱动脉冲脉宽,计算得到PWM驱动单元5的驱动脉宽,并将计算结果转化为定时计数值(根据定时器频率,即PWM驱动单元(5)的驱动脉宽/定时器频率),并发送到PWM驱动单元5。2) PWM drive pulse width calculation, conversion of PWM drive pulse width count value, and trigger drive signal are based on the current adjustment value and current setting value obtained by the internal interrupt program, as well as the constant current drive pulse width obtained in step 1, Calculate the driving pulse width of the PWM driving unit 5, and convert the calculation result into a timing count value (according to the timer frequency, i.e. the driving pulse width/timer frequency of the PWM driving unit (5)), and send to the PWM driving unit 5 .

外部中断程序和步骤2所述的计算PWM驱动单元5的驱动脉宽,是采用如下公式计算:The drive pulse width of the calculation PWM drive unit 5 described in the external interrupt program and step 2 is to adopt the following formula to calculate:

d=b×c/a,                        (1)d=b×c/a,       (1)

其中:a是电流调节值,b是电流设定值,c是恒流驱动脉冲脉宽,d是PWM驱动单元的驱动脉宽;Among them: a is the current adjustment value, b is the current setting value, c is the pulse width of the constant current drive pulse, and d is the drive pulse width of the PWM drive unit;

3)外部定时中断服务程序中断响应结束,返回主程序。3) The interrupt response of the external timing interrupt service program is completed, and returns to the main program.

如图2所示,其中恒流驱动脉冲脉宽是由ECU特定定时器累积计数恒流驱动每次脉冲的高电平时间周期;其中恒流驱动脉冲d的下降沿n用来保证PWM驱动脉冲g和恒流驱动脉冲d周期同步,在下降沿n到来后,设定好的PWM驱动脉冲g开始工作,通过续流保证油量计量单元电磁阀基准电流达到预控制目标。As shown in Figure 2, the pulse width of the constant current drive pulse is the high-level time period of each pulse of the constant current drive accumulated by the specific timer of the ECU; the falling edge n of the constant current drive pulse d is used to ensure that the PWM drive pulse g is synchronous with the constant current drive pulse d period. After the falling edge n arrives, the set PWM drive pulse g starts to work, and the freewheeling flow ensures that the reference current of the solenoid valve of the oil metering unit reaches the pre-control target.

这里设定被发送到恒流驱动单元3的部分为3/4预控制电流值,被分配到PWM占宽比计算7的部分为1/4预控制电流值。Here, it is set that the part sent to the constant current drive unit 3 is 3/4 pre-control current value, and the part allocated to PWM duty ratio calculation 7 is 1/4 pre-control current value.

ECU中的定时器产生周期性的中断触发,内部定时中断服务程序中断响应,进入对应中断服务程序。The timer in the ECU generates periodic interrupt triggers, and the internal timer interrupt service program interrupts the response and enters the corresponding interrupt service program.

本发明的基于硬件恒流控制的轨压预控制系统及控制方法,具有响应时间快,跟随性好的特点;其完全不受油量计量单元线圈电阻随温度变化的影响,控制精确、响应速度快;同时减少了软件控制的难度和复杂福,节约了处理器的硬件资源。The rail pressure pre-control system and control method based on hardware constant current control of the present invention have the characteristics of fast response time and good followability; it is completely not affected by the temperature change of the coil resistance of the oil metering unit, and has precise control and fast response Fast; at the same time, it reduces the difficulty and complexity of software control, and saves the hardware resources of the processor.

如图1、图3、图4所示,本发明的基于硬件恒流控制的轨压预控制系统及控制方法,的工作过程是:基准电流查询模块1开始通过发动机平均转速、循环喷射油量和目标轨压来计算该工况油量计量单元的基准电流,随后通过电流分配模块2得到恒流驱动单元3的电流调节值和PWM驱动单元5的电流设定值,然后电流分配模块2通过通讯机制将调节值发送给恒流驱动单元3,通过变量赋值将电流调节值和电流设定值保存并发送给PWM驱动脉宽计算模块7。As shown in Fig. 1, Fig. 3 and Fig. 4, the working process of the rail pressure pre-control system and control method based on hardware constant current control of the present invention is: the reference current query module 1 starts to check the engine average speed, cycle injection oil quantity and the target rail pressure to calculate the reference current of the oil quantity metering unit in this working condition, and then obtain the current adjustment value of the constant current drive unit 3 and the current setting value of the PWM drive unit 5 through the current distribution module 2, and then the current distribution module 2 passes through The communication mechanism sends the adjustment value to the constant current drive unit 3 , and saves the current adjustment value and the current setting value through variable assignment and sends them to the PWM driving pulse width calculation module 7 .

内部定时中断服务程序中断响应结束,返回主程序。The internal timing interrupt service routine interrupt response ends and returns to the main program.

恒流驱动单元3为实现设定的目标电流,其硬件闭环控制机制开始工作,并产生恒流驱动脉冲,该恒流驱动脉冲的下降沿触发一个外部中断,进入外部中断服务程序。In order to realize the set target current, the constant current drive unit 3 starts its hardware closed-loop control mechanism to generate a constant current drive pulse. The falling edge of the constant current drive pulse triggers an external interrupt and enters the external interrupt service program.

首先,程序调出特定定时器捕捉恒流驱动脉冲高电平计数值,通过系统时钟频率计算恒流驱动脉冲脉宽。First, the program calls out a specific timer to capture the high-level count value of the constant current drive pulse, and calculates the pulse width of the constant current drive pulse through the system clock frequency.

然后,在由公式1计算PWM驱动脉宽,设定PWM驱动信号。其高电平即计算出的PWM驱动脉宽,该驱动信号高电平过后一直保持低电平,直至下一次中断服务响应,PWM驱动脉冲刷新,开始新一轮的驱动设定。Then, calculate the PWM driving pulse width by formula 1, and set the PWM driving signal. Its high level is the calculated PWM driving pulse width, and the driving signal remains low after the high level, until the next interrupt service response, the PWM driving pulse is refreshed, and a new round of driving setting is started.

外部定时中断服务程序中断响应结束,返回主程序。The external timing interrupt service program interrupt response ends and returns to the main program.

如图1,恒流驱动单元3和PWM驱动单元5共同作用于高压油泵-油量计量单元4。As shown in FIG. 1 , the constant current drive unit 3 and the PWM drive unit 5 work together on the high-pressure oil pump-oil quantity metering unit 4 .

如图3,通过恒流驱动单元3,3/4的基准电流得到实现和响应,同时输出恒流驱动脉冲。通过捕捉计算恒流驱动脉宽,计算PWM驱动单元5要实现1/4的基准电流所需的PWM驱动脉宽,并同时将PWM驱动脉宽转换为PWM驱动脉宽计数值(基于定时器时钟频率)发送PWM驱动单元5。在恒流驱动脉冲下降沿的同步触发下,PWM驱动脉宽的续流作用(如图2信号时序)最终实现了基准电流的预控制。As shown in Fig. 3, the reference current of 3/4 is realized and responded through the constant current drive unit 3, and a constant current drive pulse is output at the same time. By capturing and calculating the constant current drive pulse width, calculate the PWM drive pulse width required by the PWM drive unit 5 to realize 1/4 of the reference current, and simultaneously convert the PWM drive pulse width into the PWM drive pulse width count value (based on the timer clock frequency) to send the PWM drive unit 5. Under the synchronous trigger of the falling edge of the constant current drive pulse, the freewheeling effect of the PWM drive pulse width (as shown in the signal sequence in Figure 2) finally realizes the pre-control of the reference current.

Claims (4)

1. the rail pressure based on hardware constant current control is controlled system in advance, it is characterized in that, is for controlling system in advance by the rail pressure of constant current driving unit (3) and PWM driver element (5) driving high pressure oil pump-fuel gauging unit (4) respectively, comprising:
ECU internal timing interrupt module (10): under the unit effect of ECU internal timing, trigger regularly and interrupt, in order to produce synchronous constant current controlling value and PWM driving pulse;
Reference current enquiry module (1): the reference current that comes design condition fuel gauging unit by motor mean speed, cyclic spray oil mass and target rail pressure;
Electric current distribution module (2): the reference current that reference current enquiry module (1) is calculated is divided into electric current regulated value and current setting value, and the electric current regulated value sent to constant current driving unit (3), electric current regulated value and current setting value are sent to PWM driving pulsewidth computing module (7), and the allocation proportion of reference current is in the 5%-95% interval;
Constant current drives pulsewidth and catches computing module (8): the constant current driving pulse by constant current driving unit (3) triggers, be used for catching the constant current driving pulse, and calculate this constant current driving pulse pulsewidth, simultaneously result of calculation is sent to PWM and drive pulsewidth computing module (7);
PWM drives pulsewidth computing module (7): the electric current regulated value of sending according to electric current distribution module (2) and current setting value and constant current drive the driving pulsewidth that constant current driving pulse pulsewidth that pulsewidth catches the seizure that computing module (8) sends calculates PWM driver element (5), and result of calculation is converted into timing ga(u)ge numerical value, and send to PWM driver element (5).
2. the rail pressure based on hardware constant current control according to claim 1 is controlled system in advance, it is characterized in that the formula that described PWM drives pulsewidth computing module (7) is: d=b * c/a, wherein:
A is the electric current regulated value, and b is current setting value, and c is constant current driving pulse pulsewidth, and d is the driving pulsewidth of PWM driver element.
3. controlling method that adopts the described rail pressure based on hardware constant current control of claim 1 to control system in advance, it is characterized in that, be in ECU control main program running, carry out by the ECU internal timing interruption (10) of the generation of the timer among the ECU with by the constant current driving pulse and trigger along the external interrupt (6) that produces;
Described internal interrupt comprises the steps:
1) rail pressure is controlled the reference current inquiry in advance, comes the reference current of design condition fuel gauging unit by motor mean speed, cyclic spray oil mass and target rail pressure;
2) the reference current proportioning is calculated, and the reference current that step 1 is calculated is divided into electric current regulated value and current setting value, and the electric current regulated value is sent to constant current driving unit (3);
3) constant current control current value is set, and the constant current driving pulse triggering by constant current driving unit (3) catches the constant current driving pulse;
4) reference current proportioning value is preserved, and preserves electric current regulated value and current setting value that step 2 obtains, and the constant current driving pulse that captures of step 3;
5) internal timing interrupt service routine interrupt response finishes, and returns main program
Described external interrupt comprises the steps:
1) calculating constant current driving pulse pulsewidth, is the constant current driving pulse that captures according to the internal interrupt program, calculates this constant current driving pulse pulsewidth;
2) PWM drives pulsewidth calculating, PWM drives the conversion of pulsewidth count value, trigger and drive signal, be according to the resulting electric current regulated value of internal interrupt program and current setting value, and the resulting constant current driving pulse of step 1 pulsewidth, calculate the driving pulsewidth of PWM driver element (5), and result of calculation is converted into timing ga(u)ge numerical value, and send to PWM driver element (5)
3) external definition interrupt service routine interrupt response finishes, and returns main program.
4. employing according to claim 3 is controlled the controlling method of system in advance based on the rail pressure of hardware constant current control, it is characterized in that the driving pulsewidth of external interrupt program and step 2 described calculating PWM driver element (5) is to adopt following formula to calculate:
d=b×c/a,
Wherein: a is the electric current regulated value, and b is current setting value, and c is constant current driving pulse pulsewidth, and d is the driving pulsewidth of PWM driver element.
CN 201110283816 2011-09-22 2011-09-22 Rail pressure pre-control system and control method based on hardware constant current control Expired - Fee Related CN102425503B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201110283816 CN102425503B (en) 2011-09-22 2011-09-22 Rail pressure pre-control system and control method based on hardware constant current control

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201110283816 CN102425503B (en) 2011-09-22 2011-09-22 Rail pressure pre-control system and control method based on hardware constant current control

Publications (2)

Publication Number Publication Date
CN102425503A CN102425503A (en) 2012-04-25
CN102425503B true CN102425503B (en) 2013-10-09

Family

ID=45959525

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201110283816 Expired - Fee Related CN102425503B (en) 2011-09-22 2011-09-22 Rail pressure pre-control system and control method based on hardware constant current control

Country Status (1)

Country Link
CN (1) CN102425503B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103631152B (en) * 2013-11-26 2015-12-30 南京航空航天大学 Engine controller hardware-in-loop simulation moment of torsion/rotating speed composite signal analogy method
CN111327190B (en) * 2020-03-27 2021-04-02 深圳市皓文电子有限公司 Method and device for improving dynamic tracking performance of DCDC constant current power supply

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1896712B1 (en) * 2005-06-23 2010-11-24 Mtu Friedrichshafen Gmbh Control and regulation method for an internal combustion engine provided with a common-railsystem
CN102062007A (en) * 2010-12-22 2011-05-18 潍柴动力股份有限公司 Rail pressure control method and rail pressure pre-control method and system for engine
CN102182574A (en) * 2011-02-01 2011-09-14 潍柴动力股份有限公司 Method and device for controlling rail pressure in high-pressure common rail system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102004023365B4 (en) * 2004-05-12 2007-07-19 Mtu Friedrichshafen Gmbh Method for pressure control of a storage injection system
EP2240379B1 (en) * 2007-11-29 2013-07-10 Closure Systems International, Inc. Closure with improved rotation-inhibiting projections
DE102009045563B4 (en) * 2009-10-12 2019-06-13 Robert Bosch Gmbh A method for determining at least one rail pressure-closing flow value pair for a pressure control valve of a common rail injection system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1896712B1 (en) * 2005-06-23 2010-11-24 Mtu Friedrichshafen Gmbh Control and regulation method for an internal combustion engine provided with a common-railsystem
CN102062007A (en) * 2010-12-22 2011-05-18 潍柴动力股份有限公司 Rail pressure control method and rail pressure pre-control method and system for engine
CN102182574A (en) * 2011-02-01 2011-09-14 潍柴动力股份有限公司 Method and device for controlling rail pressure in high-pressure common rail system

Also Published As

Publication number Publication date
CN102425503A (en) 2012-04-25

Similar Documents

Publication Publication Date Title
CN102374055B (en) Engine rail press precontrol and feedback control device as well as control system and control method
CN104047748B (en) A kind of fuel pressure controller based on active disturbance observation and control method thereof
CN105422296B (en) A kind of high-pressure common rail oil injection compress control method and system
CN102425503B (en) Rail pressure pre-control system and control method based on hardware constant current control
CN103195975A (en) Method for controlling piezoelectric valve positioner capable of changing PWM (pulse-width modulation) duty ratio
CN102182574B (en) Method and device for controlling rail pressure in high-pressure common rail system
CN104832307A (en) Diesel engine rotating speed control method
CN102412957A (en) High-precision synchronous clock adjusting method
CN102245884B (en) Control and regulation method for an internal combustion engine having a common rail system
GB2600350A (en) Free piston engine control
CN104090495A (en) High-power electric control diesel engine pump nozzle fuel supply system modeling method
RU2013115900A (en) ENGINE CONTROL METHOD (OPTIONS) AND ENGINE SYSTEM
CN103891140A (en) Trigger activated adjustable pulse width generator circuit for automotive exhaust after-treatment and injection
US10174732B2 (en) Method and device for controlling a high-pressure fuel pump in an internal combustion engine
CN112727622A (en) Oil quantity control method of pressure accumulation pump type fuel injection system, electric control equipment and engine
CN118375528A (en) Control method for reducing cycle variation of linear motion engine
CN102383956B (en) Two-stroke kerosene engine with port electronically controlled injection
JP2022514396A (en) Methods and systems for controlling pistonless engines
EP3371437A1 (en) Internal combustion engine with injection amount control
CN103883409B (en) Double-actuator switching control method and device
US10746125B2 (en) Controller and control method for internal combustion engine
CN100516485C (en) Fuel supply controller for heavy-duty supercharged lean-burn natural gas engine
CN202531407U (en) Electromagnetic water pump capable of controlling output flow
CN105189995A (en) Determining the opening energy of a fuel injector
CN202300960U (en) Electromagnetic water pump with frequency conversion controller

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20170505

Address after: 300462 Tianjin Binhai Development Zone Xinye west five Street No. 19 rooms

Patentee after: Bari (Tianjin) Automotive Engineering Research Institute Co. Ltd.

Address before: 300162 Tianjin city Dongli District Forest Road No. 218

Patentee before: China Automotive Technology Research Center

TR01 Transfer of patent right
CB03 Change of inventor or designer information

Inventor after: Gao Jidong

Inventor after: Gao Haiyang

Inventor after: Li Guangxia

Inventor after: Zhang Hongchao

Inventor after: Li Hongliang

Inventor after: Chen Daliang

Inventor after: Cui Guoxu

Inventor after: Gao Zhang

Inventor after: Mou Liansong

Inventor after: Cui Wei

Inventor after: Liu Shuangxi

Inventor before: Li Ke

Inventor before: Zhang Hongchao

Inventor before: Cui Guoxu

Inventor before: Gao Zhang

Inventor before: Mou Liansong

Inventor before: Cui Wei

Inventor before: Liu Shuangxi

Inventor before: Gao Haiyang

Inventor before: Li Guangxia

CB03 Change of inventor or designer information
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20131009

Termination date: 20200922

CF01 Termination of patent right due to non-payment of annual fee