View previous topic :: View next topic |
Author |
Message |
dyeatman
Joined: 06 Sep 2003 Posts: 1933 Location: Norman, OK
|
|
Posted: Tue May 21, 2013 8:50 am |
|
|
Are you modifying the modbus.c file?
The word at the end of the USE RS232 lines should be ERRORS not ERROR. _________________ Google and Forum Search are some of your best tools!!!! |
|
|
RF_Developer
Joined: 07 Feb 2011 Posts: 839
|
|
Posted: Tue May 21, 2013 9:01 am |
|
|
It's "errors" in my (v 4.132) modbus.c.
So, what CCS version are you using Magnus? |
|
|
magnus
Joined: 09 May 2013 Posts: 15
|
|
Posted: Tue May 21, 2013 12:45 pm |
|
|
I'm using 4.078 version.
But if I change word "ERROR" to "ERRORS" it works.
thanks for the tips, they really help me |
|
|
dyeatman
Joined: 06 Sep 2003 Posts: 1933 Location: Norman, OK
|
|
Posted: Tue May 21, 2013 1:09 pm |
|
|
If you had to change the word you are not using the original MODBUS.c file
I would be careful of other possible changes. _________________ Google and Forum Search are some of your best tools!!!! |
|
|
magnus
Joined: 09 May 2013 Posts: 15
|
|
Posted: Wed May 22, 2013 7:45 am |
|
|
Do You recommend some Modbus master simulator? |
|
|
yerpa
Joined: 19 Feb 2004 Posts: 58 Location: Wisconsin
|
|
Posted: Wed May 22, 2013 2:35 pm |
|
|
I've had good luck with MDBUS by Calta Computer Systems.
I use B&B Model 485USB9F-2W converter that plugs into Windows USB port and provides two-wire RS-485 connections. |
|
|
magnus
Joined: 09 May 2013 Posts: 15
|
|
Posted: Tue May 28, 2013 9:46 am |
|
|
Hello again.
Now I'm testing with a internal software and It presents the message: Check Sum error.
What error is it? |
|
|
FvM
Joined: 27 Aug 2008 Posts: 2337 Location: Germany
|
|
Posted: Tue May 28, 2013 11:18 pm |
|
|
Checksum is used in MODBUS ASCII protocol, RTU has CRC. Maybe you are using wrong MODBUS mode.
Generally, you can review any detail in the MODBUS over serial line specification, see modbus.org. |
|
|
magnus
Joined: 09 May 2013 Posts: 15
|
|
Posted: Wed May 29, 2013 5:16 am |
|
|
Thank You! |
|
|
|