Announcement

REXYGEN forum has been moved. This one is closed.
Head over to the new REXYGEN Community Forum at https://forum.rexygen.com.

Looking forward to meeting you there!
 

#1 2016-11-11 19:41:19

contactform
Member
Registered: 2015-10-30
Posts: 45

Monarco HAT RS485 configuration for Modbus

How to set baudrate of RS485 on Monarco HAT for Modbus communication?

Thanks!

Offline

#2 2016-11-11 19:48:12

jaroslav_sobota
Administrator
Registered: 2015-10-27
Posts: 535

Re: Monarco HAT RS485 configuration for Modbus

In order to use the onboard RS485 of the Monarco HAT, it is important to understand the internal structure of the Monarco HAT. The Raspberry Pi is talking to the Monarco HAT's MCU via UART and it's the MCU who is talking to devices over the RS485 line. See details in the Monarco HAT hardware reference manual.

The UART settings are fixed: /dev/ttyAMA0, baudrate 115200, no parity, 1 stopbit and that's what you should set in Modbus configuration dialog, regardless of the settings in individual devices on RS485 line.

The properties of the RS485 line are defined by parameters of the Monarco HAT I/O driver. These parameters should correspond with the settings in your devices (e.g. baudrate 9600). See the Monarco HAT I/O driver manual for more details.

Jaroslav

Offline

Board footer

Powered by FluxBB