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 a Siemens S7-1200 (Symbolic Addressing) Ethernet PLC. Configure your Controller and HMI/cMT with the following parameters to establish reliable communication.

Supported Series: Siemens S7-1200 (Symbolic Addressing) series via Ethernet

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

HMI Settings

ParametersRecommendedOptionsNotes
PLC typeSiemens S7-1200 (Symbolic Addressing) (Ethernet)
PLC I/FEthernet
Port no.102
Rack0
CPU slot1
On-line simulatorYes
Multi-HMI connectTIA SettingsAccording to Connection resource / HMI Communication settings
TIA Portal PLC Properties Connection resources panel showing Station resources and Module resources with HMI communication set to 4 maximum connections.

PLC Settings

  1. Create Program and Download

    In S7-1200 program software create PLC program and tag and then download to PLC.
  2. Select Go Offline

    Select Go offline. EBPro (EasyBuilder) will connect to PLC and get tag data. In PLC type select SIEMENS S7-1200 (Ethernet).
    EasyBuilder Device Properties dialog with PLC type set to Siemens S7-1200 (Ethernet), PLC I/F set to Ethernet, and IP 192.168.1.95, Port=102.
  3. Input PLC IP Address

    Click Settings…, input PLC IP address.
    IP Address Settings dialog showing IP address 192.168.0.95, port 102, and timing fields for Timeout, Turn around delay, Send ACK delay, and Parameters.
  4. Get Tag Info

    Check the PLC that is not connected to any PC. Click Get tag info….
    System Parameter Settings Device tab showing Local HMI and Local PLC 4 (SIEMENS S7/1200) in the device list, with the Get tag info button highlighted.
  5. Check Firmware Compatibility

    Supported by firmware V3.X and previous versions. For V4.0 or later, please see How to Connect With S7-1200 Firmware V4.0.
  6. Define Function Block Mapping

    If the software used is a version later than TIA Portal V11 SP2, a dialog of FunctionBlock directory will be shown. Users have to define the mapping from FB to DB in this directory then click Check OK. The tag information will be gained and a successful message is shown.
    EasyBuilder warning dialog asking user to confirm the content of the Function Block Mapping Table before importing, with Check OK and Cancel buttons.
    Confirmation dialog stating Get tag information successfully, with an Exit button.
  7. Re-enter DB Name for Existing Projects

    When opening an existing project and getting the tag information again, if the PLC software used is TIA Portal V12 and later versions, the DB name must be entered again in order to compile the project.
    EasyBuilder Data Block Name Editor dialog showing DB Number 1 mapped to Data_Block_1, with Add, Import, Export, OK, and Cancel buttons.
  8. Select Tags in Tag Manager

    Added Tag Manager that allows selecting the Siemens S7-1200 PLC tags to be imported.
    EasyBuilder Tag Manager dialog showing a tree of DB arrays and PLC tags with QArea expanded, Q00, Q01, and Q02 checked, and Select all, Discard all, OK, and Cancel buttons.
  9. Create Object and Open Address Settings

    Create an object and click read address Setting….
    EasyBuilder Bit Lamp Object Properties dialog on the General tab with PLC name set to Local HMI and Address LB_0, with the Setting button highlighted.
  10. Select PLC Name and Tag

    In PLC name select S7-1200 then click Tag.
    EasyBuilder Address dialog with PLC name set to SIEMENS S7/1200 (Ethernet) and Tag field showing 0.
  11. Select PLC Tag

    Select PLC tag.
    EasyBuilder Address dialog showing Program blocks tree with DB_in_SubFolder entries and myDB_1, alongside PLC tags IArea selected with Bool tags listed in the right pane.

How to Connect With S7-1200 Firmware V4.0

There are certain restrictions in S7-1200 firmware V4.0. To avoid communication errors, please follow the steps to set up.

  1. Open PLC Properties

    Right click on the PLC program, and then click Properties.
    TIA Portal project tree showing S7-1200 PLC right-click context menu with Properties highlighted at the bottom.
  2. Enable PUT/GET Communication

    Select Protection, and then select Permit access with PUT/GET communication from remote partner (PLC, HMI, OPC, …).

Exporting PLC Tags (I, Q, M tags)

  1. Show All Tags

    Under PLC tags select Show all tags.
    TIA Portal project tree with Show all tags selected under PLC tags, and a PLC tags table showing I00 through Q07 with Bool data type and corresponding %I and %Q addresses.
  2. Click Export

    Click Export to export the tags.
    TIA Portal PLC tags toolbar with the Export button tooltip visible.
  3. Browse and Save Exported File

    Browse for the directory to save the exported file and then click OK.
    TIA Portal Export to Excel dialog showing path C:UserstonyDesktops7-1200TagPLC tags.xlsx with Tags checkbox selected.

Exporting Program Blocks (DB)

When the database contains Struct data type, please note the following restrictions. Please at least add one data member that doesn’t belong to Struct data type into DB, otherwise, the data cannot be imported to EBPro (EasyBuilder). Multidimensional Arrays and Multilayer Structs are not supported.

  1. After building DB, please do the following actions for Struct address

    (1) Copy the complete Struct data.

    (2) Delete data.

    (3) Add a new row.

    (4) Paste data.

    TIA Portal DB editor showing four steps: Step 1 Copy, Step 2 Delete, Step 3 Add row, and Step 4 Paste, each with the corresponding right-click context menu highlighted.
  2. Generate Source from Blocks

    Right click on DB, click Generate source from blocks, and then enter the file name to save.
    TIA Portal Program blocks right-click context menu with Generate source from blocks highlighted.
  3. Download to device.

    After building and importing PLC Tags and Program Blocks, click [Download to device].

Importing PLC Tags and Program Blocks (DB)

After building and importing PLC Tags and Program Blocks, click **Download to device**.

  1. Launch EBPro (EasyBuilder) and Set IP

    Launch EBPro (EasyBuilder) and set the IP address.
    EasyBuilder Device Properties dialog with PLC type Siemens S7-1200 (Ethernet), driver version V.2.40, PLC I/F Ethernet, and IP 192.168.1.98, Port=102.
  2. Click Import Tag

    Click Import Tag….
    EasyBuilder System Parameter Settings Device tab showing Local HMI and Siemens S7-1 PLC in the device list, with the Import Tag button highlighted.
  3. Select Files and Import

    Select the PLC Tags and Program Blocks to be imported. Remember to change DB number, and select Use S7-1200 firmware version 4.0 or later versions. Click Import to import the files. The I, Q, and M addresses will be checked; if an error occurs, the communication will fail. If this happens, check your communication environment and try to import again.
    At least one DB file must be imported. PLC tags alone cannot be imported successfully.
    EasyBuilder Import Tags dialog showing PLC tags file path, Program blocks with DB1–DB5 listed, 16 files selected, and Import status showing Verifying I,Q,M addresses with PLC.
  4. Review Import Status

    The Import status field will display the result. Click OK.
    EasyBuilder Import Tags dialog with Import status showing successful import of PLC tags.xlsx and DB1, DB2, DB3 files.
  5. Select Tags and Click OK

    Select the tags to be imported and then click OK.
    EasyBuilder Tag Manager dialog showing all DB arrays and PLC tags with IArea, MArea, and QArea checked, with a note about binary access and multi-dimensional array support.
  6. Confirm Successful Import

    The following message is displayed when the import has succeeded.
    Confirmation dialog stating Import tag information successfully with an Exit button.

Support Device Types

NOTE: EBPro V6.03.02 or later supports 64-bit data type (cMT Series only), but please note that the address limit range is 48 bits maximum.

NOTE: Importing data types other than those in the table below may result in failure to communicate.

Data typeEasyBuilder data formatMemo
Boolbit
Byte16-bit BCD, Hex, Binary, Unsigned8-bit
SInt16-bit BCD, Hex, Binary, Signed8-bit
USInt16-bit BCD, Hex, Binary, Unsigned8-bit
Word16-bit BCD, Hex, Binary, Unsigned16-bit
Int16-bit BCD, Hex, Binary, Signed16-bit
UInt16-bit BCD, Hex, Binary, Unsigned16-bit
DWord32-bit BCD, Hex, Binary, Unsigned32-bit
DInt32-bit BCD, Hex, Binary, Signed32-bit
Real32-bit Float32-bit
UDInt32-bit BCD, Hex, Binary, Unsigned32-bit
LInt64-bit Signed64-bit
ULInt64-bit Unsigned64-bit
LWord64-bit Unsigned64-bit
Double64-bit Float64-bit
Char16-bit BCD, Hex, Binary, UnsignedUSInt
CREFStruct
Date16-bit BCD, Hex, Binary, UnsignedUInt
DTLRead only
ErrorStruct
IEC_COUNTER
IEC_DCOUNTER
IEC_SCOUNTER
IEC_TIMER
IEC_UCOUNTER
IEC_UDCOUNTER
IEC_USCOUNTER
NREF
Time32-bit BCD, Hex, Binary, UnsignedDWord
Time_Of_Day32-bit BCD, Hex, Binary, UnsignedDWord
ArrayBool, Byte, SInt, USInt, Word, Int, UInt, DWord, DInt, Real, UDInt
StructBool, Byte, SInt, USInt, Word, Int, UInt, DWord, DInt, Real, UDInt

Wiring Diagram

The diagram below shows the Ethernet cable wiring.

Straight-through Ethernet cable wiring diagram showing all 8 wire pairs (W/Orange, Orange, W/Green, Blue, W/Blue, Green, W/Brown, Brown) connected pin-to-pin between both ends.

The image above shows a standard straight-through Ethernet cable. Connect the HMI Ethernet port to the Siemens S7-1200 Ethernet port using this cable configuration.