Linuxcnc and Profibus

More
4 years 2 months ago #250324 by andypugh
Replied by andypugh on topic Linuxcnc and Profibus

Next step is to use an ft2232h with an proper rs485 converter to get so 12mbit. I know its over usb and pyprofibus is not realtime due to userspace, but for adding more profibus slaves baudrate cant be high enough. A real bummer would be to implement profibus to the uart of a mesa card, but my capabilities in this direction are really limited.
It shouldn't be that much harder than what you have already done, I don't think. 

What code are you using to build the packets? 

Please Log in or Create an account to join the conversation.

More
3 years 10 months ago #259876 by endian
Replied by endian on topic Linuxcnc and Profibus
hello gentelmen, is this thread still alive? 

very interesting reading and great job. I think when you want industial standard interface(widly used in global scale) it is great beginning spot. It is possible to configure siemens PLC stuff with I/Q and safety other features.

Is it possible to connect more slave on this stuff or have anybody any working example of that please?

Regards slav

Please Log in or Create an account to join the conversation.

More
3 years 10 months ago #259881 by Aciera
Replied by Aciera on topic Linuxcnc and Profibus

Is it possible to connect more slave on this stuff or have anybody any working example of that please?

In the example configuration in the zipped folder the file 'pyprofibus.conf' contains a single configuration for 'SLAVE_0'.  I presume one could configure more (ie SLAVE_1 ....) but I have not tried that.
Note that this is a python implementation and as such is running in 'userspace' (ie non real time) which is fine for a lot of signals. If one would want to use linuxcnc with profibus for time critical applications then a profibus stack in C (or C++ I guess) would have to be written and a real time capable hardware serial port as mentioned above.
The following user(s) said Thank You: endian

Please Log in or Create an account to join the conversation.

More
3 years 10 months ago #259882 by Aciera
Replied by Aciera on topic Linuxcnc and Profibus
Writing a profibus driver for linuxcnc is way beyond my capabilities but the python source code for the profibus stack can be found in the 'pyprofibus' folder in the zipped up config or on the authors github page linked in the original post.

Please Log in or Create an account to join the conversation.

More
3 years 10 months ago #259883 by blauerklappstuhl
Yes, you can use multiple slaves. I have currently a wago 750 and a festo cp coupler with one valve Island and one input module and one output module running. Setting usb latency to 0 speeded up eveything.
The following user(s) said Thank You: Aciera, endian

Please Log in or Create an account to join the conversation.

More
3 years 10 months ago #259887 by endian
Replied by endian on topic Linuxcnc and Profibus
profibus or anybus and realtime are pain at all... for real time we have done ethercat with DC

I think in many applications it should be great like pneumatic terminal, some decentralized sensor boxes etc... there it is posibility to run siemens PLC over native comunication protocol.. what should be cool 

should you share most important stuff from your working configuration please? 

Please Log in or Create an account to join the conversation.

Time to create page: 0.070 seconds
Powered by Kunena Forum