E
Ernst Murnleitner
Dear readers,
Maybe someone can help:
I need to exchange data with a PLC. My computer (Linux on intel) uses the
intel format (little endian), the other device uses the motorola format (big
endian).
So I have to change the order of the bytes for "int". But for "float":
A) I do not know, if the order has also to be changed for float.
B) As the float datatype can have any format, is there a function in the
library to ensure, that I can get a 32bit IEEE floating point number?
Greetings
Ernst
Maybe someone can help:
I need to exchange data with a PLC. My computer (Linux on intel) uses the
intel format (little endian), the other device uses the motorola format (big
endian).
So I have to change the order of the bytes for "int". But for "float":
A) I do not know, if the order has also to be changed for float.
B) As the float datatype can have any format, is there a function in the
library to ensure, that I can get a 32bit IEEE floating point number?
Greetings
Ernst