AMSAMOTION IO module

  • Kuzma30
  • Away
  • New Member
  • New Member
More
02 Sep 2025 11:22 #334259 by Kuzma30
AMSAMOTION IO module was created by Kuzma30
I have EC3A-IO1632 module and trying connect it with linuxcnc.
I am following instruction from here forum.linuxcnc.org/ethercat/45336-etherc...-how-to-step-by-step and stop at ethercat slaves step.
When trying list slaves with ethercat slaves command I get empty output.Output for ethercat master
ethercat master
Master0
  Phase: Waiting for device(s)...
  Active: no
  Slaves: 0
  Ethernet devices:
    Main: 78:45:c4:23:9f:86 (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]:      0      0      0
      Rx rate [KByte/s]:      0.0    0.0    0.0
      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
I trying different Ethernet cable with same results

 

Please Log in or Create an account to join the conversation.

More
02 Sep 2025 15:34 #334280 by langdons
Replied by langdons on topic AMSAMOTION IO module
Post output of "ip a".

And probably lspci.

The cable is rarely the issue.

Ethernet cables rarely break.

It's always a good idea to try a different cable just in case.

Please Log in or Create an account to join the conversation.

  • Hakan
  • Away
  • Platinum Member
  • Platinum Member
More
03 Sep 2025 07:42 #334318 by Hakan
Replied by Hakan on topic AMSAMOTION IO module
The Ethercat server appears to be working but cannot connect to the network interface.
You should see something like this
debian@plasma:~$ ethercat master
Master0
  Phase: Idle
  Active: no
  Slaves: 4
  Ethernet devices:
    Main: c4:62:37:06:66:54 (attached)
      Link: UP
Look out for "(attached)" and "Link: UP"

There are several possible reason
- wrong module name or mac address in /etc/ethercat.conf
- network interface is not "up"
- your system uses secure boot, UEFI, ethercat kernel modules can not be loaded. Check some 15 lines down in "sticky", the spoiler section.


 

Please Log in or Create an account to join the conversation.

  • Kuzma30
  • Away
  • New Member
  • New Member
More
03 Sep 2025 07:57 #334320 by Kuzma30
Replied by Kuzma30 on topic AMSAMOTION IO module
cnc@cnc:~$ ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host noprefixroute 
       valid_lft forever preferred_lft forever
2: enp2s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether 78:45:c4:23:9f:86 brd ff:ff:ff:ff:ff:ff
    inet 192.168.0.100/24 brd 192.168.0.255 scope global noprefixroute enp2s0
       valid_lft forever preferred_lft forever
    inet6 fe80::7a45:c4ff:fe23:9f86/64 scope link 
       valid_lft forever preferred_lft forever
cnc@cnc:~$ 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:16.0 Communication controller: Intel Corporation 6 Series/C200 Series Chipset Family MEI Controller #1 (rev 04)
00:1a.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #2 (rev 04)
00:1b.0 Audio device: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 1 (rev b4)
00:1c.4 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 5 (rev b4)
00:1d.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #1 (rev 04)
00:1f.0 ISA bridge: Intel Corporation H61 Express Chipset LPC Controller (rev 04)
00:1f.2 SATA controller: Intel Corporation 6 Series/C200 Series Chipset Family 6 port Desktop SATA AHCI Controller (rev 04)
00:1f.3 SMBus: Intel Corporation 6 Series/C200 Series Chipset Family SMBus Controller (rev 04)
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 06)
cnc@cnc:~$ cat /etc/ethercat.conf
#------------------------------------------------------------------------------
#
#  EtherCAT master configuration file for use with ethercatctl.
#
#  vim: spelllang=en spell tw=78
#
#------------------------------------------------------------------------------

#
# Main Ethernet devices.
#
# The MASTER<X>_DEVICE variable specifies the Ethernet device for a master
# with index 'X'.
#
# Specify the MAC address (hexadecimal with colons) of the Ethernet device to
# use. Example: "00:00:08:44:ab:66"
#
# Alternatively, a network interface name can be specified. The interface
# name will be resolved to a MAC address using the 'ip' command.
# Example: "eth0"
#
# The broadcast address "ff:ff:ff:ff:ff:ff" has a special meaning: It tells
# the master to accept the first device offered by any Ethernet driver.
#
# The MASTER<X>_DEVICE variables also determine, how many masters will be
# created: A non-empty variable MASTER0_DEVICE will create one master, adding a
# non-empty variable MASTER1_DEVICE will create a second master, and so on.
#
# Examples:
# MASTER0_DEVICE="00:00:08:44:ab:66"
# MASTER0_DEVICE="eth0"
#
MASTER0_DEVICE="enp2s0"
#DEVICE_MODULES="generic"
#MASTER1_DEVICE=""

#
# Backup Ethernet devices
#
# The MASTER<X>_BACKUP variables specify the devices used for redundancy. They
# behaves nearly the same as the MASTER<X>_DEVICE variable, except that it
# does not interpret the ff:ff:ff:ff:ff:ff address.
#
#MASTER0_BACKUP=""

#
# Ethernet driver modules to use for EtherCAT operation.
#
# Specify a non-empty list of Ethernet drivers, that shall be used for
# EtherCAT operation.
#
# Except for the generic Ethernet driver module, the init script will try to
# unload the usual Ethernet driver modules in the list and replace them with
# the EtherCAT-capable ones. If a certain (EtherCAT-capable) driver is not
# found, a warning will appear.
#
# Possible values: 8139too, e100, e1000, e1000e, r8169, generic, ccat, igb, igc, genet, dwmac-intel, stmmac-pci.
# Separate multiple drivers with spaces.
# A list of all matching kernel versions can be found here:
# https://docs.etherlab.org/ethercat/1.6/doxygen/devicedrivers.html
#
# Note: The e100, e1000, e1000e, r8169, ccat, igb and igc drivers are not built by
# default. Enable them with the --enable-<driver> configure switches.
#
DEVICE_MODULES=""

# If you have any issues about network interfaces not being configured
# properly, systemd may need some additional infos about your setup.
# Have a look at the service file, you'll find some details there.
#

#
# List of interfaces to bring up and down automatically.
#
# Specify a space-separated list of interface names (such as eth0 or
# enp0s1) that shall be brought up on `ethercatctl start` and down on
# `ethercatctl stop`.
#
# When using the generic driver, the corresponding Ethernet device has to be
# activated before the master is started, otherwise all frames will time out.
# This the perfect use-case for `UPDOWN_INTERFACES`.
#
UPDOWN_INTERFACES=""

#
# Flags for loading kernel modules.
#
# This can usually be left empty. Adjust this variable, if you have problems
# with module loading.
#
#MODPROBE_FLAGS="-b"

#------------------------------------------------------------------------------

Please Log in or Create an account to join the conversation.

  • Kuzma30
  • Away
  • New Member
  • New Member
More
03 Sep 2025 08:01 #334321 by Kuzma30
Replied by Kuzma30 on topic AMSAMOTION IO module
I have not UEFI and enp2s0 is UP
cnc@cnc:~$ sudo mokutil --sb-state
EFI variables are not supported on this system
cnc@cnc:~$ ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host noprefixroute 
       valid_lft forever preferred_lft forever
2: enp2s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether 78:45:c4:23:9f:86 brd ff:ff:ff:ff:ff:ff
    inet 192.168.0.100/24 brd 192.168.0.255 scope global noprefixroute enp2s0
       valid_lft forever preferred_lft forever
    inet6 fe80::7a45:c4ff:fe23:9f86/64 scope link 
       valid_lft forever preferred_lft forever

Please Log in or Create an account to join the conversation.

  • Hakan
  • Away
  • Platinum Member
  • Platinum Member
More
03 Sep 2025 08:09 - 03 Sep 2025 08:14 #334323 by Hakan
Replied by Hakan on topic AMSAMOTION IO module
Check the output of "sudo dmesg" after you do  "sudo systemctl restart ethercat" for clues.
Last edit: 03 Sep 2025 08:14 by Hakan. Reason: restart command

Please Log in or Create an account to join the conversation.

  • Kuzma30
  • Away
  • New Member
  • New Member
More
03 Sep 2025 09:12 #334327 by Kuzma30
Replied by Kuzma30 on topic AMSAMOTION IO module
[ 7042.964030] EtherCAT: Master module cleaned up.
[ 7044.047160] EtherCAT: Master driver 1.6.7 1.6.7.gc1e6b50-1+26.2
[ 7044.047314] EtherCAT: 1 master waiting for devices.

Please Log in or Create an account to join the conversation.

  • Hakan
  • Away
  • Platinum Member
  • Platinum Member
More
03 Sep 2025 10:09 #334331 by Hakan
Replied by Hakan on topic AMSAMOTION IO module
Settings in /etc/ethercat.conf ok? Should read
...
MASTER0_DEVICE="78:45:c4:23:9f:86"
...
DEVICE_MODULES="generic"
...
Are both kernel modules loaded? I guess not.
$ lsmod | grep ^ec_
ec_generic             12288  0
ec_master             479232  1 ec_generic

Please Log in or Create an account to join the conversation.

Time to create page: 0.079 seconds
Powered by Kunena Forum