I fought that one for a long time on my 2004 F150 5.4L.
Do not know if my efforts would benefit you at all on your 2013. I have found (and well learned) that there are lots of differences in PID assignments of even the most similar of vehicles. I would like to know if it works. But – if it helps:
Engine Oil Temperature (Volts) on mine is at PID # 16AF. It gives Volts (Zero to 5 volts) and value from the thermister sensor outputs reading in the inverse. Proper formula for it is: (A*256+B)/13107 for proper 05 volt output.
After much research, I found a table / chart of voltage temperature readings for it in the Motorcraft OBDII Theory of Operation Manual, and set out to come up with a conversion formula. Found it to be a very bizarre ‘S’ curve. With the assistance of a very brilliant forum member on here ( credits to: @cintakc ), he came up with a formula that works magnificently. It’s called a ‘complex cubic spline polynomial’, but actually has four curve sample points. (I guess that would be a ‘quad – spline’ LOL). With that I built the following three very useful gauges:
Mode/PID: 2216AF
Long Nm: _Engine Oil Temperature F.
Short Nm: EOT_CSpoly
Min / Max: 40 – 300
Units: ºF
Equation: “(0.000000000000006*(((A*256+B)/64)^6))+(0.000000000023539*(((A*256+B)/64)^5))+(0.000000035224767*(((A*256+B)/64)^4))+(0.000026002718966*(((A*256+B)/64)^3))+(0.010060545286623*(((A*256+B)/64)^2))+(2.15299002755322*((A*256+B)/64))+347.216057683581”
Header: Auto
diag st/stp: Blank
Mode/PID 221139
Long Nm: _Engine Coolant Temperature Input
Short Nm? ECT Input
Min/Max 0 255
Unit Type ºF
Equation: A*2
Header; Blank
diag st/stp: Blank
Mode/PID: Blank
Long Nm: _EOTECT_Delta
Short Nm: EOTECTD
Min/Max: 0 / 100
Units ºF
Equation: Val{_Engine Oil Temperature F.}Val{_Engine Coolant Temperature Input}
Header: Blank
diag st/stp: Blank
NOTES//// I use a leading underscore character on all my custom PIDs to identify them from Torques.
In the Equation using the ‘Val’ (value) operation, the name must match the Long Name “EXACTLY”.
There is an example (with downloadable ‘CSV’ file for torque) posted here:
https://www.f150forum.com/f4/torqueapp384381/#post5339202
Hope this helps.
—————–
54371019
