(* Read_Var ETH *) ETH_Management_Table[2]:=10;(* define the Time OUT of your EF. Here it is set to 10*100ms so 1s*) IF NOT ETH_Management_Table[0].0 THEN (* IF there is NO activity *) ETH_READ_ERROR := ETH_Management_Table[1] <>0; (* Set to 1 a Boolean variable if an ERROR is displayed in the Communication or operation Report of the EF *) IF ETH_READ_ERROR THEN (* IF the Boolean variable is 1 THEN*) ETH_COMM_REPORT := ETH_Management_Table[1]; (* Set the communication error code value in a new variable, that will save this value.*) ELSE (* ELSE *) ETH_COMM_REPORT:=0 ; (* RESET the Recording variable *) END_IF; END_IF; If NOT ETH_Management_Table[0].0 AND CMD_READ then (* Launch of the Read_Var if there is no activity and CMD_READ*) READ_VAR(ADDM('Ethernet_CPU{172.16.9.90}'), '%MW', 0, 10, ETH_Management_Table, %MW200:10); end_if;