I tried a different scripts from mycockpit.org just to eliminate bad hardware but with it transponder worked great (not with PMDG ofcourse) just by itself.
Code in oc4ba files is very similar to the one I used except yours also uses additions variables like atc_knob1 temp_knob etc with values such as 8192 8193, well... Way above my pay grade to understand

If you could point me to what changes I could make in the script to make it work would be great !
Btw no more crashes with version 2.4.4 I also added all oc4ba relevant programs to high importance as mentioned in PM in process lasso to run in par with p3d and not get squished. so that for now is out of the way. Thanks