Hello,
I'm working on a pick & place project where the robot picks from a conveyor and deposits the products in predefined positions. The products have to be picked from a certain orientation so that they're placed correctly everytime. The coordinates and orientation are sent by a camera so I don't have the exact Status and Turn for the place the robot needs to go to pick the product.
My problem is that the controller maintains the S and T from the previous motion so sometimes it performs the shortest motion and sometimes A6 turns 360° more than it should. I want to be able to limit the motion range of axis A6 on a KR3 R540 robot so that it works between -180 and 180.
The only solution I could come up with is geometrically calculate the position of A6 on the end point and set the bit 5 of Turn so that it takes the path I prefer. This is a complicated solution because it works for this particular setup, so what I want is a way to set conditions for the motion planner to take into account. For example to choose the shortest path and disregard the previous Turn or set working limits for an axis (but not the ones that stop the robot for safety purposes). Is this possible?
I've been reading all the manuals I think can be relevant for this but I couldn't find anything.
Thanks