Home› Programming
Discussion
Back to discussions page
Sebastien
Posts: 219 Handy
Acces to the number of rows and column of a palet in UR |
142 views
|
Answered | |
/ Most recent by Stefan_Stubgaard
in Programming
|
4 comments |
in Programming
Hi pros,
we are using the pallet tool in the UR robot and in the before start sequence the operator has to enter the first pocket where he wants the next part to be dropped in the pallet sequence. Basically setting the correct cnt_x variable value corresponding to the pallet. We would like to flag an error if that number is too big for example. We can do it by manually calculating row*columns and comparing with that value but if we change the rows and columns in the pallet wizard we must not forget to change the limit. Is there any ways we can access the number of rows and columns we have in our pallet tool via a variable?
we are using the pallet tool in the UR robot and in the before start sequence the operator has to enter the first pocket where he wants the next part to be dropped in the pallet sequence. Basically setting the correct cnt_x variable value corresponding to the pallet. We would like to flag an error if that number is too big for example. We can do it by manually calculating row*columns and comparing with that value but if we change the rows and columns in the pallet wizard we must not forget to change the limit. Is there any ways we can access the number of rows and columns we have in our pallet tool via a variable?
Tagged:
Do you have some tips about this issue?
I set up the wizard with basically 4 columns and 5 rows, here is the code that was generated by the scriptwriter
You can see that the number of columns (4) is being used to determine when to move over a column as well as when to change rows and then the total number of index positions is already set for the if statement (19) so does not appear that they are setting any variables anywhere that you could access.
@Stefan_Stubgaard if you have any other insights that would be helpful
@Sebastien this is one of the reasons that we often times write our own palletizing, stacking and destacking routines, so that we have control over every aspect of the algorithm and can get the data that we need to make it easier for the operator to run it correctly.
Hope this helps some
thanks for the tip. I did not think of looking at the script generated. Good idea.
We also usually use our own palettising but a recent project was simple so we gave it a shot and it works well for what we need!
An "enhanced packaging wizard" with such functionality could be a good opportunity for any aspiring UR+ developers out there to consider developing.