Hi guys,
here is a way to create your own measurement blocks in a VAG ME7.x
With this know how you can implement any of the 754 RAM variables out of the table at page 1555, from the Bosch ME7.1 function sheet (Funktionsrahmen) document.
So you can read all this values with a standard diagnostic tool.
It is tested and works fine.
I know that we have Setzi62`s "ME7logger" and Tony`s "NefMoto Flasher Logger", but this is an option for all users who want to work with
VAGCOM, VCDS, VAG1541, VAS or other diagnostic workshop tools.
Additional this is another piece of the ME7 jigsaw to understand how it works.
As an example you can upgrade your ECU software and compile a set of values you want to measure.
There is a 16bit LoHi table stored in flash that do this.
In the RS4 8D0907551K/Q software, the table starts at hex 1D7D2.
The 551M table is very close to the 551K/Q and starts at hex 1CF10.
To find this table in 8bit mode, you must search for the following hex values: "50 00 02 00 0E 00 07 00 87 00 13 00 1C 00 1D 00 1F 00 20 00"
If you are searching in 16bit LoHi mode, search for "0050 0002 000E 0007 0087 0013 001C 001D 001F 0020"
These values are the first 10 values of measurement block 000.
Measurement block 000 is the only exception that has 10 values.
All the other blocks from 001 till 255 have always 4 measurement values.
There are many empty "0" blocks, where you can implement your own data.
The order of the measurement blocks in flash are:
Block 000 [starts at hex 1D7D2 (1CF10 in 551M) with the exception of 10 values (16bit LoHi) in this block!]
Blocks 001 - 019 [starts at hex 1D7E6 (1CF24 in 551M) with 4 values (16bit LoHi) of each block]
Blocks 100 - 139 [starts at hex 1D87E (1CFBC in 551M) with 4 values (16bit LoHi) of each block]
Blocks 140 - 199 [are missing or can`t be identified by me, by comparing flash values with the ME7 function sheet table]
Blocks 020 - 029 [starts at hex 1DADE (1D21C in 551M) with 4 values (16bit LoHi) of each block]
Blocks 200 - 255 [starts at hex 1DB2E (1D26C in 551M) with 4 values (16bit LoHi) of each block]
Blocks 030 - 099 [starts at hex 1DCEE (1D42C in 551M) with 4 values (16bit LoHi) of each block]
As an example we have a look to measurement block 001 between hex 1D7E6 and 1D7ED.
Here you see the 8bit hex values "01 00 50 00 1C 00 1D 00" or "0001 0050 001C 001D" in a 16bit LoHi view.
If we convert it to decimal, we have the values dec 1, 80, 28 and 29.
Now we have a look into the ME7 Funktionsrahmen table (decimal values!) at page 1555, and see that measurement block 001 shows NMOT, TMOTLIN, FR_W and FR2_W.
Here a configuration-example for measuring NMOT (RPM), LAMBTS (lambda), DLAMATR_W (EGT enrichment B1) and TATS_W (EGT from B1 sensor), all together in the last
measurement block 255 (hex 1DCE6 in 551K / 1D424 in 551M).
To do this, we search for the needed RAM variables in the ME7.1 function sheet table (page 1555) and convert the decimal values into hex values.
These are:
NMOT = dec 1 => hex 0001 HiLo => hex 0100 LoHi
LAMBTS = dec 377 => hex 0179 HiLo => hex 7901 LoHi
DLAMATR_W = dec 196 => hex 00C4 HiLo => hex C400 LoHi
TATS_W = dec 152 => hex 0098 HiLo => hex 9800 LoHi
If you work in 8bit mode, you must write
hex 00 to address 1DCE6 in 551K (1D424 in 551M)
hex 01 to address 1DCE7 in 551K (1D425 in 551M)
hex 79 to address 1DCE8 in 551K (1D426 in 551M)
hex 01 to address 1DCE9 in 551K (1D427 in 551M)
hex C4 to address 1DCEA in 551K (1D428 in 551M)
hex 00 to address 1DCEB in 551K (1D429 in 551M)
hex 98 to address 1DCEC in 551K (1D42A in 551M)
hex 00 to address 1DCED in 551K (1D42B in 551M)
If you work in 16bit LoHi mode, you must write
hex 0001 to address 1DCE6 in 551K (1D424 in 551M)
hex 7901 to address 1DCE8 in 551K (1D426 in 551M)
hex C400 to address 1DCEA in 551K (1D428 in 551M)
hex 9800 to address 1DCEC in 551K (1D42A in 551M)
Done...
To see the right value descriptions in VAGCom / VCDS, you will paste in the following lines into the VAGCom / VCDS lable-file (8D0907551.lbl):
;**********************************************************************
;
255,0,Own lambda stuff
255,1,NMOT, rpm
255,2,LAMBTS, Lambda
255,3,EGT enrichment B1,%
255,4,measured EGT B1,°C
;
;**********************************************************************
For a better understanding, I have uploaded the original 551K and a moded 551K with a changed MWB 255 to compare.
A 551K.csv file for all known measurement blocks, and a VCDS lable file for the MWB 255 example is also uploaded.
Wish you have fun with this stuff.
Regards Thomas