Networking, Protocols, and Devices
Topic: Arduino porofibus
(Read 391 times)
Aug 20, 2019, 10:55 pm
: Aug 20, 2019, 11:00 pm by Tady
I have been searching for a Profibus slave Arduino device for a while now. And there is absolutely nothing out there...
I did come across this thread (in German) that some guys over there made a woking example. But it runs on a MSP430F2252
Anyway I decided to adapt the program to run on a Arduino and it works on a Mega2560 it can easily be adapted to other MCUs but that is up to you
I decided to share this because there is nothing useful out there and I really hope this can help someone..
All of the description is in the .h file and the GSD file is also itn the zip.
I am not an expert on the Profibus protocol so I can't help you with that but you can find alot of info on the link I provided above (google translate is your friend
I ported the code for a friend who is an expert with Siemens devices so he was the one setting up the PLC.
The speeds are low ( again see the .h file) but it works for hobby and home projects
We got it working to 45.45K baud and I think that is enough. If you want to go above that you would probably need a faster MCU (Teensy?)
Anyway hope I helped someone
Please leave a comment if you got it working
EDIT: It was tested on an S7-315
downloaded 133 times