Hello Dear Experts
I have to read 2 words (%MW300 / %MW301) in a M221 plc (TM221ME16R/G) which have a embedded ethernet port.
the reader plc is a TSX premium TSXP572634
i will use a read_var instruction for this and i wonder if the syntax i use is good.
[FONT=ArialRoundedMTforSE_Latin]IF RE(Top_1s) AND NOT TableGestion[0].0 THEN[/FONT]
[FONT=ArialRoundedMTforSE_Latin] READ_VAR(ADDM('Ethernet_1{10.199.14.130}'),'%MW', 300, 4, TableGestion, TableReception);[/FONT]
[FONT=ArialRoundedMTforSE_Latin]END_IF;[/FONT]
I would like to have your opinion about this, because i must go to the customer and i would like to have some background before.
Thanks in advance
I have to read 2 words (%MW300 / %MW301) in a M221 plc (TM221ME16R/G) which have a embedded ethernet port.
the reader plc is a TSX premium TSXP572634
i will use a read_var instruction for this and i wonder if the syntax i use is good.
[FONT=ArialRoundedMTforSE_Latin]IF RE(Top_1s) AND NOT TableGestion[0].0 THEN[/FONT]
[FONT=ArialRoundedMTforSE_Latin] READ_VAR(ADDM('Ethernet_1{10.199.14.130}'),'%MW', 300, 4, TableGestion, TableReception);[/FONT]
[FONT=ArialRoundedMTforSE_Latin]END_IF;[/FONT]
I would like to have your opinion about this, because i must go to the customer and i would like to have some background before.
Thanks in advance