homing & encoders
This all works great with single-feedback servo systems. And it would work great on your machine if you used the stepper in velocity mode, and used your encoder as the sole source of position feedback.
Ok, ill try that tomorrow, the example above was just to make clear that there allways is a offset when an index- occurs. Alex_joni took that "offset" into the discussion... If you are wondering what i am doing:
Im working with some people on a production system, we want to use pallets to pass the parts from one machine to another machine. The NC-Code is saved inside the pallets (kind of usb-stick), also the working-offsets (in absolute-position). So we can just put the pallet with the (unfinished parts) on a machine (even 10 days later) and the machine knows what to do with that part without finding Offsets again or spending time to find the right progam for that part... Thats the reason i need the absolute position of the linear encoder -> and the home on index.
Please Log in or Create an account to join the conversation.
was hard to find the right setup for this, most examples are made for servos, so if somebody needs a setup for steppers with linear- encoders, just let me know...
regards & thanks Thomas
Please Log in or Create an account to join the conversation.
Thanks
John
Please Log in or Create an account to join the conversation.
- seb_kuzminsky
- Offline
- Administrator
- Posts: 75
- Thank you received: 14
Do i understand you correctly that you are resetting the stepgen position? I think you shouldnt need to do that when you have the stepgen in velocity mode and position-feedback from the linear encoder.
Please Log in or Create an account to join the conversation.
Deadband has to be > 1/2 Resolution of the encoders to prevent the steppers from oscilating.
regards, Thomas
Please Log in or Create an account to join the conversation.
- seb_kuzminsky
- Offline
- Administrator
- Posts: 75
- Thank you received: 14
But i dont understand why you'd get following errors with the standard stepgen. In the config you've described, the stepgen.position-fb should not be connected to anything at all - how can its value cause a following error?
Please Log in or Create an account to join the conversation.
if i set the accel & velocity values very low (i mean VERY LOW!) it seems that the problem is gone, doing this also the unmodified stepgen reset on index works...
Thomas
Please Log in or Create an account to join the conversation.
That looks great, thanks for the video!
But i dont understand why you'd get following errors with the standard stepgen. In the config you've described, the stepgen.position-fb should not be connected to anything at all - how can its value cause a following error?
Well, if the stepper is accelerating higher than the machine can handle the encoder-position will fall behind... this will cause an joint-follow error....
Please Log in or Create an account to join the conversation.
Thanks,
Tom
Please Log in or Create an account to join the conversation.
Thanks,
Joe
Please Log in or Create an account to join the conversation.