Yesterday, with your help, I tested it.
I initialized the PC, installed FC10 and updated.
However, MODBUS/TCP still doesn't work.
Upload the project file and logic analyzer screen here.
It may be difficult, but please take a look.
I look forward to your help on site.
Thank you.
And I'm sorry.
Modbus / TCP Error
-
- Posts: 217
- http://meble-kuchenne.info.pl
- Joined: Thu Dec 03, 2020 1:43 pm
- Has thanked: 6 times
- Been thanked: 7 times
Re: Modbus / TCP Error
- Attachments
-
- Screen.jpg (74.57 KiB) Viewed 2553 times
-
- 230719_Freezer-SPI_Ethernet_TEST.fcfx
- (58.34 KiB) Downloaded 474 times
-
- Matrix Staff
- Posts: 1952
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 510 times
- Been thanked: 698 times
Re: Modbus / TCP Error
Can you try and increase the SPI prescale for the TXP_IP component, things weren't working for me when I had this set too low. 250KHz clock seems like it should be ok.
Might also be worth trying a hardware SPI channel if available.
Might also be worth doing a flasher test to confirm the MCU is running at the speed you think it is.
https://www.flowcode.co.uk/wiki/index.p ... ED_flasher
What are you using as the Master?
Might also be worth trying a hardware SPI channel if available.
Might also be worth doing a flasher test to confirm the MCU is running at the speed you think it is.
https://www.flowcode.co.uk/wiki/index.p ... ED_flasher
What are you using as the Master?
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 / TCP Error
I tried changing the SPI Prescale. But the clock rate doesn't change and the error still occurs.
10Hz is generated by the MCU, and when viewed with an oscilloscope, it is measured as approximately 9.96Hz.
And if you change the hardware channel, the system won't work (maybe hangup?)
Also, if I2C is changed to a hardware channel, it does not work. If the serial EPROM does not work, changing it with software will work.
Engineers who using other languages do not understand this situation.
Thank you.
10Hz is generated by the MCU, and when viewed with an oscilloscope, it is measured as approximately 9.96Hz.
And if you change the hardware channel, the system won't work (maybe hangup?)
Also, if I2C is changed to a hardware channel, it does not work. If the serial EPROM does not work, changing it with software will work.
Engineers who using other languages do not understand this situation.
Thank you.
- Attachments
-
- Screen3.jpg (51.24 KiB) Viewed 2505 times
-
- Screen2.jpg (34.69 KiB) Viewed 2505 times
-
- Screen1.jpg (42.39 KiB) Viewed 2505 times
-
- Matrix Staff
- Posts: 1952
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 510 times
- Been thanked: 698 times
Re: Modbus / TCP Error
For the TCP_IP_W5500 component try switching to a hardware channel and also change the Fosc/2 to something more like Fosc/16 or /32 or /64
For me /4 wasn't working but as soon as I went to /16 it all worked flawlessly.
Everything else looks to be ok.
Have you tried my program at all on your hardware and in the simulator to see if that is working for you?
For me /4 wasn't working but as soon as I went to /16 it all worked flawlessly.
Everything else looks to be ok.
Have you tried my program at all on your hardware and in the simulator to see if that is working 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