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)。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| check | No | ||
| hex_frame | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |