Problems with Lichuan Ethercat servo drive

More
2 years 6 months ago #298393 by trisa25
I have now edited the ethercat conf  first pdo idx to 1702 and second pdo idx to 1b02 and now i can change the servo state to safeop but still no other state.I can not upload servo manual because it is too large.

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

More
2 years 6 months ago #298484 by trisa25
After a bit of searching I think that sii eeprom is not configured correctly on this drive.

I will ask the manufacturer for xml file in hopes of making it work.

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

More
2 years 6 months ago #298559 by Sandro
Hi Jan

I have the same drive on order and hope I can do some testing soon. Very interested in the topic and your progress.

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

More
2 years 6 months ago #298665 by trisa25
Good news the motor is running!!

Turns out if you try reading an ethercat adress that the drive doesn`t have, nothing works.

I have attached linuxcnc configuration files intended for testing only and LC10E xml (ESI) file if anyone wants to tinker. 
Servo drive manual is available on link: drive.google.com/file/d/1qAFw_8SHKfR-JmR...Nqz/view?usp=sharing

Next on: try to implement higher frequency velocity mode.
The following user(s) said Thank You: tommylight, rodw, svb, bertoldo

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

More
2 years 6 months ago - 2 years 6 months ago #298736 by Sandro
Nice that you've got it working! And thank you for sharing your configuration.

I have now received my drive as well and tested with the config of yours. Unfortunately no luck so far. Here is what is reported back with "sudo dmesg -wH":

[Apr20 19:33] EtherCAT: Requesting master 0...
[  +0.000002] EtherCAT: Successfully requested master 0.
[  +0.000175] EtherCAT 0: Domain0: Logical address 0x00000000, 196 byte, expected working counter 1.
[  +0.000002] EtherCAT 0:   Datagram domain0-0-main: Logical offset 0x00000000, 196 byte, type LWR.
[  +0.000006] EtherCAT 0: Master thread exited.
[  +0.000001] EtherCAT 0: Starting EtherCAT-OP thread.
[  +0.000021] EtherCAT WARNING 0: 1 datagram UNMATCHED!
[  +4.295428] EtherCAT ERROR 0-0: Timeout while setting state OP.
[  +0.007773] EtherCAT 0: Slave states on main device: SAFEOP.
[ +12.904002] EtherCAT 0: Slave states on main device: SAFEOP + ERROR.


ethercat slaves -v reports the following, so address should be correct:

=== Master 0, Slave 0 ===
Device: Main
State: PREOP
Flag: +
Identity:
  Vendor Id:       0x00000766
  Product code:    0x00000402
  Revision number: 0x00000204
  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             -   3652581971           0           0
   1  MII   down  closed  no              -            -           -           -
   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: LC10E_V1.04
  CoE details:
    Enable SDO: yes
    Enable SDO Info: yes
    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

Sorry I don't know how to format code here.
Last edit: 2 years 6 months ago by Sandro.

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

More
2 years 6 months ago - 2 years 6 months ago #298857 by trisa25
Have you ran this command from the configuration folder?
Code:
sudo halcompile --install cia402.comp
Last edit: 2 years 6 months ago by trisa25.

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

Time to create page: 0.110 seconds
Powered by Kunena Forum