readInputDiscretes($unitId, $reference, $quantity); } catch (Exception $e) { // Print error information if any echo $modbus; echo $e; exit; } echo '
'; print_r($modbus); echo '
'; print_r($recData); echo '