0% found this document useful (0 votes)
4 views7 pages

MPI-US

The document provides detailed instructions for setting up and configuring the Siemens MPI driver (MPI.DLL) for S7-300 and 400 PLCs, including hardware and software requirements. It outlines the necessary steps for software installation, configuration of the CP 5412 A2 board, and the creation of communication parameters and address parameters for PLC and block tags. Additionally, it describes the structure of the VARS.INI file used for defining variable commands to be read or written.

Uploaded by

baca.sandro2024
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views7 pages

MPI-US

The document provides detailed instructions for setting up and configuring the Siemens MPI driver (MPI.DLL) for S7-300 and 400 PLCs, including hardware and software requirements. It outlines the necessary steps for software installation, configuration of the CP 5412 A2 board, and the creation of communication parameters and address parameters for PLC and block tags. Additionally, it describes the structure of the VARS.INI file used for defining variable commands to be read or written.

Uploaded by

baca.sandro2024
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
You are on page 1/ 7

SIEMENS MPI

File: MPI.DLL

Manufacturer: Siemens

Equipment: S7-300 and 400

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:

 S7-5412 / WINDOWS95 V2.11

 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

To configure MPI do the following:

1) Run SINEC-SETUP program (see the picture):


2) Setup each network node, using SIMATICNET-SETUP program you can access from Edit /
Configure Menu of SINEC-SETUP. The following picture shows a configuration example for just one
PLC:
At this moment it is very important to save the configuration (“Save Text DB”) and generate the binary
DB from it (“Generate Binary DB”). The resulted file (*.LDB) will be used for setting 5412 in the next
step.

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]

And an example for more than one connection:

[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.

Address Parameters (n) for PLC Tags:

N1 - Device and connection.

N1 = Device*100 + connection

Example: N1=0000 means device=0 and connection=0,

N1= 0908 means device=09 and conection=08.

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.

Address Parameters (b) for BLOCK Tags:

Block reading is similar to PLC Tags, however is faster as you have data stored sequentially. Block
parameters are:

B1 - Device and connection.

N1 = Device*100 + connection

Example: N1= 0908 means device=09 and conection=08.

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:

;variable file example

;Elipse Software 1997


;Syntax Cn = Variable to read/write

;note that variables can be declared in any sequence

[VARS]

;Read memory address 9 - 2 bytes (or a word, n2 = 0)

C1 = MB9,2

;Read memory address 15 - 1 byte (n2 = 2) (MB = Memory ;Block)

C5 = MB15

;Read memory address 9 to 29 including.

;That means: read a 20 bytes block (10 words, n2 = 0 ;or 20 bytes, n2


=2)

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.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy