Ethercat drive configuration woes

More
3 years 10 months ago #258544 by db1981
this all looks good...

did you add the functions to hal? addf lcec-readall, addf lcec-writeall ?

Maybe you have to set an parameter in the drive to enable ethercat control.
The communication with the ethercat slave chip is working, but this is standalone. This talks to the Drives main CPU/Board with serial or I2C, could be that this channel is closed, caused by an parameter.

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

More
3 years 10 months ago #258623 by mwc
I received the correct software this morning, and it connects to the drive, but it only lets me set various configuration options. It doesn't give me any insight into the actual operation of the drive.

I also received the xml for the drive (attached). I've had a quick scan through the dictionary objects (first set start around line 1140), but I can't even see anything specifically for enabling the drivers.

I'll contact the supplier to see if there is meant to be anything else configured as part of the initialisation.
 

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

More
3 years 10 months ago - 3 years 10 months ago #258699 by wazza77
Hi, I have just received this same drive today and will be going through the same process in the manual I received in section 3.5 on page 18 it is saying by default it is set as open loop PA002 just wondering if one of these settings could be a problem? also the software for the drive I have been looking for this as well. what is it called so I can ask for it as I to received the wrong one?

P.s. just wondering if you are able to read any of the digital inputs at all?
Last edit: 3 years 10 months ago by wazza77.

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

More
3 years 10 months ago - 3 years 10 months ago #258707 by wazza77
 hi, its 1 am in the morning here so check my work. but I believe the issue may be in the cia 402 state machine, in the manual it wants us to issue 0x6, 0x7,0xF to 6040h ( cia controlword) to enable the drive(page 23 of the manual. whereas the 402 state machine is going to issue 0x2,0x3,0x7. from what I can see on github.com/dbraun1981/hal-cia402/blob/main/cia402.comp . please find the attached manual
Last edit: 3 years 10 months ago by wazza77.

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

More
3 years 10 months ago #258708 by mwc
I actually just managed to get 2 of my drives to activate under LinuxCNC control.

I only had a single drive connected and was trying to get them to manually activate via terminal commands (as per Dj Junior's video - forum.linuxcnc.org/ethercat/44944-steppe...hercat-rpi-4?start=0 ), and noticed the statusword updated, having been stuck at 0.
Checking the value via Hal Command, it still showed zero.
Out of curiousity, I plugged the other two drives back in, and they reported the statusword correctly, and the drives worked via LinuxCNC.

I then restarted everything, and I'm back to nothing working, and am trying to workout what exactly caused things to burst in to life.

I do suspect there is a config issue somewhere, as the first connected drive, always switches to ID 1 when LinuxCNC is loaded, regardless of what the rotary selector switches are set to. It's not a drive issue, as I have tried rotating drives.
The strange thing is, I cannot see any address for setting the drive ID via EtherCat, so there must also be functionality that's not documented.

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

More
3 years 10 months ago #258711 by wazza77
I will try getting my drive to work over the next week or so depending on my work. Don't worry I was like this with my first EtherCAT servo drives years ago it eventually all falls into place then you move overseas for work and forget everything and come home and start from scratch again

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

Time to create page: 0.386 seconds
Powered by Kunena Forum