Jump to content

Convert RS232 - 8 bits of HEX to decimal number


timboekhorst

Recommended Posts

Hi,

Controller: Unilogic US7-B5-T24

The following data I received Com Rx buffer: 2B,20,31,35,38,2E,39,30,20,47,65,53,0D,0A

2B translates to the plus sign (+)

- - - - - - - - -- - - - - - - - - - - - - - - 

Data:
20 translates to a space
31 translates to the number 1
35 translates to the digit 5
38 translates to the digit 8
2E translates to a dot (.)
39 translates to the number 9
30 translates to the number 0
20 translates to a space

I want to save the data into one tag as decimal number. How can this be done?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...