readWriteRegisters(0, 12288, 6, 12288, $data, $dataTypes); } 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 "
"; ?>