0% found this document useful (0 votes)
6 views14 pages

HMI 39 Series Development Guide

Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views14 pages

HMI 39 Series Development Guide

Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Professional Creditable Successful HMI (39 series) Development Guide

HMI (39 Series)


Development Guide

[Link] 400 018 9008


Professional Creditable Successful HMI (39 series) Development Guide

Contents

1 Environment Setup.............................................................................................................................. 1
1.1 HMI Software Installation ....................................................................................................... 1
1.1.1 Environment Requirements for Installation .................................................................. 1
1.1.2 Installation Steps ........................................................................................................... 1
1.2 Development Board Configuration .......................................................................................... 3
1.2.1 Terminal Software ......................................................................................................... 3
1.2.2 Serial Connection .......................................................................................................... 3
2 Project Setup ....................................................................................................................................... 5
2.1 Download Projects via Ethernet............................................................................................... 5
2.2 Generating an Upgrade Package .............................................................................................. 5
2.3 IP Address Configuration ......................................................................................................... 6
2.4 Check the Communication between the Target Board and the PC .......................................... 8
2.5 Change the Startup Types ........................................................................................................ 8
2.6 Modify Resource ...................................................................................................................... 9
2.6.1 View Project Files ....................................................................................................... 10
2.6.2 IP Address Modification ............................................................................................. 10
3 Revision Records .............................................................................................................................. 12

[Link] 400 018 9008


Professional Creditable Successful HMI (39 series) Development Guide

1 Environment Setup

1.1 HMI Software Installation

1.1.1 Environment Requirements for Installation


All the following OS are compatible with the software.
Windows 7 (32bit / 64bit)
Windows 10 (32bit / 64bit)

1.1.2 Installation Steps


1) Double click [Link]. Select a language and then click [Next].

2) Select [I agree to the terms of this license agreement] and click [Next].
[Link] 1 400 018 9008
Professional Creditable Successful HMI (39 series) Development Guide

3) Specify the destination directory. and then click [Next]. It’s not recommended to install the HMI
in C drive. Sometimes the HMI will not open if installed in C drive.

4) select [Install shortcut for current user only] or [Make shortcuts available to all users] and
then click [Next]

[Link] 2 400 018 9008


Professional Creditable Successful HMI (39 series) Development Guide

5) click [Next] to start the installation.

6) Click [Finish].

1.2 Development Board Configuration

1.2.1 Terminal Software


1) You can download and use either SecureCRT or MobaXterm. This section will introduce the use
of MobaXterm.
2) HMI (39 series) can only be connected through Serial (UART 0).

1.2.2 Serial Connection


1) Serial (UART 0) connection. As illustrated in the following pictures, connect No.2 to TX, No.3 to
[Link] 3 400 018 9008
Professional Creditable Successful HMI (39 series) Development Guide

RX and No.5 to GND.

2) Open MobaXterm. Select [Sessions]-> [New Session]. First, select “serial”. Next, select serial
port and select speed. Last, check the information and click “OK” to finish.

3) Power up the development board, and the following interface is displayed. Enter “root” to start.
Note: If you operate after a while after powering up, there may be no text on the displayed
interface, and only a black screen with no boot information. In this case, you only need to enter
“root”.

[Link] 4 400 018 9008


Professional Creditable Successful HMI (39 series) Development Guide

2 Project Setup

2.1 Download Projects via Ethernet

Connect the device to your computer with an Ethernet cable.


Open the HMI software and select the project that you want to download. Click [Project] ->
[Download(PC to HMI)]. Set the IP address and com in the pop-up reminder to specify the target
device.
The default IP address is [Link] or [Link] and the default com is 1502.
Click [OK] and the downloading starts.
Note: Please keep the Ethernet cable connected to your computer and power on the device
during downloading.

When the HMI software reminds that the downloading is completed, wait for the device to restart
automatically. The device will run the downloaded project after the restart.
You can also shut down the device manually after the downloading is completed and power on again.
The device will automatically run the downloaded project after startup.
Note: To achieve communication, the IP addresses of the device and the computer should be in
the same network segment during downloading.

2.2 Generating an Upgrade Package

Preparation:

After editing the project, click on the menu bar [Project] -> click the toolbar [Generate Upgrade
Package] button to bring up the following interface.

Default Selection: This will update the project. You can choose whether to update the device-side
library files.

Version Control: You can choose whether to use the version control feature. The current version

[Link] 5 400 018 9008


Professional Creditable Successful HMI (39 series) Development Guide

number of the device can be found in the `/etc/emcversion` file on the device. The factory version
number usually remains unchanged (for the 39 series, it is ` A01-1-0`). Users can manage subsequent
versions as needed (whether to enable the update version number feature).

Boot Logo Update: You can choose whether to enable the update for the boot logo. If enabled,
click Browse to select an image. The logo image must match the device's resolution (e.g., for
`DMT10600TXXX_xxWTC`, the logo image size should be 1024x600) and be in BMP format.

Storage Path: Choose the storage path for the upgrade package (place the upgrade package in the
`/update` directory on the USB drive, and ensure no other files are in this directory).

Downloading the Upgrade Package:

After downloading the upgrade package, insert the USB drive into the device before powering it on.
Upon powering on, wait for the device to automatically update the project. The device will
automatically restart upon completion. A buzzer will sound to indicate that the update is complete.
(Currently, this is applicable to 38, 39, and 42 series machines. Some USB drives may not be
recognized by the device).

2.3 IP Address Configuration


1) Open control panel and click on “Network and Internet” and then click on “Network and
Sharing Center”. Click on “Change adapter settings”.

2) Right-click on the adapter and select “Properties”.

3) Double-click on “Internet Protocol Version 4(TCP/IPv4)”.


4) Select “Use the following IP address” and specify the IP address. The first three numbers should
be 192.168.10 to make sure that the computer is in the same network segment as the device. The last

[Link] 6 400 018 9008


Professional Creditable Successful HMI (39 series) Development Guide

number can be filled in 0~255. Do not set it to the same as the IP address of the device. Click the OK
button on “Internet Protocol Version 4 (TCP/IPv4) Properties” window, and also click the OK button
on “Ethernet Properties” window.

Note: Your computer cannot connect to internet through a cable after changing the IP address
to STATIC.
You can set your computer back to DHCP to connect to internet. Repeat steps (1)-(3) again. When
you get to the “Internet Protocol Version 4 (TCP/IPv4) Properties” window, click “Obtain an IP
address automatically”.

[Link] 7 400 018 9008


Professional Creditable Successful HMI (39 series) Development Guide

2.4 Check the Communication between the Target Board and the PC

1) Click [Project] -> [Device Detection]. Specify the IP address and com in the pop-up window.
([Link] here). Then click “OK”.

2) Click [Detect] button on the buzzer. If you hear the beeping sound from the target board, it means
that the HMI software and the target board have established a good connection and can communicate
normally, otherwise the connection has not been established.

2.5 Change the Startup Types

[Link] 8 400 018 9008


Professional Creditable Successful HMI (39 series) Development Guide

The program will run automatically after the device is powered on.
If you want to change the startup type from automatic start to manual start, you can follow steps
below.
Connect the device to your computer referring to 1.2.3. Enter the command: vi /etc/init.d/rcS

Move the cursor to the beginning of “/etc/init.d/runhmi” line. Press i to enter insert mode. Input “#”
to comment out this line.

Press Esc to exit insert mode and then enter “: wq” to save the modification.

Enter “reboot” to restart the device.

Power on the device. Enter “root” to enter the system. Enter “freeview” to run the project.

If you want to change the startup type from manual start to automatic start, Connect the device to
your computer referring to 1.2.3. Enter the command “vi /etc/init.d/rcS” and then move the cursor to
the beginning of “/etc/init.d/runhmi” line. Press i to enter insert mode. Press “Backspace” to delete
“#”. Press Esc to exit insert mode and then enter “: wq” to save the modification. Enter “reboot” to
restart the device.

2.6 Modify Resource

[Link] 9 400 018 9008


Professional Creditable Successful HMI (39 series) Development Guide

2.6.1 View Project Files


Enter command “cd /var/setting/hmi/” to enter the project files category. Enter command “ls” to
view the contents of the project file.

0xx_xxxx.html Html file of interface corresponding to the number.


It cannot be deleted, otherwise the involved interface
may appear black screen and the device will be
stuck, etc.
[Link] Automatically generated by HMI software for PC
and cannot be edited.
[Link] Alarm event settings xml
images folder User-added custom images in HMI software for PC.
js folder Store JavaScript files.
language folder Store xml for multi-language configuration. Format:
[Link](default language),
[Link]......
plugin folder Store the plug-ins required for project, generally
automatically downloaded to the device from the PC
and cannot be edited.
[Link] Recipe database settings xml
[Link] Organize HMI system resource structure
[Link] Data sampling settings xml
[Link] Keyboard related xml, cannot be edited
[Link] Timer setting xml
[Link] action trigger xml
[Link] Automatically generated by HMI software for PC,
cannot be edited.

2.6.2 IP Address Modification


Enter command “vi /etc/init.d/netconfig” to open IP address settings file. Modify “ifconfig eth0
[Link]” line. Press Esc and save the modification. Enter “reboot” to restart the device. The
IP address is modified successfully.

[Link] 10 400 018 9008


Professional Creditable Successful HMI (39 series) Development Guide

[Link] 11 400 018 9008


Professional Creditable Successful HMI (39 series) Development Guide

3 Revision Records

Rev Revise Date Content Editor

00 2022-12-05 First Edition Lvzhi Chen

01 2024-05-29 Add “Generating an Upgrade Package” Yan Chen

[Link] 12 400 018 9008

You might also like