Fix with try count and timeout in MODBUS and MELSEC I/O devices