How to Use Modbus Protocol

Boot up computer into dos or command prompt mode., Attach the serial cable to the computer and the other end to the device. , If you have a straight through cable, connect a null modem in line with the cable. , Open a text editor such as 'edit' or...

7 Steps 1 min read Medium

Step-by-Step Guide

  1. Step 1: Boot up computer into dos or command prompt mode.

    The general format for the *.cfg file is Title; string length, null character, stop bit and speed; Then the body starts in the format:
    Device register, Modbus command, source register; Note that all modbus lines end with a semicolon and EOL , Read input register Read status register Write input register Write status register
  2. Step 2: Attach the serial cable to the computer and the other end to the device.

  3. Step 3: If you have a straight through cable

  4. Step 4: connect a null modem in line with the cable.

  5. Step 5: Open a text editor such as 'edit' or 'kedit'.

  6. Step 6: "#" indicate comments There are numerous possible modbus commands

  7. Step 7: but you generally need only need a few.

Detailed Guide

The general format for the *.cfg file is Title; string length, null character, stop bit and speed; Then the body starts in the format:
Device register, Modbus command, source register; Note that all modbus lines end with a semicolon and EOL , Read input register Read status register Write input register Write status register

About the Author

N

Nicholas Hart

Brings years of experience writing about lifestyle and related subjects.

50 articles
View all articles

Rate This Guide

--
Loading...
5
0
4
0
3
0
2
0
1
0

How helpful was this guide? Click to rate: