Modbus ASCII Online Tool
Modbus ASCII message parsing, command generation, response data generation, and LRC checksum calculation tool
Browser execution mode: Your data is processed in your browser and is not uploaded to the server.
Speed and Stability: Processing speed depends on your device and browser. For large batch work, the desktop version may be more stable.
Loading tool, please wait...
If the online tool fails to load or run, try the desktop tool.https://tools.yikeaigc.com/
Tool Usage
Return to old versionRequest Command Generator
Set slave, function code, address, and write data to generate a standard ASCII frame.
| Field | HEX | Description |
|---|
Response Message Generator
Generate response frames for read/write scenarios; select an exception code directly for exception responses.
| Field | HEX | Description |
|---|
Message Parser
Enter a complete ASCII frame, validate LRC, then view the frame structure and data values.
| Field | HEX | Description |
|---|
| Item | Value | Description |
|---|
| # | Name | Position | HEX | Type | Parsed value |
|---|
LRC Check
Enter HEX bytes or an ASCII frame to calculate LRC and generate a copyable full frame.
| # | bytes | Sum low 8 bits |
|---|
Batch processing
Paste multi-line text or choose TXT/CSV files; download as a ZIP after processing.
| # | Source | Input | Results |
|---|
Instructions
Software Usage Instructions
- Request Command Generation: First set the slave address, function code, starting address, and quantity, then click “Generate Command”. Supports 01 Read Coils, 02 Read Discrete Inputs, 03 Read Holding Registers, 04 Read Input Registers, 05 Write Single Coil, 06 Write Single Register, 0F Write Multiple Coils, and 10 Write Multiple Registers.
- Write Data Configuration:
- Single Coil: Select ON or OFF, and the tool will generate FF00 or 0000.
- Single Register: Enter a register value in the range of 0-65535.
- Multiple Coils: Enter 0/1 or ON/OFF, and the tool will pack the data according to Modbus bit order.
- Multiple Registers: Select UINT16, INT16, UINT32, INT32, FLOAT32, or HEX bytes, and set the ABCD, DCBA, BADC, or CDAB byte order.
- Response Message Generation: Select a normal response or exception response. Normal responses can generate read responses and write confirmation responses; exception responses can select exception codes such as illegal function, illegal data address, illegal data value, and device failure.
- Message Parsing: Enter a complete Modbus ASCII message, and the tool will verify the LRC and display the slave address, function code, data area, received LRC, and calculated LRC. You can add custom parsing rules to parse register data by offset position.
- LRC Check Calculation: Enter HEX bytes or a complete ASCII message, then click “Calculate LRC” to obtain the HEX, DEC, low 8-bit checksum, and complete ASCII frame.
- Batch Processing: You can paste multi-line text or select TXT or CSV files. Batch command generation, batch message parsing, and batch LRC calculation are supported. After processing is complete, you can download the ZIP results.
- Save Settings: Common slave addresses, function codes, data types, byte orders, and parsing rules can be saved by clicking “Save Settings” for convenient reuse next time.
FAQ
Related Tools
Currency Exchange Rate Converter
Supports real-time exchange rate conversion for more than...