Re: [etherlab-users] Master0 dead

2017-04-18 Thread Gavin Lambert
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-boun...@etherlab.org] On
> Behalf Of ???
> Sent: Wednesday, 19 April 2017 08:42
> To: etherlab-users@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@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@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@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.00.00.0
>   Rx frame rate [1/s]:  0  0  0
>   Rx rate [KByte/s]:  0.00.00.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.00.00.0
>   Rx frame rate [1/s]:132  48370397
>   Rx rate [KByte/s]:   7206.40.0  320.8
>   Loss rate [1/s]:  0  0  0
>   Frame loss [%]: 0.00.00.0
>   Distributed clocks:
> Reference clock: None
> Application time: 0
>   2000-01-01 00:00:00.0
> 
> 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


___
etherlab-users mailing list
etherlab-users@etherlab.org
http://lists.etherlab.org/mailman/listinfo/etherlab-users


Re: [etherlab-users] experience with CU1128 | EtherCAT junction

2017-04-18 Thread Gavin Lambert
I have one in a test system (though not using it in production) and it works
fine.  As Graeme said it basically just works without configuration, though
if you're specifying devices by network position then you need to be careful
about the ordering, since it will appear at three different places in the
network.

There's two aspects to Hot Connect.  One is the hardware auto-link and
network rescan that the slaves and the master do automatically.  The other
is configuring your application and network model accordingly.  If you want
to take advantage of it, you really should have at least the first slave in
each hot-connectable group have an alias address rather than a
position-based address and you should use separate domain groups for each
hot-connect group.  (Or alternatively don't rely on the domain WC state and
instead use some per-slave process data to determine if it's online or not.)
             
> -Original Message-
> From: Graeme Foot
> Sent: Wednesday, 19 April 2017 10:51
> To: Matthieu Bec ; etherlab-users@etherlab.org
> Subject: Re: [etherlab-users] experience with CU1128 | EtherCAT junction
> 
> Never used them, but just had a quick look at the doco (just cos I was
> curious).
> 
> - It mentions the ability to Hot Connect any of the ports, but there's no
> configuration behind this, just the usual hardware support.
> - It is detected as three ESC's (as that's what it has internally), each
one being
> identified by a different RevisionNumber (but same product code)
>   - Primary ESC 1:  ProductCode="#x04685432"
> RevisionNo="#x0001"
>   - Sub ESC 2:  ProductCode="#x04685432"
> RevisionNo="#x00010001"
>   - Sub ESC 3:  ProductCode="#x04685432"
> RevisionNo="#x00010002"
> - It can be used as a distributed clock reference clock
> - There's no PDO or CoE data / configuration
> 
> So I would expect you just need to set up three slaves as above, then the
> master can report on the status of their ports (via reg information).
> 
> One thing to note is that TwinCat knows that the sub ESC's are sub devices
> but I don't think the EtherLab master supports this, so you may need to
place
> Sub ESC 2 and Sub ESC 3 further down your list of slaves.  (i.e. Sub ESC 2
after
> the devices connected to port 3, and Sub ESC 3 after the devices connected
> to port 5.)  See page 12 for a diagram on how the ports relates to the the
> three ESC's.
> 
> 
> Regards,
> Graeme.
> 
> 
> -Original Message-
> From: etherlab-users [mailto:etherlab-users-boun...@etherlab.org] On
> Behalf Of Matthieu Bec
> Sent: Wednesday, 19 April 2017 6:55 a.m.
> To: etherlab-users@etherlab.org
> Subject: [etherlab-users] experience with CU1128 | EtherCAT junction
> 
> Hi,
> 
> Has anyone had experience using a "CU1128 | EtherCAT junction" from
> Beckhoff (*) with the etherlab master?
> 
> It seemingly looks like a dumb device, but the documentation hints at
> particular steps to set it up with TwinCAT:
> 
> ```
> Topological configuration
> With the CU1128, special attention should be paid to the sequence of the
> EtherCAT slaves. Since the CU1128 has 7 junction ports, drop lines
connected
> to ports must and can be clearly identified in practice. If incorrect
information
> is provided in the configuration (TwinCAT System Manager file *.tsm), the
> system cannot start.
> ```
> 
> Regards,
> Matthieu
> 
> (*) https://download.beckhoff.com/download/document/io/infrastructure-
> components/cu1128en.pdf

___
etherlab-users mailing list
etherlab-users@etherlab.org
http://lists.etherlab.org/mailman/listinfo/etherlab-users


Re: [etherlab-users] experience with CU1128 | EtherCAT junction

2017-04-18 Thread Graeme Foot
Never used them, but just had a quick look at the doco (just cos I was curious).

- It mentions the ability to Hot Connect any of the ports, but there's no 
configuration behind this, just the usual hardware support.
- It is detected as three ESC's (as that's what it has internally), each one 
being identified by a different RevisionNumber (but same product code)
- Primary ESC 1:  ProductCode="#x04685432" 
RevisionNo="#x0001"
- Sub ESC 2:  ProductCode="#x04685432" RevisionNo="#x00010001"
- Sub ESC 3:  ProductCode="#x04685432" RevisionNo="#x00010002"
- It can be used as a distributed clock reference clock
- There's no PDO or CoE data / configuration

So I would expect you just need to set up three slaves as above, then the 
master can report on the status of their ports (via reg information).

One thing to note is that TwinCat knows that the sub ESC's are sub devices but 
I don't think the EtherLab master supports this, so you may need to place Sub 
ESC 2 and Sub ESC 3 further down your list of slaves.  (i.e. Sub ESC 2 after 
the devices connected to port 3, and Sub ESC 3 after the devices connected to 
port 5.)  See page 12 for a diagram on how the ports relates to the the three 
ESC's.


Regards,
Graeme.
 

-Original Message-
From: etherlab-users [mailto:etherlab-users-boun...@etherlab.org] On Behalf Of 
Matthieu Bec
Sent: Wednesday, 19 April 2017 6:55 a.m.
To: etherlab-users@etherlab.org
Subject: [etherlab-users] experience with CU1128 | EtherCAT junction

Hi,

Has anyone had experience using a "CU1128 | EtherCAT junction" from Beckhoff 
(*) with the etherlab master?

It seemingly looks like a dumb device, but the documentation hints at 
particular steps to set it up with TwinCAT:

```
Topological configuration
With the CU1128, special attention should be paid to the sequence of the 
EtherCAT slaves. Since the CU1128 has 7 junction ports, drop lines connected to 
ports must and can be clearly identified in practice. If incorrect information 
is provided in the configuration (TwinCAT System Manager file *.tsm), the 
system cannot start.
```

Regards,
Matthieu

(*) 
https://download.beckhoff.com/download/document/io/infrastructure-components/cu1128en.pdf




___
etherlab-users mailing list
etherlab-users@etherlab.org
http://lists.etherlab.org/mailman/listinfo/etherlab-users
___
etherlab-users mailing list
etherlab-users@etherlab.org
http://lists.etherlab.org/mailman/listinfo/etherlab-users


[etherlab-users] Master0 dead

2017-04-18 Thread 許凱揚
Hi

I'm learning how to use ethercat

When I start ethcat and want to see the status I get the message below:

hsu@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@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@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.00.00.0
  Rx frame rate [1/s]:  0  0  0
  Rx rate [KByte/s]:  0.00.00.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.00.00.0
  Rx frame rate [1/s]:132  48370397
  Rx rate [KByte/s]:   7206.40.0  320.8
  Loss rate [1/s]:  0  0  0
  Frame loss [%]: 0.00.00.0
  Distributed clocks:
Reference clock: None
Application time: 0
  2000-01-01 00:00:00.0

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
___
etherlab-users mailing list
etherlab-users@etherlab.org
http://lists.etherlab.org/mailman/listinfo/etherlab-users


[etherlab-users] experience with CU1128 | EtherCAT junction

2017-04-18 Thread Matthieu Bec
Hi,

Has anyone had experience using a "CU1128 | EtherCAT junction" from Beckhoff 
(*) with the etherlab master?

It seemingly looks like a dumb device, but the documentation hints at 
particular steps to set it up with TwinCAT:

```
Topological configuration
With the CU1128, special attention should be paid to the sequence of the 
EtherCAT slaves. Since the CU1128 has 7 junction ports, drop lines connected to 
ports must and can be clearly identified in practice. If incorrect information 
is provided in the configuration (TwinCAT System Manager file *.tsm), the 
system cannot start.
```

Regards,
Matthieu

(*) 
https://download.beckhoff.com/download/document/io/infrastructure-components/cu1128en.pdf




___
etherlab-users mailing list
etherlab-users@etherlab.org
http://lists.etherlab.org/mailman/listinfo/etherlab-users