writeMultipleRegister(0, 12288, $data, $dataTypes)) { // Print error information if any echo "
Error:
" . $modbus->errstr . "
"; } // Print status information echo "
Status:
" . $modbus->status . "
"; ?>