Hi Lausch, no need to apologise, I've been pretty busy too.
Setting up the drives took a while: yeah... they're capable but I suspect that there's a bunch of 'smart' things happening that are making them useless in position mode (eg they'd settle with a huge steady state error etc) and the documentation/software isn't clear on what might be doing that... but PID back to LCNC in vel mode works well. I guess that's the difference between a $10k yaskawa setup and these :shrug:
PID: yeah, I have mixed settings:
- Z axis has a ~1:1 inertia ratio (aka ~100 in the software), but is horizontal (ie not impacted by gravity) and has the least mass to move. It only needed ff1=1 and a P of 40
- Y axis has a ~1:1.5 but has ~10-15kg to lift on a 10mm pitch screw so gravity has a huge impact. I couldn't figure out the bias value in time for a deadline so it's got a less than ideal tune but still does very well, P=70, I=0.5, D=1.2. FF1=1. Bias is 0 but it needs one I think, very asymmetric load.
- X axis is another story... I'm not sure what the inertia ratio really is... the software craps out around the 1000 mark (ie 1:10) but prior to the LCNC PID change I got it to tune with 888 value though with less than ideal following error. This axis is a 400W servo directly into a dual output 5:1 very low backlash servo gearbox, with a shaft running to either side of the gantry to a pulley. The axis drives itself along a pair of ATL5 belts in omega configuration (ie fixed belt, pulley crawls along the belt, basically the quiet version of a rack and pinion). The LCNC PID for this axis is... also not great, but vastly better than it was. I haven't been able to get a tight tune though I'll revisit it before the prototype goes to its owner. The issue I have is oscillations, both high frequency ones and very low frequency ones. Low P value relative to the others, and Fortunately this application has the X axis predominantly doing long swooping back and forth motions (4m travel) so it works well with lower accelerations and a slightly looser tune (following error is still <0.5mm on 60m/min rapids)... I've since done a test cut at 40m/min in the cut (foam) and it cut perfectly... finally. P=70, I=15, D=0.15. FF1=1. Lotta room for improvement on this one though.
One of the issues with tuning the LCNC PID is you're competing with the drive's PID/other settings. One thing I realised halfway through my tune (with deadline looming that day...) is I still had some command smoothing and filtering on the drives... which made tuning much easier once I disabled. I actually tuned the drives with a laptop plugged into the drives and was playing with the leadshine tune simultaneously; for example I was able to increase stiffness on the drive without adding noise while in this velocity mode.
There's still a lot of drive-side tuning I could do, need to dig through the manual with velocity mode in mind to find it all though. If the budget could stretch to a bigger gearbox (400W rated one was $500) to suit my spare 750w motor I'd change over X and solve a bunch of issues.
Your deviation problem is interesting.. I don't have absolute encoders on mine so I haven't had that issue, I need to home before use. I vaguely recall seeing something in one of the ethercat threads about updating lcnc using the absolute encoder but I can't find it nor remember enough to give you a good search term.
Do you have an email I can send you links to video of my machine? I can't post it here yet for business reasons outside of my control, but once it's released I will update on the forum. Feel free to edit your post to remove your email once I've sent you one.