Hello?
Modbus not working on PIC24FJ512GA606.
Doesn't work after update. The same program works fine on PIC18F45K40.
Help me Please.
Thank you.
Modbus not working on PIC24FJ512GA606.
-
- Posts: 206
- http://meble-kuchenne.info.pl
- Joined: Thu Dec 03, 2020 1:43 pm
- Has thanked: 5 times
- Been thanked: 7 times
-
- Matrix Staff
- Posts: 1926
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 503 times
- Been thanked: 686 times
Re: Modbus not working on PIC24FJ512GA606.
Hello,
Plase can you post your project file. Also have you done a one second flasher test to confirm the device is running at the rate you think it is.
Plase can you post your project file. Also have you done a one second flasher test to confirm the device is running at the rate you think it is.
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 not working on PIC24FJ512GA606.
Uart is well.
- Attachments
-
- v0.2_Sensor_Amp_Post.fcfx
- (63.76 KiB) Downloaded 491 times
Re: Modbus not working on PIC24FJ512GA606.
If I take the MAX485 chip off the PIC18F45K40 which works fine and put it on the PIC24FJ512GA606 board it doesn't work. Again, if I take the MAX485 chip off the PIC24FJ512GA606 and attach it to the PIC18f45K40, it works fine.
-
- Matrix Staff
- Posts: 1926
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 503 times
- Been thanked: 686 times
Re: Modbus not working on PIC24FJ512GA606.
Is the voltage difference having an effect? does the Max chip work at 3v3?
Do you have anything you can use to look at the signals either side of the max chip, this is a useful low cost analyser if you don't currently have anything.
https://www.amazon.co.uk/gp/product/B08 ... XLJG&psc=1
Do you have anything you can use to look at the signals either side of the max chip, this is a useful low cost analyser if you don't currently have anything.
https://www.amazon.co.uk/gp/product/B08 ... XLJG&psc=1
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 not working on PIC24FJ512GA606.
Hi,
When I was developing my Modbus on ESP32 I used one of these https://www.ebay.co.uk/itm/195143159538 ... L7EALw_wcB
and the Modbus master / slave from here https://www.simplymodbus.ca/RTUmaster.htm
Bob
When I was developing my Modbus on ESP32 I used one of these https://www.ebay.co.uk/itm/195143159538 ... L7EALw_wcB
and the Modbus master / slave from here https://www.simplymodbus.ca/RTUmaster.htm
Bob
Re: Modbus not working on PIC24FJ512GA606.
Thank you.
I have the equipment you mentioned.
I tested it with an oscilloscope and the equipment you mentioned.
I tested both 3.3v and 5v voltages.
I tested two chips, MAX485 and MAX13487.
And the software used MODBUS POLL.
BUS Type RS-232 works fine.
But RS-485 doesn't work.
Thank you for your interest.
I have the equipment you mentioned.
I tested it with an oscilloscope and the equipment you mentioned.
I tested both 3.3v and 5v voltages.
I tested two chips, MAX485 and MAX13487.
And the software used MODBUS POLL.
BUS Type RS-232 works fine.
But RS-485 doesn't work.
Thank you for your interest.
-
- Matrix Staff
- Posts: 1926
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 503 times
- Been thanked: 686 times
Re: Modbus not working on PIC24FJ512GA606.
Hello,
Are you powering the MAX485 IC from a 5V source, looking at the datasheet it needs 5V for RS485 to function correctly.
Are you powering the MAX485 IC from a 5V source, looking at the datasheet it needs 5V for RS485 to function correctly.
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