General Questions about using ethercat

More
1 year 6 months ago - 1 year 6 months ago #327459 by Tntmold
I believe I have vid and pid fields correct, output from 'ethercat slaves -v' :
=== Master 0, Slave 0 ===
Device: Main
State: PREOP
Flag: +
Identity:
  Vendor Id:       0x00000a79
  Product code:    0x00002000
  Revision number: 0x00000001
  Serial number:   0x00000000
DL information:
  FMMU bit operation: no
  Distributed clocks: yes, 64 bit
  DC system time transmission delay: 0 ns
Port  Type  Link  Loop    Signal  NextSlave  RxTime [ns]  Diff [ns]   NextDc [ns]
   0  MII   up    open    yes             -   3978170956           0           0
   1  MII   up    open    yes             1   3978172356        1400         700
   2  N/A   down  closed  no              -            -           -           -
   3  N/A   down  closed  no              -            -           -           -
Mailboxes:
  Bootstrap RX: 0x0000/0, TX: 0x0000/0
  Standard  RX: 0x1000/128, TX: 0x1100/128
  Supported protocols: CoE
General:
  Group: EtherCAT Driver
  Image name:
  Order number:
  Device name: OL3-E57H
  CoE details:
    Enable SDO: yes
    Enable SDO Info: no
    Enable PDO Assign: yes
    Enable PDO Configuration: yes
    Enable Upload at startup: no
    Enable SDO complete access: no
  Flags:
    Enable SafeOp: no
    Enable notLRW: no
  Current consumption: 0 mA
=== Master 0, Slave 1 ===
Device: Main
State: PREOP
Flag: +
Identity:
  Vendor Id:       0x00000a79
  Product code:    0x00002000
  Revision number: 0x00000001
  Serial number:   0x00000000
DL information:
  FMMU bit operation: no
  Distributed clocks: yes, 64 bit
  DC system time transmission delay: 700 ns
Port  Type  Link  Loop    Signal  NextSlave  RxTime [ns]  Diff [ns]   NextDc [ns]
   0  MII   down  closed  no              0            -           -           -
   1  MII   up    open    yes             -   4004182021  2051328265           0
   2  N/A   down  closed  no              -            -           -           -
   3  N/A   down  closed  no              -            -           -           -
Mailboxes:
  Bootstrap RX: 0x0000/0, TX: 0x0000/0
  Standard  RX: 0x1000/128, TX: 0x1100/128
  Supported protocols: CoE
General:
  Group: EtherCAT Driver
  Image name:
  Order number:
  Device name: OL3-E57H
  CoE details:
    Enable SDO: yes
    Enable SDO Info: no
    Enable PDO Assign: yes
    Enable PDO Configuration: yes
    Enable Upload at startup: no
    Enable SDO complete access: no
  Flags:
    Enable SafeOp: no
    Enable notLRW: no
  Current consumption: 0 mA

 
Last edit: 1 year 6 months ago by Tntmold.

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

More
1 year 6 months ago #327468 by Hakan
I think you need a dcconf item for every slave in the ethercat-cat.xml file.
I don't have exact syntax here on the phone, but search for dcconf and assignactivate 300 and there should be examples of that line.

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

More
1 year 6 months ago #327471 by Tntmold
Thanks, I added dcconf lines (see attachment) but still get the same pin does not exist error

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

More
1 year 6 months ago #327482 by Hakan
It's named controlword in ethercat-conf.xml, not cia-controlword.
Also change all lcec.1.0 to lcec.0.1 in the hal file.
 

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

More
1 year 5 months ago #327498 by Tntmold
Thanks, I made those changes and still have the original problem:
SodickA:~/linuxcnc/configs/sim.axis$ linuxcnc lathe.ini
LINUXCNC - 2.9.3
Machine configuration directory is '/home/phil/linuxcnc/configs/sim.axis'
Machine configuration file is 'lathe.ini'
Starting LinuxCNC...
libnml/buffer/shmem.cc 320: Shared memory buffers toolCmd and toolCmd may conflict. (key=1004(0x3EC))
libnml/buffer/shmem.cc 320: Shared memory buffers toolSts and toolSts may conflict. (key=1005(0x3ED))
libnml/buffer/shmem.cc 320: Shared memory buffers emcError and emcError may conflict. (key=1003(0x3EB))
linuxcnc TPMOD=tpmod HOMEMOD=homemod EMCMOT=motmod
Note: Using POSIX realtime
Found file(REL): ./ethercat.hal
./ethercat.hal:50: Pin 'lcec.0.0.statusword' does not exist
Shutting down and cleaning up LinuxCNC...
Note: Using POSIX realtime
LinuxCNC terminated with an error.  You can find more information in the log:
    /home/phil/linuxcnc_debug.txt
and
    /home/phil/linuxcnc_print.txt
as well as in the output of the shell command 'dmesg' and in the terminal

Any idea what to try next?

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

More
1 year 5 months ago #327512 by Hakan
Same principle for the statusword. It is named statusword in ethercat-conf.xml not cia-statusword.
You can go over the names of all pins in ethercat-conf to see that they match the name in the hal file.
 

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

Time to create page: 0.190 seconds
Powered by Kunena Forum