Our full technical support staff does not monitor this forum. If you need assistance from a member of our staff, please submit your question from the Ask a Question page.


Log in or register to post/reply in the forum.

MoveBytes and Modbus


dwind Jul 11, 2018 11:10 AM

Hi,

I am reading IEEE-754 FP Single Precision (32-bit) via modbus with a CR1000 as Master in the range of -10^6 to 5*10^6.

Using:

MoveBytes(modData(i),0,modData(i),2,1)
MoveBytes(modData(i),1,modData(i),3,1)
MoveBytes(modData(i),2,modData(i),0,1)
MoveBytes(modData(i),3,modData(i),1,1)

to read with the CR1000, I get normal-looking values.

Do I need to use two different variables for Destination and Offset?

Thank you


dwind Jul 19, 2018 07:51 AM

From my understanding,

since the values returned seem OK. There seems to be no problem. Is that correct?

Log in or register to post/reply in the forum.