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...
Step-by-Step Guide
-
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 -
Step 2: Attach the serial cable to the computer and the other end to the device.
-
Step 3: If you have a straight through cable
-
Step 4: connect a null modem in line with the cable.
-
Step 5: Open a text editor such as 'edit' or 'kedit'.
-
Step 6: "#" indicate comments There are numerous possible modbus commands
-
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
Nicholas Hart
Brings years of experience writing about lifestyle and related subjects.
Rate This Guide
How helpful was this guide? Click to rate: