Problems with Lichuan Ethercat servo drive

More
1 year 8 months ago - 1 year 8 months ago #321638 by LCR
 Please note this is not in anyway final. I just wanted to show how I am running and homing a gantry.
I would like to use the actual captured value of the index pulse, not just let LinuxCNC know that it's been hit, but at slow speeds it doesn't matter in my case.

File Attachment:

File Name: cia402_2025-02-15.hal
File Size:19.08 KB
 

File Attachment:

File Name: cia402_202...-15.comp
File Size:10.12 KB
 

File Attachment:

File Name: cia402_2025-02-15.ini
File Size:5.6 KB

 

File Attachment:

File Name: spindle_to_pyvcp.hal
File Size:1.39 KB
 

File Attachment:

File Name: ethercat-c...2-15.xml
File Size:6.69 KB
 

File Attachment:

File Name: spindle.xml
File Size:3.69 KB
Last edit: 1 year 8 months ago by LCR.
The following user(s) said Thank You: COFHAL

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

More
1 year 8 months ago - 1 year 8 months ago #321640 by LCR
more files

File Attachment:

File Name: vfd-CUMARK...file.ini
File Size:975 B

File Attachment:

File Name: arduino-connector.py
File Size:17.39 KB

File Attachment:

File Name: vfdcumark.comp
File Size:1.04 KB

 
Last edit: 1 year 8 months ago by LCR.
The following user(s) said Thank You: COFHAL

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

More
1 year 8 months ago #321944 by LCR
Copying the velocity FF command from the comp file to the XML file significantly reduces following error to a ramp. I haven't really tuned the drive yet. If anyone has found an auto-tune button, please let me know.

.comp
  drv_target_velocity = (int32_t) (velocity_cmd * velo_scale);

.xml
<pdoEntry idx="60B1" subIdx="00" bitLen="32" halPin="target-velocity" halType="s32"/>

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

More
1 year 8 months ago - 1 year 8 months ago #322875 by Philip Lydin
Why do i get that it cant find "cia402.0.probe1rising". Where does these pins get added? And in what directory should i have the .comp file?
 
Last edit: 1 year 8 months ago by Philip Lydin.

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

More
1 year 8 months ago #322876 by LCR
It is in the hal file I attached in a previous message. Search for probe1rising. Please note that this is a work in progress (or lack there of for a couple of weeks). I just wanted to show my hack to get a gantry going. Download all the files and search them. Be aware of the LinuxCNC underscore dash translation that occurs between various files. That's why my naming is poorly readable.

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

More
1 year 8 months ago #322877 by LCR
If you aren't trying to get a gantry going don't look at what I've posted, it will only set you back.

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

Time to create page: 0.155 seconds
Powered by Kunena Forum