I would suggest 2 ways to do that:
1/Use the wizard>Seek node integrated in Polyscope:
This would be the user friendly way to proceed. Inside the stack and unstack process you can use force sensor to know where you can release or pick the part.
2/Make a custom stacking program:
This is kind of smashing a fly with a hammer but a custom stacking program give you more control to adjust your process.
You can download programs with the following link:
https://robotiq.egnyte.com/fl/2LQfxpoVCU
Here below is the video of the custom stacking:
Hi there, was hoping you could help me build my program for destacking. Not sure what expression to use so the robot knows to go down 25mm every time. Also I need the gripper to go down closed and touch the stack to know its there and then open go down more and close, it wont allow me to put the gripper in the middle of the program.