The leader in industrial automation and control solutions

Introduction

All Maple Systems HMIs programmed with EBPro (EasyBuilder Pro), including every cMT X Series and cMT Series model, are compatible with Siemens S7-300 MPI. Configure your Controller and HMI/cMT with the following parameters to establish reliable communication.

Supported Series: Siemens S7-300 series PLC

Website: http://www.siemens.com/entry/cc/en/

HMI Settings

ParametersRecommendedOptionsNotes
PLC typeSIEMENS S7-300 MPI
PLC I/FRS-485 2W
Baud rate187.5K19200, 187.5K*Note
Data bits8
ParityEven
Stop bits1
PLC sta. no.22 ~ 31
Online simulatorNO
Extend address modeYes
Broadcast commandNO

NOTE: MPI 19200bps does not support the following models: MT8071iP2, MT8102iP, MT6102iQ, TK6071iP, TK6071iQ, TK8071iP, TK8072iP

Device Address

Bit/WordDevice TypeFormatRangeMemo
BIDDDDo0 ~ 40957Input (I)
BQDDDDo0 ~ 40957Output (O)
BMDDDDo0 ~ 40957Bit Memory
BDBnBitFFFFFDDDDo0 ~ 6553599997Data Register Bit
BDBxBitFFFFFDDDDDo0 ~ 10700655327
BDB1Bit ~ DB99BitDDDDDo0 ~ 655357Data Register Bit
WIWDDDD0 ~ 4095Input (I)
WQWDDDD0 ~ 4095Output (O)
ByteMBDDDD0 ~ 4095Bit Memory Byte
WMWDDDD0 ~ 4095Bit Memory
DWMDDDDD0 ~ 4094
ByteDBBnFFFFFDDDD0 ~ 655359999Data Register
ByteDBBxFFFFFDDDDD0 ~ 1070065535
WDBnFFFFFDDDD0 ~ 655359999Data Register (must be even)
WDBxFFFFFDDDDD0 ~ 1070065535
DWDBDnFFFFFDDDD0 ~ 655359999Data Register Double Word (must be even)
DWDBDxFFFFFDDDDD0 ~ 1070065535
WDBn_StringFFFFFDDDD0 ~ 655359999
WDBx_StringFFFFFDDDDD0 ~ 1070065535
WDBn_String1FFFFFDDDD0 ~ 655359999
WDBx_String1FFFFFDDDDD0 ~ 1070065535
DWDBDn_StringFFFFFDDDD0 ~ 655359999
DWDBDx_StringFFFFFDDDDD0 ~ 1070065535
WDB1 ~ DB99DDDDD0 ~ 65535Data Register (must be even)
WTDDDDD0 ~ 65535
WCDDDDD0 ~ 65535

Double word and floating point value must use DBDn device type.

Multi-HMIs-Multi-PLCs Communication Setting

MPI network diagram showing two HMIs at station numbers 00 and 01 connected to two Siemens S7-300 PLCs at station numbers 03 and 02.

For SIEMENS S7-300 MPI driver in Multi-HMIs-Multi-PLCs communication, the Max. station no. (MPI network) parameter must be correctly set. This setting is relevant to the station number of the devices. As shown below, two HMIs (station no. 0, 1) and two PLCs (station no. 2, 3) are in an MPI network — Max. Station No. should be set to 3.

Device Properties dialog for SIEMENS S7-300 MPI showing Max. station no. (MPI network) set to 3, with PLC default station no. set to 2.

For the effectiveness of communication, users may set the PLC device in STEP 7 as shown below. In Properties MPI / Network Settings, set Highest MPI address to the number closest to the actual device station number.

  • HMI sta. no. cannot be the same as PLC sta. no.
  • It is highly recommended that the device station numbers start from 0 sequentially and that Max. station no. (MPI network) is correctly set.
STEP 7 Properties MPI Interface dialog showing the Network Settings tab with Highest MPI address set to 15 and transmission rate set to 187.5 Kbps.

How to Import Tag

SIEMENS STEP 7 allows building files of user-defined tags (*.dif file and *.AWL file), and importing these files in EasyBuilder8000/EasyBuilderPro → System Parameter Settings. The following describes how to build and import these two types of files.

Building a *.dif File

  1. Open Symbols in SIMATIC Manager

    In Symbols, create user-defined tags.
    SIMATIC Manager showing the Symbol Editor open with a list of user-defined tags including I0.0 through I0.7, all of BOOL data type.
  2. Export the Symbols File

    Click Export to export the edited file and click Save. Save the file as type *Data Interchange Format (.DIF)**.
    Symbol Editor with the Symbol Table menu open showing the Export option selected, and an Export dialog with the file name PLC_Tag.dif and save type set to Data Interchange Format.

Building a *.AWL File

  1. Create Blocks in SIMATIC Manager

    In Blocks, create items as shown below.
    SIMATIC Manager showing the Blocks folder selected under the S7 Program, with a list of data blocks (DB1 through DB120) in the right pane.
  2. Open LAD/STL/FBD and Generate Source

    Open LAD/STL, FBD – Programming S7 Blocks, then click File → Generate Source.
    STEP 7 application menu showing LAD, STL, FBD – Programming S7 Blocks highlighted, with the LAD/STL/FBD program blocks window open showing the Generate Source option.
  3. Specify the Source Storage Path

    Select Sources as the storage path, specify the file name, then click OK.
    STEP 7 New dialog with Sources selected as the storage path and Object_Tag entered as the object name, with the OK button highlighted.
  4. Select Blocks to Export

    Select the objects to be exported, then click OK.
    Generate source Object_Tag dialog showing blocks available on the left (DB1, DB3, DB4, etc.) and blocks selected for export on the right (DB2, DB6, DB11, DB20).
  5. Export the Source as an AWL File

    Under Sources, select the saved file, then right-click and choose Export Source to build the *.AWL file.
    SIMATIC Manager showing the right-click context menu on Object_Tag with Export Source highlighted, and the Export source dialog open with the file name Object_Tag.

Importing Tags into EBPro (EasyBuilder)

  1. Open Import Address Tag Dialog

    In System Parameter Settings → Device, select the SIEMENS S7-300 MPI device and click Import Tag. Browse to select the .dif file and the .AWL file, then click OK.
  2. Confirm Successful Import

    Tag information will be confirmed as successfully imported.

Pass-Through Settings

[Designate client IP]: In Pass-through mode, designate the client IP address to connect to the HMI. The “client” usually refers to the Siemens Step 7 application.

SIEMENS PLC Pass-Through Settings dialog showing the Designate client IP checkbox checked and IP address set to 192.168.1.10.

[Utility Manager Settings]: Utility Manager → Serial Pass-through

  • Mode: MPI ISOTCP

NOTE: Only supports single-step monitoring address; continuous monitoring address function cannot be used in pass-through.

Utility Manager Serial Pass-through dialog showing Mode set to MPI ISOTCP, with Interface set to Ethernet and PLC connection set to COM 1.

The following lists the system registers relevant to Siemens S7-200 PPI and Siemens S7-300 MPI Pass-through feature.

  • LW-10850: disable/enable (0: disable, 1: normal, 2: IP limited) — Siemens pass-through
  • LW-10851: destination COM port (Siemens pass-through) — generally refers to the COM port connected with the PLC
  • LW-10852: destination PLC station no. (Siemens pass-through)
  • LW-10853: communication protocol (0: invalid, 1: PPI, 2: MPI) — Siemens pass-through
  • LW-10854 to LW-10857: IP of connecting client (Siemens pass-through) — displays current client IP address connected with HMI
  • LW-10858 to LW-10861: IP of designated client (Siemens pass-through) — if LW-10850 is set to 1, these registers can be used to designate the client IP connected with HMI
  • LW-10862: connection status (0: ready, 1: client connecting) — Siemens pass-through
  • LW-10863: execution status (0: normal, 1: error) — Siemens pass-through
  • LW-10864: the last error (Siemens pass-through)

The following table lists the error codes, the description of each code, and the possible reason.

Error CodeDescriptionPossible Reason
0Successfully executed
1Prohibit client from connecting HMIHMI is already running pass-through and won’t accept any request from other client.
2Prohibit client from connecting HMIWhen LW-10850 is set to 1, the client IP for connecting HMI is different from the IP specified in LW-10858 ~ LW-10861.
3Invalid communication protocolInvalid setting in LW-10853.
4Invalid PLC station numberThe PLC station number specified in LW-10852 does not exist.
5Delayed communicationPLC connection failure.
6Busy communicationPLC does not accept pass-through request, please confirm PLC settings.
7Invalid pass-through requestEnvironment setup failure.

EasyAccess 2.0 Network Pass-Through

Obtain SubnetID Using S7-300 MPI SubnetID Tool

  1. Create S7-300 MPI Project and Download to HMI

    Create an S7-300 MPI project. In Pass-Through Settings, leave all options unchecked. Download the project to the HMI and verify it communicates with the PLC.
    EasyBuilder Device Settings dialog showing device type set to Siemens S7-300 MPI with I/F set to RS-485 2W, COM set to COM1 at 187.5K, and the Pass-Through Settings button highlighted.
    SIEMENS PLC Pass-Through Settings dialog with both Disable pass-through and Designate client IP checkboxes unchecked.
  2. Connect to HMI via EasyAccess 2.0 and Obtain HMI IP

    Open EasyAccess 2.0, connect to the target HMI, and obtain the HMI IP address.
    EasyAccess 2.0 interface showing a cMT-47CE HMI with IP address 10.7.60.48 displayed, with Pass-through and Connected status shown.
  3. Open the S7-300 MPI SubnetID Tool in Utility Manager

    Navigate to Utility Manager → S7-300 MPI SubnetID tool.
    Utility Manager Analysis & Testing section showing the S7-300 MPI SubnetID tool option alongside Serial Pass-Through and Reboot utilities.
  4. Set HMI IP and Get SubnetID

    Set the HMI IP address and Port number, then click the Get SubnetID button.
    SubnetID Query App dialog with PLC/HMI IP set to 10.7.60.48 and Port set to 102, with the Get SubnetID button on the right.

Siemens Step 7 Software Operation

  1. Enable Set PG/PC Interface

    In SIMATIC Manager, open Options → Set PG/PC Interface.
    SIMATIC Manager Options menu with Set PG/PC Interface highlighted.
  2. Select Network Interface and Set TCP/IP Properties

    In Interface, select the network card used (e.g. TCP/IP → Intel(R) PRO/1000). Click Properties to open the interface properties, and make sure to check Do not assign IP addresses automatically.
    Set PG/PC Interface dialog showing TCP/IP(Auto) Intel(R) PRO/1000 selected, alongside the Properties dialog with Do not assign IP addresses automatically option selected.
  3. Upload Station to PG

    Open the project and click PLC → Upload Station to PG…
    SIMATIC Manager PLC menu showing Upload Station to PG option highlighted, with the project S7_Pro1 open in the background.
  4. Select Gateway and Fill in Connection Fields

    Select Can be reached by means of gateway. Fill in the fields in sequence: MPI, PLC station number, S7 subnet ID, IP address. Then click OK directly to start uploading the PLC project.nnNOTE: If you click View, the PLC will not be found.
    Select Node Address dialog with Can be reached by means of gateway selected and the connection fields filled in showing Type MPI, Address 2, S7 subnet ID FEDC-9527, and IP address 10.7.60.48.

Wiring Diagram

NOTE: The serial port pin assignments may vary between HMI models.

RS-485 2W

HMIDirectionPLC
Pin assignmentsRS485 2W
9 D-Sub Male
Data-↔ (bidirectional)8 Data-
Data+↔ (bidirectional)3 Data+
GND↔ (bidirectional)5 GND