You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@plc4x.apache.org by hu...@apache.org on 2020/10/30 09:43:29 UTC

[plc4x] branch develop updated: Tested support for Modbus UDP

This is an automated email from the ASF dual-hosted git repository.

hutcheb pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/plc4x.git


The following commit(s) were added to refs/heads/develop by this push:
     new e69d7a9  Tested support for Modbus UDP
e69d7a9 is described below

commit e69d7a97a7adb1041d0468fb3eea26467d235b84
Author: hutcheb <be...@gmail.com>
AuthorDate: Fri Oct 30 05:43:23 2020 -0400

    Tested support for Modbus UDP
    
    Modbus UDP is an odd protocol but no changes were required and it works well.
---
 src/site/asciidoc/users/protocols/modbus.adoc | 22 +++++++++++++---------
 1 file changed, 13 insertions(+), 9 deletions(-)

diff --git a/src/site/asciidoc/users/protocols/modbus.adoc b/src/site/asciidoc/users/protocols/modbus.adoc
index 73ce9bf..ccf1806 100644
--- a/src/site/asciidoc/users/protocols/modbus.adoc
+++ b/src/site/asciidoc/users/protocols/modbus.adoc
@@ -17,7 +17,7 @@
 :imagesdir: ../../images/users/protocols
 :icons: font
 
-== Modbus (TCP/Serial)
+== Modbus (TCP/UDP/Serial)
 
 === Connection String Options
 
@@ -46,9 +46,7 @@
 
 |Compatible Transports:
 2+| - `tcp` (Default Port: 502)
-#- `serial`
-#- `raw-socket`
-#- `pcap-replay`
+- `udp` (Default Port: 502)
 
 3+|Supported Operations
 
@@ -74,6 +72,17 @@
 
 === Individual Resource Address Format
 
+==== Connection String
+
+Modbus has the following connection string format:-
+----
+modbus:{transport}://{ip-address}:{port}?{options}
+----
+An example connection string would look like:-
+----
+modbus:tcp://127.0.0.1:502
+----
+Note the transport, port and option fields are optional.
 
 
 ==== General Format
@@ -143,11 +152,6 @@ The following data types are supported
 - CHAR (char)
 - WCHAR (2 byte char)
 
-This may have partial support but more testing is required.
-
-- STRING (char[]) - When reading returns an unsigned byte array.
-- WSTRING (2 byte char[]) - When reading returns an unsigned word array.
-
 ==== Some useful tips
 
 Most memory areas start at address 1, except for the extended register area which starts at 0. These are both mapped to 0x0000 when it is sent in the Modbus protocol.