This example was manually migrated for Marcopolo5 - last modified <span class="documentModified">2008-02-07 08:10
This example provides a library of LabVIEW VI's that can be used to communicate with a Siemens S7-300 PLC via the MPI port.
This example communicates with a S7-300 PLC through a Simatic S7 PC Adapter (MPI to RS-232 adapter). Communication with the Simatic PC MPI adapter is based on the 3964r protocol and communicates via RS-232. The example provides an API to read from / write to registers on the PLC.
This example was not created from a protocol specificaion, but through reverse engineering sample data sent between a PC and S7 PLC. Use at your own risk.
Also included is an example of using a cRIO-901x contoller as a data logger for MPI data. The program logs data from registers listed in the "MPI Read Write Array". Data is saved on the internal flash memory and is automatically transfered to USB drive when one is connected to the external USB port of the cRIO.
Steps to Implement
Download and extract zip file.
Open Siemens MPI.lvproj
Run MI Test.vi or MI Test 2.vi
-Siemens S7-300 PLC
**This document has been updated to meet the current required format for the NI Code Exchange. For more details visit this discussion thread**