![]() | |
| Home Page | Mark Forums Read | Today's Posts | My Replies | Classifieds | Reviews | Photo Gallery | Web Links | Share Files | Advertise With Us | Ad List |
| |||||||
| PIC Programing / Design Discuss programing of PIC chips here and design of electronics using PIC chips. |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
| ||||
| ||||
Rather than reinvent the wheel I am looking for a jumping off point to implement Modbus RTU in a Pic as a slave. Anyone done this or know of a source of example code? Al.
__________________ CNC, Mechatronics Integration and Machine Design. “Logic will get you from A to B. Imagination will take you everywhere.” Albert E. |
|
#2
| |||
| |||
| IMHO you will have to reinvent the wheel. Everybody talking about it, but nobody to explain it. I am looking for basic explanation too, but without success. Is it some kind of secret!? Everybody puts the link The Modbus Organization and say that is easy to understand. To me, it is not. I wish you luck to find explanation, or try to write your own protocol, its easiest way and you will know exactly what you done :-) Good luck! |
|
#3
| ||||
| ||||
| Working on it! I am very surprised by the lack of Pic/Modbus oriented projects out there? I found a few Pic related for I2c, SPI and MicroWire, Nothing on Modbus. The robot guys seem to be using I2c. I have an idea of the packet requirement, just have to work on the details. Thanks. Al.
__________________ CNC, Mechatronics Integration and Machine Design. “Logic will get you from A to B. Imagination will take you everywhere.” Albert E. |
|
#4
| |||
| |||
| Maybe this could help USB Modbus Interface - Field of Cows |
|
#5
| ||||
| ||||
| Thanks, I had seen that, it is just that the designer converts to descrete I/O and analogue control, I may be able to modify the code. Al.
__________________ CNC, Mechatronics Integration and Machine Design. “Logic will get you from A to B. Imagination will take you everywhere.” Albert E. |
| Sponsored Links |
|
#7
| ||||
| ||||
![]() Al.
__________________ CNC, Mechatronics Integration and Machine Design. “Logic will get you from A to B. Imagination will take you everywhere.” Albert E. |
|
#8
| |||
| |||
| Sorry Al, I just assumed they had one as it's a pretty standard comms protocol. Microchip have a good user forum, maybe if you ask there one of the official guys or one of the PIC users might be able to suggest a solution for you. sometimes it can be a bit slow getting help there but the quality of the help can be good. |
|
#9
| ||||
| ||||
| I am part of the way there adapting one of the PICMicro UART examples (AN774), it is a bit simplified in my case as I am only designing for master to one slave, RS422 and not multi-slave RS485. Al.
__________________ CNC, Mechatronics Integration and Machine Design. “Logic will get you from A to B. Imagination will take you everywhere.” Albert E. |
|
#10
| ||||
| ||||
| A quick search of the archive at www.piclist.com finds http://web.archive.org/web/201010300.../microchip.htm Which may be of help.
__________________ James hosts the single best wiki page about steppers for CNC hobbyists on the net: http://www.piclist.com/techref/io/steppers.htm Disagree? Tell him what's missing! ,o) |
| Sponsored Links |
|
#11
| ||||
| ||||
| Thanks, I think I have something figured out. Al.
__________________ CNC, Mechatronics Integration and Machine Design. “Logic will get you from A to B. Imagination will take you everywhere.” Albert E. |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| USB Modbus I/O Using PIC | rdhopkins | PIC Programing / Design | 7 | 05-02-2012 07:23 PM |
| Need Help!- MODBUS control of VFD | ninefinger | LinuxCNC (formerly EMC2) | 21 | 05-09-2011 08:19 PM |
| Modbus to run GS-2 drive? | mecheng10 | Mach Mill | 13 | 05-13-2009 08:59 PM |
| EMC2/Modbus......HELP! | pauldkeeton | LinuxCNC (formerly EMC2) | 5 | 02-18-2007 04:47 PM |
| modbus device | Drew | Machines running Mach Software | 14 | 02-11-2007 01:59 PM |