I am using a Beckhoff PLC and trying to convert a REAL to 2 WORDS to send over Modbus.
Does anyone know how to do this?
Also how would I convert 2 WORDS to a REAL if I am reading over Modbus?
Since the data types is WORD how would I send a negative # like -123?
WORD is 0 to 65525 as opposed to an integer that is -32768 to 32767.
Does anyone know how to do this?
Also how would I convert 2 WORDS to a REAL if I am reading over Modbus?
Since the data types is WORD how would I send a negative # like -123?
WORD is 0 to 65525 as opposed to an integer that is -32768 to 32767.