From 5344793f824b94e0033e39a2360886223250ea42 Mon Sep 17 00:00:00 2001
From: GitHub Action © Copyright 2023, Mark Rivers.
- Last updated on 2024-March-25.
+ Last updated on 2024-April-16.
Before modbus port drivers can be created, it is necessary to first
-create at least one asyn TCP/IP or serial port driver to communicate
+create at least one asyn TCP/IP, UDP/IP or serial port driver to communicate
with the hardware. The commands required depend on the communications
link being used. For TCP/IP use the following standard asyn command: For TCP/IP or UDP/IP use the following standard asyn command:Acknowledgments
-
Creating a modbus port driver
TCP/IP
-TCP/IP UDP/IP
+drvAsynIPPortConfigure(portName, hostInfo, priority, noAutoConnect, noProcessEos)
TCP/IP<
the asynInterpose interface does no harm.
However, the asynInterposeEos interface is definitely needed when using drvAsynIPPortConfigure to talk
to a terminal server that is communicating with the Modbus device over Modbus RTU or ASCII,
-because then the communication from the device may well be broken up into multiple packets.
drvAsynIPPortConfigure("Koyo1","164.54.160.158:502",0,0,0)
modbusInterposeConfig(portName,
linkType,
@@ -201,7 +202,7 @@ modbusInterposeConfig
linkType
int
-Modbus link layer type:, 0 = TCP/IP, 1 = RTU, 2 = ASCII
+Modbus link layer type:, 0 = TCP/IP, 1 = RTU, 2 = ASCII, 3 = UDP/IP
timeoutMsec
int
@@ -261,7 +262,7 @@ drvModbusAsynConfigureslaveAddress
int
The address of the Modbus slave. This must match the configuration of the Modbus
-slave (PLC) for RTU and ASCII. For TCP the slave address is used for the “unit identifier”,
+slave (PLC) for RTU and ASCII. For TCP or UDP the slave address is used for the “unit identifier”,
the last field in the MBAP header. The “unit identifier” is ignored by most PLCs,
but may be required by some.
@@ -581,7 +582,7 @@ Number formats
© Copyright 2023, Mark Rivers.
- Last updated on 2024-March-25.
+ Last updated on 2024-April-16.
© Copyright 2023, Mark Rivers. - Last updated on 2024-March-25. + Last updated on 2024-April-16.
© Copyright 2023, Mark Rivers. - Last updated on 2024-March-25. + Last updated on 2024-April-16.
diff --git a/driver_architecture.html b/driver_architecture.html index f9da71f..94ea466 100644 --- a/driver_architecture.html +++ b/driver_architecture.html @@ -261,7 +261,7 @@© Copyright 2023, Mark Rivers. - Last updated on 2024-March-25. + Last updated on 2024-April-16.
diff --git a/example_applications.html b/example_applications.html index 2778337..2a1986d 100644 --- a/example_applications.html +++ b/example_applications.html @@ -292,7 +292,7 @@© Copyright 2023, Mark Rivers. - Last updated on 2024-March-25. + Last updated on 2024-April-16.
diff --git a/genindex.html b/genindex.html index a5f6bef..c443c56 100644 --- a/genindex.html +++ b/genindex.html @@ -91,7 +91,7 @@© Copyright 2023, Mark Rivers. - Last updated on 2024-March-25. + Last updated on 2024-April-16.
© Copyright 2023, Mark Rivers. - Last updated on 2024-March-25. + Last updated on 2024-April-16.
diff --git a/medm_screens.html b/medm_screens.html index 2885da6..5a75b30 100644 --- a/medm_screens.html +++ b/medm_screens.html @@ -187,7 +187,7 @@© Copyright 2023, Mark Rivers. - Last updated on 2024-March-25. + Last updated on 2024-April-16.
diff --git a/overview.html b/overview.html index b21278f..7ac6ed7 100644 --- a/overview.html +++ b/overview.html @@ -102,38 +102,7 @@Modbus supports the following 3 communication-link layers:
-Link type |
-Description |
-
---|---|
TCP |
-TCP/IP using standard port 502. |
-
RTU |
-RTU is normally run over serial communication links, i.e. RS-232, -RS-422, or RS-485. RTU uses an additional CRC for packet checking. The -protocol directly transmits each byte as 8 data bits, so uses “binary” -rather than ASCII encoding. When using serial links start and end of -message frames is detected by timing rather than by specific characters. -RTU can also be run over TCP, though this is less common than the -standard Modbus TCP without RTU. |
-
Serial ASCII |
-Serial protocol, which is normally run over serial communication links, -i.e. RS-232, RS-422, or RS-485. Serial ASCII uses an additional LRC for -packet checking. The protocol encodes each byte as 2 ASCII characters. -The start and end of message frames is detected by specific characters -(“:” to start a message and CR/LF to end a message). This protocol is -less efficient than RTU, but may be more reliable in some environments. -ASCII can also be run over TCP, though this is much less common than the -standard Modbus TCP. |
-
This modbus package supports all of the above Modbus +
This modbus package supports all of the above Modbus communication-link layers.
© Copyright 2023, Mark Rivers. - Last updated on 2024-March-25. + Last updated on 2024-April-16.
diff --git a/search.html b/search.html index 6af48b8..c08c3e8 100644 --- a/search.html +++ b/search.html @@ -99,7 +99,7 @@© Copyright 2023, Mark Rivers. - Last updated on 2024-March-25. + Last updated on 2024-April-16.