scan xl professional script editors - Ford Focus Forum, Ford Focus ST Forum, Ford Focus RS Forum
Ford Focus Forum
HomeContact UsAbout UsGalleryDiscussion ForumsMarketplace


Go Back   Ford Focus Forum, Ford Focus ST Forum, Ford Focus RS Forum > 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    
Ford Focus Tire & Wheels FocusFanatics Merchandise

Reply
 
Thread Tools Display Modes
Old 05-14-2013, 05: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 Quick reply to this message
Reply

Bookmarks & Social Networks

Quick Reply
Message:
Options

Register Now

In order to be able to post messages on the Ford Focus Forum, Ford Focus ST Forum, Ford Focus RS Forum forums, you must first register.
Please enter your desired user name, your email address and other required details in the form below.
User Name:
Password
Please enter a password for your user account. Note that passwords are case-sensitive.
Password:
Confirm Password:
Email Address
Please enter a valid email address for yourself.
Email Address:

Log-in

Human Verification

In order to verify that you are a human and not a spam bot, please enter the answer into the following box below based on the instructions contained in the graphic.



Thread Tools
Display Modes

Posting Rules
You may post new threads
You may 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 06:25 PM.


Copyright 2002-2014 FocusFanatics.com. All Rights Reserved : Privacy Policy : Advertise Information

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 Audi S3, Ford Fusion and Acura TLX. 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. Challenger Hellcat - Charger Hellcat