From c1817f725834715cc513c29d0c7bfcc7d0a2af54 Mon Sep 17 00:00:00 2001 From: Paul SQUIZZATO Date: Tue, 7 Feb 2023 11:45:50 +0100 Subject: [PATCH] Ajouter 'Pymodbus/read' --- Pymodbus/read | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Pymodbus/read diff --git a/Pymodbus/read b/Pymodbus/read new file mode 100644 index 0000000..d43db1b --- /dev/null +++ b/Pymodbus/read @@ -0,0 +1,28 @@ +# Install + +```sh +python -m pip install pipenv +pipenv update +pipenv shell +``` + +# Run + +Within pipenv, run in two terminals: + +```sh +./start_server.sh +./start_client.sh +``` + +# Example commands + +Within client run: + +``` +client.read_coils slave=1 address=0 +client.write_coil slave=1 address=0 value=1 +client.read_coils slave=1 address=0 +``` + +See the first boolean was false in the first read, was written to true, and appears at true in second read. \ No newline at end of file