# ================================================== ============================
# 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
#-------- ---------- -------- -------------------------------------------------------------
None None "" "No units"
K Metric "K" "Degrees Kelvin"
R Imperial "R" "Degrees Rankine"


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

*CLC-00-032
factor 0 4 .0 "{GM.EQIVRATIO}=1"

*CLC-00-110
factor 0.5 1.5 .4 "{GM.EQIVRATIO}*{EXT.WO2LAM1}"

*CLC-00-120
factor 0.5 1.5 .4 "({SAE.LONGFT1}+{SAE.LONGFT2})/200+1"

*CLC-00-220
factor 0.5 1.5 .4 "iff({CALC.CL}, {CALC.LTFTBEN}, {CALC.WO2BEN})"

*CLC-00-273
C 0.0 100.0 .1 "{GM.DYNAIRTMP_DMA.C}"
F 40.0 220.0 .1 "{GM.DYNAIRTMP_DMA.F}"
K 280.0 380.0 .1 "{GM.DYNAIRTMP_DMA.C}+273.15"
R 500.0 680.0 .1 "{GM.DYNAIRTMP_DMA.F}+459.67"

*CLC-00-300
% 0.0 100.0 .2 "{SAE.MAF.gps}*{CALC.DAT.K}/{SAE.MAP.kPa}/{SAE.RPM}*3445.2/displacement()"
VE 0.0 2.468 .4 "{SAE.MAF.gps}*{CALC.DAT.K}/{SAE.MAP.kPa}/{SAE.RPM}*15"

*CLC-00-305
% 0.0 100.0 .2 "{CALC.SELBEN}*{CALC.VEN.%}"
VE 0.0 2.468 .4 "{CALC.SELBEN}*{CALC.VEN.VE}"

*CLC-00-310
gps 0.0 400.0 .1 "{GM.VETABLE_DMA.VE}/{CALC.DAT.K}*{SAE.MAP.kPa}*{SAE.RPM}/15"

*CLC-00-315
gps 0.0 400.0 .1 "{CALC.SELBEN}*{CALC.MAFN.gps}"

*CLC-00-430
VE 0.0 4.0 .4 "{GM.DYNCYLAIR_DMA}*{CALC.DAT.K}/{SAE.MAP.kPa}"

*CLC-00-435
gcyl 0.0 1.0 .4 "{GM.VETABLE_DMA.VE}/{CALC.DAT.K}*{SAE.MAP.kPa}"


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

CALC.CL F032 CLC-00-032 factor Tuning "Closed Loop (based on EQIVRATIO)"

CALC.WO2BEN F110 CLC-00-110 factor Tuning "BEN from WB"
CALC.LTFTBEN F120 CLC-00-120 factor Tuning "BEN from LTFT"
CALC.SELBEN F220 CLC-00-220 factor Tuning "BEN selected from LTFT or WB"

CALC.DAT F273 CLC-00-273 "C,F,K,R" Tuning "Dynamic Air Temperature"

CALC.VEN F300 CLC-00-300 "%,VE" Tuning "Calculated VE, not corrected"
CALC.VET F305 CLC-00-305 "%,VE" Tuning "Calculated VE, BEN corrected"

CALC.MAFN F310 CLC-00-310 gps Tuning "Calculated MAF, not corrected"
CALC.MAFT F315 CLC-00-315 gps Tuning "Calculated MAF, BEN corrected"

CALC.VEDCA F430 CLC-00-430 VE Tuning "Calculated VE (from DCA)"
CALC.DCAVE F435 CLC-00-435 gcyl Tuning "Calculated DCA (from VE)"