timboekhorst Posted September 27 Report Share Posted September 27 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? Quote Link to comment Share on other sites More sharing options...
ORSO2001 Posted September 27 Report Share Posted September 27 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? Quote Link to comment Share on other sites More sharing options...
Gabriel Franco Posted September 27 Report Share Posted September 27 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. Quote Link to comment Share on other sites More sharing options...
timboekhorst Posted September 27 Author Report Share Posted September 27 Thanks. This did the trick for me too. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.