CI867 connecting access variables to MBTCPWrite/Read blocks using real data
I'm working with a project where we will exchange data with Voith using modbus TCP, Voith will be master.
The data type in Voith system is float and use two registers for each value, e.g R0 & R1
I don't understand how to use the access variables and write real data to selected registers.
Guess I have to split each real value into two parts but don't know how to do it.
Sounds like the Voith system is using a Modbus RTU underneath a TCP/IP convertor somehow. Modbus TCP should natively support real values.
Anyway, if they are sending you a 4 byte real as two integer words (which is how some Modbus RTU systems send real values) use the "words_to_real" function to convert the 2 integer values to one Real datatype. See the online help for details.