2/1/2019 3:28 PM | |
Joined: 7/7/2010 Last visit: 9/6/2024 Posts: 15157 Rating:
|
#dP is making good suggestions to you about NOT using S7 String and instead using Array of CHAR. There are instructions available with the s7-1200 to convert between array of char and string (both ways). From the manual found here:
If all you want is the weight, configuring the print content - result to numeric only would save you a lot of work receiving the values from the scale, especially when the RS485 receive stop characters are set to the configured termination character(s). You then just have to detect new data received, convert it to a real number, and you have the weight as a REAL value.
|
science guy |
|
This contribution was helpful to
1 thankful Users |
Follow us on