I need to write a simple c# app which communicates with a Siemens S7 via OPC. It just needs to query single inputs and set single outputs.

What do I need to do this? Do I need stuff like Xi from OPCFoundation?