advertisement
from the R&D department...
CRC Error
Communications systems and equipment. topic
Posted by pankaj on 10 August, 2012 - 10:20 am
Hi,
I am using MODBUS RTU.
I get the correct sequence data from my system.
but in modbus poll show the crc error.
Please help me. I am new be for modbus.

Thanks in advance.


1 out of 1 members thought this post was helpful...
Posted by Lynn August Linse on 10 August, 2012 - 12:14 pm
Add as many parenthesis to your code as you can. Many small C compilers have subtle ordering dependencies which mean a published Modbus CRC16 routine might nOT always work for you - for example sign-extension might cause shifting to be 'wrong', etc.

If you are NOT using C & are using a java/Python/Ruby (which likely do NOT have unsigned variable), then you must be carefully to keep masking off the data & use over-sized variables.


Posted by pankaj on 11 August, 2012 - 1:50 am
Hi, Thanks for your reply,
I check in "simply modbus" data sequence and crc all things are correct.
is any changes for mosbus poll, Qmodbus or modscan 32.

after that I just send data from one PC to other according to sequence with crc. but there is no any program in this test.

So can you suggest me what happen..

Thanks for your kind support....


Posted by pankaj on 11 August, 2012 - 7:09 am
Thanks Lynn, I got the solution.
Its my mistake to understand some thing in modbus protocol.

Thanks one again...

Your use of this site is subject to the terms and conditions set forth under Legal Notices and the Privacy Policy. Please read those terms and conditions carefully. Subject to the rights expressly reserved to others under Legal Notices, the content of this site and the compilation thereof is © 1999-2013 Nerds in Control, LLC. All rights reserved.

Users of this site are benefiting from open source technologies, including PHP, MySQL and Apache. Be happy.


Fortune
To get something done, a committee should consist of no more than three
men, two of them absent.
Advertise here
Advertisement
our advertisers
Help keep our servers running...
Patronize our advertisers!
Visit our Post Archive