Modbus / TCP Error

For general Flowcode discussion that does not belong in the other sections.
seokgi
Posts: 210
http://meble-kuchenne.info.pl
Joined: Thu Dec 03, 2020 1:43 pm
Has thanked: 5 times
Been thanked: 7 times

Modbus / TCP Error

Post by seokgi »

Hello?
MCU: PIC24FJ512GA606
Ethernet : W5500
Program: Modbus POLL
As a result of the previous query, compilation works fine.
But Modbus/TCP doesn't work.
what am i doing wrong?
Please help.

And still the pin number changes when I reload the project.
Attachments
230717_Freezer-SPI_Ethernet_TEST.fcfx
(58.18 KiB) Downloaded 503 times

seokgi
Posts: 210
Joined: Thu Dec 03, 2020 1:43 pm
Has thanked: 5 times
Been thanked: 7 times

Re: Modbus / TCP Error

Post by seokgi »

Ping is work well

seokgi
Posts: 210
Joined: Thu Dec 03, 2020 1:43 pm
Has thanked: 5 times
Been thanked: 7 times

Re: Modbus / TCP Error

Post by seokgi »

Is it possible to revert back to a component that worked fine for a while?

Steve-Matrix
Matrix Staff
Posts: 1517
Joined: Sat Dec 05, 2020 10:32 am
Has thanked: 212 times
Been thanked: 351 times

Re: Modbus / TCP Error

Post by Steve-Matrix »

seokgi wrote:
Mon Jul 17, 2023 1:34 pm
Is it possible to revert back to a component that worked fine for a while?
Yes, this is always possible. In the Library Updates screen there are 2 columns shown, "current revision" and "new revision", and the latter allows you to choose which version to download and use within Flowcode.. If you select "show up-to-date files" when you have your project open, it will show all applicable files in your project. You can tick the file and select an earlier version in the "new revision" dropdown, then click "download".

We do recommend you always use the latest versions of the files, but reverting to an earlier version while we investigate the problem can help you continue developing your project until we provide a fix.

seokgi
Posts: 210
Joined: Thu Dec 03, 2020 1:43 pm
Has thanked: 5 times
Been thanked: 7 times

Re: Modbus / TCP Error

Post by seokgi »

Can you tell me how to revert the modbus/tcp component to an older version?

Steve-Matrix
Matrix Staff
Posts: 1517
Joined: Sat Dec 05, 2020 10:32 am
Has thanked: 212 times
Been thanked: 351 times

Re: Modbus / TCP Error

Post by Steve-Matrix »

The instructions were in my previous message. An image may perhaps explain this better:
Update to earlier component version.png
Update to earlier component version.png (34.3 KiB) Viewed 4568 times

You will see that the ModbusMasterTCP component has two subcomponents and you may need to revert these to earlier versions as well (or instead).

seokgi
Posts: 210
Joined: Thu Dec 03, 2020 1:43 pm
Has thanked: 5 times
Been thanked: 7 times

Re: Modbus / TCP Error

Post by seokgi »

I tested by returning various versions of Network Comm, Modbus TCP, and W5500.
But it still doesn't work.

May I know a combination of versions that work well?
Can I get a simple example that is guaranteed to work?
I'm worried that several people will gather at the site tomorrow to test it, but it doesn't work.
Please help.
Thank you.

seokgi
Posts: 210
Joined: Thu Dec 03, 2020 1:43 pm
Has thanked: 5 times
Been thanked: 7 times

Re: Modbus / TCP Error

Post by seokgi »

Even if you keep trying, it won't work either.

I'm in such a hurry, please.

help.

thank you.

BenR
Matrix Staff
Posts: 1944
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 508 times
Been thanked: 690 times

Re: Modbus / TCP Error

Post by BenR »

Hello,

I've just been testing the Modbus TCP component with the W5500 module.

Here we have a combined master and slave program.

ModbusTCPTest.fcfx
(20 KiB) Downloaded 427 times

I've tried both master and slave in simulation and this is working well.

I've tried master on the PC and slave on the hardware and this is working well.

I've also tried master on the hardware and slave on the PC and this seems to have an issue so I'll investigate this for you.

BenR
Matrix Staff
Posts: 1944
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 508 times
Been thanked: 690 times

Re: Modbus / TCP Error

Post by BenR »

I've also tried master on the hardware and slave on the PC and this seems to have an issue so I'll investigate this for you.
Hopefully all fixed for you now via the latest library updates. Working well for me now anyway.

Post Reply