Packaging palletizer!!!!!

Hello!
Do you have an example of the work program palletizer.
We have a robot that takes the box with two conveyor and places them
on two pallets.
algorithm:
There comes a number of discrete signal the robot takes the box from the first conveyor and puts on the first pallet.
He returned to the home position.
There comes a discrete signal number 2 robot takes the box from the second conveyor and puts on a second pallletu.
He returned to the home position.
There is an assembly of pallets.

D-D’?D?D???,D??D1?,D?!
D? D?D??_ D???,?O D??D,D?D?? ?D?D?D?+D?D1 D??D_D3?D?D?D??< D?D?D?D?D??,D?D1D?D??D?.
D? D?D??
D_D’D,D? ?D_D?D?, D?D
?,D
?
?