Torque PID for Ford Focus - 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 Third Generation > MK3 Focus

MK3 Focus The place to chat about general questions, window tinting, exterior body, interior and lighting upgrades for the third generation 2012-Current Focus.

Search This Forum | Image Search | Advanced Search    
FocusFest

Like Tree3Likes
Reply




 
LinkBack Thread Tools Display Modes
Old 06-16-2014, 12:07 AM   #1
Focus Rookie
 
Join Date: Apr 2014
Fan#: 158530
Location: Melbourne, Australia
What I Drive: 2011 silver Focus Titanium

Posts: 16
Points 1,567, Level 22
Points: 1,567, Level: 22 Points: 1,567, Level: 22 Points: 1,567, Level: 22
Level Up 67% Completed
Level up: 67% Level up: 67% Level up: 67%
Forum Activity 1%
Activity: 1% Activity: 1% Activity: 1%
FF Reputation: 2 millinnium Good Standing Member
Buy-Sell-Trade Rating: (0)
Arrow Torque PID for Ford Focus

Here you go community:

Latest Update 20/6/14:
Learned Relative Octane Adjust "OCTANE ADJ" "2203E8" "((256*A)+B)*(-0.0000610124)+3.998717499" "%"
Equation for Learned Octane Adjust confirmed.

Equation for Clutch Slip Corrected:
Clutch A Slip "CLUTCH A SLIP" "221ebb" "((Signed(A)*256)+B)/4" "RPM"
Clutch B Slip "CLUTCH B SLIP" "221ebc" "((Signed(A)*256)+B)/4" "RPM"

Update 19/6/14:
Battery Current Equation found, added to confirm working and correct equation section


CONFIRM WORKING AND CORRECT EQUATION:

Name "ShortName" "ModeAndPID" "Equation" "Min Value" "Max Value" "Units" "Header"
Accelerator Pedal Position "ACC PEDAL POS" "22032b" "A/2" "%"
Air Cond Compressor State "AIR COND" "22099b" "A"
Battery Age "BATT AGE" "224027" "((A*256)+B)" "Days" "726"
Battery Charge "BATT%" "224028" "A" "%" "726"
Battery Current BATT CUR 224090 (((A*256)+B)/16)-511.7 -600 600 Amp 726
Battery Temperature "BATT Temp" "224029" "A-40" "C" "726"
Fuel Level "FUEL LEVEL" "22f42f" "A/256*100" "%"
Fuel Pump Pressure Desired "FUEL PSI DESIRED" "2203dc" "((256*A)+b)*10*.145" "PSI"
Gear Commanded by Output State "GEAR" "221e12" "A" "Gear"
In Car Temperature "INCARTEMP" "22dd04" "A/8" "C" "726"
Lateral G "LAT G" "222b11" "((signed(A)*256)+B)*0.02" "g" "ABS"
Longitude G "LONG G" "222b0c" "((signed(A)*256)+B)*0.02" "g" "ABS"
Steering Wheel Angle "STWHEEL" "223302" "((signed(A)*256+b))/10-780" "" "ABS"
Throttle Position (Desired) "TP D" "22091a" "((A*256)+B)*(100/8192)" ""
Trans Axle Gear Ratio Measured "GEAR RATIO" "221e16" "((A*256)+B)/4096" ":1"
Transmission Gear Engaged "GEAR ENGAGED" "221e1f" "A" "Gear"
Transmission Gear Mode "GEAR MODE" "221e23" "A" "Mode"
ABS Wheel Speed 1 "ABS RFW" "222b06" "A" "KM/H" "ABS"
ABS Wheel Speed 2 "ABS LFW" "222b07" "A" "KM/H" "ABS"
ABS Wheel Speed 3 "ABS RRW" "222b08" "A" "KM/H" "ABS"
ABS Wheel Speed 4 "ABS LRW" "222b09" "A" "KM/H" "ABS"
Engine Knock "Knock" "2203ec" "signed(A)/2" ""

EQUATION not solved but PID working:
Brake Fluid line Hydraulic Pressure "BFLHP" "222b0d" "A" "kpa"
Catalyst Temperature "CAT TEMP" "22f43c" "((A*256)+B)-40" "C"
Clutch Open "CLUTCH STATE" "221eA0" "A&256"
Engine Total Distance "ENG DIST" "22dd01" "((A*256)+B)" "KM"
In Gear "IN GEAR" "221e04" "A"
Inlet Air Temperature Fault "INLET TEMP" "220700" "A"
Max Diff between TP1 and TP2 "DIFF TP1 TP2" "2203A7" "A" ""
Torque Control Request "TORQ CON" "2203AF" "A"
Transmission Temperature "Trans" "221E1C" "(((SIGNED(A)*256)+B)*(9/8)+320)/10" "-40" "260" "C" "TCM"



Last edited by millinnium; 06-19-2014 at 10:11 PM. Reason: Add more PID and equations
millinnium is offline  
    Reply With Quote Quick reply to this message
Sponsored Links
Advertisement
 
Old 06-16-2014, 11:03 AM   #2
Focus Fanatic
 
PratoN's Avatar
 
Join Date: Jul 2011
Fan#: 88058
Location: Milwaukee, WI
What I Drive: 2012 Kona Blue Ti Hatchback, DCT

Posts: 4,271
Points 4,677, Level 43
Points: 4,677, Level: 43 Points: 4,677, Level: 43 Points: 4,677, Level: 43
Level Up 64% Completed
Level up: 64% Level up: 64% Level up: 64%
Forum Activity 2%
Activity: 2% Activity: 2% Activity: 2%
FF Reputation: 19 PratoN Great Standing Member
Buy-Sell-Trade Rating: (0)
Aww yis.

EDIT: I copied this into a text file and opened it with excel - it makes it easier to read and gets rid of the "" characters that aren't really supposed to be there. I still had to move around the units/headers to the correct columns if there aren't min/max values specified. Cool stuff - I'll test it tonight!
__________________
2012 FF Ti HB Kona Blue, DCT, Built 5/24/2011, 401A + Ti Handling Package, Parking Technology Package, Winter Package, Moonroof, and MFT w/NAV at v3.8 157k miles and counting...

Last edited by PratoN; 06-16-2014 at 12:34 PM.
PratoN is offline  
    Reply With Quote Quick reply to this message
Old 06-17-2014, 01:18 AM   #3
Focus Rookie
 
Join Date: Apr 2014
Fan#: 158530
Location: Melbourne, Australia
What I Drive: 2011 silver Focus Titanium

Posts: 16
Points 1,567, Level 22
Points: 1,567, Level: 22 Points: 1,567, Level: 22 Points: 1,567, Level: 22
Level Up 67% Completed
Level up: 67% Level up: 67% Level up: 67%
Forum Activity 1%
Activity: 1% Activity: 1% Activity: 1%
FF Reputation: 2 millinnium Good Standing Member
Buy-Sell-Trade Rating: (0)
Smile

Quote:
Originally Posted by PratoN View Post
Aww yis.

EDIT: I copied this into a text file and opened it with excel - it makes it easier to read and gets rid of the "" characters that aren't really supposed to be there. I still had to move around the units/headers to the correct columns if there aren't min/max values specified. Cool stuff - I'll test it tonight!
Sadly i cannot attach a CSV file to this forum, so yes, have to do it the manual way. Let me know if you can figure out better equations. I have manage to figure out most but not all.
millinnium is offline  
    Reply With Quote Quick reply to this message
 
Old 06-17-2014, 11:52 AM   #4
Rubber Side Down
 
BetaDnB's Avatar
 
Join Date: Jul 2011
Fan#: 87466
Location: Buffalo, NY
What I Drive: 2016 Race Red ST1

Posts: 2,410
Points 3,048, Level 33
Points: 3,048, Level: 33 Points: 3,048, Level: 33 Points: 3,048, Level: 33
Level Up 99% Completed
Level up: 99% Level up: 99% Level up: 99%
Forum Activity 1%
Activity: 1% Activity: 1% Activity: 1%
FF Reputation: 17 BetaDnB Great Standing Member
Buy-Sell-Trade Rating: (0)
Quote:
Originally Posted by millinnium View Post
Sadly i cannot attach a CSV file to this forum...
You could always make it public on a cloud and provide the link.
__________________
Current- 2016 Race Red Focus ST1

Traded In - Sedan Revolution #249 - 2012 SE Sport - ╠╬╝ - Ingot Silver - 201A - K&N w/ snorkel delete - Blox Type R Knob
BetaDnB is offline  
    Reply With Quote Quick reply to this message
Old 06-17-2014, 07:38 PM   #5
Focus Enthusiast
 
Join Date: May 2012
Fan#: 98706
Location: Mills River, NC
What I Drive: 2012 Tux Black Focus Titanium Hatch

Posts: 277
Points 1,884, Level 25
Points: 1,884, Level: 25 Points: 1,884, Level: 25 Points: 1,884, Level: 25
Level Up 84% Completed
Level up: 84% Level up: 84% Level up: 84%
Forum Activity 2%
Activity: 2% Activity: 2% Activity: 2%
FF Reputation: 2 zehkaiser Good Standing Member
Buy-Sell-Trade Rating: (1)
I've been trying to get my hands on something like this for a while. Thanks!
zehkaiser is offline  
    Reply With Quote Quick reply to this message
Old 06-17-2014, 07:41 PM   #6
Sonic's MK3 Crew #25
 
papaacer's Avatar
 
Join Date: Mar 2013
Fan#: 111083
Location: Willows, CA
What I Drive: 2012 Race Red SE

Posts: 9,232
Points 11,902, Level 71
Points: 11,902, Level: 71 Points: 11,902, Level: 71 Points: 11,902, Level: 71
Level Up 63% Completed
Level up: 63% Level up: 63% Level up: 63%
Forum Activity 11%
Activity: 11% Activity: 11% Activity: 11%
FF Reputation: 17 papaacer Great Standing Member
Buy-Sell-Trade Rating: (3)
subbed
__________________
https://d1juqo69tkizbw.cloudfront.net/b1fa678c-0250-4577-a27d-2faead0b0b2d.large.jpg
https://d1juqo69tkizbw.cloudfront.net/b1fa678c-0250-4577-a27d-2faead0b0b2d.large.jpg
papaacer is online now  
    Reply With Quote Quick reply to this message
Old 06-17-2014, 08:15 PM   #7
Focus Enthusiast
 
Join Date: May 2012
Fan#: 98706
Location: Mills River, NC
What I Drive: 2012 Tux Black Focus Titanium Hatch

Posts: 277
Points 1,884, Level 25
Points: 1,884, Level: 25 Points: 1,884, Level: 25 Points: 1,884, Level: 25
Level Up 84% Completed
Level up: 84% Level up: 84% Level up: 84%
Forum Activity 2%
Activity: 2% Activity: 2% Activity: 2%
FF Reputation: 2 zehkaiser Good Standing Member
Buy-Sell-Trade Rating: (1)
I am currently formatting this into a CSV so we can all import, but I'm having a problem with MIN/MAX values. I have to set one for each line, or the import fails. How do I know what those values should be?
zehkaiser is offline  
    Reply With Quote Quick reply to this message
Old 06-17-2014, 09:03 PM   #8
Focus Enthusiast
 
Join Date: May 2012
Fan#: 98706
Location: Mills River, NC
What I Drive: 2012 Tux Black Focus Titanium Hatch

Posts: 277
Points 1,884, Level 25
Points: 1,884, Level: 25 Points: 1,884, Level: 25 Points: 1,884, Level: 25
Level Up 84% Completed
Level up: 84% Level up: 84% Level up: 84%
Forum Activity 2%
Activity: 2% Activity: 2% Activity: 2%
FF Reputation: 2 zehkaiser Good Standing Member
Buy-Sell-Trade Rating: (1)
Updated to match OP on 6/20/14

Get the csv here. If you prefer to past the text into your own csv, the data is below.

Code:
"Name","ShortName","ModeAndPID","Equation","Min Value","Max Value","Units","Header"
"Accelerator Pedal Position","Acc Pedal Pos","22032b","A/2",0,100,"%",""
"Air Cond Compressor State","Air Cond","22099b","A",0,1,"",""
"Battery Age","Batt Age","224027","((A*256)+B)",0,1825,"Days","726"
"Battery Charge","Batt %","224028","A/256*100",0,100,"%","726"
"Battery Current","Batt Cur","224090","(((A*256)+B)/16)-511.7",-300,300,"Amp","726"
"Battery Temperature","Batt Temp","224029","A-40",0,100,"C","726"
"Brake Fluid Line Hydraulic Pressure","Brk Fl Press","222b0d","A",0,7000,"kpa",""
"Catalyst Temperature","Cat Temp","22f43c","((A*256)+B)-40",0,1000,"C",""
"Clutch A Slip","Clutch A Slip","221ebb","((Signed(A)*256)+B)/4",-1000,1000,"RPM",""
"Clutch B Slip","Clutch B Slip","221ebc","((Signed(A)*256)+B)/4",-1000,1000,"RPM",""
"Clutch Open","Clutch State","221eA0","A*256",0,1,"",""
"Engine Total Distance","Eng Dist","22dd01","((A*256)+B)",0,200000,"km",""
"Fuel Level","Fuel Lvl","22f42f","A/256*100",0,100,"%",""
"Fuel Pump Pressure Desired","Fuel PSI Des","2203dc","((256*A)+b)*10*.145",0,75,"PSI",""
"Gear Commanded by Output State","Gear Cmd","221e12","A",-1,6,"Gear",""
"In Car Temperature","In Car Temp","22dd04","A/8",0,50,"C","726"
"In Gear","IN GEAR","221e04","A",0,1,"",""
"Inlet Air Temperature Fault","Inlet Temp","220700","A",-25,50,"",""
"Lateral Angle","Lat ","222b0c","SIGNED(A)",-90,90,"","ABS"
"Lateral G","Lat G","222b11","((signed(A)*256)+B)*0.02",-1,1,"g","ABS"
"Learned Relative Octane Adjust","Octane Adj","2203E8","((256*A)+B)*(-0.0000610124)+3.998717499",-

100,100,"%",""
"Longitude G","Long G","222b0c","((signed(A)*256)+B)*0.02",-1,1,"g","ABS"
"Max Diff between TP1 and TP2","Diff TP1 TP2","2203A7","A",0,90,"",""
"Steering Wheel Angle","StWheel Ang","223302","((signed(A)*256+b)/10-780",-720,720,"","ABS"
"Throttle Position (Desired)","T Pos D","22091a","((A*256)+B)*(100/8192)",0,90,"",""
"Torque Control Request","Trq Cont","2203AF","A",0,100,"",""
"Trans Axle Gear Ratio Measured","Gear Ratio","221e16","((A*256)+B)/4096",0,10,":1",""
"Transmission Gear Engaged","Gear Eng","221e1f","A",-1,6,"Gear",""
"Transmission Gear Mode","Gear Mode","221e23","A",-1,6,"Mode",""
"Transmission Temperature","Trans","221E1C","(((SIGNED(A)*256)+B)*(9/8)+320)/10",0,150,"C","TCM"
"ABS Wheel Speed 1","ABS RFW","222b06","A",0,200,"km/h","ABS"
"ABS Wheel Speed 2","ABS LFW","222b07","A",0,200,"km/h","ABS"
"ABS Wheel Speed 3","ABS RRW","222b08","A",0,200,"km/h","ABS"
"ABS Wheel Speed 4","ABS LRW","222b09","A",0,200,"km/h","ABS"
"Engine Knock","Knock","2203ec","signed(A)/2",0,90,"",""

Last edited by zehkaiser; 06-21-2014 at 02:04 PM.
zehkaiser is offline  
    Reply With Quote Quick reply to this message
Old 06-18-2014, 07:25 AM   #9
Focus Rookie
 
Join Date: Apr 2014
Fan#: 158530
Location: Melbourne, Australia
What I Drive: 2011 silver Focus Titanium

Posts: 16
Points 1,567, Level 22
Points: 1,567, Level: 22 Points: 1,567, Level: 22 Points: 1,567, Level: 22
Level Up 67% Completed
Level up: 67% Level up: 67% Level up: 67%
Forum Activity 1%
Activity: 1% Activity: 1% Activity: 1%
FF Reputation: 2 millinnium Good Standing Member
Buy-Sell-Trade Rating: (0)
Quote:
Originally Posted by zehkaiser View Post
Here goes nothing... I slapped together this file. You can download it here. It is also in plain text so anyone can paste it into notepad, save it to a .csv and call it a day. I also fixed a typo in an equation and removed the extra characters.

Code:
"Name","ShortName","ModeAndPID","Equation","Min Value","Max Value","Units","Header"
"Accelerator Pedal Position","ACC PEDAL POS","22032b","A/2",0,100,"%",""
"Air Cond Compressor State","AIR COND","22099b","A",0,1,"",""
"Battery Age","BATT AGE","224027","((A*256)+B)",0,4096,"Days",""
"Battery Charge","BATT%","224028","A/256*100",0,100,"%",""
"Battery Temperature","BATT Temp","224029","A-40",-100,256,"C",""
"Brake Fluid Line Hydraulic Pressure","BFLHP","222b0d","A",0,16384,"kpa",""
"Catalyst Temperature","CAT TEMP","22f43c","((A*256)+B)-40",-100,512,"C",""
"Clutch A Slip","CLUTCH A SLIP","221ebb","((A*256)+B)*(1/4)",0,1024,"RPM",""
"Clutch B Slip","CLUTCH B SLIP","221ebc","((A*256)+B)*(1/4)",0,1024,"RPM",""
"Clutch Open","CLUTCH STATE","221eA0","A*256",0,1,"",""
"Engine Total Distance","ENG DIST","22dd01","((A*256)+B)",0,1000000,"km",""
"Fuel Level","FUEL LEVEL","22f42f","A/256*100",0,100,"%",""
"Fuel Pump Pressure Desired","FUEL PSI DESIRED","2203dc","((256*A)+b)*10*.145",0,512,"PSI",""
"Gear Commanded by Output State","GEAR","2.21E+14","A",-1,6,"Gear",""
"In Car Temperature","INCARTEMP","22dd04","A/8",-100,100,"C",""
"In Gear","IN GEAR","2.21E+06","A",-1,6,"",""
"Inlet Air Temperature Fault","INLET TEMP","220700","A",-100,256,"",""
"Lateral Angle","LAT ","222b0c","SIGNED(A)",-360,360,"","ABS"
"Lateral G","LAT G","222b11","((signed(A)*256)+B)*0.02",-32,32,"g","ABS"
"Learned Relative Octane Adjust","OCTANE ADJ","2.20E+11","A/256*100",-256,256,"%",""
"Longitude G","LONG G","222b0c","((signed(A)*256)+B)*0.02",-32,32,"g","ABS"
"Max Diff between TP1 and TP2","DIFF TP1 TP2","2203A7","A",0,360,"",""
"Steering Wheel Angle","STWHEEL","223302","((signed(A)*256+b)/10-780",0,1440,"","ABS"
"Throttle Position (Desired)","TP D","22091a","((A*256)+B)*(100/8192)",0,90,"",""
"Torque Control Request","TORQ CON","2203AF","A",0,1,"",""
"Trans Axle Gear Ratio Measured","GEAR RATIO","2.21E+18","((A*256)+B)/4096",0,24,":1",""
"Transmission Gear Engaged","GEAR ENGAGED","221e1f","A",-1,6,"Gear",""
"Transmission Gear Mode","GEAR MODE","2.21E+25","A",-1,6,"Mode",""
"Transmission Temperature","Trans","221E1C","(((SIGNED(A)*256)+B)*(9/8)+320)/10",-100,256,"C","TCM"
"ABS Wheel Speed 1","ABS RFW","222b06","A",0,512,"km/h","ABS"
"ABS Wheel Speed 2","ABS LFW","222b07","A",0,512,"km/h","ABS"
"ABS Wheel Speed 3","ABS RRW","222b08","A",0,512,"km/h","ABS"
"ABS Wheel Speed 4","ABS LRW","222b09","A",0,512,"km/h","ABS"
"Engine Knock","Knock","2203ec","signed(A)/2",0,100,"",""
Here are screenshots from my BlackBerry running Torque showing the PIDs while my car was running. Not all of them are working, and I can't even validate that some of these are accurate. I chose MIN and MAX values that I felt would be within the bounds of the sensor, but I can't tell if that is causing problems.




Hi Zehkaiser, thank you for your good work.

for your battery settings, make sure to use header "726", this will make your battery PIDs work.

All I request is more people in this community help figure out the equations.
millinnium is offline  
    Reply With Quote Quick reply to this message
Old 06-18-2014, 07:28 AM   #10
Focus Enthusiast
 
Join Date: May 2012
Fan#: 98706
Location: Mills River, NC
What I Drive: 2012 Tux Black Focus Titanium Hatch

Posts: 277
Points 1,884, Level 25
Points: 1,884, Level: 25 Points: 1,884, Level: 25 Points: 1,884, Level: 25
Level Up 84% Completed
Level up: 84% Level up: 84% Level up: 84%
Forum Activity 2%
Activity: 2% Activity: 2% Activity: 2%
FF Reputation: 2 zehkaiser Good Standing Member
Buy-Sell-Trade Rating: (1)
Quote:
Originally Posted by millinnium View Post
Hi Zehkaiser, thank you for your good work.

for your battery settings, make sure to use header "726", this will make your battery PIDs work.

All I request is more people in this community help figure out the equations.
Well, I feel stupid. I'll update the post and the file. Thanks for supplying the PIDs. I ran some logging this morning on my way to work, but I haven't looked at the data to see if anything looks weird.
zehkaiser 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:
What I Drive
Year, color, and model of your car. Example: 2003 Pitch Black ZX3
Name
Your real name.
City
State
Country
Insurance
Please select your insurance company (Optional)

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
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 10:24 PM.


Copyright 2002-2015 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 Mazda CX-3, Audi S3, Mazda MX-5 Miata and Acura TLX. You can find all Ford Focus, Focus ST and Focus RS related information here. Join our Ford Focus discussion forums and chat with local Focus enthusiasts in your area. If you own other makes have a look at Challenger Hellcat Forum, Charger Hellcat Forum, Cadillac ATS-V Forum, Cadillac CTS-V Forum, Lexus RC-F Forum, Lexus GS-F Forum, Mercedes GLA Forum, Mercedes GLE Forum and Volvo XC90 Forum.




 

Search Engine Optimization by vBSEO 3.6.1