An industrial communications protocol used for connecting industrial electronic devices.
Features
About ModbusWith Cs/Modbus, you can use either ASCII frames or RTU frames, or both at the same time if you have multiple serial interfaces. Cs/Modbus module supports any number of communications channels. Modbus-S is a Modbus Slave (server) software component enabling an embedded system to communicate to a Modbus Master (client). Modbus-M is a Modbus Master (client) component that enables communication to a Modbus Slave. Cs/Modbus module enables a developer to read or write integer, floating-point (assuming Daniels extensions), and discrete values from and to the target system.
|
Key FeaturesThe features of Cs/Modbus module include:
|
Specifications
Key Specifications
|
• Unlimited number of ‘channels’ (limited only by the number of serial interfaces) |
|
• ASCII or RTU mode selectable on a per-channel basis |
|
• Floating-point support through “Daniel’s Extensions” |
|
• Modbus Slave or Master possible on the same product |
|
• Adjustable baud rate on a per channel-basis |
|
• Easily assign application variables to Modbus registers, coils, and discrete inputs |
|
• Works with any processor (8-, 16-, 32-, 64-bit, or DSP) |
|
• Works with or without an RTOS kernel |
|
• Easily configurable |
|
• ANSI C source code provided |
|
• Scalable from 6K to 15K bytes of code space |
Function Codes
Supported Modbus function codes:
|
Function Code |
Description |
| 1 | Coil Read |
| 2 | Discrete Input Read |
| 3 | Holding Register Read |
| 4 | Input Register Read |
| 5 | Write Single Coil |
| 6 | Write Single Holding Register |
| 8 | Diagnostic Loopback |
| 15 | Write Multiple Coils |
| 16 | Write Multiple Holding Registers |
| 20 | File Read |
| 21 | File Write |

