Logging JS4/ADC7

General support questions and announcements for MS3. See also MS3 manuals.

Moderators: jsmcortina, muythaibxr

Post Reply
linzerl
Helpful MS/Extra'er
Posts: 53
Joined: Fri Jun 24, 2011 11:37 pm

Logging JS4/ADC7

Post by linzerl »

There is a lot of info around on configuring and datalogging JS4/ADC7 for a variety of sensors (knock/map and temp). The details always refer to ADC7 in the MS ini file. I however can not find in my ini file any reference to adc7 to configure the outputchannels and then datalogging sections. I am using vanilla MS 1.4.1 (MS3 Format 0524.050 )on old MS2 hardware using a MS3 dauhtercard ecu

I am running water injection (Aquamist) by configuring a PWM output channel to the Aquamist ECU...this inturn triggers a PWm valve to spray water. This works fine. Aquamist can send a signal to MS when it detects an error and goes into failsafe mode. I have configured this signal to JS4/ADC7 and used this to tableswitch my Ingition table. This too works fine and my advance table (3) is selected when the JS4 signal is grounded.

I would like to log this event (the status of JS4) so I can log the failsafe condition. or possibly as an alternative the tableswitch trigger triggered by JS4 state change.

Thanks..
jsmcortina
Site Admin
Posts: 39617
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK
Contact:

Re: Logging JS4/ADC7

Post by jsmcortina »

When used as a digital input, that pin is connected internally to "PORTAD" it doesn't appear to be dataloggable currently.

The tableswitch status is one bit within status1 which is logged. See http://www.msextra.com/doc/pdf/html/Meg ... .4-61.html

James
I can repair or upgrade Megasquirts in UK. http://www.jamesmurrayengineering.co.uk

My Success story: http://www.msextra.com/forums/viewtopic ... 04&t=34277
MSEXTRA documentation at: http://www.msextra.com/doc/index.html
New users, please read the "Forum Help Page".
grom_e30
Super MS/Extra'er
Posts: 4461
Joined: Thu Mar 08, 2012 12:44 pm
Location: UK

Re: Logging JS4/ADC7

Post by grom_e30 »

look for 'generic sensor inputs' in the manuals it will show you how to set them up
1990 bmw 320i daily driver with m20b25 ms3 sequential fuel, 380cc injectors, d585 coil near plug, home made cam sync, launch control, fan control, vss, homebrew egt logging what's next????
linzerl
Helpful MS/Extra'er
Posts: 53
Joined: Fri Jun 24, 2011 11:37 pm

Re: Logging JS4/ADC7

Post by linzerl »

Thank You!!!!..that has pointed me in the right direction..
linzerl
Helpful MS/Extra'er
Posts: 53
Joined: Fri Jun 24, 2011 11:37 pm

Re: Logging JS4/ADC7

Post by linzerl »

Just closing this off.

As per James' detail. status1 contains the bit value for which spark table is being used

indicator = { status1 & 64}, "SPK1/2", "SPK3/4", white, black, green, black

then a custom.ini mod logs this bit value

[OutputChannels]

Tableswitch = { status1 & 0x40 }


[Datalog]

entry = Tableswitch, "Tableswitch-Spark", int, "%d"
Post Reply