Page 1 of 2

Modbus / TCP Error

Posted: Mon Jul 17, 2023 12:41 pm
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.

Re: Modbus / TCP Error

Posted: Mon Jul 17, 2023 12:59 pm
by seokgi
Ping is work well

Re: Modbus / TCP Error

Posted: Mon Jul 17, 2023 1:34 pm
by seokgi
Is it possible to revert back to a component that worked fine for a while?

Re: Modbus / TCP Error

Posted: Mon Jul 17, 2023 3:31 pm
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.

Re: Modbus / TCP Error

Posted: Mon Jul 17, 2023 3:58 pm
by seokgi
Can you tell me how to revert the modbus/tcp component to an older version?

Re: Modbus / TCP Error

Posted: Mon Jul 17, 2023 4:37 pm
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 4708 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).

Re: Modbus / TCP Error

Posted: Tue Jul 18, 2023 6:47 am
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.

Re: Modbus / TCP Error

Posted: Tue Jul 18, 2023 2:30 pm
by seokgi
Even if you keep trying, it won't work either.

I'm in such a hurry, please.

help.

thank you.

Re: Modbus / TCP Error

Posted: Tue Jul 18, 2023 3:36 pm
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 436 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.

Re: Modbus / TCP Error

Posted: Tue Jul 18, 2023 4:11 pm
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.