Modbus RTU reception problems.

For general Flowcode discussion that does not belong in the other sections.
Post Reply
asmatec
Posts: 22
http://meble-kuchenne.info.pl
Joined: Wed Dec 30, 2020 3:07 pm
Been thanked: 4 times

Modbus RTU reception problems.

Post by asmatec »

While carrying out a project, I realized that during the data transmission through the Modbus RTU protocol, the signal was sent without problems but the reception of the signal did not occur, pin 7, that controls the MAX3485 Modbus controller chip, does not activate the reception of the input signal to the microcontroller. Do you know why this happens? Is it a library problem? Thanks.
Attachments
DSD00001.png
DSD00001.png (36.76 KiB) Viewed 2292 times

BenR
Matrix Staff
Posts: 1926
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 503 times
Been thanked: 686 times

Re: Modbus RTU reception problems.

Post by BenR »

Hello,

Please can you attach your project .fcfx file so we can investigate.

asmatec
Posts: 22
Joined: Wed Dec 30, 2020 3:07 pm
Been thanked: 4 times

Re: Modbus RTU reception problems.

Post by asmatec »

Yes, I do. The communication stage is repair. I use a different adapter from Serial to RS485, which doesn't use the direction pin. Now I have a different problem, when I send the data bytes, the Modbus macro give a byte with the result of the communication, and always return CRC error, (1). I attach the project, an image of the connection and finally the documents I use. In the image appears a PCB, its the module I try to communicate with. Thanks.
Attachments
la36-modbus-holding-registers---v0-101.pdf
(6.42 KiB) Downloaded 314 times
image.pdf
(2.19 MiB) Downloaded 276 times
project.zip
(46.03 KiB) Downloaded 250 times

BenR
Matrix Staff
Posts: 1926
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 503 times
Been thanked: 686 times

Re: Modbus RTU reception problems.

Post by BenR »

Hello,

In the Modbus component properties the UART Receive Timeout is set to 0, this should probably be something more like 100 to allow it time for the slave to process the command and issue the reply. Hopefully this will solve the problem for you.

Post Reply