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.

Write Multiple Registers at once
#3
(31.12.2020, 11:35)Daniel. Wrote: Datatype define how many registers are read/written. Int16 is one register, int32 two and so on.


Sorry, I think I didn't make myself understood.

I need to write these 3 registers in the same Write Operation ( FC16).

This way writes correctly, but one after the other:
Code:
...
{"name":"UI_1 Cmd Modo Func RAW"   ,"bus_datatype":"8","type":"register","datatype":"int16",     "address":33,   "read_swap":"n","writable":1 },
{"name":"UI_1 Cmd Modo Fan RAW"    ,"bus_datatype":"8","type":"register","datatype":"int16",     "address":34,   "read_swap":"n","writable":1 },
{"name":"UI_1 Cmd Setpoint"        ,"bus_datatype":"8","type":"register","datatype":"int16",     "address":35,   "read_swap":"n","writable":1 },


So, you are telling me that if I use just one variable with the "datatype":"int48" will it work ?

Thank you
Reply


Messages In This Thread
Write Multiple Registers at once - by iJAF - 31.12.2020, 09:52
RE: Write Multiple Registers at once - by iJAF - 31.12.2020, 12:01

Forum Jump: