Page 4 of 5

Re: Modbus TCP Slave

Posted: Mon Apr 22, 2024 11:51 am
by BenR
Hello,

In your project options please can you turn off the Auto clear watchdog setting. The watchdog isn't running so these are a load of instructions that aren't required.

Also I would highly recommend disabling the Low Voltage Programming setting unless you are specifically using it. This can cause a stack of issues. e.g. freezing, self erase etc.

If these don't help then you could also try running the chip at a lower frequency and see if that resolves the problem. As a test maybe try 16MHz - OSCFRQ = 0x05; Remember to also update the frequency in the project options.

Re: Modbus TCP Slave

Posted: Mon Apr 22, 2024 12:24 pm
by seokgi
I will try it tomorrow morning .
Thank you

Re: Modbus TCP Slave

Posted: Tue Apr 23, 2024 3:28 am
by seokgi
I adjusted the options as you instructed.
I tried changing the clock in various ways.
However, the result is as above. It doesn't work.

Re: Modbus TCP Slave

Posted: Fri Apr 26, 2024 5:24 am
by seokgi
When will it be fixed?

Re: Modbus TCP Slave

Posted: Fri May 10, 2024 2:51 am
by seokgi
I tested various PIC MCUs, but not all of them work.

I don't think this is my fault.

Please fix it quickly.

Thank you.

Re: Modbus TCP Slave

Posted: Mon May 27, 2024 9:19 am
by seokgi
ModbusTCP Slave still does not work.
Please help me.
Thank you.

Re: Modbus TCP Slave

Posted: Tue May 28, 2024 8:18 am
by seokgi
problem

Modbus Master: FC10 Simulator, Modbus Poll
Modbus slave: PIC18F67K40, PIC24FJ512GA606

1. When retrieving data, up to 8 data are operated stably in FC10, and only 1 data is operated stably in Modbus Poll.
More than 10 will not work.
2. When importing data, the return value is
Occasionally repeats 0,1. (FC10)
Repeat read error, write error. (Modbus Poll)
If 255 is returned, the slave device is hung up. After resetting the slave device, it restarts successfully.
Sometimes I get 255 and it works fine after a while.
Sometimes it stops after about 10 minutes.

Even if I test the above by changing various options, I get the same results.

Please Help me!
Thank you.

Re: Modbus TCP Slave

Posted: Fri Sep 20, 2024 9:24 am
by seokgi
It still doesn't work.
Of course, the FC10 program you sent me sometimes loads data.
However, many other programs can't load data via Modbus TCP. The port scan program doesn't recognize port 502 either.
I tried hard for many days but failed.
I think the library of fC10 is wrong.
If it can't load from various programs, isn't it the problem of FC10?

Or please read it from another program and reply.

Please.
Thank you.

Re: Modbus TCP Slave

Posted: Fri Sep 20, 2024 11:51 am
by BenR
Hello,

Please can you post your latest project file and I'll do what I can to try and replicate the issue.

Re: Modbus TCP Slave

Posted: Fri Sep 20, 2024 1:31 pm
by seokgi
Thank you for your interest
I'm posting my last project here.
For reference, I tried using ModbusTCP Master, but it doesn't communicate.

When I reset, port 502 is searched for a while, but after a few seconds, it is not searched.

Thank you.