[etherlab-users] Etherlab example mini module

Philipp Monden p.monden at gmail.com
Wed Jul 11 14:35:23 CEST 2007


Hi,

I tried to run "make" in /examples/mini which tells me:

*** Warning: "ecrt_master_create_domain"
[/opt/etherlab/src/ethercat-1.2.0/examp
les/mini/ec_mini.ko] undefined!

... and all other ecrt_X functions are not found as well. Is that normal?
insmod fails with

"-1 Operation not permitted".

with the following syslog messages:
Jul 11 13:16:50 dancer EtherCAT: Link state changed to UP.
Jul 11 13:16:50 dancer EtherCAT: 1 slave responding.
Jul 11 13:16:50 dancer EtherCAT: Scanning bus.
Jul 11 13:17:13 dancer === Starting Minimal EtherCAT environment... ===
Jul 11 13:17:13 dancer EtherCAT: Requesting master 0...
Jul 11 13:17:13 dancer EtherCAT: Master thread exited.

..nothing happens until I disconnect the slave..

Jul 11 13:17:35 dancer EtherCAT: Link state changed to DOWN.
Jul 11 13:17:35 dancer EtherCAT WARNING: 1 datagram TIMED OUT!
Jul 11 13:17:35 dancer EtherCAT ERROR: Failed to receive SII read
datagram from slave 0.
Jul 11 13:17:35 dancer EtherCAT ERROR: Failed to read EEPROM size of slave 0.
Jul 11 13:17:35 dancer EtherCAT: Bus scanning completed.
Jul 11 13:17:35 dancer EtherCAT: Successfully requested master 0.
Jul 11 13:17:35 dancer Registering domain...
Jul 11 13:17:35 dancer Registering PDOs...
Jul 11 13:17:35 dancer EtherCAT ERROR: Slave 0 does not provide PDO 0x0000:1.
Jul 11 13:17:35 dancer PDO registration failed!
Jul 11 13:17:35 dancer EtherCAT: Releasing master 0...

I am not sure how to find out the PDO index and subindex, it is not
listed in /sys/ethercat0/slave000/*, I also cannot find it in the
slave documentation.

Is it possible that non-Beckhoff slaves are not compatible with
Etherlab at all? do I just have to find the correct PDO index? or is
something else wrong?

I am using a chip called netX from hilscher (www.hilscher.com). It is
working correctly when I connect it to a TwinCAT Master (the EtherCAT
software from Beckhoff).

Thanks for any help,
Philipp Monden



More information about the Etherlab-users mailing list