Hello Teowk;
MPI and Profibus are both RS-485 protocols, so will will need a protocol converter to connect to a RS-232 port. Siemens of course has its PC-Adapter, but you can fnd other MPI adapters on the market. Note that a straight RS-485 to RS-232 converter, that you can find from B&B or other electronic manufacturers, will not work; there are conversion issues that are handled by the specialized modules.
Once you have the hardware issues under control, you have several choices:
- use an OPC client to connect to Siemens MPI/OPC server
- buy Siemens' Computing package, which has integrated libraries to link C code to MPI through OPC (Entry ID:1171633 o Siemens' webpge, www4.ad.siemens.de)
- use Siemens' Prodave MPI package for the Borland C++ compiler or VB(Entry ID:100831 in Siemens' webpage)
- look at other developper's code, such as Luca Gallina's runmode.com
Hope this helps,
Daniel Chartier