Editing
Modbus protokoll rs485
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== Modbus Funktions Codes === {| class="wikitable" ! colspan="5"| Hex Data !! colspan="1"| Funktion |- | adr || fc || ! colspan="3"| data ..... || |- | .. || 01 || .. || .. ||.. || Lese Ausgangsbit Status |- | .. || 02 || .. || .. ||.. || Lese Eingangsbit Status |- | .. || 03 || .. || .. ||.. || Lese Holding-Register Analog Ausgang |- | .. || 04 || .. || .. ||.. || Lese Input-Register Analog Eingang |- | .. || 05 || .. || .. ||.. || Schreibe Ausgangsbit |- | .. || 06 || .. || .. ||.. || Schreibe Holding-Register Analog Ausgang |- | .. || 0F || .. || .. ||.. || * Funktion noch offen |- | .. || 10 || .. || .. ||.. || wird bei den China Modulen zum Anpassen der UID benutzt |- | .. || 15 || .. || .. ||.. || Schreibe mehrfach Ausgangsbit |- | .. || 16 || .. || .. ||.. || Schreibe mehrfach Holding-Register (Daten für >16-bit) Analog Ausgang |- | .. || 23 || .. || .. ||.. || * Funktion noch offen |- |} * das sind wohl noch nicht alle Modbus Funktion Codes es gibt wohl auch Sonderfunktionen die nur bei bstimmten Geräten vorhanden sind hier z.B. 0x10h setzten der UID <br> adr -> device Adress oder auch UID - 1 Byte lang <br> fc -> Function Code 1 Byte <br> data -> n Bytes<br> Modbus RTU Instructions: Baud rate: 9600 8 NONE 1 Hexadecimal send<br> hexadecimal receive<br> <br> Operation steps:<br> 1. Software settings communication baud rate<br> 2. Set the address (communication using the device address, the default address is 01)<br> <br> Set the address from from Broadcast to 0x01 , 0x02 , 0x03 {| class="wikitable" |- ! Hex Byte !! Funktion |- | 00 10 00 00 00 01 02 00 01 6A 00 || Broadcast Address Modified to 01 |- | 00 10 00 00 00 01 02 00 02 2A 01 || Broadcast Address Modified to 02 |- | 00 10 00 00 00 01 02 00 03 EB C1 || Broadcast Address Modified to 03 |} <br> Read Address at Broadcast Call <br> {| class="wikitable" |- ! Hex Byte !! Funktion |- | 00 03 00 00 00 01 85 db || Send to Device ( Broadcast ) |- | 00 03 02 00 01 44 44 || Receive from Device '''01 for Address''' |- | 00 03 02 00 02 04 45 || Receive from Device '''02 for Address''' |- | 00 03 02 00 03 C5 85 || Receive from Device '''03 for Address''' |- |} <br>
Summary:
Please note that all contributions to Chaosdorf Wiki are considered to be released under the Attribution 3.0 Unported (see
Chaosdorf Wiki:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
Edit source
View history
More
Search
Wiki
Home
Places
Projects
Resources
Current events
Recent changes
Chaosdorf
Blog
GitHub
Mastodon
Tools
What links here
Related changes
Special pages
Page information