24
Simatic S7 © Siemens AG 2005, all rights reserved Micro Innovation AG Spinnereistrasse 8-14 CH-9008 St. Gallen Switzerland Tel. +41 (0)71 243 24 24 Fax +41 (0)71 243 24 90 www.microinnovation.com [email protected] efesotomasyon.com - Klockner Moeller - inverter

Simatic S7 - EFES OTOMASYON

  • Upload
    others

  • View
    30

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Simatic S7 - EFES OTOMASYON

MSystem

Communication Simatic S7

Application Note

Simatic S7

© Siemens AG 2005, all rights reserved

Micro Innovation AG Spinnereistrasse 8-14 CH-9008 St. Gallen Switzerland Tel. +41 (0)71 243 24 24 Fax +41 (0)71 243 24 90 www.microinnovation.com [email protected]

efesotomasyon.com - Klockner Moeller - inverter

Page 2: Simatic S7 - EFES OTOMASYON

Application Note Simatic S7 CommunicationCopyright

Copyright

Keep documentation for future use This documentation is the intellectual property of Micro Innovation AG, which also has the exclusive copyright. Any modification of the content, duplication or reprinting of this documentation, as well as any distribution to third parties can only be made with the express permission of Micro Innovation AG. Micro Innovation AG does not accept any liability for damages arising from the use of any incorrect or incomplete information contained in this documentation or any information missing therefrom. Micro Innovation AG reserves the right to make complete or partial modifications to this document. All brand and product names are trademarks or registered trademarks of the owner concerned.

2

Subject to technical modificationsM000935-02.DOC

© by Micro Innovation

efesotomasyon.com - Klockner Moeller - inverter

Page 3: Simatic S7 - EFES OTOMASYON

Communication Application Note Simatic S7 Proper use

Proper use Hardware, software, operating systems and drivers must only be used for the applications specified and only in conjunction with the components recommended by Micro Innovation AG. Warning No warranty claims will be recognised for faults arising from the improper handling of devices and modules. The devices, even by means of communication, should not be used for the implementation of any safety functions relating to the protection of personnel and machinery. No liability is accepted for claims for damages arising from a failure or functional defect in the device. All data specified in this document does not represent warranted properties in the legal sense.

Subject to technical modifications M000935-02.DOC © by Micro Innovation 3

efesotomasyon.com - Klockner Moeller - inverter

Page 4: Simatic S7 - EFES OTOMASYON

Application Note Simatic S7 CommunicationContents

Contents 1 General ................................................................................................................ 5

1.1 Aim and purpose of this document .......................................................................... 5 1.2 List of documents .................................................................................................... 5

2 Operating Principle............................................................................................. 6 2.1 Overview.................................................................................................................. 6 2.2 MICRO PANEL in the MPI network ......................................................................... 6 2.3 MICRO PANEL in the Industrial Ethernet network .................................................. 7 2.4 Addressing............................................................................................................... 8 2.5 Data block size ........................................................................................................ 9 2.6 Memory alignment ................................................................................................. 10 2.7 Status refresh ........................................................................................................ 10 2.8 Default Slot ............................................................................................................ 10

3 Siemens – MPI.................................................................................................. 11 3.1 Hardware requirements ......................................................................................... 11 3.2 Select PLC............................................................................................................. 11

3.2.1 Baud rate ................................................................................................................... 12 3.2.2 MMI station number ................................................................................................... 12 3.2.3 Highest station address (HSA) .................................................................................. 12 3.2.4 Driver version............................................................................................................. 12

4 Siemens – MPI (OnBoard) ................................................................................ 13 4.1 Hardware requirements ......................................................................................... 13 4.2 Select PLC............................................................................................................. 13

4.2.1 Baud rate ................................................................................................................... 14 4.2.2 MMI station number ................................................................................................... 14 4.2.3 Highest station address (HSA) .................................................................................. 14

5 Siemens – Industrial Ethernet ......................................................................... 15 5.1 General .................................................................................................................. 15 5.2 Hardware requirements ......................................................................................... 15 5.3 Select PLC............................................................................................................. 16

5.3.1 Startup delay.............................................................................................................. 16 5.3.2 MPI/PROFIBUS station number ................................................................................ 17 5.3.3 MPI/PROFIBUS S7 subnet ID ................................................................................... 19 5.3.4 IP address.................................................................................................................. 20

6 Communication Errors ..................................................................................... 21 6.1 Error messages ..................................................................................................... 21 6.2 Rectification ........................................................................................................... 21

7 Change List ....................................................................................................... 22

4

Subject to technical modificationsM000935-02.DOC

© by Micro Innovation

efesotomasyon.com - Klockner Moeller - inverter

Page 5: Simatic S7 - EFES OTOMASYON

Communication Application Note Simatic S7 General

1 GENERAL

1.1 AIM AND PURPOSE OF THIS DOCUMENT

This documentation describes the connection of a MICRO PANEL to a SIMATIC S7 PLC via the MPI or Ethernet interface. Refer to the MICRO PANEL device description for further information on connecting, commissioning and operating the MICRO PANEL. You must be familiar with the use of the following software which must already be installed:

• SIMATIC STEP 7 PLC programming software from Siemens • Galileo HMI programming software

Refer to the Galileo documentation or the online help for further information on Galileo and GRS.

The Galileo dialogs shown are from version 5.2.3.

1.2 LIST OF DOCUMENTS

Document Doc. No.

[1] Installation instructions, General wiring instructions M000778

[2] System description, Networks in brief M000191

[3] System description, Windows CE image version x.xx M000174

[4] Card description, MPBx-TP multi protocol board M000871

[5] User manual, S7 PG router M000902 (this list of documents is not final)

Subject to technical modifications M000935-02.DOC © by Micro Innovation 5

efesotomasyon.com - Klockner Moeller - inverter

Page 6: Simatic S7 - EFES OTOMASYON

Application Note Simatic S7 CommunicationOperating Principle

2 OPERATING PRINCIPLE

2.1 OVERVIEW

This documentation describes the following three possible communication methods: • Siemens – MPI

for MICRO PANELs using the MPB2-TP communication card. • Siemens – MPI (OnBoard)

for MICRO PANELs with an OnBoard MPI interface. • Siemens – Industrial Ethernet

for MICRO PANELs with an Ethernet interface.

2.2 MICRO PANEL IN THE MPI NETWORK A direct connection to the SIMATIC S7 is made at the programming port of the CPU (MPI). No parameter settings or function blocks are required for this connection. As soon as the MICRO PANEL is connected to the MPI network, this is indicated with the configured MPI station number in the PG device under Accessible Nodes. However is not possible to make a connection to this station using the programming device. If this is nevertheless attempted, the MICRO PANEL will refuse the connection and the programming device will indicate “Station refuses connection establishment”.

The MICRO PANEL can establish an active connection simultaneously with up to 42 MPI stations (SIMATIC S7 PLCs).

The SIMATIC PLC only supports a limited number of MPI connections, depending on the CPU in use. Each MICRO PANEL uses one OP (operator panel) connection.

The following are the standard address set

• MPI address 0 is reserved for the S• MPI address 1 is the default setting• MPI address 2 is the default setting• MPI address 3 up to HSA (highest

6

efesotomasyon.com - Klockner Moeller - inverter

MICRO PANEL

tings in the MPI network: IMATIC PG. for an Operator Panel (MMI) for a PLC station address) available as required

Subject to technicaM0

© by M

ST5

ST4 ST2

ST1

ST0 ST3

PG

l modifications00935-02.DOCicro Innovation

Page 7: Simatic S7 - EFES OTOMASYON

efesotomasyon.com - Klockner Moeller - inverter

Communication Application Note Simatic S7 Operating Principle

2.3 MICRO PANEL IN THE INDUSTRIAL ETHERNET NETWORK

A direct connection to the SIMATIC S7 is made at the Ethernet port of the CPU or the CP. No additional parameter settings or function blocks are required for this connection. It is also possible to use a router to communicate with other PLCs in the MPI/PROFIBUS network. This requires a station in the Ethernet network to carry out this router function, and a SIMATIC S7 station with an Ethernet and MPI/PROFIBUS interface or a MICRO PANEL with Ethernet and MPI-OnBoard interface can be used for this purpose. Further information on using a MICRO PANEL as a router is available in the “S7 PG Router” manual [5]). The MICRO PANEL can establish an active connection simultaneously with several stations (SIMATIC S7 PLC).

The SIMATIC S7 PLC only supports a limited number of connections, depending on the CPU in use. Each MICRO PANEL uses one OP connection.

192.168.0.3 192.168.0.4 192.168.0.2

Ethernet

192.168.0.39

ST 4

ST 31 MPI/PROFIBUS

192.168.0.40

ST 5 oder MPI/PROFIBUS

ST 2

Router

Station and IP addresses are given as examples. It is essential that every station has a unique and unambiguous station and/or IP address.

Subject to technical modifications M000935-02.DOC © by Micro Innovation 7

Page 8: Simatic S7 - EFES OTOMASYON

Application Note Simatic S7 CommunicationOperating Principle

2.4 ADDRESSING

The addressing is implemented using the SIMATIC syntax and all commonly available data types are supported. Addressing format without station number Data area AB %d.%d Output EB %d.%d Input MB %d.%d Marker DB %d.DBX %d.%d DB %d.DBB %d DB %d.DBW %d DB %d.DBD %d

Data access in data block

Addressing format with station number Data area ST %d:AB %d.%d Output ST %d:EB %d.%d Input ST %d:MB %d.%d Marker ST %d:DB %d.DBX %d.%d ST %d:DB %d.DBB %d ST %d:DB %d.DBW %d ST %d:DB %d.DBD %d

Data access in data block

The placeholder %d represents a decimal number which must be entered for addressing the individual tags. The ST entry defines the station number in the MPI/PROFIBUS network. If no station number is specified in the address, the standard station number from the Select PLC dialog is used.

Driver version * 2.00 is required when using the MPB2-TP communication card and the addressing format without station number.

8

Subject to technical modificationsM000935-02.DOC

© by Micro Innovation

efesotomasyon.com - Klockner Moeller - inverter

Page 9: Simatic S7 - EFES OTOMASYON

Communication Application Note Simatic S7 Operating Principle

If a station number is specified in the address, the standard station number from the Select PLC dialog is not relevant for this tag.

The tag import of the symbol file is supported from Galileo V5.1.3. Further information is provided in the Galileo documentation.

2.5 DATA BLOCK SIZE

The smallest possible format is 8-bit or 1-byte format. Single bit communication is therefore not possible. The maximum size of a data block depends on the type of communication selected. The structure and array size defined in Galileo is therefore restricted to this maximum value. The PLC Data tab in the Select PLC... dialog shows all the data block sizes that are supported.

Data types >8 bits can only be set on even addresses.

Subject to technical modifications M000935-02.DOC © by Micro Innovation 9

efesotomasyon.com - Klockner Moeller - inverter

Page 10: Simatic S7 - EFES OTOMASYON

Application Note Simatic S7 CommunicationOperating Principle

2.6 MEMORY ALIGNMENT

The memory alignment defines how the individual tags of a structure are stored in the memory of a PLC. Siemens data blocks are normally defined with a 2-byte memory alignment. Refer to the Galileo documentation or the Galileo Online Help for further information on memory alignment.

2.7 STATUS REFRESH

The Status refresh defines the maximum refresh time in seconds of the status structure. If the MMI status does not change within the refresh time, the status structure is transferred to the PLC anyway. This is necessary if bit 0 is used in the status structure in order to monitor the connection to the MMI. A default setting of 10s is recommended. Further information on this subject is provided in the Galileo documentation.

The shorter the refresh time, the more this will burden communication between the panel and the PLC. This may create a situation in which only the status structure is transferred.

2.8 DEFAULT SLOT

If a direct connection to the SIMATIC S7 is made at the programming port of the CPU (MPI), the value can be set to 0. Otherwise the slot number of the target CPU in the rack is to fill in. Rack 0 corresponds to 1..31, rack 1 corresponds to 33… 63 etc. This setting has validity for all stations of a connection.

10

Subject to technical modificationsM000935-02.DOC

© by Micro Innovation

efesotomasyon.com - Klockner Moeller - inverter

Page 11: Simatic S7 - EFES OTOMASYON

Communication Application Note Simatic S7 Siemens – MPI

3 SIEMENS – MPI

3.1 HARDWARE REQUIREMENTS

This communication method requires the use of the MPB2-TP communication card and therefore requires the use of a MICRO PANEL with a communication slot. Refer to the Multi Protocol Board card description for information on configuring and commissioning the MPB2-TP communication card [4]. Refer to the document “Installation instructions, General wiring instructions” for information on the communication cable [1].

3.2 SELECT PLC

The MPB2-TP communication card supports only one connection. Several connections cannot therefore be configured on the same interface. Communication with several PLCs is possible in the MPI network, however addressing the system structures is limited to one PLC in the MPI subnet.

For this, select “Siemens MPI” in the Select PLC... dialog. The dialog shown will then appear for setting the parameters required for this communication. Parameter setting for Status Refresh ( chap. 2.7) Parameter setting for Default Station Number ( chap. 2.4) Parameter setting for Default Slot ( chap.2.8)

Subject to technical modifications M000935-02.DOC © by Micro Innovation 11

efesotomasyon.com - Klockner Moeller - inverter

Page 12: Simatic S7 - EFES OTOMASYON

Application Note Simatic S7 CommunicationSiemens – MPI

3.2.1 BAUD RATE

Only a baud rate of 187.5kB is supported. The baud rate must correspond to the baud rate setting of the MPI subnet in the SIMATIC Manager of STEP 7.

3.2.2 MMI STATION NUMBER

Station number of the MICRO PANEL in the MPI subnet. This must be set between 1 and the HSA. It must also be ensured that each station in the MPI subnet is assigned a unique MPI address. In all cases check with the SIMATIC PG device under Accessible Nodes which addresses have already been assigned.

3.2.3 HIGHEST STATION ADDRESS (HSA)

The highest MPI address setting is used to optimise the MPI subnet. This setting must correspond to the highest MPI address setting of the MPI subnet in the SIMATIC Manager of STEP 7. The following values are possible: 15,31,63,126.

3.2.4 DRIVER VERSION

The name and version of the driver file are displayed in the PLC Data tab of the Select PLC ... dialog.

The driver file must be loaded on the MPB2-TP communication card. The version of the driver loaded on the MPB2-TP communication card is indicated when the application is started up on the MICRO PANEL. The loaded driver version is also displayed in a system message ( chap. 6.1). Refer to the Multi Protocol Board card description for information on loading the driver file and other settings required for the MPB2-TP communication card [4].

12

Subject to technical modificationsM000935-02.DOC

© by Micro Innovation

efesotomasyon.com - Klockner Moeller - inverter

Page 13: Simatic S7 - EFES OTOMASYON

Communication Application Note Simatic S7 Siemens – MPI (OnBoard)

4 SIEMENS – MPI (ONBOARD)

4.1 HARDWARE REQUIREMENTS

This communication method requires a MICRO PANEL with an MPI OnBoard interface. Refer to the document "Installation instructions, General wiring instructions" for information on the communication cable [1]. At least 40 additional license points must be available on the device, regardless of the number of connections!

If you have any questions on license products, please contact your local MICRO PANEL sales distributor.

4.2 SELECT PLC

The OnBoard interface supports several connections, i.e. several connections can therefore be configured on the same interface. This makes it possible to address the tags including the system structures on several PLCs in the MPI network. Baud rate, MMI station number and HSA must be identical on all connections.

For this, select Siemens MPI (OnBoard) in the Select PLC... dialog. The dialog shown will then appear for setting the parameters required for this communication method. Parameter setting for Status refresh ( chap. 2.7) Parameter setting for Default station number ( chap. 2.4) Parameter setting for Default Slot ( chap.2.8)

Subject to technical modifications M000935-02.DOC © by Micro Innovation 13

efesotomasyon.com - Klockner Moeller - inverter

Page 14: Simatic S7 - EFES OTOMASYON

Application Note Simatic S7 CommunicationSiemens – MPI (OnBoard)

4.2.1 BAUD RATE

187.5kB and 1.5MB are supported. The baud rate must correspond to the baud rate setting of the MPI subnet in the SIMATIC Manager of STEP 7.

4.2.2 MMI STATION NUMBER

Station number of the MICRO PANEL in the MPI network. This must be set between 1 and the HSA. It must also be ensured that each station in the MPI subnet is assigned a unique MPI address. In all cases check with the SIMATIC PG device under Accessible Nodes which addresses have already been assigned.

4.2.3 HIGHEST STATION ADDRESS (HSA)

The highest MPI address setting is used to optimise the MPI subnet. This setting must correspond with the highest MPI address of the MPI subnet in the SIMATIC Manager of STEP 7. The following values are possible: 15,31,63,126.

14

Subject to technical modificationsM000935-02.DOC

© by Micro Innovation

efesotomasyon.com - Klockner Moeller - inverter

Page 15: Simatic S7 - EFES OTOMASYON

Communication Application Note Simatic S7 Siemens – Industrial Ethernet

5 SIEMENS – INDUSTRIAL ETHERNET

5.1 GENERAL

At least one of the following versions of the SIMATIC Manager is required in order to use the Industrial Ethernet:

a) STEP 7 V5.2 + Net driver b) STEP 7 V5.3

Further information on creating and configuring a SIMATIC network is provided in the Help system of the SIMATIC Manager and SIMATIC NetPro.

Before creating a connection with a MICRO PANEL to a SIMATIC S7 PLC, you should ensure that the SIMATIC S7 PLC is accessible from the SIMATIC PG on the network.

5.2 HARDWARE REQUIREMENTS

This communication method requires a MICRO PANEL with an Ethernet interface. Refer to Ethernet in the document “Installation instructions, General wiring instructions” for information on the communication cable [1]. At least 80 additional license points must be available on the device, regardless of the number of connections!

If you have any questions on license products, please contact your local MICRO PANEL sales distributor.

Subject to technical modifications M000935-02.DOC © by Micro Innovation 15

efesotomasyon.com - Klockner Moeller - inverter

Page 16: Simatic S7 - EFES OTOMASYON

Application Note Simatic S7 CommunicationSiemens – Industrial Ethernet

5.3 SELECT PLC

The Ethernet interface supports several connections, i.e. several connections can therefore be configured on the same interface. This makes it possible to address the tags including the system structures on several PLCs in the MPI/PROFIBUS network.

For this, select Siemens Industrial Ethernet in the Select PLC... dialog. The dialog shown will then appear for setting the parameters required for this communication. Parameter setting for Status refresh ( chap. 2.7) Parameter setting for Default station number ( chap. 2.4) Parameter setting for Default Slot ( chap.2.8)

5.3.1 STARTUP DELAY

During this time, error messages concerning communication are suppressed. This is useful if the startup of the SIMATIC S7 station takes longer than the startup of the MICRO PANEL. After startup, the MICRO PANEL immediately tries to start communication. An error message, however, is only generated after the set time has elapsed. If a startup delay of >0 is set, a green system message will appear as soon as communication is successful started.

If there is no communication to the CP/CPU established, check the accessibility of the CP/CPU with the PING command.

16

Subject to technical modificationsM000935-02.DOC

© by Micro Innovation

efesotomasyon.com - Klockner Moeller - inverter

Page 17: Simatic S7 - EFES OTOMASYON

Communication Application Note Simatic S7 Siemens – Industrial Ethernet

5.3.2 MPI/PROFIBUS STATION NUMBER

This is where the station number is entered for the station defined as the router in the MPI/PROFIBUS subnet. This can be a MICRO PANEL or a SIMATIC S7 station. The following example shows communication with a SIMATIC S7 station used as the router. Station number 31 must be entered for communication with station 2 and 31.

The following example shows communication with a MICRO PANEL station used as the router. Station number 31 must be entered for communication with station 2.

Subject to technical modifications M000935-02.DOC © by Micro Innovation 17

efesotomasyon.com - Klockner Moeller - inverter

Page 18: Simatic S7 - EFES OTOMASYON

Application Note Simatic S7 CommunicationSiemens – Industrial Ethernet

In the following example with a PLC directly on the Ethernet network, communication with station number 5 consequently requires 5 to be entered.

18

Subject to technical modificationsM000935-02.DOC

© by Micro Innovation

efesotomasyon.com - Klockner Moeller - inverter

Page 19: Simatic S7 - EFES OTOMASYON

Communication Application Note Simatic S7 Siemens – Industrial Ethernet

5.3.3 MPI/PROFIBUS S7 SUBNET ID

The MPI/PROFIBUS S7 subnet ID only has to be entered if a PLC in the MPI/PROFIBUS subnet is to be accessed via a router. In the following example, this would be required for station number 2. If the PLC is accessible directly via the Ethernet network, no subnet ID has to be entered. The MPI/PROFIBUS S7 subnet ID is shown in the SIMATIC network configuration, and must not be confused with the Ethernet S7 subnet ID.

(Dialog is from the SIMATIC Manager of STEP 7)

Subject to technical modifications M000935-02.DOC © by Micro Innovation 19

efesotomasyon.com - Klockner Moeller - inverter

Page 20: Simatic S7 - EFES OTOMASYON

Application Note Simatic S7 CommunicationSiemens – Industrial Ethernet

5.3.4 IP ADDRESS

The IP address entry must match the setting of the SIMATIC station or the MICRO PANEL with a PG router function. This is the IP address of the router and the station on the Ethernet network. The following example requires the configuration of 2 connections:

1. Connection to station number 2 and 31, 192.168.0.39 must be entered. 2. Connection to station number 5, 192.168.0.40 must be entered.

(Dialog is from the SIMATIC Manager of STEP 7)

The subnet mask of the MICRO PANEL must be suitable for the subnet mask of the SIMATIC S7 station. For further information on setting the IP address of the MICRO PANEL refer to the "System description Windows CE Image Version x.xx" [3].

20

Subject to technical modificationsM000935-02.DOC

© by Micro Innovation

efesotomasyon.com - Klockner Moeller - inverter

Page 21: Simatic S7 - EFES OTOMASYON

Communication Application Note Simatic S7 Communication Errors

6 COMMUNICATION ERRORS

6.1 ERROR MESSAGES Different system error messages are generated in response to any communication errors that occur. These system error messages provide different information:

• The tag name indicates the tag in which a problem was found.

• The interface information indicates the MICRO PANEL interface on which the problem was found.

• The driver version indicates which communication driver is active.

• The station number after ST# corresponds to the MPI address of the affected PLC (CPU).

• The additional information may indicate the possible cause of an error in plain text. This information can, however, also be generated from lower software layers. Its content can therefore only be interpreted with an in-depth knowledge of the system. The troubleshooting procedure is nevertheless the same in all cases.

6.2 RECTIFICATION

Checking the following points is recommended: • Check the cabling and the connections on the MICR• When using a communication card, check the jum

version on the card ( chap.3.2.4). • Check the baud rate and HSA settings. These se

Check all other parameters in the Select PLC... dialo• Check the MPI addresses in the network. Is the sta

message present or available in the MPI/PROFIBpresent once.

• Is the address of the tag indicated in the system errstation? (is the corresponding DB present?)

• Is the Ethernet communication overloaded? • Is the PLC (CPU) accessible via the SIMATIC PG de• Is the PLC (CPU/CP) accessible via Ethernet via PIN

If the problem continues, contact our Customer Support at su

Subject to technical modifications M000935-02.DOC © by Micro Innovation

efesotomasyon.com - Klockner Moeller - inverter

Tag name

Interface

Driver version

Station number

O PANEL aper settin

ttings musg. tion numbeUS netwo

or messag

vice? G comma

pport@mi

Additional error information

nd the PLC. gs and driver loaded with the

t be the same on all stations.

r indicated in the system error rk? An address must only be

e present in the corresponding

nd?

croinnovation.com.

21

Page 22: Simatic S7 - EFES OTOMASYON

Application Note Simatic S7 CommunicationChange List

7 CHANGE LIST

Index Date / Signed Modifications 01 17.03.05/ As Initial version 02 05.10.05/ As PROFIBUS and Default Slot added

22

Subject to technical modificationsM000935-02.DOC

© by Micro Innovation

efesotomasyon.com - Klockner Moeller - inverter

Page 23: Simatic S7 - EFES OTOMASYON

Communication Application Note Simatic S7 Change List

Subject to technical modifications M000935-02.DOC © by Micro Innovation 23

efesotomasyon.com - Klockner Moeller - inverter

Page 24: Simatic S7 - EFES OTOMASYON

Application Note Simatic S7 CommunicationChange List

Micro Innovation AG Spinnereistr 8-14 CH-9008 St. Gallen Switzerland Tel : ++41- 71 243 24 24 Fax : ++41- 71 243 24 90 email : [email protected] homepage : http://www.microinnovation.com

24

Subject to technical modificationsM000935-02.DOC

© by Micro Innovation

efesotomasyon.com - Klockner Moeller - inverter