This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

[Profile] Modbus Read Multiple Coils
#1
HiĀ  Cool !

I have to read aprox. 80 coil registers from each of several equips but I want to read the registers with just 1 request like I do with INT values.

I have tried with the following example (test with 4 variables) but it doesn't work !
(For reading holding registers this way works fine)

Any ideas?


Code:
{"name":"Test1","bus_datatype":"1","type":"coil","datatype":"bool","address":0,"writable":0,"read_count":4,"read_offset":0,"read_swap":"n" },
{"name":"Test2","bus_datatype":"1","type":"coil","datatype":"bool","address":0,"writable":0,"read_count":4,"read_offset":1,"read_swap":"n" },
{"name":"Test3","bus_datatype":"1","type":"coil","datatype":"bool","address":0,"writable":0,"read_count":4,"read_offset":2,"read_swap":"n" },
{"name":"Test4","bus_datatype":"1","type":"coil","datatype":"bool","address":0,"writable":0,"read_count":4,"read_offset":3,"read_swap":"n" }

(...)
Reply


Messages In This Thread
[Profile] Modbus Read Multiple Coils - by iJAF - 15.05.2018, 15:52

Forum Jump: