Thanks for the debugging tips! I was not aware of those commands.
I checked the XML file, the </master> object is closed at the second to last line, so i think that's ok.
Running "$ ethercat slave" I get:
0 0:0 PREOP + AKD EtherCAT Drive (CoE)
So this backs up that the drive appears to be remaining in the pre-op state that i saw in the HAL Meter.
Running "sudo dmesg -T" I get a load of text, i've filtered it to the ECat stuff:
ec_master: loading out-of-tree module taints kernel.
EtherCAT: Master driver 1.5.2 unknown
EtherCAT: 1 master waiting for devices.
ec_generic: EtherCAT master generic Ethernet device module 1.5.2 unknown
EtherCAT: Accepting 00:90:27:F0:09:41 as main device for master 0.
ec_generic: Binding socket to interface 3 (eth1).
EtherCAT 0: Starting EtherCAT-IDLE thread.
igb 0000:03:00.0 eth1: igb: eth1 NIC Link is Up 100 Mbps Full Duplex, Flow Control: RX
EtherCAT 0: Link state of ecm0 changed to UP.
EtherCAT 0: 1 slave(s) responding on main device.
EtherCAT 0: Slave states on main device: PREOP.
EtherCAT 0: Scanning bus.
EtherCAT 0: Bus scanning completed in 220 ms.
EtherCAT 0: Using slave main-0 as DC reference clock.
EtherCAT 0: Slave states on main device: INIT.
EtherCAT 0: Slave states on main device: PREOP.
Next, I open the LinuxCNC project and some new entries are appended:
EtherCAT: Requesting master 0...
EtherCAT: Successfully requested master 0.
EtherCAT 0: Domain0: Logical address 0x00000000, 12 byte, expected working counter 3.
EtherCAT 0: Datagram domain0-0-main: Logical offset 0x00000000, 12 byte, type LRW at ffff9d2359435798.
EtherCAT 0: Master thread exited.
EtherCAT 0: Starting EtherCAT-OP thread.
looks like there is some kind of init error - not sure what it's trying to tell me, except that the main thread exited for some reason.
Maybe related...
I was curious about some of those SDOs, in the examples, sometimes the subIdx="complete" and other times the sub index is specified (what i'm normally used to). I was wondering what the "complete" meant.
I also wasnt sure why all the examples use syncManager 2/3 and 0/1 are always empty.
Any other observations or ideas about why the main thread is exiting would be greatly appreciated!
Thanks again!
-Paul