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