readMultipleRegisters(0, 12288, 6); } catch (Exception $e) { // Print error information if any echo $modbus; echo $e; exit; } // Print status information echo "
Status:
" . $modbus; // Print read data echo "
Data:
"; print_r($recData); echo "
";