RobotStudio event

Pick and place problem.

Hi
I am new in rapid programming and I need to write a program in pick and place app. I have got the S4C system(with IRB6400 )
Could anyone give me an example about this apps(for example to put products in a 10*10 pallet).
Thank you in advance.