MPI-US
MPI-US
File: MPI.DLL
Manufacturer: Siemens
Release: 07/02/2000
Connection :
The Driver uses a CP 5412 A2 board installed directly on a PC slot which is connected to a S7-300 or
400 PLC. It is also necessary a Siemens Software to set the protocol and the board. the board and
Software specifications are:
6GK1702-5CH00-0EA0
Software Setup :
The Simatic S7 TI Conversion Software must be installed in your computer for your system to
recognize and initialize the CP5412-A2 board, you must also define the connection data. Using the
Sinec Setup and Simatic Net Software you can define the VFD connection name, and other important
parameters. The same names defined for the connection must be used in S7.INI file
3) To Set 5412-A2 board using SINEC-SETUP program select the “CP Type” line on the main screen
and call the Edit menu selecting “Configure Existing CP” or “Create New CP”. The following screen
shows a typical CP setup:
4) Generating S7.INI file for Elipse start the communication trough 5412-A2. This file must be set
according SIMATICNET configuration (step 2). The following picture shows a .INI example for the
configuration used in step 2:
[CP-Start]
CP_L2_1:
VFD1
TST
[CP-End]
[CP-Start]
CP_L2_1:
VFD1
TST1
TST2
TST3
...
[CP-End]
In the example above, TST1 is the name of the first connection, TST2 is the name of the second
connection and so on.
Communication Parameters P:
Not used. All P parameters must be set to zero. All generic parameters of this drivers are set using the
"Extra" Dialog-Box, shown below:
a) LOG File: these parameters define how the LOG (or DEBUG) File will be created. One can choose
"No LOG", "Create new" (for creating a new file at each initialization) or "Append data" (for appending
new data at the end of an existing file). In the edit-box "File path:" enter the name and path of the LOG
File. The options "Standard Error Output" and "ASCII Output" are not used in this Driver. Select the
option "Log Date & Time" if you want a time-stamp beside each line of the LOG-File.
b) S7-Functions Settings: in the field "Time-Out (ms):", enter the maximum time in milliseconds that
the Driver should wait for a response of the PLC. The suggested setting is 5000 ms.
N1 = Device*100 + connection
In the case of a configuration of only one device and only one connection, this
parameter should always be 0 (0*100 + 0 = 0).
N2 - Variable Type:
N2 = 0 à Word
N2 = 2 à Byte
N2 = 3 à Bit
N2 = 4 à Real
N3 - variable index to read/write. This index is used in VARS.INI file, where Driver variables
are stored. (see VARS.INI section in this document)
N4 - Block Element. For instance to read the second bit of a byte, set N4 = 2.
Block reading is similar to PLC Tags, however is faster as you have data stored sequentially. Block
parameters are:
N1 = Device*100 + connection
In the case of a configuration of only one device and only one connection, this
parameter should always be 0 (0*100 + 0 = 0).
B2 - Variable Type:
B2 = 0 à Word
B2 = 2 à Byte
B2 = 3 à Bit
B2 = 4 à Real
B3 - variable index to read/write. This index is used in VARS.INI file, where Driver variables
are stored. (see VARS.INI section in this document)
B4 - Block Element. For instance to read the second bit of a byte, set N4 = 2.
VARS.INI File:
This file is used to set in one line the command number and the variable to be read. See the following
example:
[VARS]
C1 = MB9,2
C5 = MB15
C2 = MB9,20
When N3 = 1, this Tag will be related to the variable defined in C1 of VARS.INI, in this way this Tag will
read a word from memory block 9 (1 word = 2 bytes).
To read a block of 2 bytes starting in MB9, we can set B3=1 and B2=2 instead of setting N2=0 as on
the previous example.