linuxcnc-ethercat

Driver for Beckhoff EL7041 Stepper Controllers

The lcec_el7041 driver supports Bekchoff’s EL7041 EtherCAT stepper driver as well as a couple close relatives. There is also a lcec_el70x1 driver that overlaps somewhat. These two drivers will probably be unified in the near future.

How to configure an EL7041 in LinuxCNC-Ethercat

To use an EL7041, you will need to add a line to your ethercat.xml file to tell LinuxCNC about the module. This should look like this:

<masters>
  <master idx="0" appTimePeriod="1000000" refClockSyncCycles="1000">
    ...

    <slave idx="5" type="EL7041" name="X"/>

    ...
  </master>
</masters>

The index number (5, above) needs to match the slave ID of your EL7041; run ethercat slaves if you don’t know its ID. The name provided (X here) has no special meaning, but it’s used in your LinuxCNC hal config to refer to the stepper, so it’s generally a good practice to use the name of whichever axis this stepper controls.

In addition, the EL7041 has a number of configuration settings that can be controlled via the XML file. See Beckhoff’s PDF documentation for the EL70x1 family for more in-depth information about each setting.

You can control these by adding <modParam> settings under the EL7041’s <slave> entry:

<masters>
  <master idx="0" appTimePeriod="1000000" refClockSyncCycles="1000">
    ...

    <slave idx="5" type="EL7041" name="X">
	  <modParam name="maxCurrent" value="2.5"/>
	  <modParam name="nominalVoltage" value="48"/>
	</slave>

    ...
  </master>
</masters>

Notice that instead of <slave ... />, we now have <slave ... > ... </slave>, without the trailing / on the first <slave/> tag.

Each <modParam/> line has a name="..." and a value="..." setting.

Supported parameters:

Note that not all hardware will support all of these parameters. Attempting to set a parameter that the hardware does not support will cause LinuxCNC to fail to start and report an error message. Check ethercat sdos to see which SDOs your hardware supports.

How to file a bug

See gitub.com/linuxcnc-ethercat/linuxcnc-ethercat for view existing bugs and file new issues.