<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:"MS Gothic";
panose-1:2 11 6 9 7 2 5 8 2 4;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:"\@MS Gothic";
panose-1:2 11 6 9 7 2 5 8 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
{mso-style-name:msonormal;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman",serif;}
span.EmailStyle18
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-NZ link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US'>If it’s still showing it, then the MAC address is wrong or you have specified the wrong driver. If you’re using a VM then you probably need to use the generic driver; it’s not going to work very well (since VMs can’t give stable realtime performance) but you might be able to get away with it using a longer cycle interval.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US'>CoE in itself is an EtherCAT protocol that strongly resembles but is not identical to CANopen. By itself it can only communicate to EtherCAT slaves. It is however possible to use a CANopen gateway slave device (eg. Beckhoff EL6751) that will let you indirectly connect CANopen slaves to an EtherCAT network.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US'>It sounds like you need to read some background documentation on EtherCAT in general before trying to use this library.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US'><o:p> </o:p></span></p><div style='border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt'><div><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri",sans-serif'>From:</span></b><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri",sans-serif'> </span><span style='font-size:11.0pt;font-family:"MS Gothic"'>許凱揚</span><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri",sans-serif'> [mailto:naruto60509@gmail.com] <br><b>Sent:</b> Wednesday, 19 April 2017 14:03<br><b>To:</b> Gavin Lambert <gavinl@compacsort.com><br><b>Subject:</b> Re: [etherlab-users] Master0 dead<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><div><div><div><div><div><div><p class=MsoNormal style='margin-bottom:12.0pt'>Hi,Gavin<o:p></o:p></p></div><p class=MsoNormal style='margin-bottom:12.0pt'>But I had check my configuration file, it's still show this message.<o:p></o:p></p></div><div><p class=MsoNormal>Maybe it because I use VirtualBox?<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><p class=MsoNormal style='margin-bottom:12.0pt'>And I want to ask more question about Canopen Over EtherCAT<o:p></o:p></p></div><p class=MsoNormal style='margin-bottom:12.0pt'>Does COE means that we can use the EtherCAT master link to Canopen slave to send the instruction?<o:p></o:p></p></div><p class=MsoNormal style='margin-bottom:12.0pt'>Thanks a lot<o:p></o:p></p></div><p class=MsoNormal>Best regard -Young<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal>2017-04-19 7:37 GMT+08:00 Gavin Lambert <<a href="mailto:gavinl@compacsort.com" target="_blank">gavinl@compacsort.com</a>>:<o:p></o:p></p><blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm'><p class=MsoNormal>The "waiting for devices" state means that no network devices are available for EtherCAT yet.<br><br>You need to check your configuration file (if you're using SysV /etc/init.d/ethercat then the file is /etc/sysconfig/ethercat; if you're using SystemD ethercat.service then the file is /etc/ethercat.conf). You need to define both the driver module to use (which one depends on what network interface you have) and also define the MAC addresses of each interface that should be used for EtherCAT communication.<o:p></o:p></p><div><div><p class=MsoNormal style='margin-bottom:12.0pt'><br>> -----Original Message-----<br>> From: etherlab-users [mailto:<a href="mailto:etherlab-users-bounces@etherlab.org">etherlab-users-bounces@etherlab.org</a>] On<br>> Behalf Of ???<br>> Sent: Wednesday, 19 April 2017 08:42<br>> To: <a href="mailto:etherlab-users@etherlab.org">etherlab-users@etherlab.org</a><br>> Subject: [etherlab-users] Master0 dead<br>><br>> Hi<br>><br>> I'm learning how to use ethercat<br>><br>> When I start ethcat and want to see the status I get the message below:<br>><br>> <a href="mailto:hsu@hsu-desktop:~/ethercat-1.5.2/examples/dc_user$">hsu@hsu-desktop:~/ethercat-1.5.2/examples/dc_user$</a> sudo<br>> /etc/init.d/ethercat start<br>> /etc/sysconfig/ethercat: 1:<br>> ------------------------------------------------------------------------------:<br>> not found<br>> Starting EtherCAT master 1.5.2 WARNING: All config files need .conf:<br>> /etc/modprobe.d/emc2, it will be ignored in a future release.<br>> WARNING: All config files need .conf: /etc/modprobe.d/emc2, it will be<br>> ignored in a future release.<br>> done<br>><br>> <a href="mailto:hsu@hsu-desktop:~/ethercat-1.5.2/examples/dc_user$">hsu@hsu-desktop:~/ethercat-1.5.2/examples/dc_user$</a> sudo<br>> /etc/init.d/ethercat status<br>> /etc/sysconfig/ethercat: 1:<br>> ------------------------------------------------------------------------------:<br>> not found<br>> Checking for EtherCAT master 1.5.2<br>> Master0 dead<br>><br>> More information:<br>><br>> <a href="mailto:hsu@hsu-desktop:~/ethercat-1.5.2/examples/dc_user$">hsu@hsu-desktop:~/ethercat-1.5.2/examples/dc_user$</a> ethercat master<br>> Master0<br>> Phase: Waiting for device(s)...<br>> Active: no<br>> Slaves: 0<br>> Ethernet devices:<br>> Main: c8:9c:dc:a2:6f:56 (waiting...)<br>> Link: DOWN<br>> Tx frames: 0<br>> Tx bytes: 0<br>> Rx frames: 0<br>> Rx bytes: 0<br>> Tx errors: 0<br>> Tx frame rate [1/s]: 0 0 0<br>> Tx rate [KByte/s]: 0.0 0.0 0.0<br>> Rx frame rate [1/s]: 0 0 0<br>> Rx rate [KByte/s]: 0.0 0.0 0.0<br>> Common:<br>> Tx frames: 0<br>> Tx bytes: 0<br>> Rx frames: 0<br>> Rx bytes: 0<br>> Lost frames: 0<br>> Tx frame rate [1/s]: 0 0 0<br>> Tx rate [KByte/s]: 0.0 0.0 0.0<br>> Rx frame rate [1/s]: 132 48370 397<br>> Rx rate [KByte/s]: 7206.4 0.0 320.8<br>> Loss rate [1/s]: 0 0 0<br>> Frame loss [%]: 0.0 0.0 0.0<br>> Distributed clocks:<br>> Reference clock: None<br>> Application time: 0<br>> 2000-01-01 00:00:00.000000000<br>><br>> the dmesg<br>> [ 16.042793] ADDRCONF(NETDEV_UP): eth0: link is not ready<br>> [ 16.043339] e1000: eth0 NIC Link is Up 1000 Mbps Full Duplex, Flow<br>> Control: RX<br>> [ 16.055960] ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready<br>> [ 16.681028] EtherCAT: Master driver 1.5.2 2eff7c993a63<br>> [ 16.682397] EtherCAT: 1 master waiting for devices.<br>> [ 16.974627] ec_8139too EtherCAT-capable Fast Ethernet driver<br>> 0.9.28, master 1.5.2 2eff7c993a63<br>> [ 17.158937] ppdev: user-space parallel port driver<br>> [ 22.547621] ISO 9660 Extensions: Microsoft Joliet Level 3<br>> [ 22.549474] ISO 9660 Extensions: RRIP_1991A<br>> [ 26.353652] eth0: no IPv6 routers present<br>> [44214.675801] EtherCAT: Master module cleaned up.<br>> [44215.708167] 8139too Fast Ethernet driver 0.9.28 [44216.736945] EtherCAT:<br>> Master driver 1.5.2 2eff7c993a63 [44216.738867] EtherCAT: 1 master waiting<br>> for devices.<br>> [44216.758327] ec_8139too EtherCAT-capable Fast Ethernet driver 0.9.28,<br>> master 1.5.2 2eff7c993a63 [44278.309710] EtherCAT: Requesting master 0...<br>> [44278.309712] EtherCAT ERROR 0: Master still waiting for devices!<br>> [46256.569165] EtherCAT: Requesting master 0...<br>> [46256.569175] EtherCAT ERROR 0: Master still waiting for devices!<br>><br>><br>> I use VirtualBox and use linuxCNC(10.04) download at<br>> <a href="http://www.linuxcnc.org/iso/ubuntu-10.04-linuxcnc3-i386.iso" target="_blank">http://www.linuxcnc.org/iso/ubuntu-10.04-linuxcnc3-i386.iso</a><br>><br>> the module is 8139too<br>><br>><br>> Could you can help me to solve this question?<br>><br>> Thanks!<br>><br>> Best regards -Young<br><br><o:p></o:p></p></div></div></blockquote></div><p class=MsoNormal><o:p> </o:p></p></div></div></div></body></html>