readMultipleInputRegisters(0, 0, 2); } catch (Exception $e) { // Print error information if any echo $modbus; echo $e; exit; } var_dump($recData);