You can find some hints on this site Useful stuff , and an example in Delphi. The PPI protocol is not disclose by Siemens and you will have to dig by yourself. It's easier to use an OPC. Siemens have an OPC for Excel called "S7-200 PC Access", that can save data directly in Excel.
Regards
marie65