# OBD XML Bit Shifting

**URL:** <https://forum.realdash.net/t/obd-xml-bit-shifting/3582>\
**Category:** OBD2\
**Created:** [August 19, 2023, 8:55am UTC](https://forum.realdash.net/t/obd-xml-bit-shifting/3582 "2023-08-19T08:55:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mmain](https://forum.realdash.net/user_avatar/forum.realdash.net/mmain/32/651_2.png) [@mmain](https://forum.realdash.net/u/mmain)\
**Post date:** [August 19, 2023, 8:55am UTC](https://forum.realdash.net/t/obd-xml-bit-shifting/3582/1 "2023-08-19T08:55:05Z")

</div>

Hi, I originally added a name value for torque converter lockup which is a represented as a byte with value 0 = off and value 1 = on (I assumed only bit 0 is changing); this is working fine, but I tried to tidy the xml entry up to use targetId=143 Lockup Active (Transmission) this being an on/ off value instead, without success

Original (working): name=“FJ: Torque Converter Lockup” conversion=“B1”

I have tried the following:  
targetId=“143” conversion=“B1” units=“bit” and  
targetId=“143” conversion=“B1\>\>0” units=“bit” (assuming the bit needed is already in the right place)

---

<div class="post-metadata">

**Author:** ![mmain](https://forum.realdash.net/user_avatar/forum.realdash.net/mmain/32/651_2.png) [@mmain](https://forum.realdash.net/u/mmain)\
**Post date:** [August 20, 2023, 6:55am UTC](https://forum.realdash.net/t/obd-xml-bit-shifting/3582/2 "2023-08-20T06:55:22Z")

</div>

As an update I data logged the response on the converter lock up which only happens in highest gear, this revealed a response of 128 confirming it was bit 7 and not bit 0, solution

targetId=“143” conversion=“B1\>\>7” units=“bit”
