Hi:
I just talk a little bit about my experience of learning S5 or S7, s5 and s7 is almost same in programming, but one is base on dos, another is base on window.anyway they have the same programming style.
for s7,when you install the software, one electronics book will come with you,there are some example in there.
below is my suggustion:
1,hardware configuration
2,make clear the relations between the OB,PB,DB
3,PB block must go with DB block
4,you can get the DB block by automatically or manually
5,when you do your program , how to open a DB block is important
I will be happy if you get a little help