5
show the entry list S7-200 CPUs -- Product information -- System de scription  How does data communication work between S7-300/S7- 400 an d S7-200 via MPI using S7 basic communication? How does data communication work between S7-300/S7- 400 an d S7-200 via MPI using S7 basic communication? Display part number Description:  You can access various S7-200 CPUs from the S7 -300 / 400 using X_PUT / X_GET via MPI. Here, the S7-300 / S7-400 is the master and the S 7-200 the slave. Fig. 01 With S7-200 CPUs of the CPU 22x s eries, you can work with the baud rates19.2kBd and 187.5kBd. Refer to the technical data of the CPUs concerned for the transfer rates supported by your S7-300 / S7-400 CPU at the MPI interface. The manual with the technical data of the S7-300 CPUs is available in Entry ID: 12996906 The manuals with the technical data of the S7-400 CPUs is available in the following Entry IDs: l 23904550: S7-400 CPUs FW V5.x l 14016796: S7-400 CPUs FW V4.x l 19538001: S7-400 CPUs FW V3.x The table below gives you information about the maximum number of connections available for S7 basic communication in the S7-300 CPUs. CPU Max. number of connections for S7 basic communication CPU 312, CPU 312C 2 CPU 313 4 CPU 313C, CPU 313C-2DP, CPU 313C-2PtP 4 CPU 314 8 CPU 314C-2DP, CPU 314C-2PtP 8 CPU 315 8 CPU 315-2DP, CPU 315F-2DP 12 Page 1 of 5 Siemens - Industry Automation and Drive Technologies - Service& Support - Automation... 02.09.2010 http://support.automation.siemens.com/WW/llisapi.dll/23586365?func=ll&objId=235863 ...

How Does Data Communication Work Between S7-300 S7- 400 and S7-200 via MPI Using S7 Www.otomasyonegitimi.com

Embed Size (px)

Citation preview

Page 1: How Does Data Communication Work Between S7-300 S7- 400 and S7-200 via MPI Using S7 Www.otomasyonegitimi.com

8/2/2019 How Does Data Communication Work Between S7-300 S7- 400 and S7-200 via MPI Using S7 Www.otomasyonegiti…

http://slidepdf.com/reader/full/how-does-data-communication-work-between-s7-300-s7-400-and-s7-200-via-mpi 1/5

show the entry list

S7-200 CPUs -- Product information -- System description 

How does data communication work between S7-300/S7- 400 and S7-200 via MPI using S7basic communication? 

How does data communication work between S7-300/S7- 400 and S7-200 via MPI using S7 basiccommunication?

Display part number

Description: You can access various S7-200 CPUs from the S7-300 / 400 using X_PUT / X_GET via MPI. Here,the S7-300 / S7-400 is the master and the S7-200 the slave.

Fig. 01

With S7-200 CPUs of the CPU 22x series, you can work with the baud rates 19.2kBd and 187.5kBd.

Refer to the technical data of the CPUs concerned for the transfer rates supported by your S7-300 / S7-400 CPU at the MPI interface.

The manual with the technical data of the S7-300 CPUs is available in Entry ID: 12996906

The manuals with the technical data of the S7-400 CPUs is available in the following Entry IDs:

l 23904550: S7-400 CPUs FW V5.xl 14016796: S7-400 CPUs FW V4.xl 19538001: S7-400 CPUs FW V3.x

The table below gives you information about the maximum number of connections available for S7basic communication in the S7-300 CPUs.

CPU Max. number of connections for

S7 basic communication 

CPU 312, CPU 312C 2

CPU 313 4

CPU 313C, CPU 313C-2DP, CPU 313C-2PtP 4

CPU 314 8

CPU 314C-2DP, CPU 314C-2PtP 8

CPU 315 8

CPU 315-2DP, CPU 315F-2DP 12

Page 1 of 5Siemens - Industry Automation and Drive Technologies - Service& Support - Automation...

02.09.2010http://support.automation.siemens.com/WW/llisapi.dll/23586365?func=ll&objId=235863 ...

Page 2: How Does Data Communication Work Between S7-300 S7- 400 and S7-200 via MPI Using S7 Www.otomasyonegitimi.com

8/2/2019 How Does Data Communication Work Between S7-300 S7- 400 and S7-200 via MPI Using S7 Www.otomasyonegiti…

http://slidepdf.com/reader/full/how-does-data-communication-work-between-s7-300-s7-400-and-s7-200-via-mpi 2/5

The table below gives you information about the maximum number of connections available for S7basic communication in the S7-400 CPUs.

Requirements for the S7-200 CPU: 

l Set the address of the S7-200 CPU.

l Put the data to be sent into the relevant Send buffer or get the received data from the Receivebuffer.

l You define the Send and Receive buffers in STEP 7 when parameterizing the system functionsSFC67 "X_PUT" and SFC68 "X_GET".

l

Refer to the notes on networking CPUs in the S7-200 system manual in Entry ID: 1109582.

Reading data from the S7-200 CPU with the system function SFC67 "X_GET"You use the system function SFC67 "X_GET" for reading data from the S7-200 CPU. You call this inthe OB1 of the S7-300 / S7-400, for example.

In this example, 10 bytes are read as from address 10 from the variable area of the S7-200 CPU. The10 bytes of data received are stored in data block DB10 as from address 10 in the S7-300/S7-400.

The following table gives an overview of the input parameters of the system function SFC67 "X_GET".

CPU 315-2PN/DP, CPU 315F-2PN/DP 14

CPU 316 8

CPU 316-2DP 8

CPU 317-2DP, CPU 317F-2DP 30

CPU 317-2PN/DP, CPU 317F-2PN/DP 30

CPU 318-2DP 30

CPU 319-3PN/DP, CPU 319F-3PN/DP 30

CPU 614 8

CPU  Max. number of connections forS7 basic communication 

CPU 412-1 < FW V5.0 14

CPU 412-1 from FW V5.0 30

CPU 412-2DP < FW V5.0 14

CPU 412-2DP from FW V5.0 30CPU 413-1 14

CPU 413-2DP 14

CPU 414-1 30

CPU 414-2DP 30

CPU 414-3DP 30

CPU 414-3PN/DP 30

CPU 416-1 42

CPU 416-2DP, CPU 416F-2DP 42

CPU 416-3DP 42

CPU 416-3PN/DP, CPU 416F-3PN/DP 42

CPU 417-4 42

Page 2 of 5Siemens - Industry Automation and Drive Technologies - Service& Support - Automation...

02.09.2010http://support.automation.siemens.com/WW/llisapi.dll/23586365?func=ll&objId=235863 ...

Page 3: How Does Data Communication Work Between S7-300 S7- 400 and S7-200 via MPI Using S7 Www.otomasyonegitimi.com

8/2/2019 How Does Data Communication Work Between S7-300 S7- 400 and S7-200 via MPI Using S7 Www.otomasyonegiti…

http://slidepdf.com/reader/full/how-does-data-communication-work-between-s7-300-s7-400-and-s7-200-via-mpi 3/5

The following table gives an overview of the output parameters of the system function SFC67"X_GET".

Writing data to the S7-200 CPU with the system function SFC68 "X_PUT"You use the system function SFC68 "X_PUT" for writing data to the S7-200 CPU. You call this in theOB1 of the S7-300 / S7-400, for example.

In this example, 10 bytes are written as from address 10 to the variable area of the S7-200 CPU. The

Input parameter Variable Description

REQ M0.1 The input parameter REQ (request toactivate) is a level-triggered controlparameter.A positive level at M0.1 of the S7-300 / S7-400 starts reading of the data from the S7-200.

CONT FALSE The input parameter CONT (continue) is acontrol parameter that determines whetheror not the connection to the communicationpartner remains established uponcompletion of the job.

CONT=0: connection is cleared down aftercompletion of data transfer.CONT=1: connection remains establishedafter completion of data transfer.

DEST_ID W#16#4 MPI address of the S7-200 CPU

VAR_ADDR P#DB1.DBX 10.0 BYTE 10 Reference to the area to be read in the

partner CPU.10 bytes of data are read as from address10 from the variable area (VB) of the S7-200.

Output parameter Variable Description

RET_VAL MW 2 If an error occurs during processing of thefunction, the return value includes therelevant error code.

If no error occurs, the RET_VAL containsthe length of data block copied into thereceive area RD as a positive number inbytes.

BUSY M12.1 BUSY=1: The receive procedure has not yetfinished.BUSY=0: The receive procedure has beencompleted or no receive procedure is active.

RD P#DB10.DBX 10.0 BYTE 10 Reference to the receive data area.The following data types are permitted:BOOL, BYTE, WORD, DWORD, and arraysof these data types except BOOL.

The receive area RD must be at least aslong as the read area VAR_ADDR of thecommunication partner.In addition, the data types of RD andVAR_ADDR must match.

Page 3 of 5Siemens - Industry Automation and Drive Technologies - Service& Support - Automation...

02.09.2010http://support.automation.siemens.com/WW/llisapi.dll/23586365?func=ll&objId=235863 ...

Page 4: How Does Data Communication Work Between S7-300 S7- 400 and S7-200 via MPI Using S7 Www.otomasyonegitimi.com

8/2/2019 How Does Data Communication Work Between S7-300 S7- 400 and S7-200 via MPI Using S7 Www.otomasyonegiti…

http://slidepdf.com/reader/full/how-does-data-communication-work-between-s7-300-s7-400-and-s7-200-via-mpi 4/5

10 bytes of data sent are stored in data block DB10 as from address 20 in the S7-300/S7-400.

The following table gives an overview of the input parameters of the system function SFC68 "X_PUT".

The following table gives an overview of the output parameters of the system function SFC68"X_PUT".

More information on the system functions SFC67 "X_GET" and SFC68 "X_PUT" is available in EntryID: 1214574.

A sample program for parameterizing the system functions SFC67 "X_GET" and SFC68 "X_PUT" isattached for downloading.

Inputparameter 

Variable  Description

REQ M100.1 The input parameter REQ (request to

activate) is a level-triggered controlparameter.A positive level at M100.1 of the S7-300 / S7-400 starts writing of the data to the S7-200.

CONT FALSE The input parameter CONT (continue) is acontrol parameter that determines whetheror not the connection to the communicationpartner remains established upon completionof the job.

CONT=0: connection is cleared down aftercompletion of data transfer.CONT=1: connection remains establishedafter completion of data transfer.

DEST_ID W#16#4 MPI address of the S7-200 CPU

VAR_ADDR P#DB1.DBX 20.0 BYTE 10 Reference to the area to be written to in thepartner CPU.10 bytes of data are written as from address20 to the variable area (VB) of the S7-200.

Outputparameter

Variable Description

SD P#DB10.DBX 20.0 BYTE 10 Reference to the area in your own CPU thatcontains the data to be sent.The following data types are permitted:BOOL, BYTE, WORD, DWORD, and arraysof these data types except BOOL.SD must have the same length as theVAR_ADDR parameter of thecommunication partner. In addition, the datatypes of SD and VAR_ADDR must match.

RET_VAL MW102 If an error occurs during processing of thefunction, the return value includes therelevant error code.

BUSY M112.1 BUSY=1: The send procedure has not yetfinished.BUSY=0: The send procedure has beencompleted or no send procedure is active.

Page 4 of 5Siemens - Industry Automation and Drive Technologies - Service& Support - Automation...

02.09.2010http://support.automation.siemens.com/WW/llisapi.dll/23586365?func=ll&objId=235863 ...

Page 5: How Does Data Communication Work Between S7-300 S7- 400 and S7-200 via MPI Using S7 Www.otomasyonegitimi.com

8/2/2019 How Does Data Communication Work Between S7-300 S7- 400 and S7-200 via MPI Using S7 Www.otomasyonegiti…

http://slidepdf.com/reader/full/how-does-data-communication-work-between-s7-300-s7-400-and-s7-200-via-mpi 5/5

The sample program is a STEP 7 project that contains the complete hardware configuration includingthe user program of an S7-300 station. The STEP 7 project is available for downloading as a ZIP file.Extract the "S7_basic_communication.zip" file into a separate directory. The STEP 7 project isunpacked automatically with all its subdirectories. You can then use the SIMATIC Manager to openand process the extracted STEP 7 project.

S7_basic_communication.zip ( 412 KB )

Note: Set the S7-300/S7-400 control to STOP mode before loading the block that calls the system functionsSFC67 "X_GET" and SFC68 "X_PUT" into the controller. This ensures that the system functionsSFC67 "X_GET" and SFC68 "X_PUT" are initialized in any case and the data is transferred.

If you need faster data transmission, use PROFIBUS DP instead of S7 basic communication via MPI.PROFIBUS DP is not connection-oriented communication.If you use PROFIBUS DP, then you need a PROFIBUS expansion module EM 277 in the S7-200.Detailed information on the expansion module EM 277 is available in the S7-200 system manual inEntry ID 1109582.

Entry ID:23586365 Date:2009-10-21

I regard this article.... as helpful as not helpful  

Copy link Suggestion for the entry Send to a friend

Print 

 © Siemens AG 2010 - Corporate Information - Privacy Policy - Terms of Use

Page 5 of 5Siemens - Industry Automation and Drive Technologies - Service& Support - Automation...

02.09.2010http://support.automation.siemens.com/WW/llisapi.dll/23586365?func=ll&objId=235863 ...