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 Embedded PC. Configure your Controller and HMI/cMT with the following parameters to establish reliable communication.

Supported Series: Intel-CX10x0, CX50x0 and TwinCAT

HMI Settings

ParametersRecommendedOptionsNotes
PLC typeBeckhoff Embedded PC
PLC I/FEthernet
Port no.48898
ADS port801801, 811, 821, 831
PLC sta. no.1

PLC Setting

For TwinCAT

  1. Confirm PC IP Address

    Confirm PC IP address.
    LAN Connection Properties and TCP/IPv4 settings dialog showing IP address 169.254.56.12 and subnet mask 255.255.0.0.
  2. Open TwinCAT Set IP Address

    Open TwinCAT, set IP address 169.254.56.12.1.1.
  3. Build TwinCAT Route Table

    Use TwinCAT to build a Route Table to make sure the system is connected. If PLC power turns OFF and then ON, please redo this step.
    When connected, if u0022Xu0022 is displayed, the connection succeeded.
    TwinCAT Add Route Dialog showing TEST_STATION connected with AMS Net Id 169.254.56.205.1.1, Transport Type TCP/IP, and Static route options.
  4. Configure EBPro (EasyBuilder) Network Settings

    Open EBPro (EasyBuilder), set IP address, ADS port and Port no.
    EasyBuilder IP Address Settings dialog with PLC type set to BECKHOFF Embedded PC, IP address 169.254.56.205, Port no. 48898, and ADS port 801.
  5. Run Online Simulation

    Run online simulation.
    Note: If the project is downloaded to HMI, please set HMI IP 169.254.56.12 identically to TwinCAT IP address setting.

For CERHOST

  1. Launch CERHOST Connect to PLC

    Execute CERHOST.exe to connect with PLC on PC.
    Remote Display Client application showing File menu open with Connect, Disconnect, and Exit options.
  2. Enter PLC IP and Password

    Enter PLC IP and Password (default password: 1).
    CERHOST Connect dialog with Hostname field showing 192.168.1.101 and Password field.
  3. Open Control Panel via Start

    Succeeded to connect with PLC, click Start; click Control Panel.
    CERHOST PLC desktop showing Start menu open with StartMan, Control Panel, Run, and Reset options visible.
  4. Check PLC IP via Network Connections

    Click [Network and Dial-Up Connections] to display PLC device information; select the PLC to check its IP.
    CERHOST Control Panel showing system icons including Certificates, CX Configuration, Date/Time, Network and Dial-up Connections, and other settings.
    CERHOST Network Connections window showing PCI-TCI8255X2 Settings dialog with IP Address 192.168.1.101 and Subnet Mask 255.255.255.0.
  5. Execute TcAmsRemoteMgr from System

    Access PLC system settings, the default directory: u005cHard Disku005cSystem, execute [TcAmsRemoteMgr].
    CERHOST file browser showing Hard DiskSystem directory contents with TcAmsRemoteMgr highlighted among system executables.
  6. Add HMI to AMS Remote Connections

    AMS Net Id consists of 6 numbers, separated by u0022.u0022. The first 4 numbers stand for IP and followed by u00221.1u0022. Click [Add] to add the HMI and click [OK] to finish setting.nn- Name: Device name.n- AMS Net Id: The IP followed by u00221.1u0022 of the device to connect with.n- Address: The IP address of the device to connect with.n- Transport: The way of connection.n- Slow Connection: As shown in the figure below.
  7. Verify PLC AMS Net ID

    Return to Control Panel; execute CX Configuration Tool to confirm PLC AMS Net Id.
    Beckhoff CX Configuration Tool General tab showing system information including device name CX_08CD62, TwinCAT version 2.11, AMS Net Id 192.168.1.101.1.1, and network adapter details.
  8. Reset PLC to Apply Settings

    Confirm settings and click Start; Reset PLC.
    CERHOST PLC desktop showing Start menu open with Reset option highlighted.

Building Data Structure

  1. Create STRUCT Data Types

    This driver supports variables under STRUCT structure. Click [Data Type] to open Structure Editor and create the same [Name] and [Data Type] as in TwinCAT PLC Control. The standard data types include: BOOL, WORD, INT, UINT, DINT, UDINT, REAL, DWORD, ARRAYnnThe syntax of Tag in TwinCAT software is: Tag Name + AT + % + Type, as shown in the following figure.
    EasyBuilder Structure Editor showing Data Types tree with ST_FromHMI struct defined, containing xStatusOK (BOOL), wStatus (WORD), iParam1, iParam2, and iParam3 (INT) fields.
    TwinCAT PLC Control editor showing ST_FromHMI STRUCT definition with xStatusOK BOOL, wStatus WORD, and iCtrlValue1-3 INT fields.
  2. Rebuild TwinCAT Project

    Project; Rebuild all
    TwinCAT PLC Control MAIN program VAR block showing bMemFlag, Value1-3, and InputValue array declarations with AT% address assignments.
    TwinCAT PLC Control Project menu showing Rebuild all selected, with arrow pointing to output files including ADS_AMSprotocol_test.tpy.
  3. Set PLC IP in EBPro (EasyBuilder)

    Set PLC IP in EBPro (EasyBuilder).
    EasyBuilder IP Address Settings dialog showing IP address 192.168.1.10, Port no. 48898, and ADS port dropdown expanded with options 801, 811, 821, and 831.
    EasyBuilder Device Properties dialog with Name set to Embedded PC (BECKHOFF), PLC type Embedded PC (BECKHOFF), PLC I/F Ethernet, and PLC default station no. 1.
  4. Import TPY Tags into EBPro (EasyBuilder)

    Click [Import Tag] button in EBPro (EasyBuilder) to open the .tpy file compiled by TwinCAT PLC Control.nnImport .tpy to EasyBuilder, the result is shown in the following figure.
    When using Beckhoff driver, if the TPY file cannot be imported, try to download and install MSXML 4.0 from Microsoft Download Center.
    EasyBuilder System Parameter Settings Device tab showing Local HMI and Embedded PC (BECKHOFF) devices listed, with Import Tag button highlighted.
    File browser showing Documents and Settings folder with test.tpy file selected for import into EasyBuilder.
    TwinCAT PLC Control MAIN program VAR block with line numbers 1-5 annotated beside bMemFlag, Value1, Value2, Value3, and InputValue1dimen declarations.
    EasyBuilder Address Tag Library showing 18 imported tags from Beckhoff ADS/AMS driver, including MAIN.bMemFlag at MX-0, MAIN.Value1 at MW-0, and InputValue1dimen array entries.
  5. Select Tags to Import

    The following dialog box appears for users to select all or part of the data to import. A reminding message is shown when importing the same data repeatedly.
    EZware/EZwarePlus (EasyBuilder8000) does not support [Comment] setting.
    EasyBuilder New Bit Lamp Object dialog showing Read address with PLC name Embedded PC (BECKHOFF) and Settings button highlighted.
    EasyBuilder Address dialog with PLC name Embedded PC (BECKHOFF), Device type MAIN.test1, address IX-0, User-defined tag checkbox checked, and address format DDDDDo range 0 to 14077.
    EasyBuilder New Bit Lamp Object General tab showing Read address with Embedded PC (BECKHOFF) PLC and IX device type set to 0.
    EasyBuilder Add Tags dialog listing three address tags: .deviceDown (QX-2), .deviceUp (QX-1), and .engine (QX-0) with Select all and Discard all buttons.
    EasyBuilder Pro confirmation dialog asking whether to replace existing tag .engine with Yes, No, Yes to all, and No to all options.
  6. Download Project to HMI

    Download the project compiled in EBPro (EasyBuilder) to HMI.

Device Address

Bit/WordDevice TypeFormatRangeMemo
BIXDDDDDo0 ~ 655357o : Bit no.(0 ~ 7)
BQXDDDDDo0 ~ 655357o : Bit no.(0 ~ 7)
BMXDDDDDo0 ~ 655357o : Bit no.(0 ~ 7)
WIWDDDDD0 ~ 65535
WQWDDDDD0 ~ 65535
WMWDDDDD0 ~ 65535
DWIDDDDDD0 ~ 65535
DWQDDDDDD0 ~ 65535
DWMDDDDDD0 ~ 65535

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
StringASCII input and ASCII display

Wiring Diagram

The diagram below shows the Ethernet cable wiring.

Ethernet cable wiring diagram showing 8-wire twisted-pair connections: W/Orange, Orange, W/Green, Blue, W/Blue, Green, W/Brown, and Brown on both ends.