PDA

View Full Version : Can someone help me out with calc.pids



pavetim
January 23rd, 2011, 03:13 AM
I went through my calc_pids text and to me it looks messed up I tried to piece together what all you guys are using and think I got alot that aren't needed and mixed up some that are. My LTFT ones are golden I just need the AFR ones. Basically to log AFR, EQ, AFR BEN correction, EQ BEN correction. OR if you can clean mine up i'd appreciate it.

mr.prick
January 23rd, 2011, 09:14 AM
The formula for CALC.BENS1 should be "({GM.EQIVRATIO}/{EXT.WO2EQR1})"
and the units changed to factor.
I don't know what "({GM.EQIVRATIO}*{EXT.WO2LAM1})" will give you. :nixweiss:

The commanded AFR PID (from EQ) should be "(the value of {B3601}/{GM.EQIVRATIO})"
Multiple sets based on different AFR values may cause some confusion.
If you change {B3601} then simply paste the value into the PID expression.

I have found {GM.AFR} to be out of sync with {GM.EQIVRATIO}, so don't waste a channel on it.

pavetim
January 23rd, 2011, 09:33 AM
Yeah I really don't plan on using analog WB anyways, If I do i'll come to that road later. I just want to make sure when I get a BEN factor that it's right and i'm using the right ones. All the pids I require show up as supported but i'm not 100% sure the formulas are correct.

joecar
January 23rd, 2011, 10:01 AM
Are you obtaining the AFR/LAM/EQR from the LC-1 using serial comms...?

[ ok, I see we can we eliminate the analog LC-1 pids ]

Your engine displacement is 4.3L...?

See attached cleaned up file.

Edit: I decided I didn't like AFR in CLC-00-110 so I deleted the AFR portion of CLC-00-110 [it refused to work right] (see attached).
Edit: I decided to simplify CLC-00-110 so I deleted the EQR portion of CLC-00-110 [it ok, but it was complicated] (see attached).

Note: the attached calc pid file include's pavetim's diesel mpg pid (won't work on gas PCM's).

joecar
January 23rd, 2011, 10:05 AM
...

I don't know what "({GM.EQIVRATIO}*{EXT.WO2LAM1})" will give you. :nixweiss:

...You already know that that is the same as "({GM.EQIVRATIO}/{EXT.WO2EQR1})", right...?

:)

lam = 1/eqr

pavetim
January 23rd, 2011, 10:12 AM
Honestly Joe I don't know much about EQ and lambda. Until I learn better I use afr cause I know afr.

joecar
January 23rd, 2011, 10:20 AM
Honestly Joe I don't know much about EQ and lambda. Until I learn better I use afr cause I know afr.

They are related as follows:

For commanded air/fuel:
AFR = stoichAFR * Lambda = stoichAFR / EQR

For wideband air/fuel:
AFR = stoichAFR * Lambda = stoichAFR / EQR


i.e. AFR is always proportial to Lambda (i.e. multiplied by the stoichAFR) and inversely proportional to EQR.


i.e. note that Lambda = 1/EQR.

joecar
January 23rd, 2011, 10:24 AM
Commanded EQR is handy because it quickly tells you how rich/lean is being commanded regardless of fuel used (e.g. EQR 1.2 is 20% rich for any fuel).

Wideband Lambda is handy because is quickly tells you how much to multiply VE or MAF by to correct it (e.g. Lambda 0.83 means multiply by 0.83 regardless of fuel).

pavetim
January 23rd, 2011, 10:30 AM
what about this one Joe I noticed you got rid of it. Its the new one Shawn made.
*CLC-00-301
% 0.0 100.0 .2 "{SAE.MAF.gps}*({GM.DYNAIRTMP_DMA.C}+273.15)*3445.2/(4.300*{SAE.RPM}*{SAE.MAP.kPa})*{CALC.BEN1}"
VE 0.0 3.0 .4 "{SAE.MAF.gps}*({GM.DYNAIRTMP_DMA.C}+273.15)*15/({SAE.RPM}*{SAE.MAP.kPa})*{CALC.BEN1}"

joecar
January 23rd, 2011, 10:35 AM
what about this one Joe I noticed you got rid of it. Its the new one Shawn made.
*CLC-00-301
% 0.0 100.0 .2 "{SAE.MAF.gps}*({GM.DYNAIRTMP_DMA.C}+273.15)*3445.2/(4.300*{SAE.RPM}*{SAE.MAP.kPa})*{CALC.BEN1}"
VE 0.0 3.0 .4 "{SAE.MAF.gps}*({GM.DYNAIRTMP_DMA.C}+273.15)*15/({SAE.RPM}*{SAE.MAP.kPa})*{CALC.BEN1}"

I changed it to use the newly named CALC.WO2BEN1 pid which does the exact same thing as CALC.BEN1 but using the CLC-00-110 which allows the BEN to be calculated by one of three forms (you choose the form by specifying the units).

pavetim
January 23rd, 2011, 10:38 AM
Nevermind I missed it lol

mr.prick
January 23rd, 2011, 10:46 AM
You already know that that is the same as "({GM.EQIVRATIO}/{EXT.WO2EQR1})", right...?

:)

lam = 1/eqr

I see, another form of BEN. :doh2:
This would the option for analog instead of making a commanded Lambda PID from EQ.

joecar
January 23rd, 2011, 11:08 AM
See my edits to post #4.

joecar
January 23rd, 2011, 11:11 AM
For those with 5.7L displacement see attached.

pavetim
January 24th, 2011, 01:17 AM
Ok starting to make sense about EQ and lambda. So if I used my wideband to tune for CL and PE what would be the best way to do it. Would it be better to use a BEN using AFR vs commanded or is there a better/easier way to modify the VE, MAF freq table using a WB?
Ok without looking at my calc_pids.txt if I wanted to use EQ to fix the VE table is this the right rationale? correction factor= EQ/commanded AFR and just take that number and paste-multiply into the VE table?

WeathermanShawn
January 24th, 2011, 02:21 AM
Tim you really have me and probably a lot of other readers pretty confused. I thought we already did CALC.VE Table which modifies your MAF and VE Table. Its the same technique for PE Mode/WOT. You don't need to alter your VE Table..its being done by the calculations.

It still sounds like you are confusing AUTOVE and CALC.VE Table or you are convinced that somehow you have to separately alter the VE Table.

Perhaps Joecar can straighten you out. I think you are asking the same questions over and over and IMO really making it harder than it needs to be. Whats hanging you up?

pavetim
January 24th, 2011, 02:42 AM
I understand now how to tune using the NB for CL and then the WB during PE. But after looking at my calc_pids.txt I just want to make sure i'm actually using the correct formulas for the VE/MAF corrections. I know how to use the NB for the VE table i'm good on that, I'm just makin sure I have the correct formulas so when I do the correction using a WB it dont mess it up. I might have to think a different way because I like to look at AFR, it's easier to me. But need to make sure i'm doing the corrections the right way using I guess EQ is the best? Cause from what i've read using AFR to make your VE/MAF corrections isn't good? Cause like I said before I tried to piece together calc.pids and think I jacked it all up, but Joecar fixed my pids for me, just need to understand how to use them.

joecar
January 24th, 2011, 04:03 AM
Yes, the formulas look correct if your engine size is 4.3L.

To look at commanded AFR do this: log GM.EQIVRATIO (instead of GM.AFR) and use the CALC.AFR pid to view it as an AFR
(first edit CLC-00-001 to be the stoichiometric AFR of the fuel you're using, e.g. 14.63 for gas, 14.12 for E10, 9.78 for E85, etc...).

The CALC.WO2BEN1 pid uses GM.EQIVRATIO and EXT.WO2LAM1.

When using LTFT's for correction, use CALC.LTFTBEN.

Avoid using CALC.STFTBEN, CALC.STFT, CALC.LTFT for anything other than viewing.

CALC.EQR is used for viewing EQR from logged GM.AFR (which you shouldn't be logging), so it is never needed.

pavetim
January 24th, 2011, 04:30 AM
Wow that makes perfect sense now, thanks Joe and Shawn think I got it now, but also got the inside working from your explainations too. Thanks.