Modbus TCP Slave

For general Flowcode discussion that does not belong in the other sections.
BenR
Matrix Staff
Posts: 1769
http://meble-kuchenne.info.pl
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 450 times
Been thanked: 611 times

Re: Modbus TCP Slave

Post 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.

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

Re: Modbus TCP Slave

Post by seokgi »

I will try it tomorrow morning .
Thank you

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

Re: Modbus TCP Slave

Post 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.

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

Re: Modbus TCP Slave

Post by seokgi »

When will it be fixed?

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

Re: Modbus TCP Slave

Post 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.

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

Re: Modbus TCP Slave

Post by seokgi »

ModbusTCP Slave still does not work.
Please help me.
Thank you.

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

Re: Modbus TCP Slave

Post 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.

Post Reply