Gmoccapy SCARA EtherCAT drive - joint error
- DPFlex
- Offline
- Junior Member
- Posts: 28
- Thank you received: 1
I am not sure my topic is in correct category, please move to correct one if it is not.
My testing system is:
- Debian bookworm, kernel 6.1.0-22-rt-amd64
- LinuxCNC: 2.9.2; EtherCAT: Igh EtherCAT 1.6.0
I test SCARA in step:
- Using sim.gmoccapy.non-trival-kinematics.scara to record position X,Y,Z in 2 positions.
In simulation, it runs well.
- Create macro position_1 and position_2
- Apply same to real system: it has error of joint as attach photos.
Can you explain why and how to avoid this issue ?.
Thank you.
Attachments:
Please Log in or Create an account to join the conversation.
- Aciera
- Offline
- Administrator
- Posts: 3946
- Thank you received: 1705
Since you are using an EtherCAT drive the following error should be handled in the drive already.
Please Log in or Create an account to join the conversation.
- DPFlex
- Offline
- Junior Member
- Posts: 28
- Thank you received: 1
Before your advice, I did not have FERROR & MIN_FERROR.
After I added both of above setting, the issue still happens.
I tried (FERROR; MIN_FERROR) options: (1;0.1) ; (0.1; 0.01) ; (0.01; 0.001)
Yes, I think EtherCAT drives handle joint error, but it makes motor shocking so strong & stop suddenly without finishing targeted position.
I attach my INI file for your reference.
Attachments:
Please Log in or Create an account to join the conversation.
- Aciera
- Offline
- Administrator
- Posts: 3946
- Thank you received: 1705
FERROR and MIN_FERROR entries need to be in the [JOINT_n] section not in the [AXIS_l] section:After I added both of above setting, the issue still happens.
linuxcnc.org/docs/html/config/ini-config.html
I would suggest something like (100,100). I presume you are running your drives in position mode and the loop is closed in the drive, if so LinuxCNC really has no part in monitoring following errors at all and setting the values very high will effectively eliminate following error checking in LinuxCNC.I tried (FERROR; MIN_FERROR) options: (1;0.1) ; (0.1; 0.01) ; (0.01; 0.001)
If you get drive faults because of following error then you likely need to lower acceleration/velocity values. Also note that if your SCARA pose is close to a singular point the kinematic model will likely fail and cause large or even infinite angular velocities which will then cause the drives to fault.Yes, I think EtherCAT drives handle joint error, but it makes motor shocking so strong & stop suddenly without finishing targeted position.
Please Log in or Create an account to join the conversation.
- zz912
- Offline
- Platinum Member
- Posts: 508
- Thank you received: 81
STEPGEN_MAXVEL
STEPGEN_MAXACCEL
I have no experience with Ethercat, so I don't know if this information will help you.
What is your max servo driver acceleration?
What is your max servo driver velocity?
What is your max acceleration joint in INI file?
What is your max velocity joint in INI file speed?
The maximum acceleration and maximum speed of the physical hardware should be greater than the maximum acceleration and maximum speed of the LCNC.
Do you have yerk set in the servo drivers? 3rd derivation of position. LCNC can't do this, so that could also be a source of problems.
Do you use velocity control or position control?
Please Log in or Create an account to join the conversation.
- DPFlex
- Offline
- Junior Member
- Posts: 28
- Thank you received: 1
I tried (FERROR; MIN_FERROR) = (10;1) first, it runs well. I will try 1-2 days more.
After that I will test your advice of high value (100, 100). Just want to test all scenario for understanding.
Hi zz912,
I have not revised STEPGEN_MAXVEL/MAXACCEL, and not check info of drivers, just let it as default.
I will do it in next step
Thanks all of you a lot.
Please Log in or Create an account to join the conversation.
- bertoldo
- Offline
- Junior Member
- Posts: 39
- Thank you received: 0
I'm trying to get my Scara to work with Ethercat too. However, so far in 3 months the only progress has been in finding the slave on the Raspberry Pi4 terminal.
How do I configure the LinuxCNC software from scratch so that the Scara robot can run with Ethercat? Could you give me some guidance?
Please Log in or Create an account to join the conversation.
- DPFlex
- Offline
- Junior Member
- Posts: 28
- Thank you received: 1
I have no experience with Raspberry Pi. I do with Laptop + Debian 12 RT kernel + LinuxCNC
Here is my files for SCARA with Gmoccapy demo.
You just need to revise EtherCAT "xml" file to meet your real motor servo controller.
Hope you find it helpful.
Tks.
Attachments:
Please Log in or Create an account to join the conversation.
- bertoldo
- Offline
- Junior Member
- Posts: 39
- Thank you received: 0
I haven't been able to properly understand how Linux CNC works... so I'm following the tutorials here but without a knowledge base, that's what's holding me back now.
Would you be interested in doing some consulting to help me? Because I have to hand it in at college and I can't do it.
Please Log in or Create an account to join the conversation.
- bertoldo
- Offline
- Junior Member
- Posts: 39
- Thank you received: 0
Please Log in or Create an account to join the conversation.