Forum Home › Forums › Uncategorized Issues › online parser: crc presentation
Tagged: CRC, Modbus message
- This topic has 24 replies, 3 voices, and was last updated 3 weeks, 4 days ago by
a.pythe.
-
AuthorPosts
-
June 24, 2026 at 5:12 am #18078
a.pytheParticipant@Mikhail, shure.
Testing example byte set, 6 (six) bytes length: 01 02 03 04 05 06
Whatever the set is, it’s CRC-16/MODBUS value is DDBA(hex) 56762(dec)
So, according to the Modbus specification the set with CRC bytes added is 01 02 03 04 05 06 BA DD
When fed to the Rapid SCADA Modbus Parser this set is parsed as a good data package, but it’s CRC shown at the bottom of the page is presented in reverse byte order as BADD(hex) 47837(dec) integer.
Make shure 47837 is not equal to 56762.
Thank you for your attention to this matter! 🙂
June 25, 2026 at 11:23 am #18087
MikhailModerator0xBADD is displayed by the parser in the same order as transferred.
https://ibb.co/tpS0C1Zm
https://ibb.co/v7fyV3SI’ll check the details and come back.
Thank you for noticing.-
This reply was modified 1 month ago by
Mikhail.
June 25, 2026 at 12:19 pm #18089
a.pytheParticipant0xBADD is displayed by the parser in the same order as transferred.
@Mikhail, I know!We’ve told this three or four times in the above discussion – me and @manjey73 🙂
And that’s what is wrong with it.
Because according to Modbus specification the CRC is transferred in the reverse order, unlike all other 16-bit values in the package.
I’d be obliged if your check will encompass Modbus Serial Line Protocol and Implementation Guide V1.02, namely part 2.5.1.2 CRC Checking.
June 25, 2026 at 1:15 pm #18092
MikhailModeratorNow it is clear. It’s looks like CRC displaying should be fixed.
Thanks.June 26, 2026 at 12:30 pm #18099
MikhailModeratorFixed.
June 26, 2026 at 4:54 pm #18100June 26, 2026 at 5:35 pm #18102
a.pytheParticipant@Mikhail, by the way, maybe sometime you’ll take a look at a much smaller bug mentioned in this discussion.
Testing example byte set: 10 06 02 02 00 45 EB 01
It has intentionally corrupted CRC value to verify the Parser’s response.
Actual Parser’s response: “Data package CRC error. Actual CRC is EB 00. Expected CRC is EB 00″
Correct message shoul be: “Data package CRC error. Actual CRC is EB 01. Expected CRC is EB 00″It seems the Parser always prints most significant byte zeroed in such a message.
Thansk in advance.
June 29, 2026 at 9:43 am #18103
MikhailModeratorI’ll check it.
Thanks.June 29, 2026 at 12:02 pm #18104
MikhailModeratorDone.
July 2, 2026 at 5:32 am #18106 -
This reply was modified 1 month ago by
-
AuthorPosts
- You must be logged in to reply to this topic.