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

HMI Setting

ParametersRecommendedOptionsNotes
PLC typeCODESYS V3 (Ethernet)
PLC I/FEthernet
Port no.1740*Note
Source port no.1742*Note
ProtocolV3 UDP/IPV3 UDP/IP
V3 TCP/IP
V3 TCP/IP Communication Optimum
V3 UDP/IP Communication Optimum
Motorola Byteorder
User name, Password

*Note: Codesys V3 UDP, UDP Communication Optimum — through the [Scan Network] function, you can get IP address and related Port no. information.

Device Settings dialog showing IP address 192.168.2.147, Port no. 1740, Protocol V3 UDP/IP Communication Optimum, and Source port no. 1743 highlighted in red.
QtCodesysScanNetwork dialog listing discovered devices including cMT-F5B1 at 192.168.2.147, with Device Name, Target Vendor, Source Port, and Motorola Byte Order fields shown.

PLC Setting

Device user management: Enable or disable according to the settings.

If the response of the communication value is delayed, you can try to adjust the “Always update variables” setting parameter to “Enabled 2 (always in bus cycle task)”.

CODESYS Device PLC Settings panel with Always update variables set to Enabled 2 (always in bus cycle task) highlighted.

How to Import Tags

  1. Set POU Under MainTask

    Under u0022MainTasku0022 set POU PLC_PRG.
    CODESYS project Devices tree showing MainTask expanded with PLC_PRG listed, and the Task Configuration panel showing Cyclic type with t#20ms interval.
  2. Add Symbol Configuration to Devices

    Add u0022Symbol configurationu0022 into the Devices list.
    CODESYS Devices tree context menu showing Add Object submenu expanded with Symbol configuration highlighted.
    Add Symbol configuration dialog with name field set to Symbol configuration, Optimized Layout selected, and Add button.
  3. Select PLC_PRG and Build Project

    Select PLC_PRG and its tag information is shown, then build the project: [Build] → [Generate Code].
    CODESYS Symbol configuration panel showing PLC_PRG selected with a list of variables including DialogInnerFrameIndex, DialogMainFrameIndex, DialogModule, and other tags with their types.
  4. Locate Generated XML File

    A *.xml file is generated in the directory of the project.
    Windows file explorer showing the project directory with VisuDemoFactory.Device.Application.xml highlighted as an XML Document file.
  5. Add Driver and Import Tags

    In System Parameter Settings click [New] to add the CoDeSys V3 (Ethernet) driver into the device list, then click [Import Tags] and select the tag file (.xml) generated by the PLC software.
    System Parameter Settings Device tab showing Local Device configured as CODESYS V3 (Ethernet) with Import Tags button highlighted in red.
  6. Confirm Import and Close

    When the tags are imported successfully, click [OK] to leave.
    EasyBuilder Pro dialog confirming Imported tag information successfully with an OK button.

NOTE: [Get Tag Info] The obtained address may be incomplete; it is recommended to use the [Import Tags] function.

Support Device Type

Data typeEBPro (EasyBuilder) 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
TIME32-bit BCD, Hex, Binary, Unsigned32-bit
TIME_OF_DAY32-bit BCD, Hex, Binary, Unsigned32-bit
DATE32-bit BCD, Hex, Binary, Unsigned32-bit
DATE_AND_TIME32-bit BCD, Hex, Binary, Unsigned32-bit
LInt64-bit Signed64-bit
ULInt64-bit Unsigned64-bit
LWord64-bit Unsigned64-bit
LReal64-bit Float64-bit
StringWord array for ASCII input and displayLength=word
WStringWord array for ASCII input and displayLength=word

Note 1: String length must be set identical to the length in Codesys software.

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

Note 3: The array type of DUT is not supported, as shown in the following example.

Note 4: Arrays starting with values other than 0 are not supported, for example, tag[1..7] type.

Wiring Diagram

The diagram below shows the Ethernet cable wiring.

Ethernet straight-through cable wiring diagram showing all 8 color-coded wire pairs connected pin-to-pin from one end to the other.