0% found this document useful (0 votes)
362 views

Coolmay HMI Programming Manual

Uploaded by

Kom EG
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)
362 views

Coolmay HMI Programming Manual

Uploaded by

Kom EG
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
You are on page 1/ 345

Coolmay HMI Programming Manual

Shenzhen Coolmay Technology Co., Ltd


V20.91
Safety Precautions
(Always read these precautions before using this equipment.)

1. When the external power supply is abnormal or the


control system malfunctions, in order to make sure the
whole system being safely performed, please set a
safety circuit outside it.
2. If the system cannot check out the abnormal conditions
Of inputs and outputs, it cannot control output anymore.
To ensure the element being operated safety, please
design an external circuit and system.

1. Please read this manual before installation.

2. Do not disassemble the main box and the keyboard without

authorization.

3. Please make a call to the after sale service center of Coolmay if


you have any questions.

Precautions while testing and operating


1. Before performing the test operations of the user creation

monitor screen (such as turning ON or OFF bit element, change

the word element current value, changing the settings or current

values of the timer or counter, and changing the buffer memory

current value), read through the manual carefully and make

yourself familiar with the operation method.

2. During test operation, never change the data of the elements which

are used to perform significant operation for the system.

3. False output or malfunction can cause an accident.


CATALOG
Chapter 1 Overview......................................................................................................................... 1
1 MT series HMI...................................................................................................................... 1
2 Function Instruction.............................................................................................................. 1
3 Precautions............................................................................................................................ 3
4 Naming Rule......................................................................................................................... 3
5 HMI Parameters.................................................................................................................... 5
6 Hardware Specification.........................................................................................................7
7 Installation...........................................................................................................................12
Chapter 2 CoolMay HMI software................................................................................................ 15
1 Installation...........................................................................................................................15
2 How to open CoolMayHMI................................................................................................ 18
3 Run Menu............................................................................................................................22
3.1 File............................................................................................................................22
3.2 Edit (Quick Selection Tools)................................................................................... 27
3.3 View......................................................................................................................... 29
3.4 Tool...........................................................................................................................37
3.5 Drawing Menu......................................................................................................... 43
3.6 Element Menu.......................................................................................................... 44
3.7 Application............................................................................................................... 47
3.8 Debug Menu.............................................................................................................58
3.9 Individuation Menu..................................................................................................63
3.10 Window.................................................................................................................. 65
3.11 Help Window..........................................................................................................68
4 Method for downloading HMI program............................................................................. 70
4.1 Online download procedures:............................................................................... 70
4.2 Downloading procedure by pendrive /U disk..........................................................73
4.3 MT60 serial hmi drive installation steps................................................................. 75
4.4 Solution for MT60 serial hmi program download problem.................................... 75
Chapter 3 Element Function.......................................................................................................... 76
1 How to select element......................................................................................................... 76
2 Text ........................................................................................................................... 77
3 Register ..................................................................................................................... 78

4 Indicators ................................................................................................................... 82

5 Bit operation switch ...................................................................................................84

6 Historical trend chart ............................................................................................... 89

7 Real-time trend chart ..............................................................................................96

8 Bar graph ............................................................................................................... 101

I
9 Meter .................................................................................................................. 104

10 Picture ..............................................................................................................106

11 GIF Animation Components ................................................................................... 111

12 Dynamic text ......................................................................................................114

13 Function Key ....................................................................................................117

14 Variable text ..................................................................................................... 120


15 Letter Combinations........................................................................................................122

16 Roll lamp ................................................................................................................. 124

17 Polymorphic/Multi-state button component ........................................................... 125


18 Multi-state indicator component ................................................................................ 127

19 Date .......................................................................................................................129

20 Time .......................................................................................................................131

21 SQL query component .............................................................................................132

22 Sliding block component ..................................................................................... 135

23 Drop-down box component .....................................................................................137

24 Dynamic alarm bar component ................................................................................. 139

25 Historical data list ............................................................................................ 141

26 Recipe .............................................................................................................. 147

27 Alarm record list .............................................................................................. 151

28 Real-time alarm list .................................................................................................157

II
29 Memo ...............................................................................................................159

30 Audio playback component .....................................................................................163

31 Rectangle ..........................................................................................................165

32 Hollow rectangle ........................................................................................... 167

33 Convex Rectangle ..........................................................................................169

34 Cross pipes .................................................................................................... 172

35 Vertical pipes ......................................................................................................174

36 Pipe joint ........................................................................................................... 176

37 Scale ................................................................................................................177

38 Line ..................................................................................................................... 179

39 Ellipse ............................................................................................................ 180

40 Table component ................................................................................................... 182

41 Flow block component ...............................................................................................184

42 Static text component ........................................................................................... 186

43 Digital display component ....................................................................................... 187

44 Handpiece component ............................................................................................. 189

45 XY trend component ............................................................................................... 191

46 Sector chart component ...................................................................................... 194

47 QR code component .............................................................................................. 196

III
48 RGB Toning lamp ................................................................................................. 198

49 MT60 serial hmi storage function instruction................................................................ 199


Chapter 4 Macro.........................................................................................................................204
1 Macro Type....................................................................................................................... 205
2 Editing of Macro............................................................................................................... 205
3 Operand of macros............................................................................................................ 209
4 Errors.................................................................................................................................221
Chapter 5 System Control Area................................................................................................... 223
1 Set MT Working Parameters.............................................................................................223
2 USB setting screen instruction..........................................................................................244
3 Special Registers............................................................................................................... 246
Chapter 6 Modbus communication............................................................................................254
1. Settings for HMI as master................................................................................................. 254
1.1 HMI as master and connected with only one slave settings:....................................254
1.2 HMI as mater connect to multi-slaves setting:......................................................... 255
2. Settings for HMI as slave....................................................................................................258
2.1 Communication parameter settings.......................................................................... 258
2.2 Slave station number setting..................................................................................... 259
2.3 slave register address range...................................................................................... 260
2.4 Function Code Supported when HMI as Slave........................................................ 261
3.other special registers...........................................................................................................261
Chapter 7 HMI optional Ethernet port instructions..................................................................... 262
1. LAN download/monitor hmi program steps.......................................................................262
2. WAN remote download/monitor hmi program steps..........................................................263
3.HMI Ethernet port MODBUS TCP protocol Setting steps................................................. 272
4. HMI Ethernet prot Free Protocol setting steps................................................................... 279
Chapter 8 Optional sort given application function.....................................................................283
Chapter 9 HMI program read Setting procedure......................................................................... 292
Chapter 10 Instructions of Coolmay HMI connection with printer............................................ 296
Chapter 11 MT60 serial HMI USB camera screen setting steps................................................. 303
Appendix 1 MT series supported PLC.........................................................................................304
Appendix 2 HMI software adding pictures Method.................................................................... 308
Appendix 3 HMI user password setting and logout settings....................................................... 317
Appendix 4 Alarm record table setting steps............................................................................... 325
Appendix 5 MT60 serial HMI calibration steps.......................................................................... 331
Appendix 6 Differences between MT90 and MT60 HMI........................................................... 336

IV
HMI Programming Manual

Chapter 1 Overview

1 MT series HMI
Thank you for choosing Coolmay HMI. MT series touch human-machine interface
products have a user-friendly interface and high-speed hardware architecture to
present you a really easy-to-use programmable input interface. Read this manual and
make sure you understand the functions and performance of Coolmay HMI
thoroughly in advance to ensure correct use.
At the same time, we look forward to your valuable suggestions to make MT series
products have better functions.

2 Function Instruction
■ Supported PLCs
We support the following manufactures, Mitsubishi. Omron. Panasonic. Siemens.
ModBus RTU. ModBus ASCII. ModBus TCP. LG. Delta. Fatek. Vigor and so on.
As for new brands, we will supply relevant communication protocol for
updating.( The brands referred above are reserved by the relevant manufactures)

■ Convenient operation and macro instructions


By operating macros can help PLC to deal with complicated computation, together
with the communication macro, users can draft the communication protocol by
themselves and then the element can communicate with certain system through COM
port.

■ Quickly download program via USB


Download via USB Ver1.1/2.0 will shorten the download time

■ Supports two PLCs at the same time


It can support two communication ports at the same time, and can connect two
1 www.coolmayplc.com
HMI Programming Manual

different or multiple controllers with the same communication protocol at same time.

■ on-line simulation
After program, you can directly use the PC to connect the controller to simulate
whether the human-machine action is correct.

■ Ethernet communication port (Only available for MT60 series HMI as optional)
10/100BASE-T, ethernet communicate port provide fast data exchange function. Any
TP can organize network to perform aggregate remote control. Data can also be
uploaded in a short time via Ethernet.

■ Backup data by U disk (U disk file system must be FAT 32) or SD card (only MT60
series HMI support)
The data uploading and downloading function can be realized through the U disk or
the SD card; the HMI program compiled on the computer can also be downloaded to
the touch screen through the U disk or the SD card, so that HMI is not connected to
the PC,
and the program is downloaded using the HMI software. The historical data and alarm
messages can be transferred to SD card. The user can use card reader to read the
messages.

■ Multiple security
Provide password protection to protect the intellectual property of programmer.
Provide password protection of using element of screen. The element can be used
only when user’s privilege level is higher than the status of the element.

■ Database storage function (only supported by MT60 series HMI)


In the software version of CoolMayHMI V5.81 (internal GUIRun V5.81) and higher
version, modify the default data storage function (record buffer / alarm database) of
the hmi and hmi/plc all-in-one (hmi part) to be stored in the SD card. If there is no
2 www.coolmayplc.com
HMI Programming Manual

optional SD card (which cannot coexist with the built-in USB 2.0 port), it means that
there is no storage function by default. If you need to use the storage function, you
need to change the HMI database storage selection to RAM (U disk. Backup
suppression ** minutes), and the external file system is U disk in FAT32 format.

3 Precautions
■ Temperature and humidity of working environment
The storage temperature is -20 ~ 70 ° C, the working environment temperature is
0-50 ° C, and the working environment humidity is 20% ~ 90% RH. If it is out of the
range, its LCD screen is not guaranteed to allow normal display for a long time.
■ Prohibit random insertion
the COM port is forbidden to plug and unplug during the MT series operation;
please turn off the power when connecting/disconnecting the communication cable !!
■ The best equipment
Please use PIII 500 or above, 128MB or more memory, WindowsXP / Windows 7 /
Windows 8 / Windows 10 and other versions.

4 Naming Rule
1). MT60xx series
MT 6070 H-W-Y
① ②③ ④⑤ ⑥
①Series: MT series HMI touch panel

②Version: MT60 series :based on wince system


MT90 series : NO Operating system

③LCD Size:
037: 3.5" 043: 4.3" 050: 5.0"
070: 7.0" 100: 10.2" 150: 15’’
3 www.coolmayplc.com
HMI Programming Manual

④H: Standard horizontal, HV: Standard vertical,Wince 5.0


HA:upgraded horizontal,Wince 7.0 KH: different cutout size.

⑤Ethernet /CAN port: W- ethernet port (optional for MT60 series hmi)
CAN-can port (optional for MT90 series hmi,change from
rs485 port)

⑥Y: Audio port (optional)

Horizontal HMI model Resolution


MT6037H/MT9037H 320*240
MT6043H/MT9043KH 480*272
MT6050H/MT9050KH/MT6070H/MT9070KH 800*480
MT6070HA/MT6100HA 1024*600
MT6150HA 1024*768

Vertical HMI model Resolution


MT6043HV 272*480
MT6050HV/MT6070HV 480*800

4 www.coolmayplc.com
HMI Programming Manual

5 HMI Parameters

Model MT6037H MT6043H MT6050H MT6070H MT6100HA MT6150HA

Front
Image

Rear

Dimension 88*88*25mm 134*102*32mm 146*88*25mm 212*148*40mm 275*194*36mm 365*290*36mm


Cutout size 72*72mm 120*94mm 137*72mm 194*138mm 262*180mm 352*279mm
Specs

Display size 73*56mm 97*56mm 108*65mm 154*87mm 222*125mm 304*228mm


Weight(kg) About 0.3 kg About 0.33 kg About 0.33 kg About 0.54 kg About 0.7 kg About 3.414 kg
Display 3.5” TFT 4.3” TFT 5” TFT 7” TFT 10.1” TFT 15.0” TFT

Resolution
320*240 480*272 800*480 800*480 1024*600 1024*768
(pixels)
Display

Brightness 300cd/m² 450cd/m²


Contrast ratio 400:1
Backlight LED
Backlight time 60,000 h
Display color 65536 true colors
Touch type 4-wire resistive panel
ROM 128MB
Storage

RAM 64MB 128MB


CPU ARM9 core 400MHz CORTEX A8 720MHz-1GHz
Operating system WINCE 5.0 WINCE 7.0
USB Host USB 2.0×1 (USB port and can be connected to external USB flash drive, mouse, etc.)
USB DEVICE Yes (Mini type B male port cable for program download Yes (Type B male port cable for program download)
Interface

Ethernet port Optional


COM port 1 RS232 and 1 RS485
Protocol Support MODBUS, free port and common PLC communication Protocol
Calendar Yes
Input Voltage Default as DC24±10%V, and DC12V/DC5V can be optional
Consumption 100mA*24V 150mA*24V 150mA*24V 200mA*24V 280mA*24V 500mA*24V
Protection Class IP65 (front panel)
Temperature Ambient environment: 0~50℃ | Storage environment: -20~70℃
Humidity 20%~90% RH
Certification CE
CoolMay HMI programming software
Software
Detailed info. refer to CoolMay HMI user manual, CoolMay HMI programming manual

5 www.coolmayplc.com
HMI Programming Manual

Model MT9037H MT9043(50)KH MT9070KH

Front
Image

Back

Dimension 88*88*25mm 150*93*32mm 226*163*35.6mm


Regulation

Cutout size 72*72mm 143*86mm 217*154mm

Display size 73*56mm 97*56mm 154*87mm

Weight about 0.3 kg about 0.33 kg about 0.7 kg

MT9043KH: 4.3” TFT


Display 3.5” TFT 7” TFT
MT9050KH: 5.0” TFT

MT9043KH: 480*272
Resolution (pixels) 320*240 800*480
MT9050KH: 800*480

Brightness 300cd/m²
Display

Contrast ratio 400:1

Backlight LED

Backlight life 60,000 hours

Display color 65536 true colors

Touch type 4-wire resistance panel

ROM 128MB
storage

RAM 32MB 64MB

CPU ARM9 core 216MHz ARM9 core 288MHz

Operating system Null


Yes (Type B male port cable for program
USB DEVICE Yes (Mini type B male port cable for program download
download)
Com1: RS232/RS485 (Either) Com1: RS232/RS485
COM port

COM port 1 RS232 and 1 RS485


Com2:RS232 Com2:RS485

CAN port NULL CAN 2.0B is optional, change from com2

Protocol Support MODBUS, free port and common PLC communication Protocol

Calendar Yes

Output voltage DC5V~DC24V

Consumption < 3W < 8W

Protection class IP65 (front panel)

Temperature Ambient environment: 0~50℃ | Storage environment: -20~70℃

Humidity 20%~90% RH

CoolMay HMI Programming Software


HMI software
Detailed info. refer to CoolMay HMI User Manual, CoolMay HMI programming manual

6 www.coolmayplc.com
HMI Programming Manual

6 Hardware Specification
MT6037H

Black panel Silver brushed panel Golden brushed panel


(Black back case) (Black back case) (White back case)

Interfaces:
1: 232RX
2: 232TX
3: 485 -
4: 485 +
5: Common port of DC24V
LAN / Ethernet port
cathode and RS232
6: DC24V +
7: HMI program download port
8: USB port (U disk. mouse)
9: Ethernet port(optional)

black back case

7 www.coolmayplc.com
HMI Programming Manual

MT6043H

Gray panel

8 www.coolmayplc.com
HMI Programming Manual

MT6050H(A)

Black panel (black back case) Silver brushed panel(black back case)

Golden brushed panel (White back case) (white back case for reference)

9 www.coolmayplc.com
HMI Programming Manual

MT6070H(A)

Gray panel

10 www.coolmayplc.com
HMI Programming Manual

MT6100HA

11 www.coolmayplc.com
HMI Programming Manual

7 Installation
Dimensional drawing (MT6037H)

Wall Installation Inlaying Installation

Dimensional drawing (MT6043H)

12 www.coolmayplc.com
HMI Programming Manual

Dimensional drawing (MT6050H)

Dimensional drawing (MT6070H)

13 www.coolmayplc.com
HMI Programming Manual

Dimensional drawing (MT6100HA)

Installation Fastening

14 www.coolmayplc.com
HMI Programming Manual

Chapter 2 CoolMay HMI software

1 Installation
(please download the latest version from the official website www.coolmayplc.com)

This chapter introduces how to install Coolmay HMI software and screen editing,
users can design working frame they want. Detailed explains will be listed in the later
chapters.

■ Hardware (recommended)
1>. PC host: CPU 80486 or higher
2>. Memory: 128MB or higher RAM
3>. Hard disk: Disc space available at least 100MB
4>. Display: VGA or SVGA
5>. Mouse: Compatible with Windows
6>. Printer: Compatible with Windows
7>. System: XP / Win7 / Win8 / Win10

■ Software source
Download from the website : http://www.coolmay.com/Download-159-36-41.html

■Steps to Install CoolMayHMI V*.**.exe


Note: the software version is subject to the official website.
● Select [CoolMayHMI V*.**] in the installer window, start the installation
program, run as administrator.
● Click [Next] in the welcome window

15 www.coolmayplc.com
HMI Programming Manual

● Select a folder for installation, or use the default folder. Click [Next].

16 www.coolmayplc.com
HMI Programming Manual

● Click [Next] to start installation.

● Installation progress

17 www.coolmayplc.com
HMI Programming Manual

● Click [EXIT] to exit the installation wizard.

2 How to open CoolMayHMI

After installing CoolMayHMI , the shortcut icon will be shown in the


desktop.
Meantimes, The corresponding CoolMayHMI program group has also been added to
the Windows Start menu:
Win8 System:

18 www.coolmayplc.com
HMI Programming Manual

win7 System:

Take [Open examples] as an example: any of the above methods can run the
configuration software. The welcome window will pop up when you start CoolMay
HMI:

19 www.coolmayplc.com
HMI Programming Manual

Click [Open examples ] ,Exp3.OP6 ->the interface is as follows:

CoolMayHMI editing interface layout

20 www.coolmayplc.com
HMI Programming Manual

●Title bar: display the present route. file name. window number and name.
●Menu bar: display menus of every command and these menus are all dropdown
menus.
●Standard toolbar: lay shortcut icons of commands. [Display file], [edite],[print] etc.
●Design elements: command button for element element
●Drawing element: command button for graphing elements
●Edit tool: command button for editing elements
●Image management: window of image management
●Screen editing area: windows for editing graphic elements
●Status bar: display the current state, HMI parameter, communication element

21 www.coolmayplc.com
HMI Programming Manual

3 Run Menu

3.1 File

1) Create a new project file


Click [New], or click the icon in the toolbar, or use the defaulted hotkey
Ctrl+N.

Set HMI parameters, Link1/Link2 COM port and PLC model, then click [Confirm].

2) Open a project

Open an existed project, click[Open] in [File] dialog box,or click in the


22 www.coolmayplc.com
HMI Programming Manual

toolbar, or use the hotkey “Ctrl+0”.

Select the project file , click [Open] or double click the file.

3) Save a project file


Click [Save] or the icon in the toolbar, or use the default hotkey Ctrl+S.

When save a new project file, the save window pop up, entry the file name and
click[save]. If the project file has been saved, no window pop up after click [save],
just the latest information of the project file is saved then.

23 www.coolmayplc.com
HMI Programming Manual

4) Save as a new project file


Click [Save as] in [File] dialog box, [Save as a new file] dialog box will pop up no
matter the file is a new one or an old one.

After entering the new file name, click[Save], the file is saved as new project file.

5) Printer

Click [Print] or the icon in the toolbar, or use the defaulted hotkey Ctrl+P.

24 www.coolmayplc.com
HMI Programming Manual

6) Printer settings
Select [Printer Settings] in the menu to open the following dialog box, then select
a printer and set the parameters.

You can select a different printer connected to your computer by clicking the
drop-down box next to the printer name.

7) Export Picture
Store the current screen in the disk with BMP form, select [Picture Export] in [File]

dialog box or click in the toolbar, or the defaulted hotkey Ctrl+ E.

25 www.coolmayplc.com
HMI Programming Manual

8) Route of project used recently


Recently accessed project path: Here is the most recently used project path, click to
open the selected project project quickly.

9) Exit
Select [Exit] in the [File] dialog box, or click [Close] in the main window, if the
project file has been updated or hasn’t been stored, then the following dialog pops up:
Click [Cancel],the project file won’t be end. click [Yes] or [No], the project file will

be closed later. If it is a new project file, the dialog of [Save as another new file] will
be open, click [Save] or [Cancel], the program will be closed.

26 www.coolmayplc.com
HMI Programming Manual

3.2 Edit (Quick Selection Tools)

1) Shear Relocates the selected items to the clipboard, or click . Hotkey:


Ctrl+X
2) Copy Copies the selected items to the clipboard or click . Hotkey: Ctrl+C
3) Paste Pastes the items in the clipboard at the selected location or click .
Hotkey: Ctrl+Z
4) Multiple copy
Select a certain element to operate multiple duplication. The below dialog box
will pop up.

27 www.coolmayplc.com
HMI Programming Manual

Set [Quantity in horizontal] and [Quantity in vertical], click [Confirm], get the module
with the quantity of X*Y. Since the module itself is concluded in the matrix, the
minimum quantity is 1.The interval is the same with the interval of elements.the new
element will be auto separated after enter in and being duplicated. Incremental
address is progressive increased horizontally or vertically as stated. If the unit is word,
it will increase with the unit of word. If the unit is bit, it will increase with the bit unit.

Example: quantity in horizontal=2, quantity in horizontal=2

Example: Click [Confirm] to complete.

28 www.coolmayplc.com
HMI Programming Manual

5) Undo Return to the last operation or click . Hotkey: Ctrl+Z


6) Repeat Repeat the last cancel operation or click . Hotkey: Ctrl+Y
7) Copy current Window
Copy the whole picture. If you click the picture on it at this time, the original picture
will be pasted, similar to the copy of the text editing. The only difference is the whole
picture. You can select the [Copy current picture] option under [Edit]. , or click the

. Hotkey Shift+ C.

8) Paste new window

Paste new screen image or click Hotkey: shift+ V

All the settings will remain the same, only the name will be assigned automatically.
9) Lock Lock the parts to prevent the layout from being moved and accidentally

move the layout. You can select the [Lock] option under [Edit] or click .

Hotkey: Shift + Ctrl + Z

10) Deblocking Deblock the locked elements or click . Hotkey: Shift +

Ctrl + Y

3.3 View

29 www.coolmayplc.com
HMI Programming Manual

1) Preview Window using data


Display the data distribution of the screen which is used. Select [Preview Window

using data], or click the icon in the toolbar. Hotkey: F2

2) Standard Toolbar
Select whether display standard toolbar or not, see below figure:

Icon Name function

New Opens a new project file

Open Opens an existing project file

Save Save an project file

Send the current project file to the


print
printer
Save the selected screen in the
Export BMP
disk with image form(BMP)

30 www.coolmayplc.com
HMI Programming Manual

Relocates the selected items to the


Cut
clipboard.
Copies the selected items to the
Copy
clipboard.
Pastes the items in the clipboard
Paste
at the selected location.
undo Turn back to the last operation
repeat Repeat the last operation

Create new window Create a new screen

Modify the picture


Modify the screen attribute
properties
Copy the current current screen
Copy current window
image
Paste the screen image which is
Paste new window
copied or cut.

Delete Deletes the selected screen image

Preview window using Display the distribution condition


data of data used by the screen

Set OP series Set operation parameters of OP

Bulk modify all attributes of


Bulk edit
projects

Set keyboard parameters Set keyboard parameters

Initial Initial

Clock Clock

Sub Sub

Target file path Set login path of target file

31 www.coolmayplc.com
HMI Programming Manual

Compile Compile a project

Download project data via


download
Ethernet in short time.

Grid Select whether to display the grids

OFF Bit unit means OFF

ON Bit unit means ON

Preview scale Select preview scale of screens

Preview window using


Preview data used by screen
data

Cascade Cascade MDI window

Horizontal tiling Tile MDI window horizontally

Vertical tiling Tile MDI window vertically

Code convert Open a code convert

Help Open online help

Language selection Select language

No need to connect PLC while


Off-line simulation
testing the compiled project on PC
Need to connect PLC while
On-line simulation
testing the compiled project on PC
Construct network on PC to
Ethernet monitoring
execute collective remote control

Calculator Open the calculator

Draw Open the drawing board

3) Design components
32 www.coolmayplc.com
HMI Programming Manual

Select whether to display design element toolbar or not, please see the below
figure.

Text Place a new text

Register Place a new register

Indicator Place a new indicator light

Digital display Place a new digital display unit

bit operation switch Place a new bit operation switch

historical trend chart Place a new history tendency chart

Real-time trend chart Please a new waveform chart

Bar graph Place a new bar graph

Meter Place a meter clock

picture Place a new picture

GIF Picture Place a new GIF picture

Dynamic text Place a new dynamic text

Function key Place a new function key

33 www.coolmayplc.com
HMI Programming Manual

Variable Text Place a new variable text

Letter combinations Place new letter combinations

Roll lamp
Place a new roll lamp

Table Place a new table unit

Date Place a new data unit

Time Place a new time unit

Flow block place a new flow block part

SQL query place a new SQL query component

Data save Place a new data save unit

Historical data sheet Place a new historical data sheet

recipe data list Place a new recipe data list

Alarm record Place a new alarm record list

Real-time alarm table Place a new real-time alarm table

Amendment record list Please a new amendment record list

Memo Place a new memo

4) Drawing Elements
Select whether to display drawing element toolbar.

34 www.coolmayplc.com
HMI Programming Manual

Rectangle Place a new rectangle

Concave rectangular Place a new concave rectangle

Convex rectangular Place a new convex rectangle

Horizontal pipe Place a new horizontal pipe

Vertical pipe Place a new vertical pipe

Pipeline joints Place a pipeline joint

Graduation Place a new scale

Line Place a new line

Ellipse Place a new ellipse

5) Editing Tools
Select whether to display editing toolbar or not, see the below figure.
Paragraph Styles; Font Names; Font Size; Font Color; Bold ; Italic; Underline;
AlignLeft; Center; Align Right; Bullets; Numbered List; Decrease Indent; Increase In
dent.

left justifying Align selected units to the left

35 www.coolmayplc.com
HMI Programming Manual

center horizontally Horizontally center selected unit

Align Left Align selected units to the right

Align selected units to the top


Align top edge
edge

Center Vertically Vertically center selected unit

Align from Bottom Align selected units to the bottom

Set the select unit the same width


Same width
with the standard ones
Set the select unit the same height
Same height
with the standard ones
Set the select unit the same size
Same size
with the standard ones
lock elements, prevent
Lock well-adjusted pages from
accidentally damage

Deblocking Deblock the locked units

Pushed down to the Pushed selected units to the


bottom bottom

Multiple copy Select an unit and multiply copy it

Static text place a new static text element

Slide block place a new slide block part

Drop-down box Place a new drop-down box

36 www.coolmayplc.com
HMI Programming Manual

component
Place a new dynamic alarm bar
Dynamic alarm bar
component
Place a new polymorphic button
Polymorphic button
component
Multi-state indicator Place a new multi-state indicator
light unit

Sector chart Place a new pie chart component

Place a new audio playback


Audio playback
component

6) State Bar
Select whether to display the state bar or not, please see the below figure:

3.4 Tool

1) New Window
Add an edit screen, the screen name is decided by the user or defaulted by the

system.click[New Window]in [Tool] dialog box or the icon , then the following

37 www.coolmayplc.com
HMI Programming Manual

dialog appears.

Reset picture NO. and screen name, or use the default ones, then click[Confirm].

2) Modify frame Window

Click [Modify frame Window] or the icon , the following dialog appears.

Whether modify the page to a window and the width and height, the back color and
description can be decided here.(The current screen button setting function is not
supported at this time)

38 www.coolmayplc.com
HMI Programming Manual

3) Delete Window
Delete the current page and relevant units (Note: when execute the operation, the
deleted window cannot be withdraw. Please think twice before execution. Click

[Delete Window] or the icon . Then the following dialog will pop up.

4) Register Search
You can select the [Register Search] option under [Tools], or press the icon ,
Hotkey F3/Ctrl + F . After that, the register search dialog box will appear as shown
below:

When using this function, first set the basic conditions of the registers you want to
find, and then click the [Find] button. The searched component will be displayed in
the output bar. Double-click an option in the output bar and the cursor will be
automatically selected to the component.

39 www.coolmayplc.com
HMI Programming Manual

5) Part Statistics
Collect statistics for the application of current window, click [Part Statistics], or use
the hot key F4, as below figure:

6) Database Explorer (Only MT60 Series HMI support this)


Search the historical data list. history tendency chart. alarm record list and other data
stored in database storage area, which is exported by U disk.These data can be convert
to excel and curve through database explorer.

40 www.coolmayplc.com
HMI Programming Manual

7) Account Control Settings


When used in computers with win7 and win8 / win10 system,account control settings
need to be changed, move the cursor to never notify.

41 www.coolmayplc.com
HMI Programming Manual

8)Network Connection Settings


When HMI download cable well connected with a computer, local area connection
named Coolmay HMI will be added automatically.Right click it, select property and
the IP address can be checked.If it is obtain IP addresses automatically, it can be
selected to use the following IP address, set it as 222.222.222.X. Set subnet mask as
255.255.255.0. For example,set IP address as
222.222.222.3,subnet mask as 255.255.255.0. If there isn’t any automatic
identification, please turn to Coolmay official website(www.coolmay.net) and check
the driver installation steps of win7 32/64 and Win8, Win10 system touch screen
comes with driver installation steps. Note: Win8, win10 systems must turn off digital
signatures.

42 www.coolmayplc.com
HMI Programming Manual

3.5 Drawing Menu

43 www.coolmayplc.com
HMI Programming Manual

3.6 Element Menu

CoolMayHMI provides 46 types of components. For details, please refer to the above
two pictures. You can directly select the components you need to edit through the
menu. The component is placed in the screen editing area of CoolMayHMI, as shown
in the figure.

44 www.coolmayplc.com
HMI Programming Manual

Please refer to Chapter 3 for the setting of component properties for various classes.

(1) Movement of components


The operation of the mouse, whether it is pressing the left button or the right

button, is the same as using windows. When the mouse has a symbol on the
component, hold down the left mouse button to move the mouse to move the
component.

(2) Change in component width

When the mouse moves over the symbol to become a symbol , hold down

the left mouse button to move the mouse to change the left and right range of the
component. Figure:

45 www.coolmayplc.com
HMI Programming Manual

(3) Change in component height

When the mouse moves over the symbol to become a symbol , hold down the
left mouse button to move the mouse to change the left and right range of the
component. Figure:

(4) The width and height of the component change simultaneously

When the mouse moves over the component to become a symbol , hold down

the left mouse button to move the mouse to change the up, down, left, and right range
of the component. Figure:

(5) The width and height of the component change simultaneously

When the mouse moves over the component to become a symbol , holding down

the left mouse button to move the mouse can also change the up, down, left, and right
range of the component. Figure:

46 www.coolmayplc.com
HMI Programming Manual

(6) Press the right mouse button


Clicking the right mouse button and clicking on different places will have
different functions. Figure:

3.7 Application

1) Compile
By selecting this item, the editing element can be compiled to the format which can
47 www.coolmayplc.com
HMI Programming Manual

be accepted by HMI.If this item is a newly opened project, the file should be stored
before compiling. If this item has a backup or it is an old file, users can compile
directly.During the compiling process,messages can be export to the output field.If
there are errors, they will be listed at the same time to remind users. If error occurs,

element file won’t be generate. Users can click [Compile] or click the icon , or use

the hotkey F5.

Compile Error:

Compile message:

2) Download

Download window data to HMI,click it or click in the toolbar, or use the

defaulted hotkey F5. If the PC cannot be connected with HMI, error messages will
pop up to remind users, such as the below diagram.

48 www.coolmayplc.com
HMI Programming Manual

3) Parameter Settings

Set the working parameters of current project, click it or click in the toolbar, or

use the defaulted hotkey F7. Specific settings include communication settings,
network settings, alarms/others, glyphs/language, record buffers, recipe settings, and
other six areas. For details, please refer to "Chapter 5 System Control Area"
Description.

●HMI parameter: select resolution according to different HMI.

●Link2: choose whether to use Link2 communication function or not.

49 www.coolmayplc.com
HMI Programming Manual

●COM port:Set the communication port for communication with


man-machine,
COM1 is 232 communication;
COM2 is 485 communication;
COM is temporarily not supported, it is empty;
CAN is can2.0 communication;
Ethernet is network port communication.

●Baud rate: 1200. 2400. 4800. 9600. 19200. 38400. 57600. 115200. 187500.
460800. 921600.

● Communication timeout: set “communicate timeout”, the default time is


200(ms) when communication with PLC.

● PLC ID: set PLC station number, from 1 to 255.

● Inspect bits: select NULL. odd number or even number.

50 www.coolmayplc.com
HMI Programming Manual

● Data bits: select 6 bits, 7bits or 8 bits.


●Stop bits: select 1 bits or 2 bits.

4) Batch modify
Batch modify all attribute of each project,click [Batch modify] in [Application]

dialog box,or click in the toolbar, or use the defaulted hotkey F8.

 Modify Item
Select picture, text, register, dynamic text, focus hint, memo, rectangle element,
concave rectangle element, convex rectangle element.

 Modify Property
According to the change of the selected item, the content of the modified attribute is
also different; after selecting the attribute that needs to be modified in batches, reset
the new color or value, and press the “Execute” button to automatically modify the
related attributes of all the components in the range of the screen.

 Screen scope
Set the effective range of bulk editing, set value:1-240.

5) Set keyboard keys and indicator

51 www.coolmayplc.com
HMI Programming Manual

Set the communicate ID of keys and keyboard LED indicator. Click [Set keyboard

keys and indicator] in [Application] dialog box, or click in the toolbar. The
below figure appears.

6) Initial
Compile initial macro, detailed information please refer to chapter four . Click

[ Initial ] in [Application] , or click the icon in the toolbar.

7) Clock
Compile clock macro, detailed information please refer to chapter four. Click

[Clock] in [Application] , or click the icon in the toolbar.

8) Sub
Compile sub macro, detailed information please refer to chapter four. Click [Sub] in

[Application] , or click the icon in the toolbar.

9) Target File Path


The output path of target file, the already compiled file will be stored here. Click
[ Target File Path] in [Application] dialog box, or click the icon in the toolbar, then
the following dialog will pop up.

52 www.coolmayplc.com
HMI Programming Manual

10) Save and Backup


Set whether autosave or not in fixed time, units: minute (m) ; select whether create
backup “.bak” each time you save, You can directly select the [Save and Backup]
option under [Application]. the following figure appears:

11) Gallery
Open the graphics library to view and select the images used by the project. You can
directly select the [Gallery] option under [Application], and the following will appear:

53 www.coolmayplc.com
HMI Programming Manual

12) Sound library (only MT60 series HMI support)


Open the sound library to view and select the sound files used by the project. You can
directly select the [Sound Library] option under [Application], or directly click the
icon on the toolbar. After that, the picture will appear:

Note: The sound library needs to be used with audio playback components.

13) Product Authorization


The product authorization is used to specify the usage time of the human-machine
interface. When the time is up, the lock screen setting of the human-machine interface
must be unlocked by unlocking the password, so that the human-machine interface
can be human-computer interaction again. (You can use the number of days and
expiration time to lock the display unit.)
In the touch screen software, select the [Product Authorization] option under
[Application]. After that, the picture will appear:

54 www.coolmayplc.com
HMI Programming Manual

Function selection- no: no product authorization function is used;


 Calculated by the due date: set to execute the product authorization function until
the set date;
 Calculated by the number of days of use: that is, set to implement the product
authorization function after several days;
 Execution time of the day: that is, when the expiration date is set, the product
authorization function is executed.

Dynamic unlock password: Select ON, or ON + Px0. as shown below:

55 www.coolmayplc.com
HMI Programming Manual

As above picture: LW5690~LW5697:unlock password input


LW5698=5698 & LW5699=5699: UID = LW5700 LW5701(The manufacturer
can customize the random serial number, that is, a fixed UID can
be set on hmi for easy management. Now
LW8250=LW5700,LW8251=LW5701)
MsglD=65526:confirm password
MsgID=65527:Early termination(The unlock mode is valid under “ON+Px “)
LW8250,LW8251:Unlock UID Showing, namely random number.
LW5702,LW5703,LW5704:Next Termination showing
LW5705 = 5705 Indicates all unlocking is completed, and those that are not
unlocked= 0(After all unlocking is completed, LW5702-LW5704
displays the last unlock date)

Among them, Px0 is a customer-defined expiration reminder page. If you select ON +


P10, the user can set page 10 as the expiration reminder page in the program;
this page places the device serial number register LW8250 / LW8251;
the password input register:LW5690~LW5697;
Confirm after inputting password:

56 www.coolmayplc.com
HMI Programming Manual

,
Note ID65526 is fixed.
as picture:

Reminder days in advance: When ON / ON + Px0 is selected as the dynamic


unlock password, you can set a few days before the expiration date to remind
customers, the range is 0 ~ 7; reaching the reminder date will trigger a flag M.
The corresponding flag bit is the last bit of the notification setting bit,
for example: the notification bit is set to M10; then Reminder days in advance
ON register is M11;

Period setting: Up to 5 periods can be set, which is equivalent to level 5


authorization.Each period can be set to use the number of days or
deadline, password, reminder statement (displayed when the screen
is locked).

57 www.coolmayplc.com
HMI Programming Manual

Notification setting: After selecting the notification bit, when the authorization
expires, the auxiliary relay in the PLC can be set to ON/ OFF. In
this way, after the authorization expires, not only the touch screen
can be locked, but also the auxiliary relay in the PLC can be
controlled, so that the screen and the PLC can achieve the double
locking effect at the same time.

14) ICM password assistant


Use with the dynamic unlock password in the product authorization, as shown below:

As picture show,
①When the serial number of the second device is an even, the next period is set according
to the year, month, and day.
②When the serial number of the second device is odd, the next period is set according to
the number of days.
This is mainly used for customizing the device serial number (LW5700 LW5701). Pay
attention to the distinction, and it is recommended that the same program should be set to
calculate by date or by number of days. The two cannot be mixed.

3.8 Debug Menu

58 www.coolmayplc.com
HMI Programming Manual

1) Off-line Simulation
This function is used to test the editing window. read-write address and macros.
Simulate project operation on PC without any connection.click [Off-line Simulation]

in [Simulation] dialog box, or the icon , or hotkey F9, the below figure will pop

up:

Action menu of Off-line Simulation: Click the icon in the top right corner of
simulation.

59 www.coolmayplc.com
HMI Programming Manual

2) On-line Simulation
On-line simulation: Simulate project operation on PC and PLCs are directly
connected with PC. Drive the connected PLCs through simulation on PC. Click

[On-line Simulation] in [Simulation] dialog box, or click the icon , or use the
defaulted hotkey F10.
Support for small systems within two sites of the same HMI. For details, please refer
to the official website manual "Introduction to the online simulation function of
Coolmay configuration software"
The execution situation please refer to the below figure.

Note: During online simulation, the user password does not match the password set on
the touch screen. Administrators must log in before modifying the encrypted register
parameters.

Click the icon in the toolbar, the following dialog box appears:

60 www.coolmayplc.com
HMI Programming Manual

There is an initial administrator account, the user name “超级 1#” and the password
“00000000”. Please modify the administrator account after first time starting the
system. (Note: Only the super login can have the right to modify other level
passwords)

-----submit----

3) Ethernet monitoring
Conduct collectively remote control by constructing network on PCs. Click [Ethernet

Monitoring] in [Monitoring] dialog box, or click the icon ,or use the defaulted
hotkey F11.The executed situation please refer to the below figure:
Among them, when using the hmi download cable for Ethernet monitoring, the IP
address is set to "222.222.222.222",

61 www.coolmayplc.com
HMI Programming Manual

When using the touch screen network port monitoring, the IP address setting
corresponds to the touch screen IP address (that is, the IP address of the network cable
that is connected to the touch screen network port). For details, please refer to the
official website manual "Coolmay HMI network port and computer communication
setting steps".

During Ethernet monitoring, Administrator Login should be conduct before modifying


the parameters.

Click the icon in the toolbar, then the following dialog box will pop up:

62 www.coolmayplc.com
HMI Programming Manual

There is an initial administrator account, the user name and the password are both luo.
Please modify the administrator account after first time starting the system.

4) Watch the editing recipe


When using the recipe data, you can select the [View/Edit Recipe] option under
[Debug] to export, import, and copy the recipe. The implementation time is as
follows:

3.9 Individuation Menu

63 www.coolmayplc.com
HMI Programming Manual

1) Display Grille
Select whether display grids, click [Display Grille] in [ Individuation] dialog box,

or click the icon , the two figures below are with grilles and without grilles.

2) Grille Attribution
Set grid attribution, click [Grille Attribution] in [Personalized] dialog box, then the
below figure will pop up:

3) Language selection--Chinese or English

4) Interface style

64 www.coolmayplc.com
HMI Programming Manual

Style 1

Style 2

Style 3

5) Font optimization
Select whether to optimize font.

Before optimization After optimization

3.10 Window

1) Cascade
65 www.coolmayplc.com
HMI Programming Manual

Screen images are displayed in the form of overlap,multiple images can be displayed
at a time.All images will be displayed in the form of overlap after switching.Click

[Cascade] in [Window] dialog box, or click the icon , or use the defaulted
hotkey Shift+Enter. The effect images are as below:

2) Horizontal tiling
Screen images are displayed in the form of tile horizontally. The height will shrink
automatically in order to display all the images, so multiply images can be displayed
simultaneously. Click [Horizontal tiling] in [window] dialog box, or click the icon

, or use the defaulted hotkey Ctrl+Enter. The effect image is as below:

66 www.coolmayplc.com
HMI Programming Manual

3) Vertical tiling
Screen images are displayed in the form of tile vertically. The width will shrink
automatically in order to display all the images, so multiply images can be displayed
at the same time. Click [Vertical tiling] in [Window] dialog box, or click the icon

67 www.coolmayplc.com
HMI Programming Manual

The effect image is as below:

4) All shut down


Close all MDI screen images. Click [All shut down] in [Window] dialog box.

3.11 Help Window

1) Help Topics
Click it and then ONLINE HELP will appear. If you have any questions to inquire,

you can turn to here firstly. Click [Help Topics] in [Help], or click the icon in
the layout toolbar. The below figure will appear.

2) About CoolMayHMI

68 www.coolmayplc.com
HMI Programming Manual

Display the version of CoolMayHMI, the latest version should be download in the
official website (www.coolmay.net). Click [Version information], the below figure
will appear.

69 www.coolmayplc.com
HMI Programming Manual

4 Method for downloading HMI program


4.1 Online download procedures:
4.1.1 After saving the program, click on the application --- compile (shortcut F5)

After the compiling you will be prompted to create the successful target file

4.1.2 Under the destination file path(In the software application - the target file path to
view the default disk, the default is in the C drive)

70 www.coolmayplc.com
HMI Programming Manual

Confirm the C drive to generate a file which file name is the same as program name
and the format is. hw6, as shown in the picture is test program.hw6:

4.1.3 click on the application --- download(shortcut F6)

71 www.coolmayplc.com
HMI Programming Manual

4.1.4 The download window will pop up. When the HMI connection OK, IP settings
OK, then wait for the download command prompt, and then click Download

4.1.5 After downloading it will prompt you that the update is successful

72 www.coolmayplc.com
HMI Programming Manual

4.2 Downloading procedure by pendrive /U disk


(Only supported by MT60** series hmi)
4.2.1 After saving the program, click on the application --- compile (shortcut F5)

4.2.2 Under the destination file path(In the software application - the target file path to
view the default disk, the default is in the C drive)

Confirm the C drive to generate a file which file name is the same as program name
and the format is. hw6, as shown in the picture is test program.hw6:

73 www.coolmayplc.com
HMI Programming Manual

4.2.3 Copy the .hw6 file from the destination file path to the USB drive

4.2.4 Insert USB drive into USB port, then will pop up the usb settings screen

4.2.5 Click update * .hw6 file, enter the default password 12345678, the default
password is empty (direct confirmation); if you change the password, you need to
enter the corresponding correct password

74 www.coolmayplc.com
HMI Programming Manual

After confirmation, you can find. HW6 file in the lower right corner , then
double-click the pop-up confirmation box , the progress bar is automatically updated.

4.3 MT60 serial hmi drive installation steps.


Manual to download:
1.win7 32/64
2.Win10

4.4 Solution for MT60 serial hmi program download problem.


http://www.coolmay.com/kindeditor/attached/file/20170828/20170828155536_9738.p
df

75 www.coolmayplc.com
HMI Programming Manual

Chapter 3 Element Function


In order to let users understand that every element of CoolMayHMI has its own
function, this chapter will give explanations to each of them.

1 How to select element


There are two ways to start elements.
1).[Draw]»[Element], select the element and then start editing.

2). Click toolbar, select the element and then start editing.

76 www.coolmayplc.com
HMI Programming Manual

2 Text
Display text information, including Chinese characters. English letters. Unicode
character set.text attributions are as below:

Position
Locked: Lock elements, prevent well-adjusted pages from accidentally damage.
Left: Coordinates of elements in the left page
Top: Coordinates of elements in the top page.

Property
Width: width of elements
Height: height of elements
Background: background color of elements
Foreground:foreground color of elements

Text Attribute
Language1 2 3 4 : Corresponding content which elements display when system
language is selected “x”

Format Setting
Special: Select the background format of the component, background transparency,
77 www.coolmayplc.com
HMI Programming Manual

color control, and visibility control.


Font: Set the font size.
Align: Sets the alignment of the text to the component's outline.

Color change control


This option is highlighted and configurable when the special option in the format
setting is selected for color change control and visibility control.
Channel connection: Select the communication channel.
Component Type: Select the object type of the object that is controlled for visibility.
Register Number: Set the address of the register.
Change background color: When the color change condition satisfies the background
color of the rear part.
Changing the foreground color: When the color changing condition satisfies the
foreground color of the rear part.

Examples:

background transparent without background transparent color changing


conditions satisfied

3 Register
In the process of industrial control, the efficiency of the system can be reflected by the
controller running parameters. Controller operations are displayed in the form of
digital form is another advantage,which is an advantage of data presentation. Data
input is to modify the parameters of the controller through HMI, it is another way of
78 www.coolmayplc.com
HMI Programming Manual

HMI connection.

Position
Locked: Lock elements, prevent well-adjusted pages from accidentally damage.
Background transparency: Check this function, the component background is
transparent, that is, the background color is filtered out.
Left: Coordinates of the elements in the left page
Top: Coordinates of the elements in the top page.

Property
Width: width of elements
Height: height of elements
Background: background color of elements
Prospect: foreground color of elements

Registers
Channel connection: select communication channel.
element type: select element type

79 www.coolmayplc.com
HMI Programming Manual

Register No.: set the address of registers


Data type: 16bit/32bit optional,SWAP indicates that the upper and lower bytes are
interchanged.
Set Permit: register parameters can be set only when “permit”is set, otherwise it can
only be displayed and cannot be modified.
Signed number: Registers can be displayed as positive and negative numbers when
selected.
Zero leader: When selected, the register display starts with 0.
Direct upper and lower limits: Set the maximum and minimum values of the register
data input, which are limited by the constant.
Indirect upper and lower limits: Set the maximum and minimum values of the register
data input, which are limited by the values of other registers.
Note: If the data type is set to floating point number, the data set by the upper and
lower limits contains the decimal point inside. For example, the number of digits is 5,
the decimal place is 2, the upper limit is set to 65535, and the lower limit is 0. Then
the maximum value of this register can be set to 655.35.

Offline simulation Display:

80 www.coolmayplc.com
HMI Programming Manual

Set Format
Bit number: the bits of the maximum setting and display of register
Decimal: set the decimal of the register
Notification setting: Set the relay action to be set when the register data

changes.
Background transparent: filter the background color
Password: only the correspond password be entered that the content of registers can
be modified.

Border: select frame type

Font: set font size


Align: alignment of value and frame of elements.
Grade:levels of password protection, it is effective only when password protection is
used.

Controlled register
When register value meets the regulated conditions, this register will execute .
81 www.coolmayplc.com
HMI Programming Manual

Above figure: When auxiliary contact M0=1, D0 will show“*** ”.

Examples:

4 Indicators
During operational process, in order to show clearly what operation the personal has
made and the working conditions of devices, indicator light provide speedy prove of
operation and testing.

Position
Locked: lock elements, prevent well-adjusted pages from accidentally damage.
82 www.coolmayplc.com
HMI Programming Manual

Left: Coordinates of the elements in the left page


Top: Coordinates of the elements in the top page.

Property
Width: width of elements
Height: height of elements
OFF: displayed color when indicator light is OFF
ON: displayed color when indicator light is ON

Register
Channel connection: select communication channel
Element type: choose element type
Register No.: Set register address

Show
Type: Select the shape of the indicator light , select the status picture

, double click to select other indicator pictures:

83 www.coolmayplc.com
HMI Programming Manual

Positive logic: When indicator light is power off, display OFF color. When indicator
light is power on, display ON color.
Negative logic:When indicator light is power off, display ON color. When indicator
light is power on, display OFF color.

Flash: set flicker interval or without flicker

State 1 State 2: When the category is selected as a status character or a status picture,
the corresponding characters and pictures can be set here.
Controlled register: For example, display when set M5=ON

Examples:

5 Bit operation switch


During operation, touch this button, HMI will immediately send out signals to PLC
corresponding connection point ON or OFF.
There are four kinds of buttons for selecting: ON, OFF, alternative button, maintained
button
1) Attribute of bit operation switch

84 www.coolmayplc.com
HMI Programming Manual

Position
Locked: lock elements, prevent well-adjusted pages from accidentally damage.
Left: Coordinates of the elements in the left page
Top: Coordinates of the elements in the top page.

Property
Width: width of element
Height: height of element
Font: set font size
Align: alignment of text and frame of element

Control Register
Channel connection: select communication channel
Element type: select element type
Register No.: Set register address

Control Function
Set ON : Press the contact to set it ON, hands away or repress , it is still ON.
Set OFF: Press the contact to set it OFF, hands away or repress , it is still OFF.
85 www.coolmayplc.com
HMI Programming Manual

Alternative: Press the contact ON, it is still ON when hands away; it is OFF when
repress it
In turn: Press the button, the contact is ON. It is still OFF when hands away.

Control Register
Visibility control: When checked, this button is visible when M0=ON is set in this
example.

The write address is different from the monitor address: when checked, when the
button is clicked, M0 is turned on or off; when M1 is turned on or off, the button
reflects the M1 state.

Control Protect
Password: Only when correspond password being entered can this button be operated
successfully
Grade: password protection, operations will be effective only under password
protection condition .

2) Attribute of bit operation switchⅡ

86 www.coolmayplc.com
HMI Programming Manual

Control transparency: When checked, the button component displays a transparent


state.
Background: The background color of the component.
Foreground: The foreground color of the component.
Shape of the position operation switch: Select the shape effect displayed when the
switch is in the OFF/ON state.
CoolMay provides 21*2 shape effects as below:

Select , double click , then add user-defined picture.

87 www.coolmayplc.com
HMI Programming Manual

3)Attribute of bit operation switch Ⅲ

When select the characters displayed when the switch is in the state OFF/ON

are determined by these two following attributes.


OFF state
Language 1 2 3 4:corresponding contents displayed by elements when system
language is X.
ON state
Language 1 2 3 4:corresponding contents displayed by elements when system
language is X.
Note: The maximum length of language 1 is 50 strings; the maximum length of

88 www.coolmayplc.com
HMI Programming Manual

languages 3/4 is 128strings;


MT90 series HMI uses UTF8 encoding format, the maximum length of language can
only use 19 strings.
Example:

6 Historical trend chart


(Only MT60 series touch screen supports downloading data)

Historical trend graph: HMI can set sampling time and conditions to read numeric
data of buffers which is designated by PLC, and store these data in the record buffer
of HMI. After everlastingly and chronically sampling, the data will be convert to
curve and displayed on the screen of HMI.

In the software version of CoolMayHMI V5.81 (internal GUIRun V5.81) and higher
version, modify the default data storage function (record buffer / alarm database) of
the hmi and hmi/plc all-in-one (hmi part) to be stored in the SD card. If there is no
optional SD card (which cannot coexist with the built-in USB 2.0 port), it means that

89 www.coolmayplc.com
HMI Programming Manual

there is no storage function by default. If you need to use the storage function, you
need to change the HMI database storage selection to RAM (U disk. Backup
suppression ** minutes), and the external file system is U disk in FAT32 format.

1) Historical trend chart attribute

Position
Locked: Lock elements, prevent well-adjusted pages from accidentally damage.
Left: Coordinates of the elements in the left page
Top: Coordinates of the elements in the top page.

Property
Width: width of element
Height: height of element
Background: background color
Grid: color of grid

Basic
Record buffer #: Recorder buffer #(1~12) is a location which can temporarily store
historic data. The location and capacity of recorder buffer must be defined firstly.
Buffer type : 16bit or 32bit optional
90 www.coolmayplc.com
HMI Programming Manual

Transverse grid number: the amount of horizontal grids


Longitudinal grid number: the amount of vertical grids
Visibil cor. : When you set register $W=0, the trend chart will display, on the contrary
the trend chart will be hided.

2) Historical trend chart attribute Curve 1..5

5 curves can be displayed simultaneously in one historic trend chart

Historical trend chart attribute Attribute of curve 1..5


Display: select whether use this curve and select the display mode.As shown in figure

Color: color of curve


Line type: type of this curve, there are solid,dash and etc. As shown in

figure:

91 www.coolmayplc.com
HMI Programming Manual

Line width:width of this curve, 1P to 6P optional. As shown in figure:


Data buffer position: This curve can show location of data origin in record buffer.

Show full quota: The maximum value showed by this curve, also it is the maximum
value in Y axis. If data value is higher than this value, the maximum value will be
displayed.

Show zero quota: The minimum value showed by this curve, also it is the minimum
value in Y axis. If data value is lower than this value, the minimum value will be
displayed.

Full Indirect Register: Check this function to display the full value using the data in
the register.

3) Historical trend chart attribute Appearance

92 www.coolmayplc.com
HMI Programming Manual

Historical trend chart attribute Appearance attribute


Do not display grid: select whether display grid
Do Not display X axis: select whether display annotation on X axis
Do not display Y axis: select whether display annotation on Y axis
Do not display the current value : select whether display the current value.

4) Historical trend chart attribute X axis

Historical trend chart attribute X axis attribute


Time format: select format of time displaying
Color: select color of time displaying
Font : select font of time displaying
D.Spacing: show distance of two point in X axis, 0~255.

93 www.coolmayplc.com
HMI Programming Manual

5) Historical trend chart attribute Y axis


Historical trend chart attribute Y axis attribute

Maximum coordinate: the maximum value on Y axis


Minimum coordinate: the minimum value on Y axis
Decimal number: the number of decimal on Y axis
marked number: the number of marked points on Y axis
Color marked : color of marked points on Y axis
Mark font: the font of marked points on Y axis

Example:

94 www.coolmayplc.com
HMI Programming Manual

Record buffer setting

Buffer#: set location of record area


Source D: set the initial address of stored register, as shown in figure: the initial
address is D8
Trigger flag#: set conditions for triggering,
the address is a 32-bit register of the initial address of the fast reading area, as shown
in figure:

the triggering flag is 0, the initial address of fast reading area is D8, so the address of
triggering flag is D8.0

Each Length: represents the quantity of registers being stored from data resource D
(including the initial address of data resource D)
Example: store D10-D14 these five register

Total sum: total quantity of storage

95 www.coolmayplc.com
HMI Programming Manual

Automatically stop: When selected, the system will stop automatically after recording
the whole quantity, otherwise it will be covered automatically.

Record intervals: save data according to time intervals and the unit is second.
Note: recording condition can only be trigger flag or record intervals.

7 Real-time trend chart


HMI can read continuous data of corresponding address and directly and real-time
display them to users by figure. For example: If there are 50 points and you set 3
curves and then you can get 50X3, that is 150 word data and at meantime these data
are processed in PLC program. Setting procedure can be referred to following
figures,or you can download sample program from CoolMay official website.

1)Real time trend chart attribute

Position
Locked: Lock elements, prevent well-adjusted pages from accidentally damage.
Left: Coordinates of the elements in the left page
Top: Coordinates of the elements in the top page.

Property
Width: width of element
96 www.coolmayplc.com
HMI Programming Manual

Height: height of element


Background: background color
Grid: color of grid

Basic attributes
Channel connection: select communication channel
Element type: select element type
Data resource: origin of collecting data
For example: If there are 50 display points, you can set 3 curves and address is D0,
data type is 16bit, after these curves being triggered, there are 150 data being read.
The location of Y axis in first curve is D0~D49, in second curve is D50~D99, in third
curve is D100~d149. Another example: If there are 50 display points, you can set two
curves and address is D0, data type is 32bit,after these curves being triggered, there
are50*2*2= 200 data being read. The location of Y axis in first curve is D0~D99, in
second curve is D100~D199.
Data type: 16bit or 32bit
Transverse grid number: the amount of horizontal grids
Longitudinal grid number: the amount of vertical grids

Control attribute
Show points: points of data reading and display points on trend chart.
Clear triggered ID: When page send a matched ID, curse will be eliminated. Examples
please refer to function key.
Visibility: When set register =Kxx, the chart will be displayed, otherwise the chart
will be hided.

2)Real time trend chart attribute Curve1...3


Three curves can be displayed in historic trend chart at the same time
97 www.coolmayplc.com
HMI Programming Manual

3)Real time trend chart attribute Curve1. ..3


Display: select whether to use this curse and select the display mode

Color: color of this curve


Line type: type of this curve, for example: solid,dash and etc. As shown in

figure:

Line width:width of this curve, 1P to 6P optional. As shown in

figure:

Full quota: The maximum value showed by this curve, also it is the maximum value
in Y axis. If data value is higher than this value, this maximum value will be
displayed.

Zero quota: The minimum value showed by this curve, also it is the minimum value in
Y axis.
If data value is lower than this value, this minimum value will be displayed.

98 www.coolmayplc.com
HMI Programming Manual

Indirect full credit value D: Indicates that the maximum value of the curve uses the
data in the set register.
Indirect zero credit value D: Indicates that the maximum value of the curve uses the
data in the set register.

3) Real time trend chart attribute. Appearance

Real time trend chart attribute Attribute of appearance


No not display grid:select whether display network
No not show X axis: select whether display annotation on X axis
No not show Y axis: select whether display annotation on Y axis

4) Real time trend chart attribute X axis

Real time trend chart attribute X axis attribute


Annotation: absolute time and relative value
Time format: format of displayed time, effective only when “absolute time” is
selected.
Relative longitude: Relative longitude of time displaying, effective only when
“relative time” is selected
Marked number: number of displayed annotations
Relative unit: Relative unit of time,effective only when “relative time” is selected
99 www.coolmayplc.com
HMI Programming Manual

Decimal digits: Decimal digits of time displaying,effective only when “relative time”
is selected
Color marked: Color of time displaying
Mark font: Font size of time annotation

5) Real time trend chart attribute Y axis

Max. Coodinate: the Max. Value that Y axis annotation


Min. Coodinate: the Min. Value that Y axis annotation

Decimal Digits: decimal digits that Y axis annotation


Marked number: quantity of Y axis annotation
Color marked: color of Y axis annotation
Mark font:font size of Y axis annotation

Sample:
Set two curves which record analog D50 and D51. The first curve record D50,
100 www.coolmayplc.com
HMI Programming Manual

occupying 50 register from D100-D149, the second curve record D51,occupying 50


registers from D150-D199. Program settings of HMI and PLC are as below, please
download detailed sample program from the official website.

8 Bar graph
Bar graph is another form to display digit which can display data of analog such as
temperature, pressure,flow and so on.Bar chart can show data by percentage way
according to full and zero quota. Height and width can be designated optional

101 www.coolmayplc.com
HMI Programming Manual

Position
Locked: lock elements, prevent well-adjusted pages from accidentally damage.
Left: Coordinates of the elements in the left page.
Top: Coordinates of the elements in the top page.

Property
Width: width of elements
Height: height of elements
Background: background color
Prospect: foreground color

Register
Channel connection: select communication connection
Element type: choose type of elements
Register : set register’s address
Data type: select 16bit or 32bit
Show form: the direction of bar chart changes when the value of register gets larger,
for example: up, down, left and right.
Display padding image: Padding image of bar chart as shown in
102 www.coolmayplc.com
HMI Programming Manual

figure:

Control
Full quota: The maximum value which bar chart can display
Zero quota: The minimum value which bar chart can display
Indirect full credit D: indicates that the maximum value of the bar graph uses the data
in the set register.
Indirect zero degree D: indicates that the minimum value of the bar graph uses the
data in the set register.

Controlled register attribute


Visibility Control: Check this function to indicate that the display and hiding of the
bar graph requires a set of relays to control.
The legend shows that when the relay M10 is ON, the bar graph is visible.

Range alarm attributes


Use range color change: Select this function to indicate the color change of the
display range of the bar graph. It is used to warn the user that the pressure or flow is
too low or too high, and take appropriate measures as soon as possible.

Examples

103 www.coolmayplc.com
HMI Programming Manual

9 Meter
Meter is another form to display digit which can display data of analog such as
temperature, pressure,flow and so on.

Position
Locked: lock elements, prevent well-adjusted pages from accidentally damage.
104 www.coolmayplc.com
HMI Programming Manual

Left: coordinates of the elements in the left page


Top: coordinates of the elements in the top page.

Property
Width: width of elements
Height: height of elements
Outer: frame color
background: background color

Register /scale
Channel connection: Select the communication channel.
Component Type: Select the object type.
Register Number: Set the address of the register.
Full credit value K: The maximum value represented by the meter pointer.
Zero credit value K: The minimum value represented by the meter pointer.
Display unit name: Set the name of the display unit.
Major ticks: The number of major scales.
Minor scale: The number of scales assigned to each major scale.

Position data/Target/Scope
Axis, mark range and target pointer can be selected not to display. When not
displayed, their correspond attributes can not be used.
Target area: area displayed by target point
Target pointer: color of target pointer
Tick mark: color of scale mark
Dynamic pointer: Dynamic pointer color.
Low area color: color in low area
High area color:color in high area
Low area: percentage of low area
High area: percentage of high area
105 www.coolmayplc.com
HMI Programming Manual

Scale mark
When scale mark is not selected, the relevant attribute can not be used.
Bit number: The maximum digit of scale mark.
Decimals: decimals of scale mark .
Maximum mark: The maximum number of scale mark.
Minimum mark: The minimum number of scale mark.

Examples:

10 Picture
Picture element is bitmap which can show the figure of machine so that operators can
understand easily . Also, the bitmap can show factory logo and emblem to enhance
product identity. Picture state and absolute location are controlled by three registers.

106 www.coolmayplc.com
HMI Programming Manual

Position
Locked: lock elements, prevent well-adjusted pages from accidentally damage.
Left: coordinates of the elements in the left page
Top: coordinates of the elements in the top page.
Property
Width: width of elements
Height: height of elements
Background transparent : filter the transparent color which has already been selected
Stretch: when selected, images can automatically adjust width and height which has
already been set.
Transparent color: select transparent color, also can be selected by color selection
device
State setting
Channel connection: select communication channel
Element type: select element type
State register D: display corresponding picture according to the value of register

107 www.coolmayplc.com
HMI Programming Manual

State animation number: increase or decrease the number of animation through the

buttons and .

Move
X moving: when selected, elements can horizontally move along the X axis. When the
register value increase or decrease 1, the element will move one pixel towards the left
or the right.
Y moving: when selected, elements are used as Y-axle vertical scroll. When the
register value increase or decrease 1, the element will move one pixel towards the left
or the right.

Visibility: when auxiliary contact M is driven ON, the element will display. When
driven OFF, the element will be hidden.

Method of extracting picture


CoolMay provide two ways for extracting picture, as figure shows:
1) Double click the state to choose pictures

108 www.coolmayplc.com
HMI Programming Manual

2) Right click the mouse of current picture for replacement

Graphic library
After selecting one of these two ways to extract picture, CoolMay HMI will pop-up
picture library dialog box,which provide some functions such as selection,addition,
derivation, substiution, deletion, conversion from BMP to JPG, overturn/rotation,
color transposition, stretch, compressed graphic library.

109 www.coolmayplc.com
HMI Programming Manual

Added by the gallery, showing the gallery as shown:

110 www.coolmayplc.com
HMI Programming Manual

Click "Add" to add an external image directly:

11 GIF Animation Components

Note: When use gif picture, please note the occupied memory.
1) Recommendation for MT60
* For 1M~3M GIF, only one GIF is placed on a page;
For less100K GIF, up to 5 GIF can be placed on a page;

111 www.coolmayplc.com
HMI Programming Manual

* For 1M~3M picture, only one picture is placed on a page;


For less100K picture, up to 10 pictures can be placed on one page, the [stretch]
attribute is not recommended;
* The image format is recommended to be 24-bit bmp format;
* The picture resolution must be less than or equal to the screen resolution;
*For HA series HMI, The .HW6 file after compilation is recommended to be less than
or equal to 10MB, and the occupied RAM memory is less than or equal to 16MB;
* For H series HMI,The .HW6 file after compilation is recommended to be less than
or equal to 8MB, and the occupied RAM memory is less than or equal to 12MB;

2) Recommendation for MT90


* Not recommend to place GIF
* For less 30K picture, up to 6 pictures can be placed on one page, the [stretch]
attribute is not recommended;
* The image format is recommended to be 24-bit bmp format;
* The picture resolution must be less than or equal to the screen resolution;
* For HB series HMI,The .HW6 file after compilation is recommended to be less than
or equal to 500KB, and the occupied RAM memory is less than or equal to 2.5MB;

Location attribute
Move Lock: Locks the component to prevent the layout from being accidentally
damaged.
Left: The coordinates of the page at the far left of the component.
Top: The top of the component is at the coordinates of the page.

112 www.coolmayplc.com
HMI Programming Manual

Width: The width of the component.


Height: The height of the component.

Controlled register attribute


Playback Control: Checking this function means that when playing a movie, it is
controlled by the set register.
Channel connection: Select the communication channel.
Component Type: Select the object type.
Register number: Plays the animation when the value of the register reaches the
condition.
Visibility: When the setting M of the set register is ON, the animation is displayed.
When it is OFF, the animation is hidden.

Gallery ID: 7 attributes


Animated image: Click this button to make the desired animation.

113 www.coolmayplc.com
HMI Programming Manual

12 Dynamic text
During industrial control, there are more than one conditions when machine is
working. GIF Viewer can display different working conditions which is the most ideal
choice.

Position
Locked: lock elements, prevent well-adjusted pages from accidentally damage.
Left: Coordinates of the elements in the left page
Top: Coordinates of the elements in the top page.

Property
Width: width of elements
Height: height of elements
Background: background color
prospect:foreground color

114 www.coolmayplc.com
HMI Programming Manual

Register
Channel connection: select communication channel
Element type: select type of element
Register D: set register address
Set permission: controlled by keyboard. When selected, the data will be usually sent
by keyboard to PLC, otherwise it will show text according to data from PLC, like
action prompt and alarm prompt.
Focus from zero forcibly: effective when “set permission” is selected. Data in register
will be deleted when cursor of keyboard left
Background transparent: filter color of background
Password : When selected, password protection will be effective
Border: display the type of frame
Font : font size
Align:alignment of text and element’s border
Grade: password grade. Effective only when “password” is selected.
Total number of state changes: Reduce and increase the amount of text change by

using the and buttons.

Language
Language 1: Select the corresponding text that the language displays at one time.
Language 2: The corresponding text displayed when the language is selected.
Language 3: Select the corresponding text displayed when the language is three.
Language 4: Select the corresponding text displayed when the language is four

Function
Special: When “key register”meets the required conditions, the corresponding
operations will be executed.
As shown in the above figure: When M0=ON, the dynamic text string will display

115 www.coolmayplc.com
HMI Programming Manual

Modify record setting


Explanation:The amendant record "Modify Project" will send to the system when user
s modify the element
Language:corresponding contents displayed by elements when system language is X.

Status display

As shown above:
When the system language is the language, the text displays “The machine is running
normally” when the corresponding register is equal to 0. When the value is equal to 1,
the text displays “Manual running”. When it is equal to 2, the text displays
“Semi-automatic running”. When the system language is language 2, the text displays
"Machine run normally" when the corresponding register is equal to 0. When the
value is equal to 1, the text displays "Runing in manual mode". When it is equal to 2,
the text displays "Runing in semi-auto mode".

116 www.coolmayplc.com
HMI Programming Manual

13 Function Key
The function key is collection of all key functions. Functions can be set to buttons so
that they can execute different functions.

Location
Locked: lock elements, prevent well-adjusted pages from accidentally damage.
Left: coordinates of the elements in the left page
Top: coordinates of the elements in the top page.

Property
Width: width of elements
Height: height of elements
Background: background color
Foreground:foreground color

Picture:Check the picture and double-click to set the function


117 www.coolmayplc.com
HMI Programming Manual

key to another picture.

Basic property
Control transparency: Check this feature, the component is transparent.
Touch is valid: Check this function. When using this component, you need to enter the
corresponding level password.
Language 1, 2, 3, 4: When the system selects the language "x", the corresponding
content is displayed.

Format setting
Border: border type
Font: font size
Align:alignment of text and element’s border
Grade: password grade, effective only when “password “ is selected.

Basic Function
When using function key components, you can only choose one of the basic functions
and advanced functions.

118 www.coolmayplc.com
HMI Programming Manual

Basic functions: including screen jump, USB screen, user configuration screen, PC
diagnostic screen, Ethernet/CAN configuration screen, system menu screen.

Logout Login: When this function is checked, the password will be logged out after
entering the password. If this function is not checked, the password will be retained
after entering the password, but only for 6 minutes (screen save time set by the touch
screen). After 6 minutes, need to enter the password again.
Setting register: When this function is checked, the function register can be notified to
set the status when the function key is clicked.

Advanced Features
Advanced features: including sending messages, uploading and downloading data to
USB, password login and logout, system data backup and restore and clear, screen
brightness adjustment, voice volume adjustment, language conversion, recipe function,
etc...

119 www.coolmayplc.com
HMI Programming Manual

The sending message also assigns an ID of the sending message for sending a signal
to the set ID. For example, the following figure is a list of alarm records. The sending
message of the function key is set to ID=300, and all the clearing trigger messages of
the alarm record list are ID 300. When the function key is pressed, the alarm record
list will execute “all record number clearing”; as shown below:

14 Variable text
Variable text can enter and display letters,characters,numbers and Chinese characters.
Similar to input data, when you enter characters, there must be have corresponding
small keyboard and Chinese phonetic characters window.

120
HMI Programming Manual

Position
Locked: lock elements, prevent well-adjusted pages from accidentally damage.
Left: Coordinates of the elements in the left page
Top: Coordinates of the elements in the top page.

Property
Width: width of elements
Height: height of elements
Background: background color
Foreground:foreground color
Register
Channel connection: select communication channel.
Element type: select element type
Register D: set register address
Set permission:controlled by keyboard.When selected, the data will be usually sent by
keyboard to PLC, otherwise it will show text according to data from PLC, like action
prompt and alarm prompt.
String length: Set the length of the string to display.

Set Format
Background transparent: filter color of background

121
HMI Programming Manual

Password : When selected, password protection will be effective


Border: border type
Font: font size
Align:alignment of text and element’s border
Grade: password grade. Effective only when “password” is selected.

Controlled register
When the value of controlled register meets the designated conditions , this register
will be executed.

Above figure explanation: when register M0=ON, this variable text element will
show”***”

15 Letter Combinations
Letter Combination is to converse the designated letter (A-Z) to number, which is
generally used for “programmable function setting”.

Position
Locked: lock elements, prevent well-adjusted pages from accidentally damage.

122
HMI Programming Manual

Left: coordinates of the elements in the left page


Top: coordinates of the elements in the top page.

Property
Width: width of elements
Height: height of elements
Background: background color
Foreground:foreground color
Register
Channel connection: select communication channel.
Element type: select element type
Register D: set register’s address
Set permission: controlled by keyboard.When selected, the data will be usually sent
by keyboard to PLC, otherwise it will show text according to data from PLC, like
action prompt and alarm prompt.
String length: Set the length of the string to display.

Set format
Background transparent : filter color of background
Password : When selected, password protection will be effective
Border: border type
Font : font size
Align:alignment of text and element’s border
Grade: password grade. Effective only when “password” is selected.

Special register
The meaning of special attribute is the same with variable text .

123
HMI Programming Manual

Example:
The above figure means A corresponding to the zero bit of D620, B corresponding to
the first bit of D620,C corresponding to the second bit of D620,D corresponding to
the third bit of D620,E corresponding to the fourth bit of D620,F corresponding to the
fifth bit of D620,G corresponding to the sixth bit of D620 and so on...
If set “AB”, which means the zero and first bit of D620 are both equal 1, the other bit
is 0, that is D620=3. If set ”EGJ”, which means the fourth, sixth,ninth bit equal 1, the
other bit is 0, that is D620=592.

16 Roll lamp
Text will circularly display as roll lamp. In addition, you can also set points of every
movement and time intervals to decide display ways of rolling subtitle.

Position
Locked: lock elements, prevent well-adjusted pages from accidentally damage.
Left: coordinates of the elements in the left page
Top: coordinates of the elements in the top page.

Property

124
HMI Programming Manual

Width: width of elements


Height: height of elements
Background: background color
Foreground:foreground color

Text
Language 1 /2 /3 /4: Corresponding content will be displayed when system language
is “X”,

Set format
Font: set font size
Direction:The movement direction of roll lamp.
Delay: set movement internal delay
Word number: set word number for every movement

17 Polymorphic/Multi-state button component


The different states of the input or output are displayed by multi-state button
elements.

125
HMI Programming Manual

Position property
Move Lock: Locks the component to prevent the layout from being accidentally
damaged.
Left: The coordinates of the page at the far left of the component.
Top: The top of the component is at the coordinates of the page.

Attribute property
Width: The width of the component.
Height: The height of the component.
Background transparency: Check this function, the component background is
transparent, that is, the background color is filtered out.
Background: The background color of the component.
Prospect: The foreground of the component is the color of the text.
Border: Shows the type of border.

Register property
Channel connection: Select the communication channel.
Component Type: Select the object type.
Register Number: Set the address of the register.
Accepted by bit: Check this function, the use or display mode of the element is
controlled by the set register.
As shown in the figure: When M0 is ON, the multi-state button component is
displayed. Otherwise hidden.

Attributes
Numerical value: The change in polymorphism varies depending on the value of the
register.
Register Bits: Polymorphic changes vary depending on the value of the bits in the
register.

126
HMI Programming Manual

Operation mode: Select the recurrence mode of the status display, including rewinding,
decrementing, reversing, decrementing, decrementing.
Total number of items: The total number of states.
Text font: Select the size of the text font.

Text
Language: Set the corresponding text information when the status is displayed.

Image
Picture: Set the corresponding picture information when the status is displayed.

18 Multi-state indicator component


The different states of the input or output are displayed by multi-state button
elements.

Register property
Move Lock: Locks the component to prevent the layout from being accidentally
damaged.
Left: The coordinates of the page at the far left of the component.

127
HMI Programming Manual

Top: The top of the component is at the coordinates of the page.

Attribute property
Width: The width of the component.
Height: The height of the component.
Background transparency: Check this function, the component background is
transparent, that is, the background color is filtered out.
Background: The background color of the component.
Prospect: The foreground of the component is the color of the text.
Border: Shows the type of border.
Register property
Channel connection: Select the communication channel.
Component Type: Select the object type.
Register Number: Set the address of the register.
Visibility Control: Sets the register M that controls the display and hiding of this
component.
As shown in the figure, when M10 is ON, the multi-state indicator light is

visible.

Attributes
Numerical value: The change in polymorphism varies depending on the value of
the register.
Register Bits: Polymorphic changes vary depending on the value of the bits in the
register.
Total number of items: The total number of states.
Text font: Select the size of the text font.

Text
Language: Set the corresponding text information when the status is displayed.

128
HMI Programming Manual

Image
Picture: Set the corresponding picture information when the status is displayed.

19 Date
Date element can be used for adjusting and displaying date.

129
HMI Programming Manual

Position
Locked: lock elements, prevent well-adjusted pages from accidentally damage.
Left: coordinates of the elements in the left page
Top: coordinates of the elements in the top page.

Property
Width: width of elements
Height: height of elements
Background: background color
Prospect:foreground color

Set format
Display format: Take May 22th,2007 as an example, when select YYYY-MM-DD:
2007-05-22; when select MM/DD/YYYY:22/5/2007
Week: week will be displayed before date
Set permission: it can be set only when selected, otherwise it can just be displayed but
can not be adjusted.
Background transparent :filter background color

130
HMI Programming Manual

Border: select border type


Font: set font size
Align:Alignment of displayed content and text border.
Various attribute example

20 Time
Time element is used for adjusting and displaying time.

Position
Locked: lock elements, prevent well-adjusted pages from accidentally damage.
Left: coordinates of the elements in the left page
Top: coordinates of the elements in the top page.

131
HMI Programming Manual

Property
Width: width of elements
Height: height of elements
Background: background color
Prospect:foreground color
Set Format
Set permission: it can be set only when selected, otherwise it can be just displayed but
can not be adjusted.
Background Transparent:filter background color
Border:select border type
Font: set font size
Align: Alignment of displayed content and text frame
Various attribute example

21 SQL query component


Used with the HMI macros “BMOV” and “FILL”, it is mainly used to query the data
in the record buffer. For details, please refer to our example case "SQL Application"

132
HMI Programming Manual

Position property
Move Lock: Locks the component to prevent the layout from being accidentally
damaged.
Left: The coordinates of the far left of the component at the page.
Top: The coordinates of the far top of the component at the page .

Basic setting properties


Trigger Register Number LB: Set the register number that triggers the query
condition;LB is the auxiliary relay of HMI.
Query record buffer #: Set the buffer where the query data is located, Range 1-12.
Query conditions: Set the query conditions. 1)DATE; 2 )TIME; 3)DATE+TIME.
Note: 2)TIME ,The query time number must be larger than the previous one. For

example, to query data from 9 am to 10 am, it must be set to 9: 00: 00 ~ 9: 59: 59 instead of 9:

00: 00 ~ 10: 00 : 00, otherwise no data can be queried.


#Dx: Start querying according to the several registers of the recording
buffer (D0 is the first register ... D9 is the tenth register.
For example, the data source of the recording buffer is D4:

If the SQL query condition selects DATE + TIME + # D8, it indicates


that the data that meets the conditions of LW1506 <= D12 <= LW1516 is searched
according to the date and time range, where LW1500 ~ LW1505 and LW1510 ~
LW1515 represent year, month, day, hour, minute and second)

133
HMI Programming Manual

DATE + TIME (# D2 = 2, D3 = 1, D3 = 2): Query according to the data


in the date and time range, and the second and third data in the buffer are equal to the
specified value; for example, D6 = 2, D7 = 1, D7 = 2.

Query>= <=condition register number LW: Set the range of the query register,
includes date/time and register address etc.
Return numbers of the register number: Set the number of the returned data to store
the register, 32bit data.
Return Data Register Number: Sets the register in which the returned data is
stored,Range LW10000-LW61999
Reverse output: The data returned is sorted in reverse order.

Select the number of data


returned (date + time + number of buffer registers), of which green is selected; the
figure above shows the year, month, day, hour, minute, second, and 5 buffer data,
totaling 11 data. Corresponded to

Involved Macro Commands


BMOV → block move, such as BMOV (A1, A2, A3)
It is moved from A2 address to A1 address, a total of A3 numbers are moved, and the
data format is only Word. The block move instruction refers to copying data blocks of
consecutive A3 registers from register address A2 as the starting point to consecutive
A3 registers of target register A1 as the starting address, and the data of register A2
will not changed by Block move instruction .
The target address A1 + A3 must be moved within LW0 ~ LW8199 / LW10000 ~
LW65100, LW, the maximum length is not limited;
If the target address A1 is a PLC device, the maximum valid value of A3 (number) is
30; whether A3 is direct or indirect data, if the valid value is greater than 30, the
system will only process as 30;
If the block length exceeds the maximum value of the internal memory or PLC, the

134
HMI Programming Manual

instruction will be aborted.


In addition, special registers need to be confirmed before use: LW8244 BMOV
instruction A1 index register / LW8245 BMOV instruction A2 index register.

FILL → Full Memory, such as FILL(A1,A2,A3)


That is, Fill the value of A2 from the address of A1. There are A3 numbers in total.
The format of the data is only Word. The fill command refers to, filling the data in
register A2 as a starting point to consecutive A3 registers which target register A1 as
start address , and the data in register A2 will not be changed by the fill command.
If the length of the block exceeds the maximum value of the internal memory or PLC,
the compilation will fail.

22 Sliding block component

Position property
Move Lock: Locks the component to prevent the layout from being accidentally
damaged.
Left: The coordinates of the page at the far left of the component.
Top: The top of the component is at the coordinates of the page.

Attribute
Width: The width of the component.

135
HMI Programming Manual

Height: The height of the component.


Frame: The color of the frame of the component.
Background: Select this function, the component background is transparent, that is,

the background color is filtered out.


Slider 2D Circle: Select this function, the shape of the slider is circular.

Background picture: Select this function, the component background image can be
customized.
Slider picture: Select this function, the background picture of the slider can be
customized.

Basic attribute
Channel connection: Select the communication channel.
Component Type: Select the object type.
Register Number: Set the address of the register.
Data type: 16 bits / 32 bits can be selected.
Direct upper and lower limits: set the maximum and minimum data of the slider,
limited by the constant
Indirect upper and lower limits: Set the maximum and minimum data of the slider,
which is limited by the values of other registers.

Slider property
Display direction: Set the direction in which the slider slides, and the left, right, up,
and down options.
Slider width: Set the width of the slider, which can be set according to specific
needs.
Slider color: Set the color of the slider.
Slide color: Set the color of the slide.
Scroll mode: Sets the length of the slider slide each time the slider is manually

136
HMI Programming Manual

clicked.
Position control: Set the registers and control methods that are controlled.

As shown in the figure, when M0 is ON, the slider is visible.

attribute example:

23 Drop-down box component

Position property
Move Lock: Locks the component to prevent the layout from being accidentally
damaged.
Left: The coordinates of the page at the far left of the component.
Top: The top of the component is at the coordinates of the page.

Special Attribute

137
HMI Programming Manual

Width: The width of the component.


Height: The height of the component.
Background transparency: Check this function, the component background is
transparent, that is, the background color is filtered out.
Background: The background color of the component.
Prospect: The foreground of the component is the color of the text.

Basic attribute
Channel connection: Select the communication channel.
Component Type: Select the object type.
Register Number: Set the address of the register.
Position control: Set the registers and control methods that are controlled.
As shown in the figure, when M8 is ON, the drop-down box can be

selected.

Attributes
Total Items: Set the number of drop-down options.
Pull-down height: Set the height of the drop-down box.
Show Border: Sets the type of component border.
Display font: Set the size of the component font.

Language attribute
Languages 1 / 2: Set the contents of the drop-down options for each language.

138
HMI Programming Manual

24 Dynamic alarm bar component

Position property
Move Lock: Locks the component to prevent the layout from being accidentally
damaged.
Left: The coordinates of the page at the far left of the component.
Top: The top of the component is at the coordinates of the page.

Attribute
Width: The width of the component.
Height: The height of the component.
Background: The background color of the component.
Prospect: The foreground of the component is the color of the text.

Display attribute
Border: Sets the component border type.
Font: Set the component font size.
Move: Set the direction in which the alarm information is moved.
Movement speed: Set the movement speed in words.
Additional information: Set additional information for alarm information, optional
None, alarm time, alarm number.
Alarm sequencing: Set the order in which alarm messages appear.

139
HMI Programming Manual

Control attribute
Visibility Control: Check this function to see if the component is visible and
controlled by the set register.
Channel connection: Select the communication channel.
Component Type: Select the object type.
Register Number: Set the address of the register.
As shown, when the 0th bit of D0 is 1, the component is

visible.
No alarm information is automatically hidden: Check this function, the component
will be visible when there is alarm information.

Set alarm information


1) Enter the OP working parameter setting page, as shown below,

2) Check the alarm/voice option.


3) Set the alarm trigger condition, optional D or M.

140
HMI Programming Manual

4) Set the alarm content as shown:

5) Click the [OK] button.

25 Historical data list


The list is used for saving historical production conditions, usually used for
production management and SPC tracking record and etc.

In the software version of CoolMayHMI V5.81 (internal GUIRun V5.81) and higher
version, modify the default data storage function (record buffer / alarm database) of
the hmi and hmi/plc all-in-one (hmi part) to be stored in the SD card. If there is no

141
HMI Programming Manual

optional SD card (which cannot coexist with the built-in USB 2.0 port), it means that
there is no storage function by default. If you need to use the storage function, you
need to change the HMI database storage selection to RAM (U disk. Backup
suppression ** minutes), and the external file system is U disk in FAT32 format.

Position
Locked: lock elements, prevent well-adjusted pages from accidentally damage.
Left: Coordinates of the elements in the left page
Top: Coordinates of the elements in the top page.

Property
Width: The width of the component.
Height: The height of the component.
Background: Background color.
Prospect: foreground color.
Lattice: plaid color

Basic attribute
Record buffer: Select the location of the recording area.
Table Refresh Flag: Select the trigger flag address.
Current number of records: Set the register address where the current number of
records is saved.
Maximum number of records: Set the maximum number of lines for recording.
Password protection: When you set the usage, you can delete the record only by
entering the password.
Display font: Shows the size of the font.
Table column line: The table shows column lines, which can be used or not.
Table row line: The table shows line lines, which can be used or not.

142
HMI Programming Manual

Record buffer setting

Buffer#: the location of record buffer


Data source D: Set initial address of register, as shown in figure:the initial is D8
Trigger flag#: Set conditions for trigger, the address is a 32 bit register which is used
as initial address of fast reading area.
example: triggered flag is 0, and starting address of fast reading area is
D8. So the address of triggering flag is D8.0
Each Length: represents the quantity of registers being stored from data resource D
(including the initial address of data resource D)
example: store D10-D14 these five register
Total sum: represent the total quantity of storage
Auto-stop:When selected, the system will stop automatically after recording the
whole quantity, otherwise it will be covered automatically.
Record intervals:save data according to time intervals and the unit is second.
Note: recording condition can only be trigger flag or record intervals.

143
HMI Programming Manual

Historical data list Column 1

Column 1
Language 1/ 2 /3 /4: corresponding content displayed by the title of this list when the
system language is “X”
Time format: set format of date and time
Font color: font color displayed in this list
Column width : Set column width of this list
Align : alignment of displayed content and width of this list
Show this list: select whether display this list

Historical data list Column 2 .....15

144
HMI Programming Manual

Column 2.....15
Language 1/ 2 /3 /4: When the system language selects the language "x", the
corresponding content displayed in the column header.
Data location: Select the saved data location, where 16-bit data occupies a data
location, 32-bit and floating-point numbers data occupies two data locations.
Data Type: Three types of 16-bit, 32-bit, and floating-point numbers can be selected.
Data Format: Select the data format displayed in this column, and select the signed
number and unsigned number.
Integer Digits: Sets the number of integer digits displayed in this column.
Decimal Places: Set the number of decimal places displayed in this column.
Font color: This column displays the color of the font.
Column Width: Set the width of the column.
Alignment: Aligns the display with the width of this column.
Zero leader: Zero display in front of the data, such as "0001".
Show this column: Select whether to display this column.

Various examples.

145
HMI Programming Manual

* Used for Th production management legend

*For SPC tracking record legend

146
HMI Programming Manual

26 Recipe
(Only MT60 series touch screen supports downloading data)
The transmission of recipe data can trigger a continuous register data transmission.
This transmission can not only be downloaded from recipe memory to PLC, but also
can be uploaded from PLC to recipe memory, which provide convenience for
operation.
Program Example refer to : http://www.coolmay.com/Download-179-36-41.html

Automatic matching using link2 scanner: The data setting of the current recipe is read
by the link2 scanner.
Recipe description: description and description of the name of the current recipe file;
Recipe length: the length and number of the current recipe read record address, the
address of the recipe record table is
Sequence sorted, the system automatically generates unchangeable; maximum length
1000;
Total formula: the number of formulas, up to 5000 formulas;

147
HMI Programming Manual

(Remark: Recipe length * Address range occupied by data category * Total number of
recipes <=60000)

Data category: the data type of the data register,


(Note: 16-bit data occupies one address, 32-bit data and floating-point numbers
occupy two address ranges;)
Write recipe to PLC: set the relevant data register address of the recipe and PLC;
Read recipe from PLC: set the data register address of the recipe and PLC;
Recipe memory: The storage address range of the recipe in the HMI, which can be
automatically generated and cannot be changed; the maximum memory is
$W0-$W60000.
Current recipe: The storage address of the recipe in the HMI and the data registers in
the PLC are automatically generated in a sorted manner and cannot be changed.

Recipe data view and function key


1) Set up recipe configuration as methods mentioned above, as shown below: (Recipe

148
HMI Programming Manual

viewing method, [debug] - [view recipe])

This recipe has 4 subsidiary recipes, each recipe has 10 members, its saved address is
HMI’s memory address from LW6001 to LW6010.

2) When recipe configuration is set up, the next step is to display the recipe on screen
and can be changed or directly download in PLC. Therefore the below control
function are needed.

149
HMI Programming Manual

Display recipe: add data register in the newly created screen, set the attribute

as: , After confirming, click the right mouse button in the

input box position, and copy 10 registers in one column in the vertical position;

Click function key: successively add recipe function key to advanced function menu

Through the relevant function settings in the function keys, buttons can be created on
the screen to write each group recipe to the PLC and read the recipe from the PLC,
save the recipe, and select the previous recipe and the latter recipe.

Special instructions of recipe


Pay attention to below points when using formula function:
1) Notice the data type selection when writing the required recipe parameters in the
recipe table. 16-bit data occupies one word, 32-bit data occupies two words, and the
data type selection must be consistent when selecting the control, especially pay
attention to 32-bit. Use of data addresses. Since 32-bit data occupies two words, it is
necessary to prevent data address overlap when inputting addresses in the write
address and the monitor address.
2) The address LW6000 is fixed and can only be used to change the recipe number. It

150
HMI Programming Manual

cannot be used anywhere else. And the value of LW6000 is 0, it means the first recipe
number, and so on; LW8001.0 is the recipe download indicator, LW8001.1 is the
recipe upload indicator; LW8002 is fixed as the recipe input name.
3) The recipe parameter address is continuous.

27 Alarm record list


(Only MT60 series touch screen supports downloading data)
Alarm record list is used for displaying real-time content and historical alarm record.
This list can control event message and display triggering time by a register’s address
message, meanwhile it can save historical record in inner data base of MT series PLC.
The target address and numbers of recording can be set freely by user.

In the software version of CoolMayHMI V5.81 (internal GUIRun V5.81) and higher
version, modify the default data storage function (record buffer / alarm database) of
the hmi and hmi/plc all-in-one (hmi part) to be stored in the SD card. If there is no
optional SD card (which cannot coexist with the built-in USB 2.0 port), it means that
there is no storage function by default. If you need to use the storage function, you
need to change the HMI database storage selection to RAM (U disk. Backup
suppression ** minutes), and the external file system is U disk in FAT32 format.

151
HMI Programming Manual

Position
Locked: lock elements, prevent well-adjusted pages from accidentally damage.
Left: Coordinates of the elements in the left page
Top: Coordinates of the elements in the top page.
Property
Width: width of elements
Height: height of elements
Background: background color
Grid: grid color

Basic attributes
Max. No. of recording: set maximum row No. of recording
Password: record can be deleted only when the password is entered.
Font : set font size
Current recording No.: Assign the whole quantity of current alarm recording to the
designated register
All record number of cleared message ID : function key is an advanced function, set
the ID of sending message as 30000, and all the record content clear processing will
be executed after detecting the message.
The value of the selected row: the number of rows in the row, for example,
LW3001=1, indicating that the first row of the alarm log table is selected. (Note: This
feature has not been activated yet)
Controller control: optional prohibition or permission. Select the corresponding
control register function (b0: next page; b1: upper page; b2: downlink; b3: uplink)
Channel selection: channel for manipulating registers, optional link1 or link2.
Component Type: Select the component type of the manipulation register.

152
HMI Programming Manual

Alarm record list column 1

Column 1 attribute
Language 1/2/3/4: corresponding content display by the title when system language is
“X”.
Time format: set format of time and date
Font color: set font color of this list
Column Width: set column width
Align: alignment of the content and the width of this list

Alarm record list column 2

153
HMI Programming Manual

Column 2 attribute
Languages 1/ 2/ 3/ 4: When the system language selects the language "x", the
corresponding content displayed in the column header.
Font color: This column displays the color of the font.
Column Width: Set the width of the column.
Alignment: Aligns the display with the width of this column.

Alarm record list column 3

Column 3 attribute
Languages 1/ 2/ 3/ 4: When the system language selects the language "x", the
corresponding content displayed in the column header.
Font color: This column displays the color of the font.
Column Width: Set the width of the column.
Alignment: Aligns the display with the width of this column.

154
HMI Programming Manual

Example

Set alarm record register


In [OP parameter]>>[Alarm/others], the triggering condition can be set as D
register or M register.

155
HMI Programming Manual

Set triggering condition as M

When triggering condition is M,

Click [Bit alarm setting] and set alarm register and content.
Link1 or Link2 channels can be set.

Set triggering condition as D

When triggering condition is D dynamic text

need to be added to set alarm content. If the alarm is triggered, the value of
register will also be triggered in PLC and contents corresponded will be displayed in
the list .

156
HMI Programming Manual

28 Real-time alarm list


The real-time alarm table displays real-time alarm information, and the information
will no longer be displayed after the alarm is released. The function is the same as the
dynamic alarm bar.

157
HMI Programming Manual

Position
Locked: lock elements, prevent well-adjusted pages from accidentally damage.
Left: coordinates of the elements in the left page
Top: coordinates of the elements in the top page.

Property
Width: width of elements
Height: height of elements
Background: background color
Grid: grid color

Display attributes
Maximum display: Sets the maximum number of alarm information records.
Password protection: Enter the password of the corresponding level when using.
Display font: Set the component font size.
Current record number LW: Set the register that displays the current number of
recorded alarms (this register is the HMI built-in register).
The value of the selected row LW: Sets the register that displays the current alarm
record as the first few rows.
Controller Manipulation: Set whether to allow register control.
Channel connection: Select the communication channel when the controller is allowed
to operate.
Component Type: Select the object type when the controller is allowed to manipulate.
Register Number: Sets the register used when the controller is allowed to manipulate.

158
HMI Programming Manual

As shown in the figure: when D10=1, the alarm list page down; when D10=2, the
alarm list is paged up;
when D10=4, the alarm table points to the next line; when
D10=8, the alarm table points to the previous line;

29 Memo
Memo is used for recording, displaying text and taking notes.

159
HMI Programming Manual

Position
Locked: lock elements, prevent well-adjusted pages from accidentally damage.
Left: Coordinates of the elements in the left page
Top: Coordinates of the elements in the top page.

Property
Width: width of elements
Height: height of elements
Background: background color
Prospect: foreground color

Basic attributes
Permission: When selected, contents can be modified by keyboard.
Password protection: effective only when “permission” is selected and only with
certain grade can password protection be modified.
Border: type of frame
Font: font size
Grade: password grade, password can be effective only when “password protection”
is selected.
Scroll:select whether the scroll is effective vertically or horizontally
Row space: the distance between two rows

Memo Text
Set the initial content of the body.

160
HMI Programming Manual

Memo Control

Control
Memo ID: set ID of this memo, all IDs of memo in one project are exclusive.
Control channel: choose communication channel
Control element type: choose element type

161
HMI Programming Manual

Control visibility: when selected, memo can be displayed on screen only when the
data of ID equals the designated value.
Text Auto-update : when selected and the stated ID changes, the text will be updated
automatically.

Memo advanced

Advanced attribute
Related language: select system language corresponding to the dealt mode of this
memo
ID used for triggering message of downloading text: When receive the set ID, the text
will be downloaded to U flash disk.
ID used for triggering message of clearing text: When receive the set ID, the text will
be deleted.

162
HMI Programming Manual

Example.

30 Audio playback component


(Only supported by MT60 series touch screen)

163
HMI Programming Manual

Sound library
Click this button to add, replace, delete, export, play, cancel, etc. the desired
audio.

Playback control
Channel connection: Select the communication channel that controls playback.
Component Type: Select the type of object that controls playback.
Register Number: Select the register that controls playback.
Auto Replay: Sets the playback interval for replay.
Note: This audio playback function is optional. You must check the “Set working
parameters--alarm other--with sound card”option when using.

164
HMI Programming Manual

31 Rectangle
Rectangle element is used for database publishing and partition, screen displaying and
modification and ect...

Position
Locked: lock elements, prevent well-adjusted pages from accidentally damage.
Left: coordinates of the elements in the left page
Top: coordinates of the elements in the top page.

Property
Width: width of elements
Height: height of elements

Register
Channel connection: select communication channel.
Element type: select element type
X moving: when selected, elements will horizontally move along X axis. When the

165
HMI Programming Manual

register value increase or decrease 1, the element will move one pixel towards the left
or the right.
Y moving: when selected, elements will vertically move along Y axis. When the
register value increase or decrease 1, the element will move one pixel towards the left
or the right.
Visibility: when auxiliary contact M is driven ON, the element will display. When
driven OFF, the element will be hidden.

Set format
Fill : when selected, fill the color which has been set, otherwise the graph will only
display the frame and other Sections will be transparent.
Line color: the frame color.
Fill color: the color which is filled, it is effective only when the function FILL is
selected.

Effect: there are 11 special effects :

Example: fill effect is “normal”


1) application

166
HMI Programming Manual

2) property

32 Hollow rectangle
Hollow rectangle can also be used for database publishing and partition,image
displaying and modification and ect...

Position
Locked: lock elements, prevent well-adjusted pages from accidentally damage.
Left: coordinates of the elements in the left page.

167
HMI Programming Manual

Top: coordinates of the elements in the top page.

Property
Width: width of elements
Height: height of elements

Register
Channel connection: select communication channel.
Element type: select element type
X moving: when selected, elements will horizontally move along X axis. When the
register value increase or decrease 1, the element will move one pixel towards the left
or the right.
Y moving: when selected, elements will vertically move along Y axis. When the
register value increase or decrease 1, the element will move one pixel towards the left
or the right.
Visibility: when auxiliary contact M is driven ON, the element will display. When
driven OFF, the element will be hidden.

Set Format
Fill : when selected, fill the color which has been set, otherwise the graph will only
display the frame and other Sections will be transparent.
Line color: the frame color.
Fill color: the color which is filled, it is effective only when the function FILL is
selected.

168
HMI Programming Manual

Effect: there are 11 special effects

Example: fill effect is “Vertical”


1) application

2) property

33 Convex Rectangle
Convex rectangle can be used for data layout , modification of screen display,etc.

169
HMI Programming Manual

Position
Locked: lock elements, prevent well-adjusted pages from accidentally damage.
Left: coordinates of the elements in the left page
Top: coordinates of the elements in the top page.

Property
Width: width of elements
Height: height of elements

Register
Channel connection: select communication channel.
Element type: select element type
X moving: when selected, elements will horizontally move along X axis. When the
register value increase or decrease 1, the element will move one pixel towards the left
or the right.
Y moving: when selected, elements will vertically move along Y axis. When the
register value increase or decrease 1, the element will move one pixel towards the left
or the right.
Visibility: when auxiliary contact M is driven ON, the element will display. When

170
HMI Programming Manual

driven OFF, the element will be hidden.

Set Format
Fill : when selected, fill the color which has been set, otherwise the graph will only
display the frame and other Sections will be transparent.

Line color: the frame color.


Fill color: the color which is filled, it is effective only when the function FILL is
selected.

Effect: there are 11 special effects.

Example : effect=oval
1) Application

2) Property

171
HMI Programming Manual

34 Cross pipes
Cross pipes is used for flow definition, it can simulate the technological process on
the spot and can also modification of screen display, etc.

Position
Locked: lock elements, prevent well-adjusted pages from accidentally damage.
Left: coordinates of the elements in the left page
Top: coordinates of the elements in the top page.

172
HMI Programming Manual

Property
Width: width of elements
Height: height of elements

Register
Channel connection: select communication channel.
Element type: select element type
X moving: when selected, elements will horizontally move along X axis. When the
register value increase or decrease 1, the element will move one pixel towards the left
or the right.
Y moving: when selected, elements will vertically move along Y axis. When the
register value increase or decrease 1, the element will move one pixel towards the left
or the right.
Visibility: When the set register M=ON, the component is displayed. When OFF, the
component is hidden.

Set Format
Fill color: fill the set color
Line color: the frame color

Example:

173
HMI Programming Manual

35 Vertical pipes
Vertical pipes is used for flow definition, it can simulate the technological process on
the spot and can also modification of screen display, etc.

Position
Locked: lock elements, prevent well-adjusted pages from accidentally damage.
Left: coordinates of the elements in the left page.

174
HMI Programming Manual

Top: coordinates of the elements in the top page.

Property
Width: width of elements
Height: height of elements

Register
Channel connection: select communication channel.
Element type: select element type
X moving: when selected, elements will horizontally move along X axis. When the
register value increase or decrease 1, the element will move one pixel towards the left
or the right.
Y moving: when selected, elements will vertically move along Y axis. When the
register value increase or decrease 1, the element will move one pixel towards the left
or the right.
Visibility: When the set register M=ON, the component is displayed. When OFF, the
component is hidden.

Set Format
Fill color: fill the set color
Line color: the frame color

Example:

175
HMI Programming Manual

36 Pipe joint
Pipe joint is also apply to flow chart definition, it can simulate the technological
process of the scene.

Position
Locked: lock elements, prevent well-adjusted pages from accidentally damage.
Left: coordinates of the elements in the left page
Top: coordinates of the elements in the top page.

Property
Width: width of elements
Height: height of elements
Register
Channel connection: select communication channel.
Element type: select element type
X moving: when selected, elements will horizontally move along X axis. When the
register value increase or decrease 1, the element will move one pixel towards the left
or the right.
Y moving: when selected, elements will vertically move along Y axis. When the
register value increase or decrease 1, the element will move one pixel towards the left
or the right.

176
HMI Programming Manual

Visibility: when the auxiliary contact is driven ON, the element will display. When
driven OFF, the element will be hidden.

Set Format
Fill color: fill the set color
Line color: the frame color

Joint model: the system provide 4 models for selection:

The effect please refer to the application.

Examples:

37 Scale
Equivalent to a graduated scale. The scale direction can be changed by using the
options of element type.The quantity of primary and secondary can be changed by
attributing them. And the color change can be used to create unique scale.

177
HMI Programming Manual

Position
Locked: lock elements, prevent well-adjusted pages from accidentally damage.
Left: coordinates of the elements in the left page
Top: coordinates of the elements in the top page.

Property
Width: width of scale
Height: height of scale

Display
Variety: option.
Color: select color of scale
Primary scale quantity: set the quantity of main scales.
Secondary scale quantity: set the quantity of secondary scales.

Set Format
Display coordinate axis: select whether to display coordinate axis or not.

178
HMI Programming Manual

Examples:

38 Line
The setting of line element attribute is as below, the user can change the width and
color of the line according to themselves.

Position
Locked: lock elements, prevent well-adjusted pages from aaccidentally damage.
X1: Coordinate of the first point

179
HMI Programming Manual

Y1: Coordinate of the first point

Property
X2: Coordinate of the second point
Y2: Coordinate of the second point

Show
Wide: set the width of the line
Color: set the color of the line

Examples:

39 Ellipse
The ellipse, width and height settings determine the shape of the ellipse. If the width
is equal to the height, the shape will become a circle. If it is not equal, it will become
an ellipse. The long axis of the ellipse is a rectangle. Half of the longer side, the short

180
HMI Programming Manual

axis is half of the shorter side of the rectangle, and the color and fill effect of the
graphic can be changed.

Position
Locked: lock elements, prevent well-adjusted pages from accidentally damage.
Left: coordinates of the elements in the left page
Top: coordinates of the elements in the top page.

Property
Width: width of elements
Height: height of elements

Register
Channel connection: select communication channel.
Element type: select element type.
X moving: when selected, elements will horizontally move along X axis. When the
register value increase or decrease 1, the element will move one pixel towards the left
or the right.

181
HMI Programming Manual

Y moving: when selected, elements will vertically move along Y axis. When the
register value increase or decrease 1, the element will move one pixel towards the left
or the right.
Visibility: when the secondary contact M is driven ON, the element will display.
When driven OFF, the element will be hidden.

Set Format
Fill color: when selected, the set color will be filled, otherwise only the outline border
displays, other Sections will be transparent.
Line color: the border color
Fill color: the color to be filled
Fill effect: 8 special effects are provided, the effect please refer to the application.

Examples:

40 Table component

182
HMI Programming Manual

Position Property.
Move Lock: Locks the component to prevent the layout from being accidentally
damaged.
Left: The coordinates of the page at the far left of the component.
Top: The top of the component is at the coordinates of the page.

Attribute attribute
Width: The width of the component.
Height: The height of the component.

Display attribute
Line Width: Set the width of the table line.
Grid: Sets the color of the grid inside the table.
Number of horizontal/vertical grids: Set the number of rows and columns in the
table.

Format setting

183
HMI Programming Manual

Stroke: When this function is checked, the outline of the table is drawn.
Connection color: This color works when the stroke is checked.
Fill color: Set the color at the bottom of the table.

Table legend

41 Flow block component

Position property
Move Lock: Locks the component to prevent the layout from being accidentally
damaged.

184
HMI Programming Manual

Left: The coordinates of the page at the far left of the component.
Top: The top of the component is at the coordinates of the page.

Attribute
Width: The width of the component.
Height: The height of the component.
Draw Edge: Check this function to stroke the color of the flow block frame.

Trigger register attribute


Channel connection: Select the communication channel that controls playback.
Component Type: Select the type of object that controls playback.
Register Number: Select the register that controls playback.
Control attribute
Visibility control: When this function is checked, the component is visible when the
set register is ON.
Flow direction: Set the flow direction of the flow block.
Flow speed: Set the flow speed of the flow block.

Display attribute
Flow Block Color: Sets the color of the flow block.
Pipe color: Set the pipe color.
Flow Block Excess: Sets the color of the overflow block. This function can be set
only when the fill effect selects 3D.
Pipe Excess: Sets the color when the pipe is over. This function can be set only when
the fill effect is 3D.
Number of flow blocks: Set the number of flow blocks.
Fill effect: Set the fill effect.

Flow block legend

185
HMI Programming Manual

42 Static text component

Position property
Move Lock: Locks the component to prevent the layout from being accidentally

186
HMI Programming Manual

damaged.
Left: The coordinates of the page at the far left of the component.
Top: The top of the component is at the coordinates of the page.

Attribute
Width: The width of the component.
Height: The height of the component.
Background: The background color of the component.
Font: The font color of the component, which is the text color.

Text attribute
Language One/Two: Set the text content of each language in static text.

Formatting attribute
Font: Set the font for the text.
Font Size: Set the size of the text font.
Bold / Italic / Underline: Set the type of text font, which can be multi-selected.
Align: Sets the alignment of the text to the outline.
Fill: Set the type of fill.
Foreground: Set the color of the text.

43 Digital display component

187
HMI Programming Manual

Position property
Move Lock: Locks the component to prevent the layout from being accidentally
damaged.
Left: The coordinates of the page at the far left of the component.
Top: The top of the component is at the coordinates of the page.

Attribute attribute
Width: The width of the component.
Height: The height of the component.
Background: The background color of the component.

Basic attribute
Display format: Set the type of display content, which is divided into register value,
system date, and system time.
Channel connection: Set the communication channel.
Component type: The type of object set.
Register Number: Set the address of the register.

188
HMI Programming Manual

Data type: 16-bit/32-bit can be selected.


Display digits: Set the number of digits of the digital tube display data.
Decimal places: Set the decimal places.
Number interval: Set the interval between the digital tube number and the number.
Pen segment width: Set the width of the number.
Signed Number:When selected, register can be displayed in positive/negative number;
Background transparency: Check this function, the component background is
transparent, that is, the background color is filtered out.
Off/On: Sets the color of the number when the digital tube is displayed.

Digital tube legend

44 Handpiece component

189
HMI Programming Manual

Position property
Move Lock: Locks the component to prevent the layout from being accidentally
damaged.
Left: The coordinates of the page at the far left of the component.
Top: The top of the component is at the coordinates of the page.

Attribute attribute
Width: The width of the component.
Height: The height of the component.
Pointer: Sets the color of the component pointer.
Rotary axis: Sets the color of the component's hinge.
Drop-down box: Set the direction when the hands rotate. You can select clockwise or
counterclockwise.
Starting angle: Set the starting angle of the hands.

190
HMI Programming Manual

Basic attribute
Channel connection: Set the communication channel.
Component type: The type of object set.
Register Number: Set the address of the register.
Maximum/minimum: Set the maximum and minimum rotation of the pointer.
Radius of the shaft: Set the radius of the shaft.
Handle width: Set the width of the hands.
Distance from P2 to P4: Set the distance. As shown in the figure P2, P4

Distance from P3 to P4: Set the distance. P3, P4 as shown above


Length of the needle tail: Set the length of the needle tail.

Needle legend

45 XY trend component

191
HMI Programming Manual

Position property
Move Lock: Locks the component to prevent the layout from being accidentally
damaged.
Left: The coordinates of the page at the far left of the component.
Top: The top of the component is at the coordinates of the page.

Attribute attribute
Width: The width of the component.
Height: The height of the component.
Background: The background color of the component.
Grid: The color of the component table.

Basic attribute
Channel connection: Set the communication channel.
Component type: The type of object set.
Data Source D: Set the data source for the XY plot.

192
HMI Programming Manual

Control attribute
Display points: The set line is made up of several dotted lines. Line segments
representing two points are shown. That is, if all three curves are displayed, the
required data is 12 data from D0 to D11, D0~D5 is the number of X coordinates of 6
data, and D6~D11 is the number of Y coordinates of 6 data; The two points of 1 are
(D0, D6) (D1, D7), the two points of curve 2 are (D2, D8) (D3, D9), and the two
points of curve 3 are (D4, D10) (D5, D11).

Curve 1 / Curve 2 / Curve 3. Properties

Display: Set the display type of the curve, you can choose not to use, fold line, point.
Color: Set the color of the curve.
Line type: draw the line type of the curve, the types available for selection are as
shown:

Line Width: The line width of the curve is drawn. The available line widths are as
shown:

193
HMI Programming Manual

X max / min: Set the value range of X.


Y max / min: Set the range of Y.

46 Sector chart component

Location attribute
Move Lock: Locks the component to prevent the layout from being accidentally
damaged.
Left: The coordinates of the page at the far left of the component.
Top: The top of the component is at the coordinates of the page.
Attribute attribute

194
HMI Programming Manual

Width: The width of the component.


Height: The height of the component.
Fan diameter: Set the radius of the fan.
Show background color: Shows the background color.
Blinking above the upper and lower limits: The upper and lower limit fan graphs
above the setting flash.

Register attribute
Channel connection: Set the communication channel.
Component type: The type of object set.
Register number D: Set the register address.
Data Type: The type of data register, optional 16-bit/32-bit.
Display direction: Set the direction of the display, which can be set to clockwise or
counterclockwise.

Control attribute
Direct maximum and minimum: Set the maximum and minimum values of the
register data input, which is limited by the constant.
Indirect maximum and minimum: Set the maximum and minimum values of the
register data input, which is limited by the values of other registers.
Background color: Set the background color of the pie chart.
Normal color: The color displayed by the value within the set range.
Upper Limit Zone: Sets the color that exceeds the alarm upper limit pie chart display.
Lower limit area: Set the color that exceeds the alarm lower limit pie chart display.
Starting angle: Set the angle at which the pie chart starts.
End Angle: Sets the angle at which the pie chart terminates.
Upper alarm limit: Set the upper limit of the alarm.
For example, the maximum value K=20. The upper alarm limit is set to 80%, and
when D0=20*80%=16, the pie chart displays the color of the upper limit area.
Lower alarm limit: Set the lower limit of the alarm.

195
HMI Programming Manual

For example, the minimum value K=0. The upper alarm limit is set to 20%, and when
D0=20*20%=4, the pie chart displays the color of the lower limit area.

Scale attribute
Display Scale: Displays the scale of the pie chart.
Scale Color: Sets the color of the pie chart scale.
Main scale: Set the main division of the scale.
Sub-scale: Set the subdivision of the scale.

47 QR code component
(Only supported by MT60 series touch screen)

Position property
Move Lock: Locks the component to prevent the layout from being accidentally
damaged.
Left: The coordinates of the page at the far left of the component.
Top: The top of the component is at the coordinates of the page.
Attribute
Width: The width of the component.

196
HMI Programming Manual

Height: The height of the component.

Register attribute
Channel connection: Set the communication channel.
Component type: The type of object set.
Register number D: Set the register address.

Display attribute
Pixel Size: Set the size of the QR code.
String length: Set the length of the string to display,range:1~100.(1 Chinese Word =
2character)
Among them, the pixel size is set to 5 and above, and the maximum string length can
be set to 192.

Example
enter characters in variable text: WWW.Coolmay.COM; or use the clock macro to
write:

Scan the code by mobile, then you can read its information.

197
HMI Programming Manual

48 RGB Toning lamp


It is used for smart home to adjust the color value of light.

Position property
Move Lock: Locks the component to prevent the layout from being accidentally
damaged.
Left: The coordinates of the page at the far left of the component.
Top: The top of the component is at the coordinates of the page.

Attribute
Width: The width of the component.
Height: The height of the component.

Register attribute
Channel connection: Set the communication channel.
Component type: The type of object set.
Register number D: Set the register address.
Output mode:Optional 24-bit color or 16-bit color:
RGB888, 24-bit color (0-255), as shown: R = D100, G = D101, B = D102
RGB565, 16-bit color (0-255), as shown: R5G6B5 = D100

198
HMI Programming Manual

49 MT60 serial hmi storage function instruction


In order to better serve our customers, our company has optimized the MT60
series touch screen storage environment-in CoolMayHMI V5.81 (internal GUIRun
V5.81) and above software versions, the hmi and the hmi/plc all-in-one machine (hmi
part) default data storage function (record buffer and alarm database) is modified to be
stored in the SD card. If the customer’s product does not have an optional SD card
(cannot coexist with the built-in USB 2.0 port), it means that there is no storage
function. If the customer must use the storage function, please contact our technical
support.
Special note: HMI database storage selection orders is changed to: 1. SD card
storage (default option, if the product does not support SD card, U disk storage is
recommended); 2. U disk storage; 3. ROM (internal flash) storage.
Detailed settings are as follows::
Condition 1: Both CoolMayHMI version and internal GUIRun version are 5.81
HMI shipped after 30th Nov, 2018, the default HMI database storage is selected as
SD card storage. If the customer's product does not have an optional SD card, it
means that there is no storage function by default.
If the customer must use the HMI database storage function, it is strongly
recommended that the preferred data be stored in the U disk.
In the CoolmayHMI software, Application -Set working PRMS(W)-Alarm/Other
“HMI database storage options: RAM (USB disk Copy 1 Minute-30 Minute)”, which
default is 6Minute, namely data is stored to the U disk every 6 minutes.
Note: If the touch screen is powered off before the next storage time, the data
from the last storage time to time before the power off will not be stored to the USB
flash drive because the next storage time is not reached.
For example: HMI data is stored to the U disk at 9:06, and the product is
powered off at 9:10, the data between 9:06 and 9:10 will not be stored.OP

199
HMI Programming Manual

Parameter setting as picture:

When using, insert the U disk into the USB interface, and the data to be saved will be
stored in the U disk. It is not recommended to use ROM (internal flash) storage.

Condition 2: CoolMayHMI version is lower 5.81 version and internal GUIRun


version is 5.81
HMI shipped after 30th Nov, 2018, the default HMI database storage is selected as
SD card storage. If the customer's product does not have an optional SD card, it
means that there is no storage function by default.

1) If the customer must use the data storage function, it is strongly recommended that
the preferred data be stored in the USB flash drive. In the CoolmayHMI software,
Application -Set working PRMS(W)-Alarm/Other “HMI database storage options:
RAM (USB disk Copy 1 Minute-30 Minute)”, which default is 6Minute, namely data
is stored to the U disk every 6 minutes.
For detailed settings and data storage, refer to the description in condition 1.

Parameter setting as picture:

200
HMI Programming Manual

2) If the customer does not have the option to choose U disk storage, it can also
choose ROM (internal flash) storage,
In the CoolmayHMI software, Application -Set working PRMS(W)-Alarm/Other
“HMI database storage options: RAM (SD card Copy 1 Minute-30 Minute)”, which
default is 6Minute, namely data is stored to the U disk every 6 minutes.

201
HMI Programming Manual

HMI storage display comparison


When using the data storage function, the data curve is still displayed on the screen
after the device is powered off and restart. Example is shown below:

When the data storage function is not used, after the device is powered off and then
restart, the screen has no data curve. Example is shown below:

202
HMI Programming Manual

203
HMI Programming Manual

Chapter 4 Macro

Macro is a quite convenience and powerful function.Relatively it is easy to cause


errors if people who write macro is careless. Therefore after macros are written, they
should be simulate on PC online or offline, and can only be executed on HMI after
being simulated for a period of time. Proper usage of macro can not only be helpful
but also be time saving.If sensor units and hard drivers are used together, macros may
even be economize on manpower( Similar to the automation process). At most 512
rows can be written for one macro. If there are remarks or character strings in one row,
at most 50 Chinese characters can be written in this row. At most 16 sub-macro are
permitted,numbers run from 1 to 16( please refer to below figure),the method of
application is call “ CALL sub-macro NO.”

Write down the functions of sub-macros according to the different functions, thus it is
convenient to manage , debug and apply these macros. The initial name of all
sub-macros is Sub-macro#n, n means 1 to 16.

204
HMI Programming Manual

1 Macro Type

1) Initial

There is only one initial macro in a whole program or machine. It is a macro which
will be executed once the program start. Therefore the values which must be executed
or be set first can be lead in in advance. It can not only avoid the inconvenience of
setting but also avoid the problems caused by the unknown initial value by controlling
the program or machine which is similar to initial setting. If there are certain settings
in PLC, initial macro can be used here. It may save users a lot of time if the macro is
well designed.

2) Clock

There is only one clock macro in a whole program or machine, too. It may be
executed repeatedly all the time and it is completed for only once. After being
completed, the execution will repeat when the next Clock is triggered.

3) Sub

There are 16 sub-macros. The same as sub-program, users can put motions or
functions with high repeatability into sub-macros. It can not only save time of writing
macros but also be easily debugging.

For example, if one function is used in ten operations, this function can be written as a
sub-macro. When written as sub-macro#1, the macros with this function can be solved
only by written “CALL 1”. If this function needs to be modified, only the sub-macro
needs to be modified. It is no need to modify all the ten functions. The sub-macros
can be easily managed by writing their names to represent their functions.

2 Editing of Macro
When the macro is selected, click and enter into the editing screen image, and then it

205
HMI Programming Manual

can be edited. Click one row casually, the editing window will emerge automatically
and it will change according to the location you click. The numbers in the left is the
number of every row.

When start editing macro, you only need to click any one row, the editing window
will appear ( see below figure),

206
HMI Programming Manual

and then click OP to decide the macro you needed, and then the instruction window
will appear.

At this time,The user just move the mouse to the position of the desired command and
press the OK button to return. Then click the [A1] [A2] [A3] button to edit the macro,
that is, set the selected macro parameters.

207
HMI Programming Manual

1) Open a macro
The function of open an old macro file is provided for users to edit macros
conveniently.Users can open the saved files by using this function, no matter which
manufacturer the PLC belongs to. Therefore there is no need to enter into the macros
with high repeatability again, which greatly reduced the editing time. Below is the
window opened.

2) Save a macro

208
HMI Programming Manual

The function of save as a new file is provided for users to edit macros. Users can save
the current macro, no matter as a backup or in order to decrease the re-enter of other
macros.

3 Operand of macros
Arithmetic operation
Arithmetic Operation: ADD,SUB,MUL,DIV and MOD(take remainders). Every
operation has three operands, every operands can be the internal storage or
constant(the output must be internal storage).
Unit format:Word . Double Word. Signed. Signed Double Word.

Detailed information please refer to the below diagram.

Instruction Operation Data form Format Others

Internal Memory, If the value of


ADD A1. A2. A3 W. D. S
constant Word,(dWord) is
Internal Memory, longer than the
SUB A1. A2. A3 W. D. S
constant length of them,

209
HMI Programming Manual

Internal Memory, only the value


MUL A1. A2. A3 W. D. S
constant inside the range of
Internal Memory, Word,(dWord) will
DIV A1. A2. A3 W. D. S
constant be recorded, others

Internal Memory, will be abanded.


MOD A1. A2. A3 W. D. S
constant
W=Word. D=Double Word. S=Signed。

ADD → A1=A2+A3
E.g.: A1(Word)=A2(Word) + A3(Word)
A1(Double Word)=A2(Double Word) + A3(Double Word)
A1(Signed)=A2(Signed) + A3(Signed)
A1(Signed Double Word)=A2(Signed Double Word) + A3(Signed Double
Word)

SUB → A1=A2-A3
E.g.: A1(Word)=A2(Word) - A3(Word)
A1(Double Word)=A2(Double Word) - A3(Double Word)
A1(Signed)=A2(Signed) - A3(Signed)
A1(Signed Double Word)=A2(Signed Double Word) - A3(Signed Double
Word)

MUL → A1=A2 * A3
E.g.: A1(Word)=A2(Word) * A3(Word) 。
A1(Double Word)=A2(Double Word) * A3(Double Word)
A1(Signed)=A2(Signed) * A3(Signed)
A1(Signed Double Word)=A2(Signed Double Word) * A3(Signed Double
Word)
DIV → A1=A2 / A3 (A1 is quotient,A3≠0)

210
HMI Programming Manual

E.g.: 1(Word)=A2(Word) / A3(Word)。


A1(Double Word)=A2(Double Word) / A3(Double Word)。
A1(Signed)=A2(Signed) / A3(Signed)。
A1(Signed Double Word)=A2(Signed Double Word) / A3(Signed Double Word)

MOD (Take the remainder)→ A1=A2 %A3 (A3≠0)


A1(Word)=A2(Word) % A3(Word)。
A1(Double Word)=A2(Double Word) % A3(Double Word)。
A1(Signed)=A2(Signed) % A3(Signed)。
A1(Signed Double Word)=A2(Signed Double Word) % A3(Signed Double
Word)

1) Logical operation
Logic Operation: OR,AND,XOR,SHL and SHR. Every operation has three operands,
every operands can be the internal storage or constant(the output must be internal
storage).
Unit format: Word . Double Word.
Detailed information please refer to the below diagram.

Instruction Operation Data form Format Others

OR A1. A2. A3 Internal Memory, constant W. D

AND A1. A2. A3 Internal Memory, constant W. D

XOR A1. A2. A3 Internal Memory, constant W. D

SHL A1. A2. A3 Internal Memory, constant W. D

SHR A1. A2. A3 Internal Memory, constant W. D

W=Word. D=Double Word

211
HMI Programming Manual

OR → A1=A2 | A3
A1(Word)=A2 (Word)| A3(Word) or A1(dWord)=A2 (dWord)| A3(dWord)

AND → A1=A2 & A3


A1(Word)=A2 (Word)& A3(Word) or A1(dWord)=A2 (dWord)& A3(dWord)

XOR → A1=A2 ^ A3
A1(Word)=A2 (Word)^ A3(Word) or A1(dWord)=A2 (dWord)^ A3(dWord)

SHL → A1=A2 << A3


A1(Word)=A2(Word) << A3(Word)
Left shift is to fill 0 into bit0 while shifting out bit15. If A3>16, A1=0
A1(dWord)=A2(dWord) << A3(dWord)
Left shift is to fill 0 into bit0 while shifting out bit31. If A3>32, A1=0

SHR → A1=A2 >> A3.


A1(Word)=A2(Word) >> A3(Word)
Left shift is to fill 0 into bit15 while shifting out bit0. If A3>16, A1=0

212
HMI Programming Manual

A1(dWord)=A2(dWord) >>A3(dWord)
Left shift is to fill 0 into bit31 while shifting out bit0. If A3>32, A1=0

3) Data Shift
Data shift: MOV,BMOV,FILL and CHR.Detailed information please refer to the
below diagram(the output can only be the internal storage).

Instruction Operation Data form Format Others

Internal Memory, A1 has only internal


MOV A1. A2 W. D
Constant,PLC storage and PLC

A1 and A2 have only


Internal Memory,
BMOV A1. A2. A3 W. D internal storage and
Constant,PLC
PLC

Internal Memory, A1 has only internal


FILL A1. A2. A3 W. D
constant storage

Internal Memory,
CHR A1. A2 W A2 is input string
constant

Internal Memory, A1 has only internal


STR A1. A2. A3 W
constant storage

A1 has only internal


S.DATE A1 Internal Memory W
storage

A1 has only internal


S.TIME A1 Internal Memory W
storage

W=Word. D=Double Word.

MOV → A1(Word)= A2(Word) or A1(DWord)= A2(DWord)


MOV is to copy data in A2 to the target buffer A1,and data in A2 will not be changed.
If A1 is the address of PLCs , data in A2 is written in the address by
communication.Otherwise, if A2 is the address of PLC, data of A2 is read out by
communication and then move to A1.

213
HMI Programming Manual

BMOV → BMOV(A1,A2,A3).
BMOV is to move A2 to A1, move the value of A3 in total. Word is the only
format.Start from A2,copy the data of the buffers with the value of A3 to buffers
initialed from A1, and data in A2 will not be changed.The Maximum effective value
of A3 is 30.No matter A3 is a direct or indirect data, if the effective value is greater
than 30, it will be dealt with 30. If the length of the block is greater than the
Maximum value of internal storage or PLC, this instruction will be given up
executing.

FILL → FILL(A1,A2,A3).
Fill the value of A2 from A1, there are the value of A3 in total, Start from A2,fill the
data of the buffers with the value of A3 to buffers initialed from A1, and data in A2
will not be changed.If the length of the block is greater than the Maximum value of
internal storage or PLC, the compiling will not be passed.

CHR → ASCII (text),such as CHR (A1,“A2”).


Convert the characters in A2 into ASCII and then store them in A1. The maximum
length of the character string is 50 characters.

STR→ASCII (Integer), such as STR (A1,A2,A3), Mostly used for printer


functions.
The integer in the A2 address is converted to an ASCII string and placed at the
address specified by A1. The decimal point is specified by A3. The data format is only
Word (1 Word = 2 characters / 1 Chinese).

S.DATE→Date, A1= S.DATE().


The current date of the system is converted to a string and stored in the register
address specified by A1. The format of "YYYY-MM-DD" occupies 5 Words. It is
recommended that A1 use a variable text component.

214
HMI Programming Manual

S.TIME→Time, A1= S.TIME()


The current time of the system is converted to a string and stored in the register
address specified by A1. The format of "HH:MM:SS" occupies 4 Words.
Recommendation A1 uses variable text components

4) Compare
Compare:IF==. IF !=. IF >. IF >=. IF <. IF <=. IF AND == 0. IF AND != 0. IF ==
ON,IF == OFF,etc.

Detailed information please refer to the below diagram.

Instruction Operation Data form Format Others

Internal Memory,
IF== A1. A2. A3 W. D. S A3 has only constant
Constant

Internal Memory,
IF != A1. A2. A3 W. D. S A3 has only constant
Constant

Internal Memory,
IF > A1. A2. A3 W. D. S A3 has only constant
constant

Internal Memory,
IF >= A1. A2. A3 W. D. S A3 has only constant
constant

Internal Memory,
IF < A1. A2. A3 W. D. S A3 has only constant
constant

Internal Memory,
IF <= A1. A2. A3 W. D. S A3 has only constant
constant

IF AND Internal Memory,


A1. A2. A3 W. D A3 has only constant
== 0 constant

IF AND != Internal Memory,


A1. A2. A3 W. D A3 has only constant
0 constant

Internal Memory, A1 has only PLC and


IF ==ON A1. A2 B
constant Internal Memory, A2

215
HMI Programming Manual

has only constant

A1 has only PLC and


Internal Memory,
IF == OFF A1. A2 B Internal Memory, A2
constant
has only constant

W=Word. D=Double Word. S=Signed. B=Bit。

IF == → e.g. IF A1==A2 THEN GOTO LABEL A3. Format of Signed DW can be


used.

IF != → e.g.IF A1!=A2 THEN GOTO LABEL A3. Format of Signed DW can be


used.

IF > → e.g.IF A1>A2 THEN GOTO LABEL A3. Format of Signed DW can be used.

IF >= → e.g.IF A1>=A2 THEN GOTO LABEL A3. Format of Signed DW can be
used.

IF < → e.g.IF A1<A2 THEN GOTO LABEL A3. Format of Signed DW can be
used.

IF <= → e.g.IF A1<=A2 THEN GOTO LABEL A3 . Format of Signed DW can be


used.

IF AND == 0 → e.g.IF (A1&A2)== 0 THEN GOTO LABEL A3 . Format of


Signed DW can be used.

IF AND != 0 → e.g.IF(A1&A2) != 0 THEN GOTO LABEL A3. Format of Signed


DW can be used.

216
HMI Programming Manual

IF == ON → e.g. IF A1==ON THEN GOTO LABEL A2.

IF ==OFF → e.g.IF A1==OFF THEN GOTO LABEL A2.

5) Process Control
Process Control: GOTO. LABEL. CALL. RET and END ,
detailed information please refer to the below diagram.

Instruction Operation Data form Format Others

GOTO A1 constant

LABEL A1 constant

CALL A1 constant

RET N/A

END N/A

GOTO → e.g. GOTO LABEL A1. LABEL A1 must in the same program.
An unconditional jump instruction will cause a branch to jump to the label specified
inside the program (LABEL A1), and the specified LABEL A1 must be within the
program.

LABEL → e.g. LABEL A1.


Labels in the same macro program cannot be the same.However, different macros can
assign the same label.

CALL → Call Sub-macro, e.g. CALL A1.


Call Sub-macro can transfer the right of control to program instructions of
macro.Normally macros are used to execute certain function. pass parameters tables.
operate a set of instructions and so on. Please note that sub-macros must be exist and
they must be returned by a RET instruction at the end of the program. The RET
instruction will transfer the right of control to the instruction in the next row which is

217
HMI Programming Manual

under the original sub-macro. The number of Sub-macros can start from 01~16, the
name of sub-macro can be customized.

RET → return to macro


RET is only used in Sub-macros, but CALL is placed in main programs. There must
be a CALL corresponding to every RET.

END → End Macro


END means a macro is ended. The macro after END will not be executed. It will start
from the instructions in the first row.
Important note: The END command represents the end of the macro.

6) Bit Set
Bit Set: SETB. CLRB and INVB ,
detailed information please refer to the below diagram.

Instruction Operation Data form Format Others

SETB A1 PLC, Internal Memory Bit

CLRBL A1 PLC, Internal Memory Bit

INVB A1 PLC, Internal Memory Bit

SETB →set BIT ON,Usage: SETB A1


CLRB →set BIT OFF,Usage: CLRB A1
INVB →reversely set the state of BIT ,Usage: INVB A1

7) Others
There are TIMETICK and Comment,CMP. TXD. RXD. Disk.SPA. MOVLink2.
MOVLink1. FP32INT. INTFP32 etc 10 commands

Instruction Operation Data form Format Others

TIMETICK A1 Internal Memory W. D

Comment A1 Character String

218
HMI Programming Manual

Internal
CMP A1 A2 A3 W. D. S
Memory,Constant

Internal
TXD A1 A2 W
Memory,Constant

Internal
RXD A1 A2 W. D
Memory,Constant

Disk.SPA A1 Internal Memory W

MOVLINK2 A1 A2 PLC,Internal Memory W. D

MOVLINK1 A1 A2 PLC,Internal Memory W. D

FP32INT A1 A2 PLC,Internal Memory W. D. F

INTFP32 A1 A2 PLC,Internal Memory W. D. F

TIMETICK → get the time of the system(CPU operation time ),put in the selected
address,increase 1 means increase 100ms.

Comment → increase readability of macros,but has no effect to macros actually.


CMP → block comparison, such as: CMP (A1, A2, A3)
Refers to the continuous A3 number register starting from the A1 address and the
consecutive A3 number registers starting from the A2 address. The comparison result
is stored in the A1+A3 address register, comparing the exact match result ==1,
otherwise the result ==0; A3 setting Maximum == 50.

TXD → Send data such as: TXD (A1, A2). <The communication protocol must be
Free Protocol>
It means sending data from the A1 address to the UART port corresponding to the
LINK1/LINK2 selection, and sending A2 bytes in total. The data format is only Word
(1 Word=2 bytes).

RXD → Receive data such as: RXD (A1, A2). <The communication protocol must

219
HMI Programming Manual

be Free Protocol>
Refers to the UART port selected by LINK1/LINK2 to receive data to the start
address specified by A1, and A2 refers to the number of read bytes. If A2 specifies K,
it specifies to read K bytes; if A2 specifies LW, it reads all the bytes of the buffer (256
bytes), so the address value of A2 must be >=A1+255 . The data format is stored in
the A2+1 address. The setting setting A2+1=0: indicates that the received data is
arranged in bytes; setting A2+1=1: indicating that the received data is arranged in
words, the high byte is in front; A2+1=2: Indicates that the received data is arranged
in words. The low byte is first;

Disk.SPA → Take the remaining space of the disk. For example: A1=Disk.SPA()
Take the remaining free space value of the internal disk and store it in the register
address specified by A1. The unit is 0.1MB and one Word is used.

MOVLink2 → Pass Link2 data such as: A1 = A2 [Link2]


The data in Link2 that communicates with the screen is transmitted to the internal
register of the screen or to the register in Link1 that communicates with the screen.
As shown in the figure below, the touch screen communicates with the PLC through
Link2. When the condition of the internal register LW200 = 111 is satisfied, the
program will transfer the data of the register D10 in the Link2 PLC to the register
LW100 inside the screen.

MOVLink1 → Pass Link1 data such as: A1[Link2]=A2


Pass the data in the screen or the data in Link1 that communicates with the screen to
the register set in Link2 of the screen communication.

220
HMI Programming Manual

As shown in the figure below, the touch screen is connected to two PLCs and is
distinguished by Link1 Link2. When the condition of LW200 = 11 is satisfied, the
program will transfer the data of

register D10 in Link1 PLC to register D0 in Link2 PLC.

FP32INT → Convert floating point numbers to integers such as: FP32INT(A1,A2)


Convert the floating point number of A2 to an integer and put it in A1. A1 must be set
to an integer type.

INTFP32 → integer conversion to floating point number For example: INTFP32


(A1, A2)
Convert the floating point number of A2 to an integer and put it in A1. A1 must be set
to a floating point type.

4 Errors
1) LABLE undefined
This message means the label that GOTO needed cannot be found.See below
figure:

221
HMI Programming Manual

2) LABEL Repeat
This message means that there are the same label no. in this program.See below
figure:

222
HMI Programming Manual

Chapter 5 System Control Area


HMI system pause area and state respond buffer must be defined so that MT series
can communicate with PLCs with other brands and display screen images
bidirectional.

Click[parameter setting] in [Application] dialog box, or click the icon in the

toolbar, or use the defaulted hotkey F7.


The communication port COM1 is 232 communication, and COM2 is 485
communication. (Note: MT90 series COM1 is 232/485 communication, COM2 is 232
communication). If hmi/plc all in one, then no matter it is rs232 or rs485 com port
added, needs to select COM2.

1 Set MT Working Parameters


Communication Setting

223
HMI Programming Manual

Communication Setting:General
Select HMI PRM according to its hmi size and resolution. See the HMI match select
table.
Mobile U disk data upload / download permissions: Among them, the super level is
the highest, and then advanced level, the lowest is the ordinary level;
only the super password defaults to 12345678, other levels passwords is default as
empty. If users set their own passwords, they need to use their own defined
passwords.

Communication Setting:Usage of link2


Choose whether to use Link2 or not. MT series HMI support 2 different kinds of
controllers to communication simultaneously. For example, Link1 connect with
CoolMay PLC(2N),Link2 connect with Omron C Series PLC.

Communication Setting:Times of connection attempts


When the setting of communication is failed, times of connection attempts will be
auto-repeated. When the times is over the setting value , the HMI will stop connecting
and give an alarm”communication failed”.

224
HMI Programming Manual

Communication Setting Fast reading area


This setting can improve the quick update display of DATA data when the
man-machine interface and PLC are actually connected. Because of the normal design
of the screen, some PLC data addresses may be scattered rather than continuous. In
order to get the best data update effect and ensure the correct communication, it is
recommended that the PLC data address be continuous without interruption. The data
displayed in the range of the fast reading area will display much faster than the data
outside the range.
In addition, system program update conditions, automatic conversion display screen,
voice control, history curve, clock pulse (trigger condition), clock counter (count
condition), data save (data source), history list, alarm list, LED indicator The data
must also be within the fast read range, otherwise the system will not actively read the
data of the above components.

Network Setting

225
HMI Programming Manual

RS485/Ethernet /CAN_Bus multi-controller communication ID address mode:


Standard /Link1 expansion/Link2 expansion mode can be selected.
Standard mode refers to the connection mode used for one HMI and one PLC; the
extended mode refers to the connection mode used for one HMI and multiple PLCs.
The MT series supports the "Link1 extension/Link2 extension" address operation
mode, and can directly support the "one screen multiple machines" connection with
the PLC, that is, one HMI can operate through RS422/RS485 or the network port. The
register addresses of multiple PLCs. Since RS232 cannot support multi-point
connection, when the PLC in the "one screen, multiple computers" system does not
have RS422/485 ports or network ports, a communication adapter must be configured
to convert RS232 to RS422/485 signals to connect.
The specific system hardware connection varies with the PLC used. The following are
two general Pictures:

226
HMI Programming Manual

Ethernet port Communication(up to 5 slaves can be connected)

MT6100HA-W

Ethernet port communication

Remote Remote Remote Remote Remote


master #1 master #2 master #3 master #4 master #5

CAN port Communication

MT9070KH-CAN

CAN communication

slave #1 slave #2 slave #3 slave #4 slave #5

RS485/Ethernet/CAN_Bus multi-controller communication. Initial ID address of


extension :
It is effective when the ID address is “extension”, the initial ID address of extension is
the same with the ID address of the initial PLC in the main line.

RS485/Ethernet/CAN_Bus multi-controller communication Registers quantity of


every ID address:
It is effective when the ID address is “extension”, the register quantity of every ID
address is the same with the register quantity every PLC in the main line occupied.For
example,initial ID address of extension=0, registers quantity of every ID address=100.

227
HMI Programming Manual

RS485/Ethernet/CAN_Bus multi-controller communication MultiHMI shared:

228
HMI Programming Manual

When using Ethernet to share data, the HA series touch screen must be equipped with Ethernet
to support data sharing. (Note that it cannot be used simultaneously with link1 Ethernet
extension)
Auxiliary register:
LW8312 //Receive count
LW8313 //Send count
LW8314 //Retransmission count
LW8315 //Discard count
LW8316 //Traffic abnormal
LB8013 //Send indicator
LB8012 //Receiving indicator

The setting method is as follows:


1. Place a function key on the HMI Screen of CoolMayHMI software, and choose to jump to No.
253: Ethernet setting interface, set all screens to the same gateway (such as 192.168.1.1) and the
same IP segment (such as screen 1 is 192.168 .1.120, screen 2 is 192.168.1.121, etc.). As shown
below:

229
HMI Programming Manual

2. Connect the ethernet port of HMI to the same router or switch with a network cable.

3. Set the ID(LW8226) of each HMI, set ID=1 to be the master, and set the ID of other screens
between 2-32 to be the slave.
ID setting method 1: Put the variable LW8226 in the interface, compile and download the
program, set it manually and restart after power off.
ID setting method 2: Set it on the CoolMayHMI software (the HMI ID in the figure below),
compile and download. The master station and slave station settings are as follows:

230
HMI Programming Manual

Slave 3 and later slaves setting are similar to slave2, only need to modify the HMI ID.
4. The above example realizes the data synchronization of D5000-D5199 of the master station
and the slave station Link1

Ethernet setting Remote Master IPx


Enter the IP address which is get from the network administrator or the INTERNET
service provider. The IP address is 32 bits, it is represent by 4 figures separated by full
stops from 0 to 255.

HMI in higher version V5.82:


1) Increased the number of MODBUS TCP connections. When the hmi is used as a
MODBUS TCP slave, it can support a maximum of 3 master connections; when the
screen is used as a MODBUS TCP master, it can connect 5 slaves at the same time.
(Previous version only supported one connection)

231
HMI Programming Manual

Note: MultiHMI Shared must be “OFF”, it conflict with “Link1 Ethernet Extension”, either one can

be used.

2) When the device ID address mode is selected as Link1 extension and the
multi-screen shared data area is OFF, the remote host IPx setting is valid.
Note that the IP of the slave can be set to 222.222.222.222 if it is not used. If it is set
to other numbers, it will always try to connect, resulting in abnormal communication.
In addition, the first two bits of IP4 and IP5 are the same as those of IP3.
More details, please refer to “HMI Ethernet port MODBUS TCP protocol Setting steps’
in Chapter7 Section3

232
HMI Programming Manual

System time Automatic synchronization. Synchronization interval (hours)


After ticking the automatic synchronization function, set how often the MT and PLC
are synchronized; range: 1 ~ 72.

The system time is automatically synchronized. It is taken from register number D.


Program processing in the PLC, the time data is displayed in the register set here. This
register is placed on the screen to display the PLC time in real time.
Note that the registers set here should be placed in the fast read area.

Interactive. Automatically change display

Normally, screen switching is done by pressing keys. In addition, the PLC can also
change the screen by modifying the register value. If the attribute is valid, the value
“n” is written into the register D2180 (for example) during operation, and the MT
automatically switches the display to the “n”-th frame. Then the value of D1 is
automatically cleared.

Interactive. Report the current screen number

Write the current screen number data to D1180 so that the PLC can know the screen
number of the display.

Alarm/Other settings:

233
HMI Programming Manual

Control Edit boxes get focus color


The edit box gets the focus color: set the color that is displayed when the edit box,
function keys, etc. get the focus.

Control. Gallery run position selection


Set the gallery run location RAM or ROM.

Control minimum font size selection


Set the minimum font size of the font on the touch screen

Control Screen saver time


Screen Saver Time: set the screen saver time. Only one of displaying screen image
or turning down the backlight can be selected.

234
HMI Programming Manual

Control. Communication failure prompt


Controlling the success or failure of Link1 communication will display the window on
the touch screen.

Control. HMI database storage selection


Set the HMI database storage location and backup suppression time.

Control Parameter auto-display


If this attribute is effective,when the edit box gets focal points, Coolmay HMI will
timely reminder that the current setting range or the optional item has the prompt
effects. The tip time can be customized.

Control Display screen image for screen saver


If this function is selected, when it is time to save the screen, the HMI will not shut
down the backlight but switch to the displayed screen image automatically.

Control Splash screen delay time


Splash screen delay time:set the delay time of screen display after starting,
range:0~99s

Control Parameter auto-prompt


Set the length of parameter auto-prompt time, the prompt message will disappear
when timeout.

Default Default supervisor password and system preset other password


When the encryption function of “data setting””function key” is effective, these units
can be operated only when the system defaulted password is logged in successfully.
Screen hidden and data encryption can be easily achieved by using this function.
MT system provide password management with six classes to satisfy different data

235
HMI Programming Manual

management, please see the below figure:

The supervisor password defaulted by the system is the same with the default
password when updating program. The default password of others like common,
manage, system, middle,advance is “12345678”, when the default password is
successfully log in, new password can be set.

Default Initial (master control) screen image number


When the controller is power on, the first user screen will be displayed.Normally this
screen image is set as the main menu or the screen which is used with the highest
frequency. The attribute of the initial screen cannot be a window or visibility control
screen, otherwise CoolMayHMI will give a warning while compiling, see the below
figure.

The background color of the initial screen can also be the background color of special

236
HMI Programming Manual

screen

Default value. Input keyboard size selection


Set the input keyboard size 1#-8# (1#min, 8#max).

Default value. Screen default background color


Set the default background color of the screen. The default is white.

Default value. Text default font, background color, foreground color


MT60 series touch screen default text is 8*16, the default background color is white,
the default foreground color is black, and 15 font sizes are available.
MT90 series touch screen only supports vector fonts and dot matrix fonts. Dot matrix

fonts run fast, but only support 4 font sizes.

Glyph/language

237
HMI Programming Manual

Control font matching

Set fonts and glyphs for text of different sizes.

Multiply Language Quantity of language


MT series support four language to switch at the same time. Proper language
quantity can be selected according to the actual situation.

Multiply Language Initial language


Select the language when the first time the system operated.

Match Language selection


Select the language which is matched with the “X”; CoolMayHMI support all the
language with global Unicode form.

238
HMI Programming Manual

Voice Playing conditions


When the data of the appointed register isn’t “0”, the system will broadcast the
corresponding content repeatedly.

Voice Rebroadcast interval


When the playing conditions are set up(Abnormal alarm occurs ), the interval time of
rebroadcast appears.

Voice Voice rate


Set the rate of voice, 0% is the slowest, 100% is the fastest. Normally 50%.

Voice Voice format


0. 8khz 16bit Mono
1. 8khz 16bit Stereo
2. 11khz 16bit Mono
3. 11khz 16bit Stereo
4. 22khz 16bit Mono
5. 22khz 16bit Stereo
6. 44khz 16bit Mono
7. 44khz 16bit Stereo
8. 48khz 16bit Mono
9. 48khz 16bit Stereo

239
HMI Programming Manual

Record buffer zone download

In the settings of historical data display module, record buffer zone must be assigned
so that on-line interaction can be applied. Record buffer zone is the BACKUP
RAM location where sampling data is stored. The location and size of record buffer
zone must be set in advance.

Buffer#
Refers to the record buffer can be set up to 12.

Record Buffer Zone Data resource D


Set the location where record buffer zone #1 to #12 read the PLC data. E.g. D10 is
the initial location.

240
HMI Programming Manual

Trigger flag#
Set the conditional trigger, the address is the 32-bit register of the first address of the
fast read area. The legend: the trigger flag is 0, the first address of the fast read area is
D8, and the address of the trigger flag is D8.0
As shown in the figure, when bit 0 of D8 is 1, recording data starts..

Length of each
The length of 10 means 10words = D10 ~ D19, a total of 10 16-bit continuous
data.

Total number
The total number of records indicates the maximum number of samples stored in the
recording buffer memory. For example, 5000 means that each time 10 words are read,
5000 samples can be accumulated.

Auto-stop
When selecting to use, when the maximum number of samples is 5,000 times, the
man machine stops sampling. When not selected, it means that the original 1st record
will be removed from the record buffer when 5001 samples are read.

Record interval
The record interval is triggered by HMI, the unit of sampling cycle is second. For
example, 60*1=60s (1 minute)

Recipe setting

241
HMI Programming Manual

When you select the recipe function, you can use the recipe data list component to
quickly find the recipe you have set.

Recipe attribute
Recipe function use: Check this function to indicate the use of the recipe function.
Recipe Description: A brief description of the function and function of this recipe.
Recipe length: Set the number of recipe materials.
Total number of recipes: Set the total number of recipes, that is, the total number of
recipes with the same materials and different dosages.
Automatic matching with Link2 scanner: Check this function to match the recipe data
with the Link2 scanner scan code that communicates with the screen.
Data category: Set the data type to 16-bit or 32-bit or floating point number.

242
HMI Programming Manual

Controller address
Write recipe to PLC: Set whether to write the recipe data to the PLC. Check this
function to set the PL address to be written. Check this box to set whether to
automatically download the current recipe when booting.
Read recipe from PLC: Set whether to read recipe data from PLC. Checking this
function requires setting the register address to be read from the PLC. Check this
function to set whether the read address is the same as the write address.

Recipe memory
After the formula length and the total number of recipes are set, the system will
automatically calculate the number of registers and addresses occupied by the formula,
which are displayed in the edit box.

Current recipe
Displays the register address range occupied by the currently used recipe and the
register corresponding to the recipe number.

Recipe data view

243
HMI Programming Manual

Recipe export: Export existing recipe data


Recipe import: Import existing recipe data into the project.
Recipe data copy: Copy existing recipe data to the specified recipe.

2 USB setting screen instruction


Note: You must use U disk with a file system as FAT32 . The required files should be placed in the
root directory of the U disk.

244
HMI Programming Manual

1. Data upload/download (Data download on):


1)Execute--->Upload:Upload the program files in the U disk to the HMI.
down:Download the data files in the HMI to the USB disk.
2)Data S.--->Select the corresponding data to upload/download and select the following data:

 Recipe: Upload recipe data to this hmi or U disk; file format: Recipe.bin
 Alarm: Download historical alarm data to U disk; file format: Alarm.db
 Buffer: Download the storage record buffer data to a U disk; file format: Buffer1.db
 Sort: Refer to Chapter 8; file format: SortData.bin
 Bmp: Modify the HMI boot screen; file format: .bmp;
Details pls refer to Coolmay Products FAQ
 Rotation: MT60**H serial HMI,select rotation function and click “Upload” to rotate hmi
screen 90°. Note: After rotation, users needs to do screen calibration, refer to Appendix 5.
 .csv: Export the HMI data recording area as a .csv file,which can be opened directly on the
computer by Excel.
3)Version:GUIRun Version *.** is its version NO; Remaining**.**MB is the left memory.

2. RunPro.Manage:
1)Update *.hw6/.PMW---> Update “*.hw6” is to update hmi program (the compiled file), refer
to Chapter4 -4.2; Update “.PMW” is to update PLC program,refer to PWM tool.
2)Clear Run Data---> clear the hmi alarm record, record buffer and recipe data.
3)Touch Calibration---> when the screen is clicked incorrectly or the touch screen is rotated,
refer to Appendix 5.

245
HMI Programming Manual

3 Special Registers
1) Internal Cache Area
Word access: LWn (n:0~8255).

Bit access: LBn (n:~4095).


HMI provides 9000 internal power-off to keep the internal buffer area; LW0~LW8199
is the (R/W) read/write register, where LW0~LW5099 is the user readable and
writable register, and LW6000~LW8199 is the system read register. LW8200~
LW8999 are (R) read-only registers.

2) Register code comparison

Auxiliary
register list

Register Function

LW6000 Recipe serial number register

LW6000...LW8000 Current recipe memory address

LW8001 [bit0] recipe download indicator ,[bit1]recipe upload


indicator

LW8002...LW8026 Save name of current recipe

LW8027...LW8032 Save date of current recipe(including hour. minute.


second. year. month. day)

LW8035 Recipe auto save tag


LW8036

LW8037 Recipe auto save times <30

LW8095 Virtual date , set the offset days

LW8096 Virtual date, offset year

LW8097 Virtual date, offset month

LW8098 Virtual date, offset day

246
HMI Programming Manual

LW8100..LW8104 Rank given No.1 data name

LW8105 Rank given No.1 function

LW8106 Rank given No.1 compensation value

LW8107 Rank given No.1 interval

LW8108 Rank given No.1 given address

LW8109 Rank given No.1 given next time

LW8110 Rank given No.1 current position

LW8111 Rank given No.1 amount of data

LW8112..$W8119 Rank given No.1 start time

LW8120..LW8124 Rank given No.2 data name

LW8125 Rank given No.2 function

LW8126 Rank given No.2 compensation value

LW8127 Rank given No.2 interval

LW8128 Rank given No.2 given address

LW8129 Rank given No.2 given next time

LW8130 Rank given No.2 current position

LW8131 Rank given No.2 amount of data

LW8132..LW8139 Rank given No.2 start time

LW8140.LW8144 Rank given No.3 data name

LW8145 Rank given No.3 function

LW8146 Rank given No.3 compensation value

LW8147 Rank given No.3 interval

247
HMI Programming Manual

LW8148 Rank given No.3 given address

LW8149 Rank given No.3 given next time

LW8150 Rank given No.3 current position

LW8151 Rank given No.3 amount of data

LW8152..LW8159 Rank given No.3 start time

LW8160..LW8164 Rank given No.4 data name

LW8165 Rank given No.4 function

LW8166 Rank given No.4 compensation value

LW8167 Rank given No.4 interval

LW8168 Rank given No.4 given address

LW8169 Rank given No.4 given next time

LW8170 Rank given No.4 current position

LW8171 Rank given No.4 amount of data

LW8172.LW8179 Rank given No.4 start time

LW8180..LW8184 Rank given No.5 data name

LW8185 Rank given No.5 function

LW8186 Rank given No.5 compensation value

LW8187 Rank given No.5 interval

LW8188 Rank given No.5 given address

LW8189 Rank given No.5 given next time

LW8190 Rank given No.5 current position

LW8191 Rank given No.5 amount of data

LW8192..LW8199 Rank given No.5 start time

LW8200 System language

248
HMI Programming Manual

LW8201 Buzzer duration

LW8202 Buzzer alarm

LW8203 Screen rotation

LW8204 Backlight time

LW8205 Buzzer function

LW8206 Link1 Multiply devices communication interval/ RTU


slave ID

LW8207 Link2 Multiply devices communication interval/ RTU


slave ID

LW8208 Remote Update hw6

LW8209..LW8212 IP address

LW8213..LW8216 Subnet mask

LW8217..LW8220 Gateway

LW8221..LW8226 MAC address

LW8227.LW8236 ID or received ID set by CAN

LW8237..LW8239 Hour. minute. Second

LW8240..LW8243 Year. month. day. week

LW8244 BMOV instruction A1 index register

LW8245 BMOV instruction A2 index register

LW8246 Link1 communication timeout counter (master station)

LW8247 Link2 communication timeout counter (master station)

LW8248 Link1 communication succeed counter

LW8249 Link2 communication succeed counter (master station)

LW8250 Random number per second (0~10000)

249
HMI Programming Manual

LW8251 Random number per second (0~10000)

LW8253 System boot time (minute)

LW8254 Lock control set by data/Buffer backup times

LW8255 Special function/Alarm backup times

LW8256 Free memory monitoring (KB)

LW8260 Audio output power (0%~100%)

backlight switch (LW8261=0[automatically controlled by


LW8261
system],=1[forced on],=2[forced off])

LW8263 extended IO mode

LW8264 extended I read status

LW8265 Extended O Control Output

LW8270 numeric keypad. Number key font. Reduction ratio


(0.1~0.9)

LW8271 numeric keypad. Function key font. Reduction ratio


(0.1~0.9)

text keyboard. Full button font. Reduce the proportion


LW8272
(0.1~0.9)

LW8312 ModBus Slave (TCP / IP) 1st slave station


automatic connection times monitoring

LW8313 ModBus Slave (TCP / IP) 2nd slave station


automatic connection times monitoring

250
HMI Programming Manual

LW8314 ModBus Slave (TCP / IP) 3rd slave station


automatic connection times monitoring

LW8315 ModBus Slave (TCP / IP) 4th slave station


automatic connection times monitoring

LW8316 ModBus Slave (TCP / IP) 5th slave station


automatic connection times monitoring

LB8000 recipe data download to U disk

LB8001 recipe data upload by U disk

LB8002 alarm database download to U disk

LB8003 alarm database uploaded by U disk

B8004 Record area database downloaded to U disk

LB8005 record area database uploaded by U disk

LB8008 U disk upload and download prompt information is


prohibited

database automatic backup to ROM / U disk / SD card


LB8009
failure prompt is prohibited

LB8010 U disk access status monitoring

LB8011 U disk access automatically open USB screen is


prohibited

LB8012 ModBus Slave (TCP / IP) 1st connection status


monitoring

LB8013 ModBus Slave (TCP / IP) 2nd connection


status monitoring

LB8014 ModBus Slave (TCP / IP) 3rd connection status


monitoring

LB8015 ModBus Slave (TCP / IP) 4th connection

251
HMI Programming Manual

status monitoring

LB8016 ModBus Slave (TCP / IP) 5th connection


status monitoring

LB8017 ModBus Master (TCP / IP) 1st connection


status monitoring

LB8018 ModBus Master (TCP / IP) 2nd connection


status monitoring

LB8019 ModBus Master (TCP / IP) 3rd connection


status monitoring

LB8020 Cursor hidden (Initial macro: SETB LB8020 is


valid)

LB8021 System built-in menus and dialog information are


forced to English

(Initial macro: SETB LB8021 is valid)

LB8035 TXD Send data followed by CRC16 check

RXD Receive data completion CRC16


LB8036 check, correct check LB8037[ON]
Error check LB8037[OFF]

LB8050 After macro SETB LB8050, the double word instructions


of [ADD, SUB, MUL, DIV] operate in floating point
format
LB8101...LB8191 Multi-machine communication connection success flag
monitors the status of up to 91 slaves
In order to protect the NAND Flash, Less use the special saving function

1. Turn on flag: LW5000==1717 and LW5001==7171


Execute macro command: MOV, BMOV transfer destination is LW5002~LW5999. If
the data in the range changes, it will be automatically saved to HMI internal register
file.

252
HMI Programming Manual

2. Open flag: LW8035==8035 and LW8036==8036


The formula data is automatically saved once, and the LW8035 and LW8036 are
cleared at the same time; the number of times the formula is automatically saved is
LW8037, and the current power-on limit is <=30 times.

3. File saving: Macro F.ToDisk()


Through macro calculation conditions, call F.ToDisk() instruction, the parameter
conditions are correct, HMI will automatically save the record buffer, alarm record
database file to NAND Flash/U disk/SD card; this time the power-on limit is <=72
times.

253
HMI Programming Manual

Chapter 6 Modbus communication


1. Settings for HMI as master

1.1 HMI as master and connected with only one slave settings:
1.1.1 Communication parameter settings

1) Open "Application --- Setting OP Parameters --- Communication Settings"


2) In the link1 and link2 settings are as below:
Communication port :
When the product is HMI, select COM1 means using the RS232 port , and select
COM2 means using the RS485 port. (MT9043/50KH serial panel, com1 is
RS232/RS485 communication,com2 is RS232 communication.)
When the product is a HMI/PLC all-in-one, whether the RS232 port or the RS485
port is optional on the HMI, select COM2.

Device Type: Modbus RTU Slave

Communication speed, communication timeout, check bit, data bit, stop bit:
according to your own communication needs, , the master and salve must be set as the
same.
Device ID : The slave number to be read.

1.1.2 Multi-machine Communication Settings

254
HMI Programming Manual

1) 1)Open "Application --- Setting OP --- Network Settings"


Controller ID Address Mode: Select the default standard mode

1.1.3 Function Codes Supported when the HMI as master


Function No. 01: Read the status of the coil and obtain the current status of a group of
logic coils (ON/OFF)
03 function: read the holding register and get the current binary value in one or more
holding registers
Function No. 05: Strongly set single coil, forcing a logic coil on/off state (write bit)
Function No. 06: Load specific binary value into a holding register (write register)
Function No. 16: Preset multiple registers to load specific binary values into a series
of consecutive holding registers (write multiple registers)

1.2 HMI as mater connect to multi-slaves setting:

Attention:
1) When HMI as master and connects to multi-slaves, HMI or HMI of
HMI/PLC all-in-one both must use RS485 port,and must set communication port
as COM2.
(MT9043/50KH serial panel, com1 is RS232/RS485 communication,com2 is RS232

255
HMI Programming Manual

communication.)
2) HMI RS232 can only connect to one salve

1.2.1 Setting communication parameters

1) Open "Application --- Setting OP parameters --- Communication settings"


2) Settings in the link1 are as follows:
Communication port: COM2.
Device type: Modbus RTU Slave.
Communication speed, communication timeout, check bit, data bit, stop bit:
according to their own communication needs, the master and salve must be set as the
same.

Number of attempts: The default is 8 and the range is 1-99, that is, the number of
times each slave is read.
If the number of attempts is 8 times, when any slave is not connected, the host will try
to read 8 times, each time is the communication timeout setting (the default is 200ms).
After 8 times of reading, if the communication has not been successful, the master no
longer accesses the slave of the station number, and it needs to restart the master to
access the slave of the station number 8 times again. If the communication failure
prompt is marked, communication failure will be prompted.
If the number of trials is changed to 1, the slave will be accessed once every time
regardless of whether the slave is connected, and the communication speed of the
master will be improved. If the communication failure prompt is marked, the failure
connection will not be prompted.

256
HMI Programming Manual

1.2.2 Multi-machine Communication Settings


1) Open "Application --- Set Working Parameters --- Network Settings" .
Controller ID Address Mode: Select Extended Mode.
Extended communication ID switching interval: The default is 35ms, which can be
adjusted according to actual communication.
Extended Mode Start ID: The default is 1, which is the first slave station number of
the connected slave.
Each ID address register number: 100-30000 range can be set according to the
actual register range setting of each slave.
The following figure shows: the HMI is connected with multiple slaves, the first slave
station number is from 1. Number of each ID address register set 1000
When 4x0-4x999 indicates the address register of slave 0-999, 4x1000-4x1999
indicates 0-999 of slave 2.The register address, 4x2000-4x2999, represents register
address 0-999 of slave 3... and so on.

1.2.3 Function Codes Supported by the HMI as master


Function No. 01: Read the status of the coil and obtain the current status of a group of
logic coils (ON/OFF)
03 function: read the holding register and get the current binary value in one or more
holding registers

257
HMI Programming Manual

Function No. 05: Strongly set single coil, forcing a logic coil on/off state (write bit)
Function No. 06: Load specific binary value into a holding register (write register)
Function No. 16: Preset multiple registers to load specific binary values into a series
of consecutive holding registers (write multiple registers)

2. Settings for HMI as slave


2.1 Communication parameter settings

1) Open "Application --- Set OP Parameters --- Communication Settings"


2) In the link1 or link2 settings are as below:
Communication port : When the product is HMI, select COM1 means using the
RS232 port , and select COM2 means using the RS485 port. When the product is a
HMI/PLC all-in-one, whether the RS232 port or the RS485 port is optional on the
HMI, select COM2.

Device Type: Modbus RTU Slave (Refers to the type of device communicated to
this hmi)

Communication speed, communication timeout, check bit, data bit, stop bit:
according to your own communication needs, , the master and salve must be set as the
same.
Device ID : The slave number to be read.

258
HMI Programming Manual

2.2 Slave station number setting


Setting method #1:
1) Put a function key on the HMI program and jump to the 255 system menu page,
and then compile and download the program to the HMI.
As shown below:

2) Click this function key on the HMI to jump to the 255 system menu screen to set
the slave station number.

259
HMI Programming Manual

Setting method #2:

Internal register: LW8206 ...... Multi-machine communication interval, that is setting


address of slave station, range: 1-255; add this register address on HMI and connect
this, as shown below:

2.3 slave register address range


1) Data Register Address Range: 4x0-4x65000
2) Bit address range: 0x0-0x65000

260
HMI Programming Manual

2.4 Function Code Supported when HMI as Slave


Function No. 01: Read the status of the coil and obtain the current status of a group of
logic coils (ON/OFF)
03 function: read the holding register and get the current binary value in one or more
holding registers
Function No. 05: Strongly set single coil, forcing a logic coil on/off state (write bit)
Function No. 06: Load specific binary value into a holding register (write register)
Function No. 16: Preset multiple registers to load specific binary values into a series
of consecutive holding registers (write multiple registers)

3.other special registers


Internal register: LW8246.........Link1 communication timeout counter (used only for
ModBus RTU Master)
Internal register: LW8247.........Link2 communication timeout counter (used only for
ModBus RTU Master)
Internal register: LW8248............Link1 communication success counter
Internal register: LW8249............Link2 communication success counter

261
HMI Programming Manual

Chapter 7 HMI optional Ethernet port instructions


Read the network address information of each HMI.

HMI internal registers:


LW8209 LW8210 LW8211 LW8212……………………………IP address
LW8213 LW8214 LW8215 LW8216……………………………Subnet mask
LW8217 LW8218 LW8219 LW8220……………………………Gateway
LW8221 LW8222 LW8223 LW8224 LW8225 LW8226………MAC address

Note: ★ The gateway must be set to match the router or switch gateway to which it is
connected.
★ The IP address must be set in the network segment of the router or switch to
which it is connected.

1. LAN download/monitor hmi program steps


1.1. Download: If the HMI IP address is 192.168.1.231, the IP address downloaded in
the
HMI software is also set to 192.168.1.231, and then click download to download the
compiled HMI program to the HMI

1.2 Monitoring: Click on Ethernet monitoring

Set the IP address to the corresponding HMI IP address and click Connect

262
HMI Programming Manual

2. WAN remote download/monitor hmi program steps


2.1 If two existing HMIs are required to remotely download and monitor the hmi
program through the external network
1.The IP address of HMI 1 is 192.168.1.231, the rule name is customized, the external
port protocol is ALL, the port is set to 50000, the internal port is set to 6666. The IP
address of HMI 2 is 192.168.1.232, the rule name is customized, and the external port
protocol is selected. ALL, the port is set to 50001, and the internal port is set to 6666.
Note 1: If you have multiple HMIs, you must select a router that supports destination
port
mapping (internal ports).
Note 2: "Destination IP address": It is the HMI IP address. "Starting port" / "End port"
/ "External port": The value ranges from 1024 to 65535 (recommended a larger value).
"Destination port mapping" / "Internal port": The 6666 port is used by default by the
keyboard, so the input 6666 is fixed here

2.Setting up as shown below:

263
HMI Programming Manual

3.Check the external network IP address in the router, which is now 183.14.112.140.
Note: If the company does not apply for a static IP address, the external network IP
captured by the modem is dynamically allocated. That is, each time the modem is
restarted or redialed, an external network IP is re-randomly acquired. For this reason,
customers using Dynamic IP are advised to re-login to the Router Port Configuration
window each time they use Remote Ethernet Monitoring or Remote Upload to view
and determine the external IP address for the time period

Remote end.
1. Remotely use the HMI software to download the program.
Download the HMI 1 program

Download the HMI 2 program.

264
HMI Programming Manual

2. Click Ethernet monitoring

Monitor the HMI 1: Add the remote connection in the system running option, change
the connection mode to remote, change the port number to 50000, change the IP
address to the IP address of the corresponding external network where the HMI is
located, now it is 184.14.112.140, then click connect

265
HMI Programming Manual

Monitor the HMI 2: Add the remote connection in the system running option, change
the
connection mode to remote, change the port number to 50001, change the IP address
to
the IP address of the corresponding external network where the HMI is located, now it
is
183.14.122.140, then click connect.

266
HMI Programming Manual

Or change the IP address to the external network IP. Now it is 183.14.192.140, set the
forwarding port to 1, and then click connect

267
HMI Programming Manual

Remarts:
Instructions of "Router Forwarding Start Port" and "Forwarding Port" in the remote
monitoring/ remote download function of the external network:
g. Remote download window

Thereinto,
OP man-machine location: remote.
IP address: 183.14.192.140 (external network IP address).
Remote Router Forwarding Port + Forwarding Port Number = Destination Mapping
Port in the gateway configuration

For example,
There are 3 HMIs, and each has been configured with the corresponding router

268
HMI Programming Manual

forwarding port as follows, the external network IP: 183.14.112.140.


HMI 1:
IP: 192.168.1.231---- Starting port: 50000---- End port: 50000---- Internal port: 6666
HMI 2:
IP: 192.168.1.232---- Starting port: 50001---- End port: 50001 ---- Internal port: 6666
HMI 3:
IP: 192.168.1.233---- Starting port: 50002---- End port: 50002 ---- Internal port: 6666

In the "OP Series HMI Program Download" window:


1) Input: IP address 183.14.192.140---- Remote router forwarding start port number
50000 + forwarding port number 0--- or remote router forwarding start port number
50000---- update HMI 1
2) Input: IP address 183.14.192.140---- Remote router forwarding start port number
50000 + forwarding port number 1--- or remote router forwarding start port number
50001---- update HMI 2
3) Input: IP address 183.14.192.140---- Remote router forwarding start port number
50000 + forwarding port number 2 --- or remote router forwarding start port number
50002---- update HMI 3
2.2 If the router does not support the internal port mapping function, it can only
support one HMI to remotely download and monitor the HMI program through
the external network.
1. The IP address of the touch screen is 192.168.1.231, the rule name is customized,
the external port protocol is ALL, and the port is set to 6666

269
HMI Programming Manual

2. It is shown as below after settings.

3. Check the external network IP address in the router, which is now 183.14.112.140.
Note: If the company does not apply for a static IP address, the external network IP
captured by the modem is dynamically allocated. That is, each time the modem is
restarted or redialed, an external network IP is re-randomly acquired. For this reason,
customers using Dynamic IP are advised to re-login to the Router Port Configuration
window each time they use Remote Ethernet Monitoring or Remote Upload to check
and determine the external IP address for the time period.

270
HMI Programming Manual

Remote end:
1. Remote use HMI software to download programs.
Download HMI program.

2. Click Ethernet monitoring.

In the system operation option, add the remote connection, the connection mode is
changed to remote, the port number is changed to 6666, and the IP address is changed
to the IP address of the corresponding external network where the HMI is located. It is
now 183.14.122.140, and then click connect.

271
HMI Programming Manual

3.HMI Ethernet port MODBUS TCP protocol Setting steps


Note: Modbus TCP and Free Protocol (TCP/IP) protocols are supported only for
above HMI version V5.73. When the HMI is used as a modbus host and the Free
Protocol (TCP/IP), the function of downloading the program from the network port
can be used. When the modbus slave is used, the function of the network port
download program is not available.

272
HMI Programming Manual

* When the HMI is used as a MODBUS TCP slave, it can support at most 3 masters;
when the HMI is used as a MODBUS TCP master, it can connect at most 5 slaves at
the same time.
* Note that the IP of the slave can be set to 222.222.222.222 if it is not used. If it is
set to other numbers, it will always try to connect, resulting in abnormal
communication.
In addition, the first two bits of IP4 and IP5 are fixed to be the same as those of IP3.

3.1 HMI as Master (client)


3.1.1 Set the communication parameters when HMI work as master to connect
multiple slaves

Remote host: IP of remote host 1

Communication port: Ethernet

273
HMI Programming Manual

Remote port: The default is 502. (Set to match the remote host, which is the local
port of the device communicating with the HMI network port)
Device Type: Modbus Slave (TCP/IP) Note: It refers to the type of device that
communicates with the HMI.
Communication timeout: 200ms
Remote host: The IP address of the device that communicates with the touch
screen. (Example: 192.168.1.88)

Device ID address mode: Link1 extension (only Link1 extension can be selected for the Ethernet
port)
Extended communication ID switching interval: 35ms (optional 1~255ms)
Extended start ID address: 1 (the start ID (station number) address on the connection bus.)
Number of registers for each ID address: 100 (100~30000 optional, the number of registers
occupied by each ID (station number))
Multi-screen shared data area: OFF (must be selected as OFF when link1 Ethernet is extended)
Remote host IP setting: Set the IP of host 2~host 5. It must be in the same network segment as
the IP of remote host 1 in front. (Such as host 2: 192.168.1.89, host 3: 192.168.1.90, etc.)
Note: If only 1 slave to be connected,control ID address model :Standard.

3.1.2 Set IP of Master HMI (client)


Place a function key on the screen to jump to the Ethernet/CAN configuration screen

274
HMI Programming Manual

No. 253. After downloading the program, you can click this function key to jump to
the HMI built-in screen to set the local IP of the touch screen (set to the IP address of
the network segment where the touch screen is located). After setting the IP of the
HMI, you need to power off and restart the HMI to take effect.

275
HMI Programming Manual

Ethernet function: Yes


Remote update HW6: Yes
IP address: Set to the IP of the network segment where the HMI is located. Example:
192.168.0.85
Subnet mask: The default is 255.255.255.0
Default gateway: The gateway is the one where the HMI is located. Example:
192.168.0.1
Note: The HMI local IP can also be set by direct register corresponding register.
HMI internal registers:
LW8209 LW8210 LW8211 LW8212..............................IP address
LW8213 LW8214 LW8215 LW8216..............................Subnet mask
LW8217 LW8218 LW8219 LW8220.............................. Gateway
LW8221 LW8222 LW8223 LW8224 LW8225 LW8226.........MAC address

3.2 HMI as slave (Server)


1). Set the HMI communication parameters

276
HMI Programming Manual

Communication port: Ethernet


Device Type: Modbus Master (TCP/IP) Note: It refers to the type of device that
communicates with the HMI.
Communication timeout: 200ms
Device ID: 1 (default is 1)

2) Set IP of HMI Slave (Server)


Place a function key on the screen to jump to the Ethernet/CAN configuration screen
No. 253. After downloading the program, you can click this function key to jump to
the touch screen built-in screen to set the local IP of the touch screen (set to the IP
where the HMI is located). After setting the HMI IP, you need to power off and restart
the HMI to take effect.

277
HMI Programming Manual

278
HMI Programming Manual

Ethernet function: Yes


Remote update HW6: Yes
IP address: Set to the IP of the network segment where the HMI is located. Example:
192.168.0.85
Subnet mask: The default is 255.255.255.0
Default gateway: The gateway is the one where the HMI is located. Example:
192.168.0.1

Note: The HMI IP can also be set by direct refer to the register.
HMI internal registers:
LW8209 LW8210 LW8211 LW8212..............................IP address
LW8213 LW8214 LW8215 LW8216..............................Subnet mask
LW8217 LW8218 LW8219 LW8220.............................. Gateway
LW8221 LW8222 LW8223 LW8224 LW8225 LW8226.........MAC address

4. HMI Ethernet prot Free Protocol setting steps


4.1. Setting communication parameters of HMI Ethernet

279
HMI Programming Manual

4.2. Set IP of HMI


Place a function key on the screen to jump to the Ethernet/CAN configuration screen
No. 253. After downloading the program, you can click this function key to jump to
the HMI built-in screen to set the local HMI IP (set to the one where the HMI is
located). After setting the HMI IP, you need to power off and restart the HMI to take
effect.

280
HMI Programming Manual

Ethernet function: Yes


Remote update HW6: Yes
IP address: Set to the IP of the network segment where HMI is located. This example
is: 192.168.0.85
Subnet mask: The default is 255.255.255.0
Default gateway: The gateway is the one where the HMI is located. This example is:
192.168.0.1

Note: The HMI IP can also be set by direct setting corresponding register.
HMI internal registers:
LW8209 LW8210 LW8211 LW8212..............................IP address
LW8213 LW8214 LW8215 LW8216..............................Subnet mask
LW8217 LW8218 LW8219 LW8220.............................. Gateway
LW8221 LW8222 LW8223 LW8224 LW8225 LW8226.........MAC address

281
HMI Programming Manual

Appendix:HMI write the program for sending and receiving data by macro
commands RXD / TXD, specific instructions are as follows:
TXD → Send data, such as TXD (A1, A2) (Communication protocol must be Free
Protocol)
It is to send data from the A1 address to LINK1/LINK2, and select the corresponding
UART port, and send A2 bytes in total. The data format is only Word (1 Word = 2
bytes).

RXD → Receive data, such as RXD (A1, A2) (Communication protocol must be Free
Protocol)
Select the corresponding UART port from LINK1/LINK2 to receive the data to the
start address specified by A1. If A2 specifies K, it is specified to read K bytes. If A2
specifies LW, all bytes of the buffer are read. The number of bytes read is placed in
the address specified by A2. The format of the stored data is determined by the LW
address specified by A2+1.
Set "0" to return in bytes.
Set "1" to return by word [high byte first]
Set "2" to return by word [low byte first]

282
HMI Programming Manual

Chapter 8 Optional sort given application function


Sort given application(Generally used in aquaculture and hatchery

industries. This function is available when you add this optional)


1.first rank the data format, as shown below, table format is same as the "data" inside
the installation package.

283
HMI Programming Manual

2.coolmayHMI——tool——sort the given data conversion

284
HMI Programming Manual

——Open the excel


(NOTE, Only support office excel, not support WPS)

Then select the corresponding column and export it as a .bin file, such as
SortData1.bin (note that the format must be ” .bin “)

285
HMI Programming Manual

3. Copy these three files to the USB flash drive, insert the USB flash drive into the
HMI: data selection-sort and send data, click upload to this machine-enter password
(default 12345678)

Click ‘Yes’ in the pop-up Message.

286
HMI Programming Manual

Data uploaded successfully

Same as SortData2.bin and SortData3.bin

287
HMI Programming Manual

288
HMI Programming Manual

4. Place a function key on the hmi window, jump to “No. 254: file sorting given *”,
download the program to the hmi.

5. Click the function key on the hmi , the corresponding number is as follows:

289
HMI Programming Manual

[Function] Hours: Hours such as 10:00/ 11:00 to save


Start: start function that download data into plc
Close: Do not write data to plc
[Compensation value] In addition to the data to be written, the compensation value
added manually, that is, the data written in = the given value + the
compensation value
[Interval] How often does the interval write data to the PLC, the minimum unit is
minute
[Given address] The address corresponding to plc, such as 8 corresponding to D8
[Next given] Write the data in plc next time
[Current location] Number in the table

[Total amount of data] Total amount of data needed


[Data Preview] You can open the preview table data that needs to be written
The corresponding data in the plc is as follows:

290
HMI Programming Manual

291
HMI Programming Manual

Chapter 9 HMI program read Setting procedure


The HMI program does not support being read by default. It can be

supported by setting the following settings:

1. Open the Application of HMI software, then click save and backup.

2. Mark the HMI backup option

3. Compile the program and download to HMI, the program which running in HMI

292
HMI Programming Manual

support being read.

The procedure of program being read


1. Power on HMI and connect HMI downloading cable and pc, then open application
in HMI software then click Ethernet monitoring.

2. Choose IP address as 222.222.222.222, and click connecting

3. Open the source file extraction option in the Ethernet Monitoring Software Tool

293
HMI Programming Manual

4. The source file extraction window is popped up, and the storage address of the
read file is set, and after reading, the program file read out can be found under the
address; the source text super password is set, and the extraction start is selected;

Note: The source file super password is the super password of the program in the
HMI. If you do not know the super password of the program in the HMI, it will
prompt the source file super password error! That is, the read failed.

294
HMI Programming Manual

After the extraction is successful, you can open the computer D drive and view the
read program.

295
HMI Programming Manual

Chapter 10 Instructions of Coolmay HMI


connection with printer
1. Printer type: miniature thermal printer (with RS232 or RS485 serial port)
2. HMI comes with or HMI in HMI/PLC all in one the optional RS232 or RS485
serial port, the pin definition is as follows:

296
HMI Programming Manual

297
HMI Programming Manual

3. The communication parameters in HMI software are set as shown below:

Note: COM1 is used for single-screen RS232 communication port, COM2 is set with
RS485; RS232 or RS485 is optional for HMI of HMI/PLC all in one, communication
port is COM2 and printer communication.

4. Write the content program that needs to be printed in HMI programming software.
The following is the description of the Rongda printer routine.
Program example : http://www.coolmay.com/webdown/COOLMAYHMIPrinter.zip

298
HMI Programming Manual

The component setting instructions added on the routine:


1) Added registers D0, D1, D2 for displaying data;
2) Added variable text LW1074 for setting the name of the tester to be printed,
variable text length reserved 10 (1 register = 2 characters / 1 Chinese);
3) Added variable text LW1010, LW1030, LW1050, LW1070 for viewing the content
to be printed, the variable text length is reserved 30 respectively, the specific content
to be printed Set in the Clock macro;
4) Add a start button to execute the program in the print macro. The execution button
address is also set in the Clock macro.
After setting up the screen and the macro program, the effect of executing the print
button on the HMI is as follows:

5. Macro writing - print content setting

299
HMI Programming Manual

300
HMI Programming Manual

The data frame sent by the above macro command and the serial port debugging
assistant is as follows.:

You can see that each line sends a new line character of 0A 00. If the printout results
in the debugging, there is no line break. You can use the serial port debugging
assistant to receive data to see if there is a line break. Character 0A 00.

Note: The relevant macro syntax is used to connect the printer.


CHR → Convert text to ASCII, such as CHR (A1, "A2")
Convert the text in A2 to an ASCII code with A1. The length of the string is up to 50
characters.
(1 Word = 2 characters / 1 Chinese).

STR → integer to ASCII string conversion, such as STR (A1, A2, A3)
The integer in the A2 address is converted to an ASCII string and placed at the
address specified by A1. The decimal point is specified by A3. The data format is
only Word (1 Word = 2 characters / 1 Chinese).

S.DATE → Take the system date string, such as A1 = Sys.DATE()

301
HMI Programming Manual

The current date of the system is converted to a string and stored in the register
address specified by A1. The format is "YYYY-MM-DD" which occupies 5 Words.

S.TIME → Take the system time string, such as A1 = Sys.TIME()


The system current time is converted to a string and stored in the register address
specified by A1. The format is "HH:MM:SS" which occupies 4 Words.

TXD → Send data, such as TXD (A1, A2) < Communication protocol must be: Free
Protocol >
It is to send data from the A1 address to the corresponding UART port of LINK1, and
send A2 bytes in total. The data format is only Word (1 Word = 2 bytes).

RXD → Receive data, such as RXD (A1, A2) < Communication protocol must be:
Free Protocol >
That is, the corresponding UART port is selected from LINK1 to receive data to the
start address specified by A1. If A2 specifies K, it is specified to read K bytes. If A2
specifies LW, all bytes of the buffer are read, and the read word is read. The number
of sections is placed in the address specified by A2. The data format is only Word (1
Word = 2 bytes).
The format of the stored data is determined by the LW address specified by A2+1.
Set "0" to return in bytes.
Set "1" to return by word [high byte first]
Set "2" to return by word [low byte first]

6.. the example program print effect

302
HMI Programming Manual

Chapter 11 MT60 serial HMI USB camera screen


setting steps
1. Create a new program in the HMI software, add function keys, in the basic
function choose “jump to 252: PC diagnosis”;

2. After compiling the program, download it into the product, click this function key
in the product, after the PLC diagnosis screen appears, click “start” button, the camera
shooting screen will appear under Video, the resolution of the display is fixed at
320*240; click “stop” button to stop shooting; now this function only supports
real-time shooting, and does not support storage.

Note when choose USB camera :


Only support USB camera similar or compatible“ZC VIMICRO 301PLUS Quick
Master Chip”.

303
HMI Programming Manual

Appendix 1 MT series supported PLC

1 MITSUBISHI FX Series
1) Software setting

Parameter Suggested settings


PLC type Mitsubishi Fx Series
COM port
Data bit 7
Stop bit 1
Check bit even
Baud rate 9600
Controller ID 0

2) Operational address

3) MT( COM1 )-Mitsubishi Fx wiring

304
HMI Programming Manual

MT 9-pin D type female Fx 8-pin female

2 Omron C Series
1) Software setting

Parameter Suggested settings


PLC type Omron C/CPM/CP/CS/CJ Series
COM port RS232
Data bit 7
Stop bit 2
Check bit even
Baud rate 9600
Controller ID 0

305
HMI Programming Manual

2) Operational address

3) MT( COM1 )- Omron CPM/CQM wiring

MT 9-pin D type female CPM/CQM 9-pin D type female

306
HMI Programming Manual

3 Siemens S7-200 Series


1) Software setting (Need to customize the COM1 port to 485 port)
Parameter Suggested settings
PLC type Siemens S7-200 Series
COM port RS485
Data bit 8
Stop bit 1
Check bit even
Baud rate 9600
Controller ID 2

2) Operational address

3) MT( COM 2)- Siemens S7-200 wiring


MT 9-pin D type female S7-200 9-pin circular female

307
HMI Programming Manual

Appendix 2 HMI software adding pictures Method


-Extended library standard library application method

1. Extended library application


1.1 Download the gallery compression package (the gallery file extension is .EL):
http://www.coolmay.com/webdown/%E6%96%B0%E5%A2%9E%E5%9B%BE%E5
%BA%93.zip

1.2 Find the installation path of the HMI programming software CoolMayHMI on the
computer, which is installed on the C drive by default;

1.3 find file“library”;

1.4 Copy and paste the gallery to be added, such as "motor.EL";

308
HMI Programming Manual

1.5 Open the HMI programming software CoolMayHMI, create a new project, and
save;

1.6 In the software, click “application-gallery” to “graphic library”

Or add a "picture" component on the window, double-click the picture position to


enter the graphics library;;

309
HMI Programming Manual

1.7 click “the library”

1.8 Change “standard” to be “extension”, and select corresponded picture to confirm


Note: Only when it is “extension”, it can display new added “.E;” gallery file. Such as
below”motor.EL”

310
HMI Programming Manual

1.9 If you need to add a picture to the extended library, you need to select the "Add a
BMP" button, find and select the picture to be added in the folder, and click "Open" to
add it successfully. Note: The picture must be in .bmp format! !! !! And the number of
pictures in each .EL file cannot exceed 100! !! !!

311
HMI Programming Manual

1.10 If you need to replace the pictures in the extended library, you need to select the
pictures you want to replace in the library, then click the "Replace BMP" button, find
and select the pictures you want to replace in the folder, and click "Open" to replace
successfully. .

312
HMI Programming Manual

2 Standard library application


2.1 In the software, click “application-gallery” to “graphic library”

Or add a "picture" component on the window, double-click the picture position to


enter the graphics library;;

2.2 click “the library”

313
HMI Programming Manual

2.3 The "standard library" is a gallery packaged into the software, that is, the gallery
that default with the hmi software installed. You can select the picture you want to use
in any list, select the picture and click OK.

314
HMI Programming Manual

3 Add pictures directly


3.1 In the software, click “application-gallery” to “graphic library”

Or add a "picture" component on the window, double-click the picture position to


enter the graphics library;;

315
HMI Programming Manual

3.2 Click the "Add" button in the graphics library to select the pictures to be added
from the folder.

316
HMI Programming Manual

Appendix 3 HMI user password setting and logout settings


Coolmay HMI user permissions are divided into: Super Password → Advanced
Password → Intermediate Password → System Password → Manage Password →
Normal Password. Among them: Super password is the highest privilege password,
only it can view and set all levels of password; from advanced password to ordinary
password, its privilege can only view its own password and password lower than its
own level.

1 Coolmay HMI user password setting


1.1 Set a password in the CoolMayHMI software
1.1.1 Set “System Preset Super Password”; Software Path: Application → Set Working
Parameters (shortcut F7) → Alarm / / Other, click “Expand Settings” to set other
levels of password, as shown:

317
HMI Programming Manual

318
HMI Programming Manual

1.1.2 save the program (shortcut Ctrl + S) → compile (shortcut F5) → download
(shortcut F6) to the touch screen, Power off and restart will take effect.
Note: The system default super password is the highest privilege password, it is
recommended to set; at the same time, you can set the mobile U disk data
upload/download permission, software path: Application → Set working parameters
(shortcut F7) → Communication settings, the default password is super password .
As the picture shows:

1.2 Use the function keys to set the password on HMI.

1.2.1 Create/open project, click software path: component → function key in the
editing screen, add a function key;

319
HMI Programming Manual

1.2.2 Set the functional properties. In the basics, the touch is effectively checked; in
the format setting, it will be effectively selected as the level: super; in the basic
function, it will jump to the selected [1 251: user set screen]; as the picture shows:

320
HMI Programming Manual

1.2.2 Save the program (shortcut Ctrl+S) → compile (shortcut F5) → download
(shortcut F6) to HMI, After clicking the function key and entering the super password,
you can enter the user configuration screen to set all levels of password. Note: The
super password defaults to 12345678.

2 Logout
2.1 Basic function logs out from the current screen.
2.1.1 Create/open a project, click any function key on the editing screen, set the
function key attribute, and in the basic function, check the logout login as shown in
the figure:

321
HMI Programming Manual

2.1.2 Save the program (shortcut Ctrl+S) → compile (shortcut F5) → download
(shortcut F6) to the touch screen, In the touch screen, when the function key is clicked
to jump to the screen, the current user password of the screen will be immediately
logged out. The effect of the above picture is: When clicking on the touch screen to
jump to the 5# welcome interface, the password (such as: register, function key, bit
operation button, etc.) that has been registered on the current screen will be
immediately logged off.

2.2 Advanced function logs out from the current screen


2.2.1 Create/open project, click software path in the editing screen: component →
function key, add a function key;

322
HMI Programming Manual

2.2.2 Set the functional properties. In the basics, select the advanced function. In the
advanced function, select Logout Login as shown:

323
HMI Programming Manual

2.2.3 Save the program (shortcut Ctrl+S) → compile (shortcut F5) → download
(shortcut F6) to the touch screen. After clicking the function key, the current user
password of the screen will be immediately logged off.

2.3 The touch screen automatically logs out.


No operation on the touch screen (no operation such as clicking the touch screen or
external USB port) After 6 minutes, the current user password is automatically logged
out. Note: The automatic login logout of the touch screen has nothing to do with the
length of the screen saver.

324
HMI Programming Manual

Appendix 4 Alarm record table setting steps


Firstly, Add record alarm table. “Element” -” Alarm record”

1 Use M element to trigger alarm(Usual method)

1.1. Application-Set Working PMRS- Alarm/other, Set HMI database storage options:
RAM(SD card copy**Minute),and Set alarm trigger condition registers no: as picture
(set M10, means M10 is first address );

1.2 Alarm content setting: , it can add


the alarm numbers,set corresponded alarm information. Note: Alarm address is

325
HMI Programming Manual

continuous according to the number of alarms;

1.3 In simulation operation, when the alarm address M is triggered, the corresponding
alarm information will be recorded in the alarm log list.

326
HMI Programming Manual

Note: Using M element to trigger alarm,it can add dynamic alarm bar

As picture, Select “visibility” and “no alarm hide”,the component is visible only when
there is alarm information.

327
HMI Programming Manual

2 Use D register to trigger alarm

2.1 Set the trigger condition register number, as shown in the figure: (Set D50)

2.2 Need to use with dynamic text ;

328
HMI Programming Manual

2.3 On simulation operation, when register D50 has different values, the contents of
the alarm record list will change as the set value.

329
HMI Programming Manual

Postscript: Alarm record table clear method

Add function key, select senior function, set “send message” ID :30000. As below:

330
HMI Programming Manual

Appendix 5 MT60 serial HMI calibration steps


1. Add a function key. Basic function is set to jump to: “250#: USB Page”; then
compile and download the program to the HMI. After downloading, click the function
key on the HMI to enter the USB setting screen;

2. If it is not convenient to perform step 1 to download the hmi program, you can
directly find a U disk with FAT32 file system and insert it into the USB port of the
HMI, and you can directly jump to the USB setting screen;

331
HMI Programming Manual

3. Click the “calibration touch screen (stylus)“ button, calibration prompt appears,
click Yes (Y) to perform touch screen calibration; if the touch screen is not accurate at
this time and you cannot click on the calibration touch screen (stylus) button, you can
plug in a USB mouse, After the recognition, click this button, and then click Yes (Y)
to perform touch screen calibration;

→Another way: After hmi is powered on but display hasn’t been light, click the
touch screen continuously and quickly with both hands until it jump directly to
the calibration screen. ( Note: must click the touch screen quickly and
continuously before the progress bar appears, and the click frequency should be
at least 1-2 times per second)

332
HMI Programming Manual

4. After the cross-cursor calibration screen appears, you must press or hold the center
of the cross-cursor with your hand or pen. (At this time, USB mouse can’t be used)
Long press cross cursor in order, as shown below: (HA series hmi is slightly
clicked on the cross cursor)

333
HMI Programming Manual

334
HMI Programming Manual

5. After long pressing the cross cursor for calibration, a prompt will appear indicating
that the new calibration settings have been determined. You can wait for 30 seconds to
save the current settings to complete the calibration or touch the hmi to exit the
calibration page.

Note: MT60 ** H series touch screen rotation method

Plug in the FAT32 format U disk to the usb page or add a function key to jump to:
250#: USB page in the “basic functions”; then compile the program and download it
to the HMI . Click this function key to enter the USB setting screen; change the “data
selection” to “screen rotation”-click “upload to this machine” --- enter the “super
password” (default 12345678)- “confirm”, it will rotate 90 degrees.

After rotating, you must perform screen calibration. If you can’t click the stylus
calibration button directly with the pen or hand, you can plug in the USB mouse.
After you click the stylus calibration button and the cross cursor appears, no matter
how many degrees the screen is rotated,you should take the screen right position and
do calibration as above orders.

335
HMI Programming Manual

Appendix 6 Differences between MT90 and MT60 HMI

Differences MT60 series MT90 series

Software

Language Support 18 languages Only support Chinese& English

Data USB flash disk or SD card can be used or store


Only can be stored in the internal of HMI, the
in internal of HMI, the maximum storage is
maximum storage is 30,000.
storage 100,000.

USB Support USB flash disk/SD card download


Does not support USB flash disk export data and
program and import and export data in database,
download program.
function support external mouse, USB flash disk, etc.

Product

authorizati Available Null

on

Pop-up
Support setting popup window, window size can Pop-up window is not supported, only page can be
be set. jumped.
function

Download
When operating system is win7/ win8 and Automatic identification, do not need to manually
win10, need manually update the driver. update driver.
driver

Operating
Based on wince5.0(H series) and wince7.0 (HA No operating system, no startup screen, faster
series) to develop. There is a startup screen. startup.
system

336
HMI Programming Manual

MT9043(50)KH
Software Default COM1:RS232/RS485(Can only choose
one)
communic COM 2:RS232
MT9037H/MT9070KH
ation port Default COM1:RS232
COM 2:RS485
Default COM1:RS232
COM 2:RS485

Hardware

Vertical
MT60**H series support vertical screen Null
screen

USB port Default Null

SD card Optional Null

Ethernet
Optional Null
port

Audio Optional Null

MT9043(50)KH/MT9070KH
CAN Null
Optional(Can not coexist with COM2)

337
HMI Programming Manual

Hardware

interface

338
HMI Programming Manual

MT6043H

MT9043(50)KH

MT6050H

Cutout size

MT9070KH

MT6070H

339

You might also like