From cd52263b8effd15abdeb0c9ce12a3bfd0d07b690 Mon Sep 17 00:00:00 2001 From: FabrizioC Date: Fri, 21 Nov 2014 10:31:45 +0100 Subject: [PATCH] Added FC22 Mask Write Register example --- examples/example_fc22.php | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 examples/example_fc22.php diff --git a/examples/example_fc22.php b/examples/example_fc22.php new file mode 100644 index 0000000..24e235f --- /dev/null +++ b/examples/example_fc22.php @@ -0,0 +1,28 @@ +maskWriteRegister(0, 12288, $andMask, $orMask); +} +catch (Exception $e) { + // Print error information if any + echo $modbus; + echo $e; + exit; +} + +// Print status information +echo $modbus; + +?>