machinekit / machinekit-hal

Universal framework for machine control based on Hardware Abstraction Layer principle
https://www.machinekit.io
Other
108 stars 62 forks source link

lacking support for field bus devices #128

Open ArcEye opened 6 years ago

ArcEye commented 6 years ago

Issue by mhaberler Sat Apr 25 06:46:42 2015 Originally opened as https://github.com/machinekit/machinekit/issues/586


Device control in automation has moved towards digital bus systems, and away from legacy interfaces like 0-10 Volt or 4-20mA. This development is not reflected in Machinekit with a few exceptions.

The exceptions are: a few Modbus drivers, and the hostmot2 driver has an Ethernet flavor which works over a Mesanet--specific message encoding.

There is no support at all for fieldbus devices using CANopen, and no integrated support for RT Ethernet protocols like EtherCAT or Powerlink.

Besides being unable to connect a huge range of stock devices to machinekit, this has given rise to ad-hoc interfacing methods like this one: http://emergent.unpythonic.net/01198594294 with the associated reinvention of features: protocol, message encoding, device control, error checking, user interfaces - plus the downside of a point-to-point connection topology.

Many embedded devices in use support CAN (for instance stock with the TI Sitara processor used by the beaglebone, and the zedboard via its FPGA), which is a very cheap and effective method to hook up both for stock industrial devices, and homebrew controllers like the one mentioned above. Those could be CANopen masters, as well as slaves. Moreover, many embedded devices can cheaply hooked up to CANbus (eg http://www.logicsupply.com/eu-en/cbb-serial/, https://www.sparkfun.com/products/10039, http://elinux.org/RPi_CANBus).

What is missing with respect to CANbus is IMO:

With respect to realtime Ethernet:

These two topics are somewhat related insofar as the standard encoding of message objects is based upon CANopen.

ArcEye commented 6 years ago

Comment by jpmoniz Tue May 12 01:29:12 2015


@mhaberler

Shall I open up a separate issue for EtherCat? Just for tracking purposes.

ArcEye commented 6 years ago

Comment by mhaberler Tue May 12 03:50:46 2015


@jpmoniz - sounds like a good idea - maybe start from the 'EtherCAT integration missing' angle?