frame_and_verify_modbus_pdu
Encode or decode Modbus RTU and TCP binary frames with CRC-16 and MBAP validation to inspect or verify protocol payloads.
Instructions
Encode or decode Modbus RTU (CRC-16 0xA001) and Modbus TCP (MBAP) binary frames.
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": {
"mode": "<mode>"
},
"name": "frame_and_verify_modbus_pdu"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | ||
| slave_id | No | ||
| frame_hex | No | ||
| payload_hex | No | ||
| function_code | No | ||
| transaction_id | No |