Another question on this: Along with the dynamic axis velocity while jogging, I also need to implement soft limits to keep the axes from crashing. I think I need to either a: use AXVEL to jog, and every scan calculate at what point I need to stop the jog and ramp to a stop, based on the current velocity, and considering the current acceleration, or b: Use an AXSCRIPT, with a While loop repeating a Ramp to Vel command, until reaching the point where we need to stop, and then transitioning to a Move to Position command, to bring the axis to a stop at exactly the limit of its stroke, or c: use AXVEL and just simply trim the TargetVelocity as I approach the limit, so that it ramps the TargetVelocity to zero by the time the limit is reached.
Not sure I'm thinking through this all correctly. I would prefer to use S-curve accel/decel ramps, so the math gets a bit dense for me. Maybe I'm overcomplicating this too. Just curious if there's any insight from anyone.
Thanks!