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 Beckhoff TwinCAT PLC – Free Tag Names (Ethernet). Configure your Controller and HMI/cMT with the following parameters to establish reliable communication.

Supported Series: CX8000,CX90x0,CX1010,CP62xx,CX5010,CP62xx,CX1020,CX2020,CPxxxx,C6920,CX2030,CPxxxx,CP6930,CX2040,C65xx,C69xx

Website: http://infosys.beckhoff.com/

HMI Settings

ParametersRecommendedOptionsNotes
PLC typeBeckhoff TwinCAT PLC – Free Tag Names (Ethernet)
PLC I/FEthernet
Port no.48898
PLC sta. no.No need to set station no.
Online simulatorYES
EasyAccess 2.0NO

Support Device Type

Data TypeEBPro (EasyBuilder) Data FormatMemo
Boolbit
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
StringASCII input and ASCII displayMax length: 256
WStringASCII input and ASCII display*Note1

Note1: Support WString in EasyBuilderPro V6.08.02 and later versions

Note2: EBPro (EasyBuilder Pro) V6.03.02 or later supports 64 bits data type, but please note that the address limit range is 48 bits in maximum.

Note3: When importing, there are two modes of one/two char per word to choose from. When importing one char per word, choose Unicode data format for ASCII objects, and choose UTF-8 (Default) data format for two char per word.

IEC-61131 STRING type select dialog showing one char per word and two char per word options with byte and word index mapping examples.

TwinCAT 2 PLC Settings

To connect Beckhoff devices, HMI’s information must be registered to PLC first. The following steps describe how to register HMI’s information into Beckhoff devices.

  1. Open TwinCAT 2 System Manager

    Open TwinCat System Manager. Select [Actions] menu, and then select [Choose Target System]. Select the device you are connecting.
    TwinCAT 2 Choose Target System dialog showing local and remote devices listed with their AMS Net IDs and connection timeout setting.
  2. Add HMI to AMS Router

    Open TwinCat System Control. Go to [AMS Router] tab, click [Add] to add HMI information. Please add the HMI information as below.n- Name: A user-defined namen- AMS Net ID: HMI’s IP address + u0022.1.1u0022n- Address: HMI’s IP address
    TwinCAT System Properties AMS Router tab with Add Remote Connection dialog open, showing Name, AMS Net ID, Address, and Transport fields filled for HMI.
  3. Apply AMS Router Configuration

    If added successfully, you will see a new item in Remote Computers. Click [Apply] to apply the configuration.
    TwinCAT System Properties AMS Router tab showing HMI entry added to the Remote Computers list alongside the existing device.
  4. Activate TwinCAT 2 Configuration

    Open TwinCat System Manager again. Select [Actions] menu, and then select [Activate Configuration] to apply the new settings.
    TwinCAT 2 Actions menu with Activate Configuration option highlighted and its keyboard shortcut Ctrl+Shift+F4 shown.

TwinCAT 3 PLC Settings

To connect Beckhoff devices, HMI’s information must be registered to PLC first. The following steps describe how to register HMI’s information into Beckhoff devices.

  1. Choose TwinCAT 3 Target System

    Double click [SYSTEM], and then select [Choose Target System]. Select the device you are connecting.
    TwinCAT 3 Solution Explorer showing TwinCAT Project3 tree with SYSTEM node selected, and the General tab displaying TwinCAT System Manager v3.1 build info with Choose Target button.
  2. Add HMI Route Entry

    Expand the SYSTEM layer, select [Routes]. Click [Add] to add HMI information as below.n- Name: A user-defined namen- AMS Net ID: must be HMI’s IP address + u0022.1.1u0022n- Transport Type: TCP_IPn- Address: HMI’s IP address
    TwinCAT 3 Add Route Dialog with Route Name set to HMI, AmsNetId set to 192.168.1.143.1.1, Transport Type TCP_IP, and Address Info 192.168.1.143.
  3. Apply Routes Configuration

    If added successfully, you will see a new item in Remote Computers. Click [Apply] to apply the configuration.
    TwinCAT 3 Current Routes tab showing two entries: 192.168.1.141 and HMI, each with their AmsNetId, Address, and TCP_IP type.
  4. Activate TwinCAT 3 Configuration

    Select [TwinCAT] menu, and then select [Activate Configuration] to apply the new settings.

How to Import Tags

EBPro (EasyBuilder) supports two ways to import tags.

EasyBuilder System Parameter Settings Device tab showing Local HMI and Beckhoff TwinCAT PLC Free Tag Names device, with Import Tags and Get Tag Info buttons highlighted.

Get Tag Info

[Get Tag Info] could retrieve the tags directly from Beckhoff devices. Select the network adapter to access the Beckhoff devices.

Import Tags

There are three formats for importing tags: Linear, Hierarchical, EBproTag

The files generated after compilation in TwinCAT2 and TwinCAT3 programming software can be directly imported to EasyBuilder. Supported file types:

  • TwinCAT2: .tpy and .EXP
  • TwinCAT3: .TcDUT, .TcGVL, .TcPOU and .TPY
  • TPY files can be imported as linear or hierarchical
  • TwinCAT2 does not support the conversion of global_tag from Linear to Hierarchical
EasyBuilder Import Tags dialog listing importer types: Linear for .TPY, .EXP, .TcDUT, .TcPOU, .TcGVL files; Hierarchical for TwinCAT2 and TwinCAT3 .TPY files; and EBProTag for .CSV files.

Import and select hierarchical way, support filter tag function.

EasyBuilder Tag Manager showing hierarchical tag tree with Device_tags expanded to reveal MAIN, GVL, GVL_1, Tony_Global_Test, Constants, and TwinCAT_SystemInfoVarList program units.

Select PLC Software Version. Select the file type and then click [Import]. The invalid address types will be displayed in Error Status field. The “Import successfully” message will be shown upon completion.

EBPro (EasyBuilder Pro) confirmation dialog displaying the message Imported tag information successfully with an OK button.

NOTE:

  • Tag name can not include “.”.
  • GVL files with Tc2GvlVarNames attribute are not supported.
Code snippet showing a GVL file with the Tc2GvlVarNames attribute and VAR_GLOBAL block, labeled Not Supported.
  • Except for .EXP file of TwinCAT2, after the TwinCAT project is compiled, other file types are generated and placed in the same folder as the project. To generate .EXP files, please select [Project] » [Export], and then select the tag location to be exported.
TwinCAT 2 Project menu with Export option highlighted, showing the menu items for building, exporting, and managing the project.
TwinCAT 2 Export Project dialog showing POUs tree with MAIN (PRG) selected and Resources including Global Variables and Library Manager.
  • Only use linear type import to support array of array addresses.
Code listing showing TwinCAT array of array variable declarations such as ARY_OF_ARY_BOOL, ARY_OF_ARY_UINT, and ARY_OF_ARY_3_INT with their dimension definitions.

Wiring Diagram

The diagram below shows the Ethernet cable wiring.

Ethernet cable wiring diagram showing eight color-coded twisted pairs — W/Orange, Orange, W/Green, Blue, W/Blue, Green, W/Brown, Brown — connected straight through on both ends.