ROOTCASTLE / LABORING ENGINEERING
Inspektori i protokollit
Decode Modbus RTU, UART dhe CAN frames.
LOCAL CALCULATION · NO DEVICE CONNECTION
Modbus RTU decoder
✓ Valid frame · Request
| Field | Bytes | Value |
|---|---|---|
| slave | 01 | 1 |
| function | 03 | 3 Read Holding Registers |
| start | 00 00 | 0 (0x0000) |
| quantity | 00 0A | 10 |
| crc | C5 CD | 0xCDC5 = 0xCDC5 |
Model and assumptions
RTU frame: address, function, data, CRC-16 (reflected polynomial 0xA001, initial 0xFFFF, low byte first). The same function code has different lengths in request and response; automatic direction can be wrong for ambiguous frames. Addresses are zero-based; the 40001 notation is a device convention. Word order of 32-bit values depends on the device.
CRC: c=0xFFFF; c^=byte; 8×{ c = c&1 ? (c>>1)^0xA001 : c>>1 }
Çdo për çfarë është?
Nga gabimet më të shpesh të gjera në komunikacionin e fushës janë një CRC të gabuar, një adresë të gabuar, porësitë e porositur dhe timeout-ët. Pastro një çelë të kopjuar nga një analizator ose një log serial për të parë cilësisht fushë është e gabuar, kod exception i dispozitës dhe interpretimet e vlerës së registrave.
Limitime
Instrumënti nuk lidhet me dispozitive ose dërgojë të dhënat; çdo llogaritje funksionon në browser-in tuaj. Interpretimi i Modbus ASCII, Modbus TCP, CAN FD dhe J1939/CANopen janë brenda e detyres. Drejtimi automatik mund të jetë e gabuar për çelë të ambigjuara; zgjidhni atë ruajtorisht.
Referencat
Modbus over Serial Line V1.02 · Modbus Application Protocol V1.1b3 · ISO 11898-1:2015 (CAN data link layer) · Katalog CRC
Modeli mësimore. Rezultati nuk është sufiçient për diagnozë të makinës ose për të vendosur limitë të operimit të bezës.