How to define specific bit of tunerpro definition file

Discuss anything TunerPro related.

Moderators: Mangus, robertisaar, dex

Post Reply
94c1500
Posts: 3
Joined: Sat Nov 21, 2009 5:37 pm

How to define specific bit of tunerpro definition file

Post by 94c1500 »

Hello,

Im a little new to this, but have been building a definition file for my 1994 OBD1 6.5 turbo diesel truck. Nothing out there for them.

Right now I'm trying to show a specific bit of the 8-bit position. So this is what I have for example

%%CONSTANT%%
000002 UniqueID =0x0
020005 Title ="Turbo Option"
020011 DescSize =0x5B
020010 Desc ="xxxx xx1x represents Turbo on board"
020020 Units =""
020100 Address =0x4009
020200 Equation =X + 0.000000,TH|0|0|0|0|
%%END%%

Is there any way for me to define the address as bit 1 of address 4009? And would it display as a 1 or 0, or would it say 0 or 2 since those would be the numerical value of bit 1?

Also, is there some way to make tunerpro show words instead of the hex or decimal values? So if I said 1 = YES, or 0 = NO? In the hex I can use values to represent characters, but how about in the definition file equation?

Thank You very much,
Tom
User avatar
dfddfd2
Posts: 112
Joined: Wed Feb 27, 2008 4:37 pm
Location: Burgaw, NC

Post by dfddfd2 »

Yes. Define a Flag/Switch @ 0x4009, bit number Bit 1.

No way I know of to show words for values.

Dave
94c1500
Posts: 3
Joined: Sat Nov 21, 2009 5:37 pm

Post by 94c1500 »

dfddfd2 wrote:Yes. Define a Flag/Switch @ 0x4009, bit number Bit 1.

No way I know of to show words for values.

Dave
Thank You, thats simple, I hadnt worked with Flags at all, just constants and tables. That makes more sense as a Switch.

%%FLAG%%
000002 UniqueID =0x0
030005 Title ="Turbo Option"
030011 DescSize =0x23
030010 Desc ="xxxx xx1x represents Turbo on board"
030100 Address =0x4009
030200 BitNumber =0x1
%%END%%
Post Reply