Hello, I am having issues to store what I read from modbus register. I am reading a modbus register and have the value in the arrRegisterValue[1], however, I can’t store this into a local variable. How can I do that? I have tried with the next: word_received := udtExample.udtMB_TCP_FC3.arrRegisterValue[2]; word_received := MOVE(udtExample.udtMB_TCP_FC3.arrRegisterValue[2]); Thanks in advance Best regards,
I forgot to say that I am reading two registers, arrRegisterValue[1] and arrRegisterValue[2] and I need to save into variable both.
Hi, Ok, problem is solved! My fail was I have an IF-ELSE condition that never fullfil! Both methods are valid.