(Freelancer) Linux CNC + EtherCat + RPi 4 Setup

More
4 years 8 months ago #235405 by Dj Junior
Hello
Is there a freelancer who can help me to configure linuxcnc with ethercat stepper driver on raspberry pi?

Please Log in to join the conversation.

More
4 years 8 months ago #235415 by Grotius
Hi,

So far i know there are several topics where is explained how to install a rpi with lcnc.
Did you see this topics already?

Please Log in to join the conversation.

More
4 years 8 months ago #235425 by Dj Junior
Hi Grotius
I have installed and configured everything. dmesg does not give an error, ethercat debug does not give an error, slaves are in OP state but the stepper not work run.
 

Please Log in to join the conversation.

More
4 years 8 months ago #235427 by Grotius
Hi,

Attached files worked for me to drive the steppers.
When in lcnc do you see the lcec's already in halview?

Please Log in to join the conversation.

More
4 years 8 months ago #235449 by Dj Junior
Hi
You use EL2124 while I have generic drivers as attached.
Yes! I see the lcec's already and I get feedback from el2008 device but not stepper.
 

Attachment not found


 

Attachment not found

Please Log in to join the conversation.

More
4 years 8 months ago #235451 by db1981
hi,

-linuxcnc starts without errors?
-all ethercat slaves gets op state after linuxcnc start?

-do you get any values on the slave pins, if you look with halshow ?
example lcec.0.4.cia-statusword or actual-position

Please Log in to join the conversation.

More
4 years 8 months ago #235452 by Dj Junior
Linuxcnc starts without errors, All driver are in OP state. there are no errors in dmesg.

The only thing I noticed is that starting linuxcnc the slaves are in OP state but doing
ethercat upload -p1 -t int16 0x6040 0 (Control Word)
the value is 6 instead the manufacturer says it must be 15 to enable the motors
ethercat upload -p1 -t int8 0x6060 0 (mode of operation) returns 0 instead it must be 08

I don't know where these values are set
 

Attachment not found

Please Log in to join the conversation.

More
4 years 8 months ago #235454 by db1981
ethercat upload, download is the wrong way after starting linuxcnc.
These commands are for asynchronous communication and useless, after the ethercat realtime thread is started.

please use halshow to see if there are any values are transported from the drive.

In Axis click on Show Hal Configuration, then in the left tree you can select pins and after that navigate to your lcec pins.
lock for lcec.0.4.cia-statusword and lcec.0.4.actual-position .

By the way, your config has to match the drives pdo / cstruct to get the right pdo count. so make it identicall to the pdos output. You have to add the "last Error Code" Touch probe, digital inputs stuff etc.

Please Log in to join the conversation.

More
4 years 8 months ago #235455 by db1981
The only thing I noticed is that starting linuxcnc the slaves are in OP state but doing
ethercat upload -p1 -t int16 0x6040 0 (Control Word)
the value is 6 instead the manufacturer says it must be 15 to enable the motors

6 is the rights value in standby mode, you have to tell the drive that it should be enable . If you are using the cia402 component the enable pin has to be set to true. usually you will connect this pin to the enable pin from the joint. That mean if you switch on estop and machine on in linuxcnc the drive will be enabled.

But in you hal file, the connection from joint enable to enable-x is commented out....

Please Log in to join the conversation.

More
4 years 8 months ago #235456 by Dj Junior
Hi
To add last Error Code, Touch probe etc what values should I put on halPin?

Please Log in to join the conversation.

Time to create page: 0.097 seconds
Powered by Kunena Forum