multi_read_vars() reading from incorrect address #457
-
Hi, I am trying to read multiple address using multi_read_vars(), db_read() is reading the address correctly, but multi_read_vars() is giving undesired value, and sometime says address does not exists, i have followed the example from multi_read.py, This is my request parameter:
result, data_items_res = plc.read_multi_vars(data_items)
byte_to_value = [util.get_real, util.get_int, util.get_bool, util.get_dword] for i in range(0, len(data_items_res)): AND my request parameter for db_read(2, 2, 4), My issue is, i am sending correct request parameter which works on db_read(), but it is not working for multi_read_vars() , so is it, that i am missing something here !! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hi @Rahul14189 |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
I've tested your code on my PLC, and it works. You can see it on the screenshot:
Here's the code that I've run: