I am also learning and your issue is I suspect over MY head, (plus I know nothing of Siemens).
BUT, if you state very specifically exactly what the program should do AND, as importantly, what you have done ...so far... and just exactly where you are stuck you're likely to get advice that will help you learn to be able to do it.
Good Luck
Spaseba