modbus_crc
Compute Modbus RTU CRC16 for RS485 data or verify a complete frame by checking its data and CRC bytes.
Instructions
计算或校验 Modbus RTU 的 CRC16(RS485 毕设必备)。 check=False:对数据部分计算 CRC;check=True:校验完整帧(数据+CRC)。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"hex_frame": "<hex_frame>"
},
"name": "modbus_crc"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| check | No | ||
| hex_frame | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |