XML Settings for EC1-57E

More
1 month 4 weeks ago #349220 by cgrobi
Hi,

currently I am buildung a new CNC machine. I set up a PC with LinuxCNC (new to the software) and Ethercat. I have 3 StepperOnline Servos connected and they work well with my basic configuration. For a 4th axis, i need a smaller stepper motor and I bought an EC1-57E Ethercat stepper driver like this one
de.aliexpress.com/item/1005012395271889.html  
With the command "ethercat slaves -v", I get some information about the device. I'm trying to insert the slave into my ethercat-conf.xml file, but I can't get it to work. Is there someone using the same stepper driver who can please send me an example XML file to use it? I'm trying hard to get it to work, but had no luck so far.
It would be really nice if you can help me somehow.
Thank you so much

Christian

Please Log in to join the conversation.

More
1 month 4 weeks ago #349224 by mediocre_chloride
HiI have a cheap stepper from Aliexpress EO42-EC. its open loop (can be selected wit dipswitch open/closed loop) for nema 42 steppers, maybe you need to tweak some things but they look quite similar. I attached the config here 

Attachment not found

 

Please Log in to join the conversation.

More
1 month 4 weeks ago #349259 by rodw
Replied by rodw on topic XML Settings for EC1-57E
try creating a config using lcec_configgen

Please Log in to join the conversation.

More
1 month 3 weeks ago #349308 by cgrobi
Replied by cgrobi on topic XML Settings for EC1-57E
Thank you, guys, for your help! I appreciate that. 

I tried Rod's advice and got an xml part with the needed registers. This seems like a bit of progress. I took the needed parts from the auto-config.xml file and copied them to my own ethercat-conf.xml (slave ID 3). However, I tried adapting my hal file for the A axis (for which the driver is for) similar to the servo drives I already integrated, but was not able to get any reaction of the stepper motor that was connected on the stepper driver. It's a closed loop motor, but to exclude possible errors, I switched the driver to open loop mode for now. I tried reading some registers back with the ethercat read_register command and the values seem to be valid so far. The driver is in OP mode. But I assume, I've done something wrong in my hal file. If I try to move the A axis, the motor doesn't turn in any way. After some (theoretical) distance after pressing the A+/A- button in LinuxCNC, I get a joint following error. I'm not sure, if the PC really is talking to the stepper driver. If I try to move the axis, I would assume the target position register is updated somehow. But if I read the register value using the ethercat read_register command, I always get the same number.
Could you please do me a favor and have a look at my files I attached? Is there a possibility to guess the problem? I'm quite confident, that I may get everything I need for my machine to work. The A axis is the only missing piece. I don't want to integrate another controller like the PoKeys57CNC I have laying around. Ethercat is a really nice solution.
Thank you very much.

Christian

Please Log in to join the conversation.

More
1 month 3 weeks ago #349312 by cgrobi
Replied by cgrobi on topic XML Settings for EC1-57E
Addendum:
I took a deeper look (again) into the datasheet of the motor driver. There is a green LED that flashes at a rate of about 2s. According to the datasheet, this means, that the motor power is still off. When the power is on, this LED should light up constantly without flashing.
Reading the statusword of the driver shows a value of 0xb094. According to the cia402 specification, Bits 3, 5 and 7 are 1. This means OP is enabled, quick stop is active and there seems to be a warning. Maybe this is helpful.
Greetings 

Please Log in to join the conversation.

More
1 month 3 weeks ago #349316 by mediocre_chloride
Have you checked the digital inputs? 
there is origin and pos/negative limit set as default functions for the digital input. If the limits are setup for NC wiring and nothing is connected, it might become an issue

Please Log in to join the conversation.

More
1 month 3 weeks ago #349343 by jjdege
Replied by jjdege on topic XML Settings for EC1-57E
Hi,
in the XML file you posted, the vendor ID (VID) is 0x00400000, while the EC1-57E manual says 0xAB5 or 00000AB5.
That could be the problem.
Hi

Please Log in to join the conversation.

More
1 month 3 weeks ago #349344 by rodw
Replied by rodw on topic XML Settings for EC1-57E

Hi,
in the XML file you posted, the vendor ID (VID) is 0x00400000, while the EC1-57E manual says 0xAB5 or 00000AB5.
That could be the problem.
Hi
Use the values reported by ethercat slaves -v

Please Log in to join the conversation.

More
1 month 4 days ago #349896 by leandrocontarini
Aqui estão meus arquivos. O encoder está lendo corretamente e o motor funciona em modo de malha aberta, mas quando habilito o controle em malha fechada, o motor começa a vibrar.

Attachment not found

Attachment not found

Attachment not found

Please Log in to join the conversation.

More
1 month 1 day ago #349995 by leandrocontarini
I managed to get it working. Here are the files.

Please Log in to join the conversation.

Time to create page: 0.102 seconds
Powered by Kunena Forum