- Posts: 4
- Thank you received: 0
Ethercat HAL driver
- nursum
- Offline
- New Member
-
I plan to fit my milling machine with Ethercat controlled drives (actually +/- 10V). All hardware is still here but the time is the problem!
Do you have scills about the mapping of the SDO and PDO objects with Ethercat and here especialy with the drives? You have to go very deep in the CAN over Ethercat protocol.....
Ingo (Germany)
- sascha
- Offline
- New Member
-
- Posts: 16
- Thank you received: 29
it supports DC for any device that supports DCs. Please find here an example for a machine with stoeber servo inverters:
First you need too tell the master to sync its clock to the slaves:
Then you can configure the sync for each device:
What kind of inverter do you plan to use? You can use the generic driver to interface that device (please see one of my earlier posts for an example), but real fun will appear if you build an native driver module for a particular inverter that do all the dirty work like scaling, reading SDOs on initialization and exporting pins with the domain specific data types. The lcec_stmds5k.c or lcec_el7342.c might be good starting points for that (stmds5k is the stoeber inverter and el7342 a dc motor driver with encoder fedback).
Regards
Sascha
- roschi
- Offline
- Senior Member
-
- Posts: 40
- Thank you received: 29
I used the "generic" EtherCat driver from Sascha Ittner for Bosch Rexroth Indradrives.
I've added a parameter to the XML file in the generic slave entry which does a simple scaling (meens also adjusting some code from Sascha Ittner). Nothing else was changed in the generic driver. All other settings can be made directly in the drive.
See Post
or
video from setup on youtube
- Coyote
- Offline
- New Member
-
- Posts: 15
- Thank you received: 0
I would ask some few things:
1. Sascha did a driver that has also a generic that you can modify and save for use with new hardware. This is comlicated for somebody that has no experience in doing that (like me). Is it possible that someday, somebody will write a parser from configuration XML files to EMC2? On Beckhoff site you can dowload the entire product line with XML conf files, except AX5xxx servos. It wouldn't be simpler to copy directory (or xml files from other hw makers) to emc2 directory and simply selecting them - I know that isn't easy and what we do have now is quite good, but...
2. I downloaded servo AX5xxx conf files in XML format, all I have seen is that servo drives series 5000 from Beckhoff use Sercos over Ethercat (SoE), will be possible in future to implemet also SoE devices?
3. Is it possible to have a quick tutorial how to make a driver from Sascha's generic one, if you get an XML file with PDOs ?
Anyway thank you for the contribution (Sascha, Etherlab) you already did, it changed emc2 from hobby to professional.
- andypugh
- Offline
- Moderator
-
- Posts: 19899
- Thank you received: 4655
Coyote wrote: 1. Sascha did a driver that has also a generic that you can modify and save for use with new hardware. This is comlicated for somebody that has no experience in doing that (like me). Is it possible that someday, somebody will write a parser from configuration XML files to EMC2?
We aren't allowed to use the four characters "EMC2" any more, we have had to rebrand everything as "LinuxCNC".
Anyway, as far as I can see, the config files for the LinuxCNC Ethercat driver are XML files. It may be that the ones you can download will just work.
- roschi
- Offline
- Senior Member
-
- Posts: 40
- Thank you received: 29
I think we are not that far away from that. See the tutorial.Coyote wrote: 1. Sascha did a driver that has also a generic that you can modify and save for use with new hardware. This is comlicated for somebody that has no experience in doing that (like me). Is it possible that someday, somebody will write a parser from configuration XML files to EMC2? On Beckhoff site you can dowload the entire product line with XML conf files, except AX5xxx servos. It wouldn't be simpler to copy directory (or xml files from other hw makers) to emc2 directory and simply selecting them - I know that isn't easy and what we do have now is quite good, but...
.
Coyote wrote: 2. I downloaded servo AX5xxx conf files in XML format, all I have seen is that servo drives series 5000 from Beckhoff use Sercos over Ethercat (SoE), will be possible in future to implemet also SoE devices?
The configuration of drives with SoE is not (yet) possible with the HAL-Driver for EtherCAT. Therefore you have to build a state machine within the init phase of the HAL-driver itself. That’s because some of the IDN’s can only be written in Bus-INIT Phase and some should be written to the drive in the Bus-PreOP Phase. (The tool EtherCAT Configurator from Beckhoff, free download does this). Because you have to do this only once, from my point of view there is no great need to implement in the HAL-Driver SoE support in a general way for different Bus-Phases. It is 'nice to have'.
Coyote wrote: 3. Is it possible to have a quick tutorial how to make a driver from Sascha's generic one, if you get an XML file with PDOs ?
I have written a little tutorial that work for the IndraDrive Cs from Bosch Rexroth. If you plan to do the scaling in the HAL-Setup you can use the generic driver as it is without programming. (Just position command, position feedback and enable inverter) I think it should work also for Beckhoff, AMK, LTI drives because the Content of the XML files from manufacturer is standarized
Tutorial on Google Docs
Please feel free to comment directly in the document or correct my english.
Best Regards Andreas