0.6 release

This commit is contained in:
John Long
2013-06-14 07:43:00 -05:00
parent 7f4c4f2af1
commit 5f069276eb
52 changed files with 1976 additions and 843 deletions
@@ -10,9 +10,13 @@ $data = array(1000, 2000, 1.250, 1.250);
$dataTypes = array("REAL", "REAL", "REAL", "REAL");
// FC23
$recData = $modbus->readWriteRegisters(0, 12288, 6, 12288, $data, $dataTypes);
try {
$recData = $modbus->readWriteRegisters(0, 12288, 6, 12288, $data, $dataTypes);
} catch (Exception $e) {
echo 'Caught exception: ', $e->getMessage(), "\n";
exit();
}
// Should through an Exception
// Print status information
echo "Something wrong!";
echo "Should never reach this line!";