What are Engine Bit Codes 3, 9 & 13?

Questions specific to Megatune. (Only about the tuning software, not about MS1/MS2 code or code features)
Note that Megatune is obsolete.
Post Reply
88tbird2.3t
MS/Extra Newbie
Posts: 15
Joined: Mon Sep 01, 2008 11:12 am
Location: Philly, PA
Contact:

What are Engine Bit Codes 3, 9 & 13?

Post by 88tbird2.3t »

Sorry, searched and couldnt find any info on codes 3, 9 & 13, and was not sure if this is something in MegaTune code or MS code?

Please advise me If this is in MS code?

Thanks,
bob
88 turbocoupe: ms-II v3.0 - running MS2X 2.0.1
Holset HX35W saying "wheres my cummins at???"
forget diesel, who says stock gas motors cant run 30+ psi?
88tbird2.3t
MS/Extra Newbie
Posts: 15
Joined: Mon Sep 01, 2008 11:12 am
Location: Philly, PA
Contact:

Re: What are Engine Bit Codes 3, 9 & 13?

Post by 88tbird2.3t »

i did find a bunch of the codes in megasquirt-ii.ini, but no 9 or 13

it lists this in the ini:
Squirt Event Scheduling Variables - bit fields for "squirt" variable above
; inj1: equ 3 ; 0 = no squirt 1 = squirt
; inj2: equ 5 ; 0 = no squirt 1 = squirt
; sched1: equ 2 ; 0 = nothing scheduled 1 = scheduled to squirt
; firing1: equ 0 ; 0 = not squirting 1 = squirting
; sched2: equ 4
; firing2: equ 1

so how does this work, engine code throw a 3 if inj1 returns 0 or 1, or does only one of those values throw a 3...
88 turbocoupe: ms-II v3.0 - running MS2X 2.0.1
Holset HX35W saying "wheres my cummins at???"
forget diesel, who says stock gas motors cant run 30+ psi?
LT401Vette
Super MS/Extra'er
Posts: 12731
Joined: Sat Jul 16, 2005 8:07 am
Location: Moorseville, NC
Contact:

Re: What are Engine Bit Codes 3, 9 & 13?

Post by LT401Vette »

Engine is a bunch of bit fields:

Code: Select all

running:equ     0       ; 0 = engine not running           1 = running
crank:  equ     1       ; 0 = engine not cranking          1 = engine cranking
ASE: equ     2       ; 0 = not in after start enrichment 1 = in after start enrichment
warmup: equ     3       ; 0 = not in warmup                1 = in warmup
tpsaen: equ     4       ; 0 = not in TPS acceleration mode 1 = TPS acceleration mode
tpsden: equ     5       ; 0 = not in deacceleration mode   1 = in deacceleration mode
mapaen: equ     6       ; 0 = not in MAP acceleration mode 1 = MAP deaceeleration mode
idleOn: equ     7       ; 
So if you look at the bits in 3, 9 & 13:
3 = 00000011 = Running + Cranking
9 = 00001001 = Running + Warmup
13 = 00001101 = Running + Warmup + ASE

The engine field is what drives the display in MLV, so you don't really need to break it down like that, MLV does it for you.
Phil Tobin
EFI Analytics, helping to simplify EFI
Next Generation tuning software.
Supporting all MegaSquirt versions and firmwares.
http://www.TunerStudio.com
http://www.efiAnalytics.com/MegaLogViewer/
Support the firmware running your engine:
http://www.msextra.com/doc/donations.html
Post Reply