hi, I have a problem reading the Real values from the s7 plc.
reading the value with the function
Client.ReadArea(Area, DBNumber, Start, Amount, WLen, @Buffer);
this returns me this string 6556144.
I don't understand how to convert it to a real number.
if I try to read Int value it works fine.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
hi, I have a problem reading the Real values from the s7 plc.
reading the value with the function
Client.ReadArea(Area, DBNumber, Start, Amount, WLen, @Buffer);
this returns me this string 6556144.
I don't understand how to convert it to a real number.
if I try to read Int value it works fine.
https://snap7.sourceforge.net/siemens_dataformat.html
Thank you!
Now I have another problem, I have to read data of type String(25). How should I read this type of data? Because he is not a native type.
byte by byte checking the first two bytes which contains max length and actual size
ok thank you again!