This is an automated email from the ASF dual-hosted git repository.
git-site-role pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/plc4x-website.git
The following commit(s) were added to refs/heads/asf-site by this push:
new e3567f5a8 Site checkin for project PLC4X: Jenkins Tools
e3567f5a8 is described below
commit e3567f5a8cfb01fb9a0fb3c49f9e875ec14373d0
Author: jenkins <[email protected]>
AuthorDate: Mon Mar 4 09:32:46 2024 +0000
Site checkin for project PLC4X: Jenkins Tools
---
users/getting-started/plc4py.html | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/users/getting-started/plc4py.html
b/users/getting-started/plc4py.html
index 938134b76..8a44445c6 100644
--- a/users/getting-started/plc4py.html
+++ b/users/getting-started/plc4py.html
@@ -343,13 +343,14 @@ Once we have decided that PLC4Py is in a position to
release we will publish to
<div class="content">
<pre>from plc4py.PlcDriverManager import PlcDriverManager
-connection_string: = "modbus://192.168.1.174:502";
+connection_string = "modbus://192.168.1.174:502";
driver_manager = PlcDriverManager()
-async with driver_manager.connection(connection_string) as connection:
- with connection.read_request_builder() as builder:
- builder.add_item("Random Tag", "4x00001[10]")
- request = builder.build()
+async def communicate_with_plc():
+ async with driver_manager.connection(connection_string) as connection:
+ with connection.read_request_builder() as builder:
+ builder.add_item("Random Tag", "4x00001[10]")
+ request = builder.build()
future = connection.execute(request)
await future