Go Back   Third Generation F-Body Message Boards > Tech Boards > DIY PROM
Sign in using an external account
Register Forgot Password?

DIY PROM Do It Yourself PROM chip burning help. No PROM begging. No PROMs for sale. No commercial exchange. Not a referral service.

Welcome to ThirdGen.org!
Welcome to ThirdGen.org.

You are currently viewing our forum as a guest, which gives you limited access to view most discussions and access our other features. By joining our community, at no cost, you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is free, fast and simple, join the ThirdGen.org community today!


Reply
 
Thread Tools Search this Thread
Old 05-20-2004, 08:59 PM   #1
Supreme Member
 
JP86SS's Avatar
 
Join Date: Apr 2004
Location: Browns Town
Posts: 2,933
Car: 86 Monte SS (730,$8D,G3,AP,4K,S_V4)
Engine: 406 Hyd Roller
Transmission: 700R4 HomeBrew, 3.8K stall 3 diskLU
Axle/Gears: 3:73 Posi, 7.5 Soon to break

Classifieds Rating: (0)
Pid Ol/cl

I just read through the tread on "black magic" and thought I should clarify something (and provide a clean opening for the discussion).
When controlling systems in closed loop there are different schemes of control when implementing the PID system.
1.) position based
2.) velocity based

It has come to my attention during my normal work that many electrical control people "EE"'s tend to assume that PID is always based on the fact that a point in the control system is to be reached, ie: a position control. I say this because I've had to argue the point a few times.
In a "position" based control the "P" gain is used to increase the output to reach the point desired by the command, "I" gain or "reset" is kept to a minimum, and "D" is used to control overshoot or allow for some "Mush" (techno term).
The output will ramp up and try to get to the desired setpoint and then ramp down due to decreasing error when getting close to avoid overshoot and then finally stop at "zero output" in the commanded position.

For systems attempting to maintain a setting durring a moving type of operation "speed control" the set up must operate differently because the actual setpoint (if using position control) must never be reached, Therfore a different formula is used and the setup operates differently.
The Velocity type control is setup so that the "I" gain is the primary driving force in the output by resetting the baseline output more often to maintain the output required to obtain constant speed. In this operation the "P" gain is kept to a minimum and gives the advantage of faster response when a large change is required but should not be attempted to use for the continuous control or occilation will occur due to overshooting in the calculations. "D" is not even used, it just causes problems of inducing lags into the system.

I wrote this from personal experience in tuning fast response electrohydraulic control systems, my terminology is not the best and I'm NOT an EE.
I just wanted to be sure that my usage of the closed loop terminology is better understood before I go into my response to the actual question.

Finally, The question/statement:
If in PE mode and the ECM is in "Closed Loop" (bit set), Learning disabled (per the old thread) and
THE INTEGRATOR is reset
(saw that flash by in the last thread and sparked this whole response)

If the integrator is constantly reset then that means closed loop SHOULD be functioning but is not able to make any changes.
The BLM adder/subtraction may/may not be used (I don't know)
I would think it applies but,

Does the actual output stay locked at the previous setting when PE was engaged then adjust from there to obtain the WOT AFR?
or
Is there a complete change in the output based on the AFR and INJ constants? (among other things)

just a note,
this control acts more like a rolling correction register with a lookup table, not really PID. I think the IAC has more of PID control than this but I have to learn that next.
__________________
EarthBound Misfit
http://www.wideopenwest.com/~Johnand...eWeb/photo.htm
JP86SS is offline vBGarage Page   Reply With Quote
Old 05-20-2004, 10:51 PM   #2
Senior Member
 
Join Date: Feb 2000
Location: Heath, OH USA
Posts: 1,415
Car: 84 Z28
Engine: 355 (fastburn heads, LT4 HOT cam)
Transmission: 700R4
Axle/Gears: 9-bolt, 3.27

Classifieds Rating: (0)
Send a message via AIM to JP84Z430HP Send a message via Yahoo to JP84Z430HP
Re: Pid Ol/cl

Quote:
Originally posted by JP86SS
Finally, The question/statement:
If in PE mode and the ECM is in "Closed Loop" (bit set), Learning disabled (per the old thread) and
THE INTEGRATOR is reset
(saw that flash by in the last thread and sparked this whole response)

If the integrator is constantly reset then that means closed loop SHOULD be functioning but is not able to make any changes.
The BLM adder/subtraction may/may not be used (I don't know)
I would think it applies but,

Does the actual output stay locked at the previous setting when PE was engaged then adjust from there to obtain the WOT AFR?
or
Is there a complete change in the output based on the AFR and INJ constants? (among other things)

just a note,
this control acts more like a rolling correction register with a lookup table, not really PID. I think the IAC has more of PID control than this but I have to learn that next.
This is all good info...... I'll have to read it again when my brain isn't so fried...(long week).

To really confuse this, from what I've seen, GM didn't do this the same for every mask! I'm sure that will keep the arguments going for years, because I'm sure that not everbody will see the different ways they do things in different masks!
__________________
http://www.jpteck.com/efi
------------------------------
ASE Certified Master Tech
JP84Z430HP is offline vBGarage Page   Reply With Quote
Old 05-20-2004, 11:19 PM   #3
Supreme Member
 
JP86SS's Avatar
 
Join Date: Apr 2004
Location: Browns Town
Posts: 2,933
Car: 86 Monte SS (730,$8D,G3,AP,4K,S_V4)
Engine: 406 Hyd Roller
Transmission: 700R4 HomeBrew, 3.8K stall 3 diskLU
Axle/Gears: 3:73 Posi, 7.5 Soon to break

Classifieds Rating: (0)
another quick thought

I was pondering the possibility that the mode was left in closed loop to provide for "stepless" changeover from so called open loop WOT to closed loop operation.
It kind of makes sense, otherwise there may be some overcorrecting going on upon return to O2 fuel control.
JP
JP86SS is offline vBGarage Page   Reply With Quote
Old 05-21-2004, 01:46 AM   #4
Senior Member
 
1981TTA's Avatar
 
Join Date: May 2004
Location: SE Michigan
Posts: 289
Car: 81 Turbo Trans Am
Engine: 301 T
Transmission: 200-4R

Classifieds Rating: (0)
JP86SS,

I have to admit you lost me in your second (velocity?) example of PID. In either example, it should all come down to the "error" you're trying to reduce and inputting to the PID logic. Whether that error is "velocity" or "position", the behavior of the P, I and D terms on the chosen error feedback will show the same trend on any (linear) system. Overgaining any of the terms will cause unstable behavior regardless of the error feedback chosen. Again, I admit I didn't follow your 2nd example very well.....

Anyway..... It would seem that the BLM/INT terms within the controller both act as simple integrators. I don't believe (could be wrong) that there is any proportional or derivative correction applied. Any proportional correction shouldn't have any memory of previous events. In other words, the correction would only be based on the current measured error rather than being summed/incremented/decremented with the last measured error. I think your last statement is right on the mark in that it's more of a "rolling correction register".

In the logic I've reviewed, the INT is reset (i.e. no adjustment based on this value) and the BLM is used only if it was adding fuel during PE. I understand the application of existing BLM or resetting BLM varies by mask. Not updating INT makes sense since our stock feedback signal can't be used (assuming NB O2 sensor) at AFR != ~14.7 due to unknown or variable voltage-to-AFR transfer function. Letting the BLM add fuel in some masks was probably done as a CYA. We wouldn't want the engine to run lean when transitioning to open-loop with a clogged injector. Now that I think of it, I know it was used in the SyTy code. Maybe this was done in masks for engines that might have been more sensitive to fuel delivery than others...? I have to admit I've sometimes wondered why the software didn't look for an O2 voltage above a nominal "rich" reading when commanded AFR was less than 14.7. (Maybe they have done this in some mask I haven't seen??)

Rather than just looking at the "IAC", you'll want to consider the whole idle algorithm to see an example of P-I control. I'm just getting into this myself recently. But, I believe we could consider the spark stabilizer/correction due to RPM error as a proportional control. The integral control would be with the IAC steps/Idle airflow.
1981TTA is offline vBGarage Page   Reply With Quote
Old 05-21-2004, 08:10 AM   #5
Moderator
 
Join Date: Mar 2002
Location: Chasing Electrons
Posts: 11,386
Car: check
Engine: check
Transmission: check

Classifieds Rating: (1)
Re: another quick thought

Quote:
Originally posted by JP86SS
I was pondering the possibility that the mode was left in closed loop to provide for "stepless" changeover from so called open loop WOT to closed loop operation.
It kind of makes sense, otherwise there may be some overcorrecting going on upon return to O2 fuel control.
JP
This too is my thought. While in open loop after a startup there are timed delays, coolant threshold(s) and the checking for an active O2 sensor before switching to closed loop.

The transition to PE is sudden, same as the transition out of PE mode. If the ECM was in closed loop before entering PE, it immediately reverts back to closed loop (O2 feedback controlled) mode upon exiting PE mode. The delays and checking for an active O2 are bypassed.

While in PE mode the ECM basically just locks the PID parameters. The INT & BLM may ot may not be used, and may or may not be locked at 128. Proportional gains and timers get held in reset.

It is difficult to specify exactly what the ECM(s) do with the PID parameters while in PE mode. Why? Because there are variences between masks. On some masks if the INT is greater then 128 at the time of PE entry, it will lock the INT at that value (a value greater then 128).

It is possible to specify what happens if we also specify which maskID we are referring to.

One interesting aspect of the fueling PID routine is that the proportional gains are set high. So high that it causes the loop to oscillate. This is what keeps the cat-con happy. And forces the O2 to swing about the desired O2 values, which keeps the INT happy.

Over on the diy-efi site there is a paper that covers a bit of the '7747 closed loop fueling. A little dated but still a good read.

Notice that I didn't use the term 'learn mode' at all. Learn is something different then closed loop.

RBob.
RBob is offline vBGarage Page   Reply With Quote
Old 05-21-2004, 08:10 AM
ThirdGen
1992 Camaro




Paid Advertisement


Reply

Go Back   Third Generation F-Body Message Boards > Tech Boards > DIY PROM
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

 


1982 Camaro '82 || 1983 Camaro '83 || 1984 Camaro '84 || 1985 Camaro '85 || 1986 Camaro '86 || 1987 Camaro '87 || 1988 Camaro '88 || 1989 Camaro '89 || 1990 Camaro '90 || 1991 Camaro '91 || 1992 Camaro '92


All times are GMT -5. The time now is 06:23 PM.


Powered by vBulletin® Version 3.7.5
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.5.2
All content copyright © 1997 - 2012 ThirdGen.org. All rights reserved. No part of this website may be reproduced without the expressed, documented, and written consent of ThirdGen.org's Administrators.

Emails & Contact Details