Your request is so broad that I would not know where to start to help you.
For a quick overview, click on "Learn PLCS" at the top of this screen (on PLCS.net).
There are hundreds of sample programs posted here over many years. There are some more in the "Downloads" section.
If you have some idea of what brand and model of PLC you want to program, that will help to narrow your search.