Hi,
Im doing a project with a Power meter that offers Modbus TCP and each signal is a 32bit Float.¨
I tested the float in Modbus Poll and discovered that this standard is Little Endian - Byte swap.
Searching through forums for a while now and can't really figure out how to convert the data .
So far I have been blessed converting to 32 bit by this code:
ArrayToInt[0] :=MBTCP_1.DATA.ReadData[360];
ArrayToInt[1] :=MBTCP_1.DATA.ReadData[361];
CPS(ArrayToInt[1],DesInt,2);
test_real:=DestInt;
Anyone that has come up with a solution or could guide me?
Im doing a project with a Power meter that offers Modbus TCP and each signal is a 32bit Float.¨
I tested the float in Modbus Poll and discovered that this standard is Little Endian - Byte swap.
Searching through forums for a while now and can't really figure out how to convert the data .
So far I have been blessed converting to 32 bit by this code:
ArrayToInt[0] :=MBTCP_1.DATA.ReadData[360];
ArrayToInt[1] :=MBTCP_1.DATA.ReadData[361];
CPS(ArrayToInt[1],DesInt,2);
test_real:=DestInt;
Anyone that has come up with a solution or could guide me?