Coolmay HMI Programming Manual
Coolmay HMI Programming Manual
authorization.
2. During test operation, never change the data of the elements which
4 Indicators ................................................................................................................... 82
I
9 Meter .................................................................................................................. 104
10 Picture ..............................................................................................................106
19 Date .......................................................................................................................129
20 Time .......................................................................................................................131
II
29 Memo ...............................................................................................................159
31 Rectangle ..........................................................................................................165
37 Scale ................................................................................................................177
III
48 RGB Toning lamp ................................................................................................. 198
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)
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.
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
③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
⑤Ethernet /CAN port: W- ethernet port (optional for MT60 series hmi)
CAN-can port (optional for MT90 series hmi,change from
rs485 port)
4 www.coolmayplc.com
HMI Programming Manual
5 HMI Parameters
Front
Image
Rear
Resolution
320*240 480*272 800*480 800*480 1024*600 1024*768
(pixels)
Display
5 www.coolmayplc.com
HMI Programming Manual
Front
Image
Back
MT9043KH: 480*272
Resolution (pixels) 320*240 800*480
MT9050KH: 800*480
Brightness 300cd/m²
Display
Backlight LED
ROM 128MB
storage
Protocol Support MODBUS, free port and common PLC communication Protocol
Calendar Yes
Humidity 20%~90% RH
6 www.coolmayplc.com
HMI Programming Manual
6 Hardware Specification
MT6037H
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)
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)
12 www.coolmayplc.com
HMI Programming Manual
13 www.coolmayplc.com
HMI Programming Manual
Installation Fastening
14 www.coolmayplc.com
HMI Programming Manual
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
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
● Installation progress
17 www.coolmayplc.com
HMI Programming Manual
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
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
Set HMI parameters, Link1/Link2 COM port and PLC model, then click [Confirm].
2) Open a project
Select the project file , click [Open] or double click the file.
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
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]
25 www.coolmayplc.com
HMI Programming Manual
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
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.
28 www.coolmayplc.com
HMI Programming Manual
. Hotkey Shift+ C.
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 .
Ctrl + Y
3.3 View
29 www.coolmayplc.com
HMI Programming Manual
2) Standard Toolbar
Select whether display standard toolbar or not, see below figure:
30 www.coolmayplc.com
HMI Programming Manual
Initial Initial
Clock Clock
Sub Sub
31 www.coolmayplc.com
HMI Programming Manual
3) Design components
32 www.coolmayplc.com
HMI Programming Manual
Select whether to display design element toolbar or not, please see the below
figure.
33 www.coolmayplc.com
HMI Programming Manual
Roll lamp
Place a new roll lamp
4) Drawing Elements
Select whether to display drawing element toolbar.
34 www.coolmayplc.com
HMI Programming Manual
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.
35 www.coolmayplc.com
HMI Programming Manual
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
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].
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:
40 www.coolmayplc.com
HMI Programming Manual
41 www.coolmayplc.com
HMI Programming Manual
42 www.coolmayplc.com
HMI Programming Manual
43 www.coolmayplc.com
HMI Programming Manual
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.
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.
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
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:
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:
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
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
Compile Error:
Compile message:
2) Download
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.
49 www.coolmayplc.com
HMI Programming Manual
●Baud rate: 1200. 2400. 4800. 9600. 19200. 38400. 57600. 115200. 187500.
460800. 921600.
50 www.coolmayplc.com
HMI Programming Manual
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.
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
7) Clock
Compile clock macro, detailed information please refer to chapter four. Click
8) Sub
Compile sub macro, detailed information please refer to chapter four. Click [Sub] in
52 www.coolmayplc.com
HMI Programming Manual
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
Note: The sound library needs to be used with audio playback components.
54 www.coolmayplc.com
HMI Programming Manual
55 www.coolmayplc.com
HMI Programming Manual
56 www.coolmayplc.com
HMI Programming Manual
,
Note ID65526 is fixed.
as picture:
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.
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.
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".
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.
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:
4) Interface style
64 www.coolmayplc.com
HMI Programming Manual
Style 1
Style 2
Style 3
5) Font optimization
Select whether to optimize font.
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
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
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
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:
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.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.
75 www.coolmayplc.com
HMI Programming Manual
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
Examples:
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
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.
Controlled register
When register value meets the regulated conditions, this register will execute .
81 www.coolmayplc.com
HMI Programming Manual
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
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
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.
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:
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 .
86 www.coolmayplc.com
HMI Programming Manual
87 www.coolmayplc.com
HMI Programming Manual
When select the characters displayed when the switch is in the state OFF/ON
88 www.coolmayplc.com
HMI Programming Manual
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.
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
figure:
91 www.coolmayplc.com
HMI Programming Manual
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.
92 www.coolmayplc.com
HMI Programming Manual
93 www.coolmayplc.com
HMI Programming Manual
Example:
94 www.coolmayplc.com
HMI Programming Manual
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
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.
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
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.
figure:
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.
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
Sample:
Set two curves which record analog D50 and D51. The first curve record D50,
100 www.coolmayplc.com
HMI Programming Manual
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.
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
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.
108 www.coolmayplc.com
HMI Programming Manual
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
110 www.coolmayplc.com
HMI Programming Manual
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
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
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
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
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
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
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
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
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
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.
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
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
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
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 .
example, to query data from 9 am to 10 am, it must be set to 9: 00: 00 ~ 9: 59: 59 instead of 9:
133
HMI Programming Manual
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.
134
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
Width: The width of the component.
135
HMI Programming Manual
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.
attribute example:
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
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
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.
140
HMI Programming Manual
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
143
HMI Programming Manual
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
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
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)
148
HMI Programming Manual
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
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.
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.
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
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
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.
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
155
HMI Programming Manual
Click [Bit alarm setting] and set alarm register and content.
Link1 or Link2 channels can be set.
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
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.
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.
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
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
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
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.
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
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
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
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
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.
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.
185
HMI Programming Manual
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.
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
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
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).
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
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
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
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
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
199
HMI Programming Manual
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.
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.
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
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
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.
209
HMI Programming Manual
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
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.
211
HMI Programming Manual
OR → 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)
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).
Internal Memory,
CHR A1. A2 W A2 is input string
constant
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.
214
HMI Programming Manual
4) Compare
Compare:IF==. IF !=. IF >. IF >=. IF <. IF <=. IF AND == 0. IF AND != 0. IF ==
ON,IF == OFF,etc.
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
215
HMI Programming Manual
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.
216
HMI Programming Manual
5) Process Control
Process Control: GOTO. LABEL. CALL. RET and END ,
detailed information please refer to the below diagram.
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.
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.
6) Bit Set
Bit Set: SETB. CLRB and INVB ,
detailed information please refer to the below diagram.
7) Others
There are TIMETICK and Comment,CMP. TXD. RXD. Disk.SPA. MOVLink2.
MOVLink1. FP32INT. INTFP32 etc 10 commands
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
TIMETICK → get the time of the system(CPU operation time ),put in the selected
address,increase 1 means increase 100ms.
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.
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
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
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.
224
HMI Programming Manual
Network Setting
225
HMI Programming Manual
226
HMI Programming Manual
MT6100HA-W
MT9070KH-CAN
CAN communication
227
HMI Programming Manual
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
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
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
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.
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
234
HMI Programming Manual
235
HMI Programming Manual
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.
The background color of the initial screen can also be the background color of special
236
HMI Programming Manual
screen
Glyph/language
237
HMI Programming Manual
238
HMI Programming Manual
239
HMI Programming Manual
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.
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.
243
HMI Programming Manual
244
HMI Programming Manual
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).
Auxiliary
register list
Register Function
246
HMI Programming Manual
247
HMI Programming Manual
248
HMI Programming Manual
LW8209..LW8212 IP address
LW8217..LW8220 Gateway
249
HMI Programming Manual
250
HMI Programming Manual
251
HMI Programming Manual
status monitoring
252
HMI Programming Manual
253
HMI Programming Manual
1.1 HMI as master and connected with only one slave settings:
1.1.1 Communication parameter settings
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.
254
HMI Programming Manual
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
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
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)
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) 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
260
HMI Programming Manual
261
HMI Programming Manual
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.
Set the IP address to the corresponding HMI IP address and click Connect
262
HMI Programming Manual
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
264
HMI Programming Manual
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
269
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 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.
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
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.
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.
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
276
HMI Programming Manual
277
HMI Programming Manual
278
HMI Programming Manual
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
279
HMI Programming Manual
280
HMI Programming Manual
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
283
HMI Programming Manual
284
HMI Programming Manual
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)
286
HMI Programming Manual
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
290
HMI Programming Manual
291
HMI Programming Manual
1. Open the Application of HMI software, then click save and backup.
3. Compile the program and download to HMI, the program which running in HMI
292
HMI Programming Manual
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
296
HMI Programming Manual
297
HMI Programming Manual
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
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.
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).
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.
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]
302
HMI Programming Manual
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.
303
HMI Programming Manual
1 MITSUBISHI FX Series
1) Software setting
2) Operational address
304
HMI Programming Manual
2 Omron C Series
1) Software setting
305
HMI Programming Manual
2) Operational address
306
HMI Programming Manual
2) Operational address
307
HMI Programming Manual
1.2 Find the installation path of the HMI programming software CoolMayHMI on the
computer, which is installed on the C drive by default;
308
HMI Programming Manual
1.5 Open the HMI programming software CoolMayHMI, create a new project, and
save;
309
HMI Programming Manual
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
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
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
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.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.
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.
324
HMI Programming Manual
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 );
325
HMI Programming Manual
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.1 Set the trigger condition register number, as shown in the figure: (Set D50)
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
Add function key, select senior function, set “send message” ID :30000. As below:
330
HMI Programming Manual
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.
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
Software
Product
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
Ethernet
Optional Null
port
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