BCD to Decimal Conversion
-
Hi
I was extremely happy to see the MODBUS module released, and this is working well for me. Thanks Pycom team!I have now another hurdle, which I dont seem to overcome. The data I am getting from the controller is in integer BCD format. I need to be able to convert this to its decimal value, but I dont seem to be able to crack it, and cant find anything on the internet.
Does anyone by any chance have a snippet of code, or know how this can be done? Any help would be appreciated.
Thanks
Brad
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login