HI everyone,
I was wondering if I could please get some help. I am trying to convert a floating value to individual bits so I can convert it to 2 16 bit registers to send through modbus to a plc.
I have been trying to use all sorts of function and this is what I have so far.
Blockquote
test = msg.payload;
f = Float.floatToIntBits(test);
msg.payload = f;
return msg;
Blockquote
It does not seem to be working.
I am getting this error ReferenceError: Float is not defined (line 2, col 1)
Kind Regards
Sam