timboekhorst Posted September 27, 2023 Report Share Posted September 27, 2023 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 More sharing options...
ORSO2001 Posted September 27, 2023 Report Share Posted September 27, 2023 hi seems that you are receiving a REAL number as a string. the decimals will be always 2 or could be 1 or 3 or other? how "large" could be the end number?...what range? Link to comment Share on other sites More sharing options...
Gabriel Franco Posted September 27, 2023 Report Share Posted September 27, 2023 The message composer option in combination with parse message FB is the best way I´ve used to achieve tasks like the one you described. You can find more information about it searching "third-party protocol functions" in help. Link to comment Share on other sites More sharing options...
timboekhorst Posted September 27, 2023 Author Report Share Posted September 27, 2023 Thanks. This did the trick for me too. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now