Good evening all,
Maybe a bit stupid question, but I am struggeling a bit with using the FC7 and a new dsPIC MIAC(without wireless/bluetooth).
Till now I was working with CANbus communication and that works very fine. (both standard and extended messages)
Now I want to communicate onto the RS232 with MODBUS RTU, but I cannot get this working...
MODBUS is quite new to me, I am working in the automotive world and there is everthing about CANbus, no MODBUS.
(hope that you will help me starting with this stuff...)
I am looking for a very simple example to get a MIAC communicating onto Modbus, both as slave and as master.
Have found the examples on the Flowcode Wiki, but I think I made some mistakes is setting up the communication, because I cannot find any data with my laptop onto the RS232 output of the MIAC.(using the CAS MODBUS scanner)
To be sure about the connections/jumpers inside the MIAC:
On page 11 of the datasheet is a picture of the jumpers inside, which one is correct for MODBUS on RS232?
http://www.matrixtsl.com/resources/file ... C-60-3.pdf
Connecting the RX, TX and GND is enough to get the MODBUS working, isn't it? I can't find a proper answer if I need the CTS and RTS also...
Thanks in advance!!
MIAC - MODBUS
-
- Posts: 5
- Joined: Thu Jul 31, 2014 2:21 pm
- Has thanked: 1 time
- Been thanked: 1 time
- Contact:
- LeighM
- Matrix Staff
- Posts: 2178
- Joined: Tue Jan 17, 2012 10:07 am
- Has thanked: 481 times
- Been thanked: 699 times
- Contact:
Re: MIAC - MODBUS
Hi,
Yes, RTS/CTS are not used by the Modbus component, so the default link settings, giving RS232 and RS485 interfaces, should be used...
For RS232 use hardware UART(0) Channel 1 on Port E pins 0 and 1
Hope that helps,
Leigh
Yes, RTS/CTS are not used by the Modbus component, so the default link settings, giving RS232 and RS485 interfaces, should be used...
For RS232 use hardware UART(0) Channel 1 on Port E pins 0 and 1
Hope that helps,
Leigh
-
- Posts: 5
- Joined: Thu Jul 31, 2014 2:21 pm
- Has thanked: 1 time
- Been thanked: 1 time
- Contact:
Re: MIAC - MODBUS
Hi Leigh,
Thanks for your answer!
These settings are used in my test projects...
To be sure, which pin is used for the GND connection?
Just the normal GND of the MIAC or the 0R of the inputs, does this matter?
Could you give some advise in what kind of MODBUS logger/monitoring software works well?
Thanks for your answer!
These settings are used in my test projects...
To be sure, which pin is used for the GND connection?
Just the normal GND of the MIAC or the 0R of the inputs, does this matter?
Could you give some advise in what kind of MODBUS logger/monitoring software works well?
- LeighM
- Matrix Staff
- Posts: 2178
- Joined: Tue Jan 17, 2012 10:07 am
- Has thanked: 481 times
- Been thanked: 699 times
- Contact:
Re: MIAC - MODBUS
Use the normal GND (0R is for analog inputs ground)To be sure, which pin is used for the GND connection?
Just the normal GND of the MIAC or the 0R of the inputs, does this matter?
I've no recommendations on that, but I'm sure there are others on the forum that haveCould you give some advise in what kind of MODBUS logger/monitoring software works well?
-
- Posts: 444
- Joined: Tue Apr 15, 2014 4:19 pm
- Location: Kajaani, Finland
- Has thanked: 345 times
- Been thanked: 227 times
- Contact:
Re: MIAC - MODBUS
I use mbpoll for debugging/logging modbus data.
http://www.modbustools.com/modbus_poll.html
http://www.modbustools.com/modbus_poll.html
Ill just keep the good work up!
- Steve001
- Valued Contributor
- Posts: 1189
- Joined: Wed Dec 31, 2008 3:37 pm
- Has thanked: 460 times
- Been thanked: 523 times
- Contact:
-
- Posts: 5
- Joined: Thu Jul 31, 2014 2:21 pm
- Has thanked: 1 time
- Been thanked: 1 time
- Contact: