RobotStudio event

Smart Component improvement

Hello,

I'm learning palletizing with smart component by myself. Currently Each box placed on the Out pallet disappears 2sec after placement. I want to improve it like this. I'd like to place total 4 boxes or more on the pallet. and when an output signal(ex. doComplete) from RAPID is set, all boxes are disappeared after 2sec. After that new palletizing continues from the begining. Could anyone help ?

BR,