From what i understand, it just determines the order in which the bytes are read from the receive buffer to be put in the output 4 consecutive bytes of the output float. It's up to you to chose the order based on in which order your slave sends data and the endinness of your master, both of which don't always respect a norm
Hello,
I have some confusion regarding get_float_dcba. I understand that it reverses the byte order. Given that the slaves are supposed to be big-endian and using IEEE754, does having to use _dcba imply that the slave is not to spec? Or is it because my PC is not big-endian, or have I miss-understood?
Thank you for your assistance.
Dave
--
Vous recevez ce message, car vous êtes abonné au groupe Google Groupes "libmodbus".
Pour vous désabonner de ce groupe et ne plus recevoir d'e-mails le concernant, envoyez un e-mail à l'adresse
libmodbus+...@googlegroups.com.
Pour obtenir davantage d'options, consultez la page
https://groups.google.com/d/optout.