PDA

View Full Version : Using GM.EQIVRATIO instead of GM.AFR



joecar
April 25th, 2007, 02:08 PM
I'm logging GM.EQIVRATIO instead of GM.AFR, and here's my calc_pids.txt for calculating BEN's for anyone who likes EQ units...

:)



# ================================================== ============================
# File details
# ------------
#
# This section defines various details about the file format.

*FILE

#Parameter Value Description
#---------- ---------------- ---------------------------------------------------
VERSION 7.1.1 File version
DECSEP . Decimal separator used in this file


# ================================================== ============================
# Units
# -------------------
# See sae_generic.txt for more information on the *UNITS section

*UNITS

#Code System Abbr Description
#-------- ---------- -------- -------------------------------------------------------------
EQ None EQ "Equivalence ratio"
MPG Imperial MPG "Miles per gallon"
Lphkm Metric L/100km "Litres per 100km"


# ================================================== ============================
# Add slot definitions here
# --------------------------------
# See sae_generic.txt for more information on "SLOT" formats
#
#Units Low High Fmt Expression
#------------ ------------- ------------- ---- --------------------------------------------------------------

*CLC-00-010
AFR 10.0 20.0 0.2 "14.63 / {GM.EQIVRATIO}"
EQ 0.5 1.5 0.3 "14.63 / {GM.AFR}"

*CLC-00-021
AFR 10.0 20.0 0.2 "{EXT.AD1} + 11.0"
EQ 0.5 1.5 0.3 "14.63 / ({EXT.AD1} + 11.0)"

*CLC-00-022
AFR 10.0 20.0 0.2 "{EXT.AD2} + 11.0"
EQ 0.5 1.5 0.3 "14.63 / ({EXT.AD2} + 11.0)"

*CLC-00-031
factor 0.5 1.5 0.2 "{GM.EQIVRATIO} / {CALC.AIRFUEL_WBOS1.EQ}"

*CLC-00-032
factor 0.5 1.5 0.2 "{GM.EQIVRATIO} / {CALC.AIRFUEL_WBOS2.EQ}"

*CLC-00-090
MPG 0.0 40.0 0.1 "{SAE.VSS.mph} / ({GM.INJFLOW.lbpm} * {GM.IBPW1} * {SAE.RPM} * 4 / 6250)"
Lphkm 0.0 40.0 0.1 "235.2146 / ({SAE.VSS.kph} * 0.6214) * ({GM.INJFLOW.lbpm} * {GM.IBPW1} * {SAE.RPM} * 4 / 6250)"


# ================================================== ============================
*PRN - Parameter Reference Numbers
# --------------------------------
# See sae_generic.txt for more information on the *PRN section
#
#Code PRN SLOT Units System Description
#------------------------- ---- ------------ ---------------- ---------------- ------------------------------------------

CALC.AFR F010 CLC-00-010 AFR Fuel "Calculated Commanded AFR"
CALC.EQ F011 CLC-00-010 EQ Fuel "Calculated Commanded EQ"

CALC.AIRFUEL_WBOS1 F021 CLC-00-021 "AFR,EQ" Fuel "Air/Fuel Wideband 1"
CALC.AIRFUEL_WBOS2 F022 CLC-00-022 "AFR,EQ" Fuel "Air/Fuel Wideband 2"

CALC.BEN_WBOS1 F031 CLC-00-031 factor Tune "BEN Multiplier Wideband 1"
CALC.BEN_WBOS2 F032 CLC-00-032 factor Tune "BEN Multiplier Wideband 2"

CALC.MPG F090 CLC-00-090 MPG Economy "Calculated miles per gallon"
CALC.Lphkm F091 CLC-00-090 Lphkm Economy "Calculated litres per 100km"





(my LC-1 is programmed for 0V=11AFR, 5V=16AFR).

joecar
July 22nd, 2012, 06:09 PM
lol, that also shows the instantaneous MPG/Lphkm pid... :)


(forget the AFR EQR pids they are old)

joecar
August 7th, 2012, 03:04 PM
Here's my current calc_pids.txt, I added the MPG pid into it (along with the Calc.VET pids)...