0.6 release
This commit is contained in:
@@ -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!";
|
||||
Reference in New Issue
Block a user