Page 2 of 11 FirstFirst 1234 ... LastLast
Results 11 to 20 of 109

Thread: Fuel_Economy calculated pid?

  1. #11
    Lifetime Member
    Join Date
    Aug 2005
    Posts
    710

    Default

    Quote Originally Posted by Blacky
    One thing to remember when creating calculated PID expressions that use PIDs with both metric and imperial units, is to append the units to the PID name, like this:

    If the speed is in mph and the flow is in pound per minute then use:
    {SAE.VSS.mph}/({GM.INJFLOW.lbpm}/737.22*3.785412)

    If the speed is in km/h and the flow is in grams per second then use:
    {SAE.VSS.kph}/({GM.INJFLOW.gps}/737.22*3.785412)

    Otherwise EFILive won't know which units to use when computing the expression.

    The units are listed in
    \Program Files\EFILive\V7\Configuration\sae_generic.txt
    in the *UNITS section.
    The first entry in the "Code" column is the one you need to append to the PID name.

    Regards
    Paul
    Yeah, I screwed that one up.

  2. #12
    Lifetime Member emarkay's Avatar
    Join Date
    Apr 2003
    Posts
    481

    Default

    Jeez, this was an old request I made way back in the V6 days... Easier way would be VSS and inverted MAP. Vacuum in In/Hg is an easy and close "instant" MPG figure, and when VSS gets to zero MPG also goes to "0"...

    What about it, programmers?
    Early EFILive V5 user - Upgraded from AutoTap for DOS!
    2000 Chevrolet Camaro Z28, A4 - For occasional day trips...
    1984 Chevrolet Caprice Classic - For the family...
    1989 Honda VTR250 - For me and me only...

  3. #13
    Lifetime Member
    Join Date
    Aug 2005
    Posts
    710

    Default

    Welp, Calculated Injector Flow Rate doesn't work properly. My whole 30 minute drive home it stayed in the narrow range of 0.48lb/min to 0.52lb/min. Time for another idea.

  4. #14
    EFILive Developer Site Admin Blacky's Avatar
    Join Date
    Mar 2003
    Posts
    9,501

    Default

    That value is the value looked up by the PCM from {B4001}*{B4002}.
    You would need to multiply that by injector base pulse width and then by RPM and some constants thrown in as well.

    Maybe something like this:
    {GM.INJFLOW.gps}*({GM.INJBPW}/1000)*({SAE.RPM}*4/60)

    Notes:
    • divide INJBPW by 1000 to convert from ms to seconds.
    • divide RPM by 60 to convert RPM to RPS (revs per second).
    • multiply by 4 to convert RPS to injector openings per second (8 injectors, each one opens every 2 revolutions)
    That's just off the top of my head, I have not checked it for accuracy.

    Regards
    Paul
    Before asking for help, please read this.

  5. #15
    EFILive Developer Site Admin Blacky's Avatar
    Join Date
    Mar 2003
    Posts
    9,501

    Default

    Quote Originally Posted by emarkay
    Jeez, this was an old request I made way back in the V6 days... Easier way would be VSS and inverted MAP. Vacuum in In/Hg is an easy and close "instant" MPG figure, and when VSS gets to zero MPG also goes to "0"...

    What about it, programmers?
    I thought of your original request... I was about to send you an email.
    Paul
    Before asking for help, please read this.

  6. #16
    Lifetime Member
    Join Date
    Aug 2005
    Posts
    710

    Default

    Quote Originally Posted by Blacky
    That value is the value looked up by the PCM from {B4001}*{B4002}.
    You would need to multiply that by injector base pulse width and then by RPM and some constants thrown in as well.

    Maybe something like this:
    {GM.INJFLOW.gps}*({GM.INJBPW}/1000)*({SAE.RPM}*4/60)

    Notes:
    • divide INJBPW by 1000 to convert from ms to seconds.
    • divide RPM by 60 to convert RPM to RPS (revs per second).
    • multiply by 4 to convert RPS to injector openings per second (8 injectors, each one opens every 2 revolutions)
    That's just off the top of my head, I have not checked it for accuracy.

    Regards
    Paul
    Thanks, I'll play with that some more. I couldn't find any documentation or anything that was able to help me with determining just how to use that calculated injector flow rate.

  7. #17
    Lifetime Member
    Join Date
    Aug 2005
    Posts
    710

    Default

    OKAY, I worked this one all out on paper first to make sure all units cancel out properly and whatnot, and it looks like you nailed it there Paul.
    I've got this expression set up:
    {SAE.VSS.mph}/({GM.INJFLOW.lbpm} *{GM.IBPW1}* {SAE.RPM} * 4 / 6250 )

    and it looks to be pretty close.

  8. #18
    Joe (Moderator) joecar's Avatar
    Join Date
    Apr 2003
    Posts
    28,403

    Default

    Quote Originally Posted by Blacky
    If the speed is in mph and the flow is in pound per minute then use:
    {SAE.VSS.mph}/({GM.INJFLOW.lbpm}/737.22*3.785412)

    If the speed is in km/h and the flow is in grams per second then use:
    {SAE.VSS.kph}/({GM.INJFLOW.gps}/737.22*3.785412)
    Both equations have mismatched units...!

    Edit: Oh, I didn't see page 2.
    Last edited by joecar; January 4th, 2006 at 07:07 PM.

  9. #19
    Joe (Moderator) joecar's Avatar
    Join Date
    Apr 2003
    Posts
    28,403

    Default

    Quote Originally Posted by dc_justin
    I've got this expression set up:
    {SAE.VSS.mph}/({GM.INJFLOW.lbpm} *{GM.IBPW1}* {SAE.RPM} * 4 / 6250 )
    The units don't match up (fails to convert lb->gal and min->hr or sec->hr)...!

    What are the units of 4 and 6250...?
    Last edited by joecar; January 4th, 2006 at 07:21 PM.

  10. #20
    Lifetime Member
    Join Date
    Aug 2005
    Posts
    710

    Default

    Quote Originally Posted by joecar
    The units don't match up (fails to convert lb->gal and min->hr or sec->hr)...!

    What are the units of 4 and 6250...?
    4 and 6250 accomplish that.

    I don't have my notepad in front of my that accomplished all of this, but the only constant you need (I think) is the weight of gasoline at 6.25lb/gal (thanks google).

Page 2 of 11 FirstFirst 1234 ... LastLast

Similar Threads

  1. Calculated PID's
    By Jason S. in forum General (Petrol, Gas, Ethanol)
    Replies: 7
    Last Post: March 17th, 2007, 09:55 AM
  2. Calculated PID Problem
    By NewV in forum General (Petrol, Gas, Ethanol)
    Replies: 4
    Last Post: December 12th, 2006, 09:44 AM
  3. LM1 Calculated AFR PID
    By VetPet in forum General (Petrol, Gas, Ethanol)
    Replies: 6
    Last Post: September 3rd, 2006, 03:04 AM
  4. calculated value question
    By evil in forum Tips and tricks
    Replies: 5
    Last Post: November 19th, 2003, 02:34 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •