[etherlab-users] Master0 dead
Gavin Lambert
gavinl at compacsort.com
Wed Apr 19 04:40:20 CEST 2017
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.
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.
It sounds like you need to read some background documentation on EtherCAT in general before trying to use this library.
From: 許凱揚 [mailto:naruto60509 at gmail.com]
Sent: Wednesday, 19 April 2017 14:03
To: Gavin Lambert <gavinl at compacsort.com>
Subject: Re: [etherlab-users] Master0 dead
Hi,Gavin
But I had check my configuration file, it's still show this message.
Maybe it because I use VirtualBox?
And I want to ask more question about Canopen Over EtherCAT
Does COE means that we can use the EtherCAT master link to Canopen slave to send the instruction?
Thanks a lot
Best regard -Young
2017-04-19 7:37 GMT+08:00 Gavin Lambert <gavinl at compacsort.com <mailto:gavinl at compacsort.com> >:
The "waiting for devices" state means that no network devices are available for EtherCAT yet.
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.
> -----Original Message-----
> From: etherlab-users [mailto:etherlab-users-bounces at etherlab.org <mailto:etherlab-users-bounces at etherlab.org> ] On
> Behalf Of ???
> Sent: Wednesday, 19 April 2017 08:42
> To: etherlab-users at etherlab.org <mailto:etherlab-users at etherlab.org>
> Subject: [etherlab-users] Master0 dead
>
> Hi
>
> I'm learning how to use ethercat
>
> When I start ethcat and want to see the status I get the message below:
>
> hsu at hsu-desktop:~/ethercat-1.5.2/examples/dc_user$ <mailto:hsu at hsu-desktop:~/ethercat-1.5.2/examples/dc_user$> sudo
> /etc/init.d/ethercat start
> /etc/sysconfig/ethercat: 1:
> ------------------------------------------------------------------------------:
> not found
> Starting EtherCAT master 1.5.2 WARNING: All config files need .conf:
> /etc/modprobe.d/emc2, it will be ignored in a future release.
> WARNING: All config files need .conf: /etc/modprobe.d/emc2, it will be
> ignored in a future release.
> done
>
> hsu at hsu-desktop:~/ethercat-1.5.2/examples/dc_user$ <mailto:hsu at hsu-desktop:~/ethercat-1.5.2/examples/dc_user$> sudo
> /etc/init.d/ethercat status
> /etc/sysconfig/ethercat: 1:
> ------------------------------------------------------------------------------:
> not found
> Checking for EtherCAT master 1.5.2
> Master0 dead
>
> More information:
>
> hsu at hsu-desktop:~/ethercat-1.5.2/examples/dc_user$ <mailto:hsu at hsu-desktop:~/ethercat-1.5.2/examples/dc_user$> ethercat master
> Master0
> Phase: Waiting for device(s)...
> Active: no
> Slaves: 0
> Ethernet devices:
> Main: c8:9c:dc:a2:6f:56 (waiting...)
> Link: DOWN
> Tx frames: 0
> Tx bytes: 0
> Rx frames: 0
> Rx bytes: 0
> Tx errors: 0
> Tx frame rate [1/s]: 0 0 0
> Tx rate [KByte/s]: 0.0 0.0 0.0
> Rx frame rate [1/s]: 0 0 0
> Rx rate [KByte/s]: 0.0 0.0 0.0
> Common:
> Tx frames: 0
> Tx bytes: 0
> Rx frames: 0
> Rx bytes: 0
> Lost frames: 0
> Tx frame rate [1/s]: 0 0 0
> Tx rate [KByte/s]: 0.0 0.0 0.0
> Rx frame rate [1/s]: 132 48370 397
> Rx rate [KByte/s]: 7206.4 0.0 320.8
> Loss rate [1/s]: 0 0 0
> Frame loss [%]: 0.0 0.0 0.0
> Distributed clocks:
> Reference clock: None
> Application time: 0
> 2000-01-01 00:00:00.000000000
>
> the dmesg
> [ 16.042793] ADDRCONF(NETDEV_UP): eth0: link is not ready
> [ 16.043339] e1000: eth0 NIC Link is Up 1000 Mbps Full Duplex, Flow
> Control: RX
> [ 16.055960] ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
> [ 16.681028] EtherCAT: Master driver 1.5.2 2eff7c993a63
> [ 16.682397] EtherCAT: 1 master waiting for devices.
> [ 16.974627] ec_8139too EtherCAT-capable Fast Ethernet driver
> 0.9.28, master 1.5.2 2eff7c993a63
> [ 17.158937] ppdev: user-space parallel port driver
> [ 22.547621] ISO 9660 Extensions: Microsoft Joliet Level 3
> [ 22.549474] ISO 9660 Extensions: RRIP_1991A
> [ 26.353652] eth0: no IPv6 routers present
> [44214.675801] EtherCAT: Master module cleaned up.
> [44215.708167] 8139too Fast Ethernet driver 0.9.28 [44216.736945] EtherCAT:
> Master driver 1.5.2 2eff7c993a63 [44216.738867] EtherCAT: 1 master waiting
> for devices.
> [44216.758327] ec_8139too EtherCAT-capable Fast Ethernet driver 0.9.28,
> master 1.5.2 2eff7c993a63 [44278.309710] EtherCAT: Requesting master 0...
> [44278.309712] EtherCAT ERROR 0: Master still waiting for devices!
> [46256.569165] EtherCAT: Requesting master 0...
> [46256.569175] EtherCAT ERROR 0: Master still waiting for devices!
>
>
> I use VirtualBox and use linuxCNC(10.04) download at
> http://www.linuxcnc.org/iso/ubuntu-10.04-linuxcnc3-i386.iso
>
> the module is 8139too
>
>
> Could you can help me to solve this question?
>
> Thanks!
>
> Best regards -Young
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20170419/437af5cd/attachment-0004.htm>
More information about the Etherlab-users
mailing list