Modbus RTU reception problems.
-
- Posts: 22
- http://meble-kuchenne.info.pl
- Joined: Wed Dec 30, 2020 3:07 pm
- Been thanked: 4 times
Modbus RTU reception problems.
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 (36.76 KiB) Viewed 2293 times
-
- 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.
Hello,
Please can you attach your project .fcfx file so we can investigate.
Please can you attach your project .fcfx file so we can investigate.
Regards Ben Rowland - MatrixTSL
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Re: Modbus RTU reception problems.
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
-
- 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.
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.
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.
Regards Ben Rowland - MatrixTSL
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel