<html><head></head><body><div>Dear Barie,</div><div><br></div><div>You are using the master branch of the EtherCAT master. </div><div>This branch is actually under heavy delevolment and not stable.</div><div>Please use the stable-1.5 branch and retry again.</div><div><br></div><div>Also send the output off</div><div>- ip a</div><div>- ethercat ma</div><div>-ethercat sl</div><div><br></div><div><br></div><div>Best regards</div><div><br></div><div>Andreas</div><div><br></div><div>Am Donnerstag, dem 15.09.2022 um 16:57 +0200 schrieb Henrik Barie:</div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div>Dear Etherlab-Users and -Developers,<br></div><div><br></div><div>I am currently running Etherlab + Ethercat Master on an Ubuntu 22.04<br></div><div>Realtime Kernel and I am trying to make a Simulink-Model with Etherlab.<br></div><div>I have connected my Ethernet-Cable to the Input-Slot of a Beckhoff <br></div><div>EK1100 Module (which is connected to a 24V-Supply), which is connected <br></div><div>to a EL1104, a EL2004 and a EL3062 in this order. The Modules are all <br></div><div>functioning.<br></div><div><br></div><div>Ethercat-Master starts normally with "done", but when I check with the <br></div><div>status-command, it reads:<br></div><div><br></div><div>"Checking for EtherCAT master 1.6.0-rc1<br></div><div>Master0 dead"<br></div><div><br></div><div>when I "sudo dmesg", it reads:<br></div><div><br></div><div> 6328.324520] EtherCAT 0: Master thread exited.<br></div><div>[ 6328.324567] EtherCAT 0: Releasing main device 88:A4:C2:BF:73:10.<br></div><div>[ 6328.330301] ec_generic: Unloading.<br></div><div>[ 6328.344142] EtherCAT: Master module cleaned up.<br></div><div>[ 6330.384486] EtherCAT: Master driver 1.6.0-rc1 unknown<br></div><div>[ 6330.384592] EtherCAT: 1 master waiting for devices.<br></div><div>[ 6330.388784] ec_generic: EtherCAT master generic Ethernet device <br></div><div>module 1.6.0-rc1 unknown<br></div><div>[ 6330.388795] EtherCAT: Accepting 88:A4:C2:BF:73:10 as main device for <br></div><div>master 0.<br></div><div>[ 6330.388803] ec_generic: Binding socket to interface 2 (enp2s0).<br></div><div>[ 6330.394232] EtherCAT 0: Starting EtherCAT-IDLE thread.<br></div><div>[ 6330.394258] EtherCAT 0: Link state of ecm0 changed to UP.<br></div><div>[ 6330.396174] EtherCAT 0: 4 slave(s) responding on main device.<br></div><div>[ 6330.396176] EtherCAT 0: Slave states on main device: PREOP.<br></div><div>[ 6330.396577] EtherCAT 0: Scanning bus.<br></div><div>[ 6330.418169] EtherCAT WARNING 0: 1 datagram TIMED OUT!<br></div><div>[ 6330.749639] EtherCAT 0: Bus scanning completed in 353 ms.<br></div><div>[ 6330.749643] EtherCAT 0: Using slave 0 as DC reference clock.<br></div><div>[ 6330.749644] EtherCAT ERROR 0: Failed to calculate bus topology.<br></div><div>[ 6333.807667] EtherCAT WARNING 0-3: SDO information error response <br></div><div>while fetching SDO entry 0x1801:07!<br></div><div>[ 6333.807670] EtherCAT ERROR 0-3: SDO abort message 0x06090011: <br></div><div>"Subindex does not exist".<br></div><div>[ 6333.809834] EtherCAT WARNING 0-3: SDO information error response <br></div><div>while fetching SDO entry 0x1801:09!<br></div><div>[ 6333.809836] EtherCAT ERROR 0-3: SDO abort message 0x06090011: <br></div><div>"Subindex does not exist".<br></div><div>[ 6333.832147] EtherCAT WARNING 0-3: SDO information error response <br></div><div>while fetching SDO entry 0x1803:07!<br></div><div>[ 6333.832151] EtherCAT ERROR 0-3: SDO abort message 0x06090011: <br></div><div>"Subindex does not exist".<br></div><div>[ 6333.834317] EtherCAT WARNING 0-3: SDO information error response <br></div><div>while fetching SDO entry 0x1803:09!<br></div><div>[ 6333.834320] EtherCAT ERROR 0-3: SDO abort message 0x06090011: <br></div><div>"Subindex does not exist".<br></div><div>[ 6334.104025] EtherCAT ERROR 0-3: SDO information error response while <br></div><div>fetching SDO 0x0002!<br></div><div>[ 6334.104029] EtherCAT ERROR 0-3: SDO abort message 0x06020000: "This <br></div><div>object does not exist in the object directory".<br></div><div>[ 6385.210007] EtherCAT WARNING 0: 2 datagrams TIMED OUT!<br></div><div>[ 6385.210015] EtherCAT WARNING 0: 2 datagrams UNMATCHED!<br></div><div>[ 6386.259975] EtherCAT WARNING 0: 4 datagrams TIMED OUT!<br></div><div>[ 6386.259983] EtherCAT WARNING 0: 4 datagrams UNMATCHED!<br></div><div>[ 6389.903925] EtherCAT WARNING 0: 2 datagrams TIMED OUT!<br></div><div>[ 6389.903931] EtherCAT WARNING 0: 2 datagrams UNMATCHED!<br></div><div>[ 6389.910837] EtherCAT ERROR 0-0: Failed to receive AL state datagram: <br></div><div>Datagram timed out.<br></div><div>[ 6389.919832] EtherCAT 0: 0 slave(s) responding on main device.<br></div><div>[ 6389.987629] r8169 0000:02:00.0 enp2s0: Link is Down<br></div><div>[ 6389.987878] EtherCAT 0: Link state of ecm0 changed to DOWN.<br></div><div>[ 6391.798889] r8169 0000:02:00.0 enp2s0: Link is Up - 100Mbps/Full - <br></div><div>flow control off<br></div><div>[ 6391.801768] EtherCAT 0: Link state of ecm0 changed to UP.<br></div><div>[ 6391.804756] EtherCAT 0: 4 slave(s) responding on main device.<br></div><div>[ 6391.804760] EtherCAT 0: Slave states on main device: PREOP.<br></div><div>[ 6391.805393] EtherCAT 0: Scanning bus.<br></div><div>[ 6391.870721] EtherCAT WARNING 0: 39 datagrams TIMED OUT!<br></div><div>[ 6392.161527] EtherCAT 0: Bus scanning completed in 356 ms.<br></div><div>[ 6392.161530] EtherCAT 0: Using slave 0 as DC reference clock.<br></div><div>[ 6393.323800] EtherCAT WARNING 0: 2 datagrams TIMED OUT!<br></div><div><br></div><div>....<br></div><div><br></div><div>I dont know what these messages mean, and why Master0 is dead,<br></div><div>maybe you can help me with this problem.<br></div><div><br></div><div>The connection-slot of the ethercat-cable-Input of the EK1100 is <br></div><div>constantly blinking so some data transfer must be happening I guess.<br></div><div><br></div><div>Also I would like to know how to check the connected slaves with a <br></div><div>command, In the guide I followed it said I could use the commands<br></div><div><br></div><div>/opt/etherlab/bin/ethercat master<br></div><div>/opt/etherlab/bin/ethercat slaves ### IF CONNECTED<br></div><div><br></div><div>but the bin directory doesnt exist there.<br></div><div><br></div><div>I previously made these changes:<br></div><div><br></div><div>cd /lib/udev/rules.d/<br></div><div>sudo nano 99-EtherCAT.rules<br></div><div><br></div><div>wrote this line in this new file:<br></div><div><br></div><div>KERNEL=="EtherCAT[0-9]*", MODE="0660", GROUP="users"<br></div><div><br></div><div>and checked with<br></div><div><br></div><div>ls -l /dev/EtherCAT0<br></div><div><br></div><div>it read:<br></div><div><br></div><div>crw-rw---- 1 root users 507, 0 Sep 15 16:27 /dev/EtherCAT0<br></div><div><br></div><div>but I cant find a script to run where commands like "slaves" or "master" <br></div><div>are.<br></div><div><br></div><div>My Etherlab-Simulation is running, but it doesnt show any number of <br></div><div>corresponding slaves when I use the Master State-Block connected to a <br></div><div>display.<br></div><div><br></div><div>Greetings<br></div><div>Henrik<br></div><div><br></div><div><br></div><div><br></div></blockquote><div><br></div><div><span></span></div></body></html>