root@cnc:/dev# ethercat config root@cnc:/dev# ethercat -help ethercat: invalid option -- 'l' Usage: ethercat [OPTIONS] [ARGUMENTS] Commands (can be abbreviated): alias Write alias addresses. config Show slave configurations. crc CRC error register diagnosis. cstruct Generate slave PDO information in C language. data Output binary domain process data. debug Set the master's debug level. domains Show configured domains. download Write an SDO entry to a slave. eoe Display Ethernet over EtherCAT statictics. foe_read Read a file from a slave via FoE. foe_write Store a file on a slave via FoE. graph Output the bus topology as a graph. master Show master and Ethernet device information. pdos List Sync managers, PDO assignment and mapping. reg_read Output a slave's register contents. reg_write Write data to a slave's registers. rescan Rescan the bus. sdos List SDO dictionaries. sii_read Output a slave's SII contents. sii_write Write SII contents to a slave. slaves Display slaves on the bus. soe_read Read an SoE IDN from a slave. soe_write Write an SoE IDN to a slave. states Request application-layer states. upload Read an SDO entry from a slave. version Show version information. xml Generate slave information XML. Global options: --master -m Comma separated list of masters to select, ranges are allowed. Examples: '1,3', '5-7,9', '-3'. Default: '-' (all). --force -f Force a command. --quiet -q Output less information. --verbose -v Output more information. --help -h Show this help. Numerical values can be specified either with decimal (no prefix), octal (prefix '0') or hexadecimal (prefix '0x') base. Call 'ethercat --help' for command-specific help. Send bug reports to fp@igh-essen.com. root@cnc:/dev# ethercat debug 'debug' takes exactly one argument! ethercat debug Set the master's debug level. Debug messages are printed to syslog. Arguments: LEVEL can have one of the following values: 0 for no debugging output, 1 for some debug messages, or 2 for printing all frame contents (use with caution!). Numerical values can be specified either with decimal (no prefix), octal (prefix '0') or hexadecimal (prefix '0x') base. root@cnc:/dev# ethercat debug 2 root@cnc:/dev# ethercat debug 0 root@cnc:/dev# ethercat domains root@cnc:/dev# ethercat rescan root@cnc:/dev# ethercat Please specify a command! Usage: ethercat [OPTIONS] [ARGUMENTS] Commands (can be abbreviated): alias Write alias addresses. config Show slave configurations. crc CRC error register diagnosis. cstruct Generate slave PDO information in C language. data Output binary domain process data. debug Set the master's debug level. domains Show configured domains. download Write an SDO entry to a slave. eoe Display Ethernet over EtherCAT statictics. foe_read Read a file from a slave via FoE. foe_write Store a file on a slave via FoE. graph Output the bus topology as a graph. master Show master and Ethernet device information. pdos List Sync managers, PDO assignment and mapping. reg_read Output a slave's register contents. reg_write Write data to a slave's registers. rescan Rescan the bus. sdos List SDO dictionaries. sii_read Output a slave's SII contents. sii_write Write SII contents to a slave. slaves Display slaves on the bus. soe_read Read an SoE IDN from a slave. soe_write Write an SoE IDN to a slave. states Request application-layer states. upload Read an SDO entry from a slave. version Show version information. xml Generate slave information XML. Global options: --master -m Comma separated list of masters to select, ranges are allowed. Examples: '1,3', '5-7,9', '-3'. Default: '-' (all). --force -f Force a command. --quiet -q Output less information. --verbose -v Output more information. --help -h Show this help. Numerical values can be specified either with decimal (no prefix), octal (prefix '0') or hexadecimal (prefix '0x') base. Call 'ethercat --help' for command-specific help. Send bug reports to fp@igh-essen.com. root@cnc:/dev# ethercat master Master0 Phase: Idle Active: no Slaves: 1 Ethernet devices: Main: 00:01:05:14:0b:5a (attached) Link: UP Tx frames: 43187 Tx bytes: 3281332 Rx frames: 43185 Rx bytes: 3281212 Tx errors: 0 Tx frame rate [1/s]: 125 768 266 Tx rate [KByte/s]: 7.3 72.3 21.3 Rx frame rate [1/s]: 125 768 266 Rx rate [KByte/s]: 7.3 72.3 21.3 Common: Tx frames: 97176 Tx bytes: 7593472 Rx frames: 97172 Rx bytes: 7593232 Lost frames: 4 Tx frame rate [1/s]: 125 768 267 Tx rate [KByte/s]: 7.3 72.3 21.3 Rx frame rate [1/s]: 125 768 267 Rx rate [KByte/s]: 7.3 72.3 21.3 Loss rate [1/s]: 0 -0 0 Frame loss [%]: 0.0 -0.0 0.0 Distributed clocks: Reference clock: None DC reference time: 0 Application time: 0 2000-01-01 00:00:00.000000000 root@cnc:/dev# ethercat slave 0 1:0 PREOP + BK1120 EtherCAT Buskoppler root@cnc:/dev# ethercat graph /* EtherCAT bus graph. Generated by 'ethercat graph'. */ strict graph bus { rankdir="LR" ranksep=0.8 nodesep=0.8 node [fontname="Helvetica"] edge [fontname="Helvetica",fontsize="10"] master [label="EtherCAT\nMaster"] master -- slave0[label="MII"] slave0 [shape="box",label="0 / 1:0\nBK1120"] } root@cnc:/dev# lspci 00:00.0 Host bridge: Intel Corporation 2nd Generation Core Processor Family DRAM Controller (rev 09) 00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09) 00:1a.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #2 (rev 05) 00:1c.0 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 1 (rev b5) 00:1c.4 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 5 (rev b5) 00:1c.5 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 6 (rev b5) 00:1c.6 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 7 (rev b5) 00:1d.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #1 (rev 05) 00:1f.0 ISA bridge: Intel Corporation QM67 Express Chipset LPC Controller (rev 05) 00:1f.2 RAID bus controller: Intel Corporation 82801 Mobile SATA Controller [RAID mode] (rev 05) 00:1f.3 SMBus: Intel Corporation 6 Series/C200 Series Chipset Family SMBus Controller (rev 05) 01:00.0 PCI bridge: PLX Technology, Inc. PEX 8605 PCI Express 4-port Gen2 Switch (rev aa) 02:01.0 PCI bridge: PLX Technology, Inc. PEX 8605 PCI Express 4-port Gen2 Switch (rev aa) 02:02.0 PCI bridge: PLX Technology, Inc. PEX 8605 PCI Express 4-port Gen2 Switch (rev aa) 02:03.0 PCI bridge: PLX Technology, Inc. PEX 8605 PCI Express 4-port Gen2 Switch (rev aa) 03:00.0 Ethernet controller: Intel Corporation 82574L Gigabit Network Connection 05:00.0 Ethernet controller: Intel Corporation 82574L Gigabit Network Connection 06:00.0 Ethernet controller: Intel Corporation 82574L Gigabit Network Connection 07:00.0 Ethernet controller: Intel Corporation 82574L Gigabit Network Connection 08:00.0 Unassigned class [ff00]: Beckhoff GmbH Device 5000 (rev 01) root@cnc:/dev#