MEGAsquirt A place to collectively sort out this megasquirt gizmo

What is the Engine value and what does it mean

Old 08-25-2009, 10:03 AM
  #1  
Junior Member
Thread Starter
iTrader: (1)
 
Chris Swearingen's Avatar
 
Join Date: Jul 2006
Location: Colorado
Posts: 402
Total Cats: 2
Default What is the Engine value and what does it mean

Okay, in looking over some logs from this weekends event, I see a value in megalogview labeled Engine:1 anyone know what that is and what it means?

My values range from 0 to 133 so surely they mean something, I just wondered what.
Chris Swearingen is offline  
Old 08-25-2009, 10:37 AM
  #2  
Boost Pope
iTrader: (8)
 
Joe Perez's Avatar
 
Join Date: Sep 2005
Location: Chicago. (The less-murder part.)
Posts: 33,019
Total Cats: 6,587
Default

That field is an 8 bit word that carries information about the current state that the engine is in. The decoded decimal numbers are misleading, you have to visualize it as raw binary data for it to make sense. Each bit in the word indicates the state of a given function, where 1 means that function is true, and 0 means that function is false.

At the bottom-right of the log screen, you'll see this field:



The "engine" datablock is what carries the information that populates that display. When the LSB (least significant bit) is 1, that means that the engine is in the "Run" state. When the sixth bit it true, the engine is in the "Decel" state. Since bit #1 (LSB) has a value of 1 when decoded to decimal, and bit #6 has a value of 32, when the engine is running and also in decel, you'll see a decimal value of 33 for engine state.

(I'm using one-based numbering here for the sake of the non-CS majors. Technically, the first bit (LSB) is bit #0, and the last bit (MSB) is bit #7. But MLV calls them 1-8, so I'll maintain that here)

Last edited by Joe Perez; 08-25-2009 at 11:00 AM. Reason: schpelling and clarification
Joe Perez is offline  
Old 08-25-2009, 10:42 AM
  #3  
Boost Pope
iTrader: (8)
 
Joe Perez's Avatar
 
Join Date: Sep 2005
Location: Chicago. (The less-murder part.)
Posts: 33,019
Total Cats: 6,587
Default

The bit functions are as follows:
(bit position, decimal value, function)
Bit 1, value 1, "Run"
Bit 2, value 2, "Crank"
Bit 3, value 4, "ASE"
Bit 4, value 8, "Warmup"
Bit 5, value 16, "TPS Accel"
Bit 6, value 32, "Decel"
Bit 7, value 64, "MAP Accel"
Bit 8, value 128, "Idle"

Last edited by Joe Perez; 08-25-2009 at 10:59 AM. Reason: added bit 7 from examination of msns-extra.h file
Joe Perez is offline  
Old 08-25-2009, 10:46 AM
  #4  
Junior Member
Thread Starter
iTrader: (1)
 
Chris Swearingen's Avatar
 
Join Date: Jul 2006
Location: Colorado
Posts: 402
Total Cats: 2
Default

So for us dummies, we can look at the picture you linked and not worry about the "engine" value

You never cease to amaze me Joe. Please tell me you at least had to look that up somewhere.
Chris Swearingen is offline  
Old 08-25-2009, 10:58 AM
  #5  
Boost Pope
iTrader: (8)
 
Joe Perez's Avatar
 
Join Date: Sep 2005
Location: Chicago. (The less-murder part.)
Posts: 33,019
Total Cats: 6,587
Default

Originally Posted by Chris Swearingen
So for us dummies, we can look at the picture you linked and not worry about the "engine" value

You never cease to amaze me Joe. Please tell me you at least had to look that up somewhere.
Yeah, you can just look at the picture.

I figured out the functions of bits 1-6 and 8 by looking through a log and determining which functions or sets of functions corresponded to which decimal engine values. For bit 7, I had to look at the source code, which also provided some clarification of bit 5. (Turns out I should have looked at the source code first, as that whole block is pretty obvious once you find it.)
Joe Perez is offline  
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
Full_Tilt_Boogie
Build Threads
84
04-12-2021 04:21 PM
nick470
MEGAsquirt
7
06-16-2017 01:53 PM
90 Turbo
MEGAsquirt
19
10-19-2015 03:23 PM
tazswing
Race Prep
20
10-03-2015 11:04 AM


Thread Tools
Search this Thread
Quick Reply: What is the Engine value and what does it mean



All times are GMT -4. The time now is 09:34 PM.