05.03.2018, 11:28
Hello Im trying to optimize a modbus communication on order to read from a tcp slave (it will be a schneider PLC) with a single request.
First I'm triyng with floats, this is my test which is sending 3 separated requests:
{"name":"Teste1","bus_datatype":"float32","type":"register","address":0,"writable":"true" },
{"name":"Teste2","bus_datatype":"float32","type":"register","address":2,"writable":"true" },
{"name":"Teste3","bus_datatype":"float32","type":"register","address":4,"writable":"true" }
I have tryed to implement the following json, but without success :
{"name":"Teste1","bus_datatype":"float32","type":"register","address":0,"writable":"true","Read_count":3,"Read_offset":0 },
{"name":"Teste2","bus_datatype":"float32","type":"register","address":0,"writable":"true","Read_count":3,"Read_offset":2 },
{"name":"Teste3","bus_datatype":"float32","type":"register","address":0,"writable":"true","Read_count":3,"Read_offset":4 }
Any sugestions ?
Thank you
First I'm triyng with floats, this is my test which is sending 3 separated requests:
{"name":"Teste1","bus_datatype":"float32","type":"register","address":0,"writable":"true" },
{"name":"Teste2","bus_datatype":"float32","type":"register","address":2,"writable":"true" },
{"name":"Teste3","bus_datatype":"float32","type":"register","address":4,"writable":"true" }
I have tryed to implement the following json, but without success :
{"name":"Teste1","bus_datatype":"float32","type":"register","address":0,"writable":"true","Read_count":3,"Read_offset":0 },
{"name":"Teste2","bus_datatype":"float32","type":"register","address":0,"writable":"true","Read_count":3,"Read_offset":2 },
{"name":"Teste3","bus_datatype":"float32","type":"register","address":0,"writable":"true","Read_count":3,"Read_offset":4 }
Any sugestions ?
Thank you