scan xl professional script editors - Focus Fanatics
Ford Focus Forum
HomeContact UsAbout UsGalleryDiscussion ForumsMarketplace



Go Back   Focus Fanatics > Ford Focus Tech Discussions > Focus Tuning Chat

Focus Tuning Chat Discuss performance tuning options for your Ford Focus.

Search This Forum | Image Search | Advanced Search    
FocusFest Ford Focus Tire & Wheels FocusFanatics Merchandise

Reply
 
Thread Tools Display Modes
Old 05-14-2013, 04:09 PM   #1
mgs41987
Focus Jr. Enthusiast
 
Join Date: Jan 2012
Fan#: 93412
Location: torquay, United Kingdom
What I Drive: 02 blue 1.6 zetec

Posts: 38
FF Reputation: 1 mgs41987 Good Standing Member
Buy-Sell-Trade Rating: (0)
scan xl professional script editors

turning off a check engine light i noticed script editor, so i chose to import scripts as im going through it im noticing that this version of scan xl i have you can import and edit export the the scripts back to the ecu, so as you can edit them i thought i would have a gander see what values it gives you, i have three scripts from ecu

1 for fuel flow rate showing current ratios,
2 Instantaneous Fuel Economy and
3 boost pressure (air flow)

not being trained or not looked into it much further i thought i would ask you guys as the values can be changed and exported back to ecu to gain a bit more power or economy and these are what the scripts look like

SCRIPT 1
function GetRequiredPids()
{
Obdii.AddRequiredPid("SAE.LAMBDA");
Obdii.AddRequiredPid("SAE.MAF");
}

var AirFuelRatio = 14.64; // For gasoline vehicles
var FuelDensityGramsPerLiter = 720; // For gasoline vehicles

var CommandedEquivalenceRatio = Obdii.GetPidValueEnglish("SAE.LAMBDA");

if (CommandedEquivalenceRatio != null)
{
AirFuelRatio *= CommandedEquivalenceRatio;
}

var FuelFlowGramsPerSecond = Obdii.GetPidValueMetric("SAE.MAF") / AirFuelRatio;
var FuelFlowLitersPerSecond = FuelFlowGramsPerSecond / FuelDensityGramsPerLiter;
var FuelFlowGallonsPerSecond = FuelFlowLitersPerSecond * 0.26417;

Obdii.PidValue.English = FuelFlowGallonsPerSecond * 3600; // Convert to gallons per hour
Obdii.PidValue.Metric = FuelFlowLitersPerSecond * 3600; // Convert to liters per hour

SCRIPT 2 (LOOKS THE SAME)

function GetRequiredPids()
{
Obdii.AddRequiredPid("SAE.LAMBDA");
Obdii.AddRequiredPid("SAE.MAF");
Obdii.AddRequiredPid("SAE.VSS");
}

var AirFuelRatio = 14.64; // For gasoline vehicles
var FuelDensityGramsPerLiter = 720; // For gasoline vehicles

var CommandedEquivalenceRatio = Obdii.GetPidValueEnglish("SAE.LAMBDA");

if (CommandedEquivalenceRatio != null)
{
AirFuelRatio *= CommandedEquivalenceRatio;
}

var FuelFlowGramsPerSecond = Obdii.GetPidValueMetric("SAE.MAF") / AirFuelRatio;
var FuelFlowLitersPerSecond = FuelFlowGramsPerSecond / FuelDensityGramsPerLiter;
var FuelFlowGallonsPerSecond = FuelFlowLitersPerSecond * 0.26417;

var FuelFlowGallonsPerHour = FuelFlowGallonsPerSecond * 3600; // Convert to gallons per hour
var FuelFlowLitersPerHour = FuelFlowLitersPerSecond * 3600; // Convert to liters per hour

if (FuelFlowLitersPerHour == 0 || FuelFlowGallonsPerHour == 0)
{
Obdii.PidValue.Metric = "N/A";
Obdii.PidValue.English = "N/A";
}
else
{
Obdii.PidValue.Metric = Obdii.GetPidValueMetric("SAE.VSS") / FuelFlowLitersPerHour;
Obdii.PidValue.English = Obdii.GetPidValueEnglish("SAE.VSS") / FuelFlowGallonsPerHour;
}

SCRIPT 3

function GetRequiredPids()
{
Obdii.AddRequiredPid("SAE.MAP");
Obdii.AddRequiredPid("SAE.BARO");
}

// Script for scaling -15 to +20 PSI Boost Gauge
var ManifoldRelativePressurePSI = Obdii.GetPidValueEnglish("SAE.MAP") / 2.04; // inHg to PSI
var BarometricPressurePSI = Obdii.GetPidValueEnglish("SAE.BARO") / 2.04; // inHg to PSI
//var BoostPSI = ManifoldRelativePressurePSI - BarometricPressurePSI - 14.70; // Zero at atmospheric
var BoostPSI = ManifoldRelativePressurePSI - BarometricPressurePSI; // Zero at atmospheric
Obdii.PidValue.English = BoostPSI;
Obdii.PidValue.Metric = BoostPSI / 14.50; // PSI to Bar


mgs41987 is offline  
    Reply With Quote
Reply

Bookmarks & Social Networks

Thread Tools
Display Modes

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

Forum Jump


All times are GMT -5. The time now is 11:37 PM.


Copyright 2002-2014 FocusFanatics.com. All Rights Reserved : Terms of Use : Privacy Policy : Advertise Information : Site Map

Focus Fanatics Ford Focus Forum offers many fun ways for you to engage with other Ford Focus Owners from across the world. Whether it be about the aftermarket performance modifications, technical how-to's, European tuned suspension or awesome fuel economy similar to the Acura TLX or Fiesta ST. You can find all Ford Focus and Focus ST related information here. Join our Ford Focus discussion forums and chat with local Focus enthusiasts in your area.