Hello,
With the Process Modelling, that would be easy to do (see answer to your previous post: Efficient way to pick 50 parts from a 5×10 pallet without teaching 50 targets (Robot Program) - #6 by mkittell )
I don’t think it is possible to do it with the robot programming without programming a little bit in Python.