The LSB Comp (and related) flags have nothing to do with the executor hex that is generated. They don't even exist in PB. They are not calculated by RMPB as they have nothing to do with the settings such as Dev!Dev, Com!Com. Those settings determine how the device and command bytes are assembled into the DCBUF string passed to the executor. The flags concern the translators that relate these device and command bytes to the device and OBC parameters displayed in RM or the RMIR device editor. When I say "concern", I mean what I said before. It is the text in the Data Translators panel that determine the translation, the check boxes just provide a means to create simple translators. When I load your file, the check boxes are all unchecked yet the translators panel showsvickyg2003 wrote:Every time I change anything in the code, the LSB Comp flags clear, and the hex is recomputed. So everytime I assembled that it would shoot a different signal.
I suspect that both PB and RMPB calculate the Flags for Dev!Dev, Com!Com wrong and that's why I had so much trouble. I finally gave up using the flags. And that's why it took me so many attempts.
DevParms=Device 1=0,Device 2=0,Device 3=0
DeviceTranslator=Translator(lsb,comp,0) Translator(lsb,comp,1,8,8) Translator(lsb,comp,2,8,16)
CmdParms=OBC
CmdTranslator=Translator(lsb,comp,0)
where all translators are lsb comp. So when you export the protocol, the .prot file created in the AddOns folder will contain these translators and when this is loaded into RM (as part of the loading of protocols.ini), the relation between the device and OBC parameters and the values passed to the executor will be lsb comp.
You say "Every time I change anything in the code .. the hex is recomputed". This is an issue? Of course the hex is recomputed if you change the code, else why change the code???