As you know, I'm busying with PLCs and my favorite software is TIA Portal about this. I just create a Ladder diagram and some function with the TIA Portal. And I simulated with Factory IO. Of course I recorded :)

These are my functions:

Palletizer Program Functions

Also, I used many timers in the program. Sometimes I need a time barrier for Set or Reset.

I wanna show you a simulation video record of the program.

Factory IO | Palletizer Simulation with S7 1200 PLC

I'm really enjoying this :)