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 2018-11-13 04:25:14

mikeyh
Member
From: New Zealand
Registered: 2016-04-28
Posts: 44

Modbus Registers

Hi All,

I'm having trouble getting the Modbus on the Monarco Hat to communicate to a specific controller. I can't see where I'm going wrong and all wiring is correct, so i assume my register map is incorrect. Project enclosed, Modbus register address doc is also in the folder.

Just wondering if anyone can see anything obvious.

Cheers

Mike

Controller-Logger_Dixell.7z

Offline

#2 2018-11-13 15:11:32

tomáš čechura
Administrator
Registered: 2016-02-22
Posts: 371

Re: Modbus Registers

Hi Mike,

I don't see any issue. What does the System log say? Is there any error regarding Modbus communication?
I noticed you specified the Modbus addresses with -1 offset in REXYGEN, am I right? Did you try not to use the offset and configure the mapping according to the datasheet?
What is the Slave address?

Cheers, Tomas

Offline

#3 2018-11-13 19:59:51

mikeyh
Member
From: New Zealand
Registered: 2016-04-28
Posts: 44

Re: Modbus Registers

Hi Tomas,

The log says "MBDRV: Slave 1 not responding (item='probes')".

The -1 offset was me just trying different things to see if I could trick it to work..! I had tried 0 zero offset we no joy.

Slaves address is 1

Cheers, Mike

Offline

#4 2018-11-14 09:50:14

tomáš čechura
Administrator
Registered: 2016-02-22
Posts: 371

Re: Modbus Registers

Hi Mike,

"Slave X not responding" means that the communication with slave wasn't successfully created. The reasons can be:
- wrong communication parameters (baudrate, parity, ...)
- wrong wiring
- wrong Slave ID (slave address)
...

Do you have any working example with the controller using a 3rd party software for modbus communication? Just to be sure that the parameters are correct.

Cheers, Tomas

Offline

Board footer

Powered by FluxBB