Modbus RTU Controllino Maxi Pure RS485

Stuck? We'll be happy to help!
Post Reply
Irikatsu
Posts: 2
Joined: Fri Aug 28, 2020 12:11 pm

Modbus RTU Controllino Maxi Pure RS485

Post by Irikatsu » Fri Aug 28, 2020 12:17 pm

Hello there!
I am trying to send a query to device, but only thing that i get from RS-485 serial is -1 (FFFFFF). I tried to modify your example with Modbus over RS-485. My PLC is a Master and device that i try to communicate with is slave, its address is 1, baudrate is the same for both ends and its 115200 (thats default for my device). I successfuly managed to send through Serial3.write() a message for bootloader to set version for my device. But when i try to send a query and receive response i got nothing but -1.

User avatar
Lukas
Posts: 75
Joined: Tue Dec 18, 2018 3:44 pm

Re: Modbus RTU Controllino Maxi Pure RS485

Post by Lukas » Fri Sep 04, 2020 12:56 pm

Hello,

have you tried to run the Modbus RTU communication with your slave device from PC? It is always good (and recommended) first step - just take a RS485 USB adapter, use some free Modbus RTP Master application and try to run the Modbus communication with this setup. Then you are sure that everything is OK at the Slave side (protocol, address, baudrate, supported services, register number ...) and you can try it with PLC.

And from the HW point of view - make sure that the GND is also interconnected.

Good luck!
Lukas

Irikatsu
Posts: 2
Joined: Fri Aug 28, 2020 12:11 pm

Re: Modbus RTU Controllino Maxi Pure RS485

Post by Irikatsu » Tue Sep 08, 2020 12:42 pm

Hi!
I managed to find my mistake. I tried to use half-duplex transsmision as full-duplex. As soon as i spotted my mistake i made corrections and everything works fine!

Post Reply