Download a copy of Codesys from www.3s-software.com. You will have to register. You can run it in simulation mode. It has a first steps manual with various examples.
or if you want to spend money you could buy the book: IEC 61131-3: Programming Industrial Automation Systems: Concepts and Programming Languages, Requirements for Programming Systems, Aids to Decision-Making Tools