Professional Documents
Culture Documents
1
Development Kit
For SDW-PlusII Serial Screen
1 / 55
Table of Content
1 Introduction ............................................................................................................................................. 4
1.1 Function ......................................................................................................................................... 4
1.2 Runtime Environment .................................................................................................................... 5
1.3 Introduction to Software Package .................................................................................................. 5
2 Instruction to Software Interface........................................................................................................... 5
2.1 Software Interface .......................................................................................................................... 5
2.2 Menu Bar ....................................................................................................................................... 5
2.3 Toolbar ........................................................................................................................................... 6
2.4 Resource Management Section ...................................................................................................... 7
2.5 Property settings List ..................................................................................................................... 8
2.6 Work Area ...................................................................................................................................... 9
3 Project Development Process ................................................................................................................. 9
3.1 Project Folders ............................................................................................................................... 9
3.2 File Format Requirements ............................................................................................................ 10
3.3 Project Development Steps .......................................................................................................... 10
3.3.1 Create a project ................................................................................................................. 10
3.3.2 Screen Settings .................................................................................................................. 11
3.3.3 Add Image ......................................................................................................................... 11
3.3.4 Edit a Project ..................................................................................................................... 12
3.3.5 Generate a Configuration File ........................................................................................... 12
3.3.6 Download a Configuration File ......................................................................................... 13
3.4 Icon Generator for Icon Library ................................................................................................... 15
3.5 Global Settings ............................................................................................................................. 16
3.6 Import a Configuration File ......................................................................................................... 17
4 Effect Preview ........................................................................................................................................ 18
5 Instruction to Touchscreen/Keying ...................................................................................................... 20
5.1 Table of Touchscreen/Keying ....................................................................................................... 20
5.2 Variable Data Input (0x00) ........................................................................................................... 21
5.3 Pop-up Menu Selection (0x01) .................................................................................................... 23
5.4 Increment Regulation (0x02) ....................................................................................................... 25
5.5 Drag-to-regulate (0x03) ............................................................................................................... 26
5.6 RTC Settings (0x04)..................................................................................................................... 27
5.7 Key Return Value (0x05) ............................................................................................................. 28
5.8 Text Input (0x06).......................................................................................................................... 28
5.8.1 GBK Text Input ............................................................................................................... 28
5.8.2 ASCII Text Input ............................................................................................................. 30
5.9 HW Parameter Configuration (0x07) ........................................................................................... 33
Add: Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China
Web:www.stone-hmi.com Tel:+86-10-84351669 2 / 55
5.10 Synchronized Data Return in Pressed Status ............................................................................. 35
5.11 Rotate-to-regulate ....................................................................................................................... 36
6 Instruction to Variable Display ............................................................................................................ 37
6.1 Table of Variable Display ............................................................................................................. 37
6.2 Icon Variable ................................................................................................................................ 38
6.2.1 Icon Variable Display (0x00) .......................................................................................... 38
6.2.2 Animation Icon Display (0x01) ....................................................................................... 39
6.2.3 Slider Scale Indication (0x02)......................................................................................... 39
6.2.4 Wordart Variable Display (0x03) ................................................................................... 40
6.2.5 Image & Animation Display (0x04) ............................................................................... 41
6.2.6 Icon Rotation (0x05)........................................................................................................ 42
6.2.7 Bit Variable Icon Display (0x06) .................................................................................... 44
6.3 Text Variable Display Settings ................................................................................................. 4445
6.3.1 Data Variable Display (0x10).......................................................................................... 44
6.3.2 Text Display (0x11) .......................................................................................................... 45
6.3.3 RTC Display (0x12) ......................................................................................................... 46
Text RTC Display ..................................................................................................................... 46
Dial Clock Display .................................................................................................................... 46
6.3.4HEX Variable Display (0x13) .......................................................................................... 47
6.3.5 Scrolling Text Display (0x14) .......................................................................................... 49
6.4 Real-time Curve (Tendency Chart) Display (0x20) ..................................................................... 49
6.4.2 Basic Graphic Display (0x21) ......................................................................................... 50
6.4.3 List Display (0x22)........................................................................................................... 54
6.4.4 Graphic Display of 2D QR Code (0x25) ........................................................................ 55
Add: Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China
Web:www.stone-hmi.com Tel:+86-10-84351669 3 / 55
1 Introduction
1.1 Function
Intelligent TFT LCD Module (STONE Graphical User Software) development kit is configuration-based
GUI (Graphical User Interface) design software launched by Beijing STONE Technology Co., Ltd. The software
is used for man-machine interface configuration design. A user can realize sophisticated and visually stunning
man-machine interface only by editing the configuration of graphical controls via a PC, which can greatly reduce
the interface development workload and shorten the product development cycle for the user.
Based on Version 3.1, Intelligent TFT LCD Module4.0 has been improved and optimized greatly in view of
SDW-PlusII series by Beijing STONE Technology Co., Ltd. The products can be operated more intelligently on
the basis of a much simpler configuration mode. Intelligent TFT LCD Module 4.0 is well-functioned and easy to
operate, capable of one-stop control. It applies a more efficient and direct development mode. It is unnecessary for
users to operate the tedious configuration files directly. Instead, all the GUI designs can be done with the
development kit. Therefore, a user can practically fulfill a GUI design in one week.
Refer to the circled part in Figure 1-1 for the role of Intelligent TFT LCD Module development kit in the
Intelligent TFT LCD Module system.
Add: Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China
Web:www.stone-hmi.com Tel:+86-10-84351669 4 / 55
1.2 Runtime Environment
Support operating systems including Windows XP, Win7, Win8 and Win10.
The Intelligent TFT LCD Module 4.1 development kit is free of installation, based on a single software
package. It can be used directly.
The software can be downloaded from the websitehttp://www.stone-hmi.com/_d276175573.htm or obtained
from a sales engineer in form of an optical disk.
See Figure 2-1 for the software interface. It is of an office2003 style. Each module can be regulated flexibly
according to personal preferences.
Figure 2-1 Software Interface of Intelligent TFT LCD Module 4.1 Development Kit
File: The file drop-down menu options are same to that of other conventional software.
Add: Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China
Web:www.stone-hmi.com Tel:+86-10-84351669 5 / 55
Edit: provide conventional functions such as copy and paste, etc., as well as editing functions regarding the
position and sizes, etc. of controls.
View: choose whether to display toolbars, status bars and dockbars, with a tag prefixed to a displayed item.
In the Toolbar→Custom option, a user can customize a shortcut key and so on.
Tool: a tool menu provides various tools as provided by Intelligent TFT LCD Module 4.1.
Generate a configuration file: generate a configuration file for the Intelligent TFT LCD Module.
Import a configuration file: directly import a configuration file for the Intelligent TFT LCD Module to a project.
Download a configuration file: directly download a configuration file into the Intelligent TFT LCD Module via USB.
Import variables as Excel: save variables as Excel, with sheet 1 for all variables, sheet2 for 13 Touchscreen Variables and
Icon generation tool: convert an ICON-specific icon prepared by a user into an icon file used for Intelligent TFT LCD Module
4.1.
2.3 Toolbar
The toolbar as shown in Figure 2-3 provides icon shortcuts for common menus. It can display a text prompt
when the mouse when moused over. The position of each module can be regulated according to personal
preferences.
Add: Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China
Web:www.stone-hmi.com Tel:+86-10-84351669 6 / 55
Figure 2-3 Toolbar
The Intelligent TFT LCD Module 4.1 project resources include images, fonts, icon libraries and audio files.
The resource management section in the software can control such four types of files.
The image list dockbar as shown in Figure 2-4 displays the names of imported images. It can display the
image of a corresponding page by clicking the mouse. It can provide editing options such as to add, replace and
delete an image.
The fonts list dockbar as shown in 2-5 displays the names of imported fonts. It can provide editing options
such as to add, replace and delete fonts.
The icon library list dockbar as shown in 2-6 displays the names of imported icon libraries. It can provide
editing options such as to add, replace and delete an icon library.
The audio file list dockbar as shown in 2-7 displays the names of imported audio files. It can provide editing
Add: Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China
Web:www.stone-hmi.com Tel:+86-10-84351669 7 / 55
options such as to add, replace and delete an audio file.
The property settings dockbar as shown in Figure 2-8 displays the properties of selected controls, with
different controls corresponding to different properties. It can view and modify the properties by clicking a certain
property, with the Help-specific content displayed below the property column.
Add: Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China
Web:www.stone-hmi.com Tel:+86-10-84351669 8 / 55
2.6 Work Area
In a work area as shown in Figure 2-9, a user can configure and develop in this area, or drag and move
controls, etc.
See Figure 3-1 for Intelligent TFT LCD Module 4.1 project folders.
"ViewTech.vt" is a Intelligent TFT LCD Module 4.1 project file. A user can open it directly by using the
Intelligent TFT LCD Module 4.1 development kit, or drag it to the Intelligent TFT LCD Module 4.1 development
kit interface and open it by using a mouse.
The "VT_SET" folder is the position to save the configuration files generated by the Intelligent TFT LCD
Module 4.1 development kit. It is used to download files relating to images, icons, fonts, audios, configuration and
videos, etc.
Other files and folders are project source files. It is unnecessary for users to understand them.
Add: Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China
Web:www.stone-hmi.com Tel:+86-10-84351669 9 / 55
3.2 File Format Requirements
When designing a project, it shall firstly prepare background images, icon libraries, fonts and audio files that
may be used. Differing from Intelligent TFT LCD Module 3.2, there are no special requirements when naming
these files. Intelligent TFT LCD Module 4.0 will allocate and control their names automatically.
Image File
For an image file, it is required using a .jpg or .bmp file with a same Intelligent TFT LCD Module resolution.
When using a file in other formats, image distortion and other phenomena may occur.
Fonts File
A fonts file is in .DZK format. Please claim it from a sales engineer in case of special requirements.
Audio File
An audio file is required to be in .MP3 or .WAV format, with the numerical range supporting prefixes to
nomenclature of 0-4095.
Add: Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China
Web:www.stone-hmi.com Tel:+86-10-84351669 10 / 55
Figure 3-3 Dialog Box of Create a Project
Add: Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China
Web:www.stone-hmi.com Tel:+86-10-84351669 11 / 55
list can state the names of selected images and sequence them automatically according to their names.
When generating a configuration file, if the touchscreen variable areas are overlapped. The software will
prompt the page in which the overlap areas are (Figure-7), automatically select the overlapped button controls,
which can help a user to locate them. Please generate the configuration file again upon regulation, till it is
prompted that the configuration file is generated successfully.
After generating the configuration file successfully, report information shown in Figure 3-8 will be displayed.
Add: Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China
Web:www.stone-hmi.com Tel:+86-10-84351669 12 / 55
Figure 3-8 Report Information
USB-mini
Interface
User Serial
External
Speaker U Flash Disk
Interface
Add: Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China
Web:www.stone-hmi.com Tel:+86-10-84351669 13 / 55
Figure 3-9 HW Connection
The USB-mini interface is used to debug and download data (configuration files, images, icons and fonts)
online. The U flash disk interface is used to download data (configuration files, images, icons and fonts) offline in
batch. The user serial includes module power supply pins.
Of course, a user may also copy the VT_SET folder and its contents directly to the Intelligent TFT LCD
Module _USER disc via the Windows resource manager.
During modification and debugging, it may repeatedly download information on variable format, etc.
However, images, fonts, icons or audios and so forth may not be modified. Now it can check options including
"Do not download images", "Do not download fonts", "Do not download icons", "Do not download audios" and
"Do not download manually added files", which can efficiently enhance the download rate. Incase images, fonts,
icons or audios are modified, it cannot check the corresponding options. Instead, it must download the modified
files again.
A download report as shown in Figure 3=11 is generated upon successful download. It can determine
whether there is a failure in file download or not according to the report. Please download once again if a file is
downloaded unsuccessfully.
Add: Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China
Web:www.stone-hmi.com Tel:+86-10-84351669 14 / 55
Figure 3-11 Configuration File Download Report
Copy the "VT_SET" project folder and files contained in it to the root directory of a U flash disk
The "VT_SET" folder contains information on all the configuration files, fonts, images and icon libraries, etc.
A user cannot make any modification to the files contained in this folder. However, he/she may suffix characters
to "FT_SET" regarding the folder name, for instance"VT_SETxxxx".
Insert the U flash disk into the Intelligent TFT LCD Module
After designing an icon file, the Intelligent TFT LCD Module 4.1 development kit can be used only after the
"Icon File Generator" generates an icon library for multiple icon files that are scattered.
Click "Tool→ICON Generator" to pop up an icon file generator dialog box as shown in Figure 3-14. The tool
supports the conversion of images in .bmp, .jpg, .ico, .gif, .png and so on into icon files used for the Intelligent
TFT LCD Module, with a size up to 255*255.
Add: Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China
Web:www.stone-hmi.com Tel:+86-10-84351669 15 / 55
Place all the image files to be converted into the same folder prior to application. The file naming method is
same to that of images for the Intelligent TFT LCD Module. The upper left pixel color in an image is the
background color, with images in .bmp recommended.
Click "Select an Image Path", select the icon folder to be converted, with the dialog box listing the imported
image names.
By click "Generate an Icon File", the system will provide a default file name xx_default.ICO. A user shall
modify the file name according to the position to save the icon. The default file path is Project\ICON. When using
the icon for the current project, the user need not make any modification.
Click "Preview" to view the ICO file that is generated.
Click the blank space in the work area (with no controls). Global settings are available to the property
settings. As shown in Figure 3-15, a user can set image list, font size of property settings list, controls color and so
on according to person preference.
Add: Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China
Web:www.stone-hmi.com Tel:+86-10-84351669 16 / 55
Figure 3-15 Global Settings
To effectively reduce a user's workload and improve its compatibility, the software supports importing
configuration files, that is, to import the configuration files used for the Intelligent TFT LCD Module directly into
a project.
Add: Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China
Web:www.stone-hmi.com Tel:+86-10-84351669 17 / 55
4 Effect Preview
As shown in Figure 4-1, the Effect Preview function simulates the Intelligent TFT LCD Module terminal via
the PC software. It uses a PC serial to simulate that of the display terminal. By doing so, a user need not download
an interface to the display terminal to preview its actual effect and determine whether the display position or font
size is proper or not during development, thus saving the development time for the user.
The configuration files used for the Effect Preview function are same to those for the Intelligent TFT LCD
Module. It shall generate Stone's Intelligent TFT LCD Module configuration files (F7) before previewing, the
software will automatically import the files in Project\VT_SET to realize an effect same to that of the screen.
Due to the differences between the Intelligent TFT LCD Module terminal and the PC in terms of HW, the
preview function can only be taken as the effect reference during project development. Table 3-1 provides the
items supported by the Effect Preview function.
Table 4-1 Table of Items Supported by Effect Preview
Add: Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China
Web:www.stone-hmi.com Tel:+86-10-84351669 18 / 55
It can display the position of each part schematically,
GBK Input ○
with all the input invalid
HW Parameter Configuration ╳
Variable Icon √
Animation Icon √
Slider Scale Indication √
Wordart Display √
Image & Animation Display √
Bit Variable Icon Display √
Data Variable Display √
Display Function It can display the ASCII Code rather than Chinese
Text Display ○
characters
Dial Clock Display √
Text RTC Display √ System Time Display in Real-time
Time Variable Display √ A wrong BCD code will result in inaccurate display
Real-time Curve Display ╳
Basic Graphic Display ╳
List Display ╳
Initial Value The initial value for variables is the power-up initial
╳
Function value, with no configuration files read.
0x80 Command ╳
0x81 Command ╳
Serial Commands 0x82 Command ╳ Write the variable memory
0x83 Command ╳ Read the variable memory
0x84 Command ╳
Note: ①√ Support ╳ Not Support ○Partly Support
② With a view for preview, the data is uploaded automatically. The description pointer for variables and the
keying function cannot be used.
Add: Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China
Web:www.stone-hmi.com Tel:+86-10-84351669 19 / 55
5 Instruction to Touchscreen/Keying
Touchscreen
SN Function Description
Key Code
Input various data including integer, fixed point decimal and so on to
01 00 Variable Data Input
specified variable memory space
02 01 Pop-up Menu Selection Click to trigger a pop-up menu, return to the key code for the menu item.
Click the button, conduct +/- operation to a specified variable, which can set
03 02 Increment Regulation step length and upper/lower limit.
Set cycle control ranging 0-1 to realize the check box function of the column
Drag the slider to realize the input of variable data, which can set the scale
04 03 Drag to regulate
range.
The touch keyboard of the Intelligent TFT LCD Module screen sets the RTC
05 04 RTC Settings components, needing to input solar calendar year, month, day, hour, minute,
second completely
Click the button, return the key value directly go the variable, supporting bit
06 05 Key Value Return
variable return
Input various characters by means of a text mode, supporting cursor
movement and edit during the process.
Directly support inputting by means of ASCII Code, GBK Chinese,
07 06 Text Input
traditional Chinese and Pinyin;
Modify the fonts and the font sized 0#, support the 8-bit code text input of
similar ASCII characters;
Write a Memory to Provide a way for the touchscreen to rewrite the memory space, which can
08 07_00
Variable Space control HW indirectly.
Write Variable Space to For instance, read the content of a backlight register to the variable, write it
09 07_01
Register back after regulating the variable to control the backlight brightness.
Convert an image into a
11 07_05 monochrome bitmap Mainly print the content displayed in the current screen
(horizontal)
Add: Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China
Web:www.stone-hmi.com Tel:+86-10-84351669 20 / 55
5.2 Variable Data Input (0x00)
It can modify the value displayed for a certain data variable by means of data input. It is required that
both data input and data variable shall display the same variable address, in the same format.
Add: Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China
Web:www.stone-hmi.com Tel:+86-10-84351669 21 / 55
The yellow block is the valid touchscreen area. The upper "Area Coverage Settings" area displays the
length, width and upper left coordinates of the valid area.
Add: Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China
Web:www.stone-hmi.com Tel:+86-10-84351669 22 / 55
5.3 Pop-up Menu Selection (0x01)
Add: Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China
Web:www.stone-hmi.com Tel:+86-10-84351669 23 / 55
In the figure above: the pop-up menu is in another interface, the key code (0x0000-0x00FE)
configured for both "Display" and "Do not Display" buttons will be returned to the variable pointed by
the 0x01 touchscreen button; the Cancel button can set the key code as 0x00FF.
The value is not returned upon clicking. Valid key code during input: 0x0000-0x00FF, notably, 0x00FF
means cancel (not to select a parameter and directly return instead). The drop-down menu may also adopt
this commend.
Add: Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China
Web:www.stone-hmi.com Tel:+86-10-84351669 24 / 55
5.4 Increment Regulation (0x02)
In the figure above, the two touchscreen buttons "→" and "←" are separately configured with ++
increment (Adj_mode=0x01) and ―― increment (Adj_mode=0x00).
Add: Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China
Web:www.stone-hmi.com Tel:+86-10-84351669 25 / 55
When the range is set as 0-1, it can easily work out the check function in combination of icon
variable display (click one time to select and click again to cancel).
To avoid maloperation, it must press the valid drag area for over 0.5s before the drag operation is
enabled.
In the figure above, the slider scale is realized via slider scale display (0x02 variable).
The advantage of drag-to-input is being direct and quick, with no parameters overstepping the
boundary. When in need of dragging-to-input more accurately, it can display the variable to be modified
by dragging based on data variable display (0x10 variable).
Add: Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China
Web:www.stone-hmi.com Tel:+86-10-84351669 26 / 55
Drag-to-regulate does not support key control.
The design approach and the variable data input keyboard are not in the current interface.
Add: Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China
Web:www.stone-hmi.com Tel:+86-10-84351669 27 / 55
RTC Setting Keyboard and Data Variable Input are same in Property
Add: Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China
Web:www.stone-hmi.com Tel:+86-10-84351669 28 / 55
Pinyin "bd" corresponds to the SBC case punctuation mark input of the GBK Code;
Fonts sized 0# that is pre-loaded by Stone includes all the ASCII characters for 4*8-64*128 dot
matrix.
When using a keyboard (key code saved by 0x4F register) rather than a touch screen to input GBK,
it must use 0x01-0x08 key code to select the corresponding Chinese characters.
Remark【1】
Input status returns information:
The GBK inputs variable address 0x0140, then saves the input end tag and the valid data length at address 0x0139.
High byte value for 0x01FF address:
0x5A: (input end tag), means that the input is over.
0x00: means that the LED now is in the input process.
Low byte value for 0x01FF address: valid data length, in bytes.
Add: Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China
Web:www.stone-hmi.com Tel:+86-10-84351669 29 / 55
5.8.2 ASCII Text Input
Add: Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China
Web:www.stone-hmi.com Tel:+86-10-84351669 30 / 55
Text Length: the text
length a user wants to
input. When saving a text
to a specified address,
Input Mode: a user can choose 0xFFFF is added
to input again or modify the automatically at the end of
text. the text as the end
Input again: the initially mark.0xFFFF is also added
displayed text content after to the data is uploaded to
being input will be covered by the serial after being input.
the one that is input again. Max. Variable space that
Modify Text: it can modify the may actually be taken for
text based on the input content the input text variable =
V_Len_Max+1.
录入的文本变量实际可能
Font Position: the fonts used
占 用最
during 大变
input. 量空
Fonts 间 0.=
sized
V_Len_Max+1
Fonts sized 0 that is
pre-loaded by Stone
includes all the ASCII
characters for 4*8-64*128
dot matrix.
Input Status Return: it means to
return to the status when being
checked. See Remark【2】for the
status information. It means not
to return when not being Input Display Position: the
checked. area displayed when
inputting ASCII Code, the
upper left coordinates in the
area starts to display
Local Page: the page in which
the keyboard used to input stays
Remark【2】:
Input status return information:
The ASCII inputs variable address 0x0100, then saves the input end tag and the valid data length at address 0x00FF9.
High byte value for 0x01FF address:
0x5A: (input end tag), means that the input is over.
0x00: means that the LED now is in the input process.
Low byte value for 0x01FF address: valid data length, in bytes.
Add: Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China
Web:www.stone-hmi.com Tel:+86-10-84351669 31 / 55
Add: Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China
Web:www.stone-hmi.com Tel:+86-10-84351669 32 / 55
5.9 HW Parameter Configuration (0x07)
*VP Data Pointer Send the Tx_Len byte length data starting from the *VP
pointer position to the user serial.
0x03
Tx_Len is a word variable, with a length ranging from 0x0001
Tx_LEN Data length to be sent. to 0xFFFF.
Add: Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China
Web:www.stone-hmi.com Tel:+86-10-84351669 33 / 55
With the screen brightness modified by increment regulation, Mode 0 is selected for HW parameter
configuration, that is, load the 256 registers of the LCD to the last 256 addresses in the user data memory
area (0x6F00-0x6FFF). Then the LED brightness control register in the 256 registers is 01, it can regulate
the screen brightness by modifying the variable address 0x6F01 upon loading. In the figure above, the
variable address of increment regulation is set as 0x6F01, with the brightness regulated by clicking the
LCD.
Add: Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China
Web:www.stone-hmi.com Tel:+86-10-84351669 34 / 55
5.10 Synchronized Data Return in Pressed Status
The three stauses for touchscreen pressing are shown in the following figure:
Remark【1】:
Data Return pattern:
0x00= do not return data;
0x01= read the specified length data at VP1S address to VP1T address;
0x02= read the specified length data at VP1S address and send it to the serial;
0x03= read the specified length data at VP1S address to the register address corresponding to VP1T address.
Add: Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China
Web:www.stone-hmi.com Tel:+86-10-84351669 35 / 55
5.11 Rotate-to-regulate
Add: Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China
Web:www.stone-hmi.com Tel:+86-10-84351669 36 / 55
6 Instruction to Variable Display
Function
SN Function Description
Code
Display the variation range of a data variable linearly in relation to a group of
ICON icons; when the variable changes, the icon will also be switched
01 00 Variable Icon Display
automatically. It is generally used for precision dashboard and progress bar
display.
A fixed-value data variable can correspond to three different icon indication
Animation Icon
02 01 statuses: Do not Display, Display a Fixed Icon, and Display an Animation Icon.
Display
It is generally used for variable alarm display.
The variation range of a data variable can correspond to the change in the display
03 02 Slider Scale Display position of an icon (slider).
It is generally used for liquid level, dial and progress bar display.
Wordart Variable
04 03 It can use an ICON icon to display variable data instead of fonts.
Display
Image & Animation It can play a group of full-screen images at a specified speed. It is generally used
05 04
Display for startup interface or screensaver.
It can make the 0\1 status for each bit of a data variable correspond to two of 8
different display schemes,
Bit Variable Icon
06 05 Use an ICON icon (or icon animation) to display accordingly.
Display
It is generally used for on-off status display, for instance, run (animation)/stop
(static icon) of an air blower.
It can display a data variable in Arabic numerals with a specified font and size
07 06 Data Variable Display
according to the specified format (integer, decimal, whether with a unit or not).
It can display a character string in the display area of a specified text box
08 10 Text Display
according to the specified format (depends on the selected fonts).
It can display the solar calendar RTC in form of a text according to the format
9 11 Text RTC Display
edited by a user.
Add: Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China
Web:www.stone-hmi.com Tel:+86-10-84351669 37 / 55
It can display variable data by separating the ASCII Code as specified by a user
10 12_00 HEX Data Display based on the byte HEX mode.
It is generally used for timing display, for instance, to display 1234 as 12:34.
By writing the data in the curve-based buffer in combination of the 0x84 serial, it
Real-time Curve can match and display the real-time curve automatically (tendency chart). It can
11 12_01
(Tendency Chart) specify display area, coordinates of center pin, with the zoom control
(zoom-in/zoom-out) controllable.
It can display variable data by separating the ASCII Code as specified by a user
12 13 HEX Data Display based on the byte HEX mode. It is generally used for timing display, for
instance, to display 1234 as 12:34
By writing the data in the curve-based buffer in combination of the 0x84 serial, it
Real-time Curve can match and display the real-time curve automatically (tendency chart). It can
13 20
(Tendency Chart) specify display area, coordinates of center pin, with the zoom control
(zoom-in/zoom-out) controllable.
14 21_01 Plot_Set Point Set Point (x,y,color)
15 21_02 Plot_Endpoint Line Endpoint Line (color,(x0,y0),… (xn,yn))
16 21-03 Plot_Rectangle It displays a rectangle, with the color, position and size controllable.
It can fill a specified rectangular area, with the filling color, position and size
17 21_04 Plot_Rectangle Filling
controllable.
28 21_05 Plot_Plotting a Circle It can display a full radius, with the color, position and size controllable.
Plot_Image Cutting & It can cut an area from a specified image and paste it to the currently displayed
19 21_06
Pasting page.
Plot_ICON Icon
20 21_07 It can display the ICON icon, with the icon libraries optional
Display
Plot_Closed Area It can fill a closed area, with the coordinates of the seed point and the filling
21 21_08
Filling color controllable.
Plot_Frequency It can display a frequency spectrum (vertical line) according to the variable data,
22 21_09
Spectrum Display with the line color and position controllable.
Plot_Line Segment It can connection a line segment according to the variable data, with the endpoint
23 21_0A
Display and the color controllable
Plot_Circular Arc It can display a circular arc, with the radius, color and start/end angle
24 21_0B
Display controllable.
Plot_Character
25 21_0C It can realize single character display according to the variable data.
Display
Plot_Rectangular It can conduct XOR operation to the specified bitmap data in a rectangular area
26 21_0D
Area XOR in a specified color, generally used for highlighted display.
Plot_Bi-color Bitmap It can take the variable memory data as the bi-color bitmap data, with the color to
27 21_0E Display
which 0/1 corresponding specifiable, generally used for customized cursor
28 21_0F It can display the data bit 65K color bitmap data for a variable memory, generally
Plot_ Bitmap Display
used for real-time icon (photo) download display.
It can zoom in a specified area for 1 time and paste it to a specified position,
29 21_10 Plot_Area Zoom-in & generally used to support the commend in terms of realizing real-time photo
Pasting
display
30 22 List Display It can display the data defined according to a two-dimensional array in a tabular
column.
Add: Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China
Web:www.stone-hmi.com Tel:+86-10-84351669 38 / 55
Upper Limit for Variables: the Icon File: a user generates an
upper limit for the variable icon library file via the host
address 0060 computer software according to
Corresponding Icon: refers to the application demand
the corresponding icon when
turning the variable value into
the upper limit
In case of multiple icons, the
LCD terminal will share out ICON Display Mode: icon
the values ranging from the display can be transparent or
lower to the upper limits with a background
equally and automatically,
corresponding to the icons
When a variable is not equal to the stop value or the start value, it will not display an icon or animation.
Add: Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China
Web:www.stone-hmi.com Tel:+86-10-84351669 39 / 55
Scale Mode: includes Scale Interval of Start
horizontal and vertical scale Variable: the corresponding
modes. When dragging value displayed by the
horizontally, choose the slider at the start scale
horizontal scale
Add: Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China
Web:www.stone-hmi.com Tel:+86-10-84351669 40 / 55
Icon File: the icon
library file that is
generated by a user for
Wordart variables via
the host computer
software
When set a image & animation variable in the Pic_End page, it can realize repeated replay.
It can end the replay when the serial commend switches the image or the touchscreen commend
switches the image.
Add: Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China
Web:www.stone-hmi.com Tel:+86-10-84351669 41 / 55
6.2.6 Icon Rotation (0x05)
Add: Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China
Web:www.stone-hmi.com Tel:+86-10-84351669 42 / 55
6.2.7 Bit Variable Icon Display (0x06)
Move Mode: the arrangement mode
when displaying multiple bitmap
icons. Act_Bit_Set: the bit value that is
0x00 refers to an increase in 1 represents the bit to be set for
X-coordinates, no position is Variable 0040
reserved for a bit that is not
processed as specified by Display Mode: when the value of
Act_Bit_Set; 0x01 refers to an this control bit is 0 or 1, the
increase in Y-coordinates, no position display mode for the bit variable
icon. A user can refer to the
is reserved for a bit that is not
definition table for display modes
processed as specified by to set.
Act_Bit_Set;
0x02 refers to an increase in
Icon File: the icon library file
X-coordinates, a move spacing displayed as a bit variable icon
interval is reserved for a bit that is that is generated by a user via the
not processed as specified by host computer software.
Act_Bit_Set
Add: Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China
Web:www.stone-hmi.com Tel:+86-10-84351669 43 / 55
6.3 Text Variable Display Settings
Add: Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China
Web:www.stone-hmi.com Tel:+86-10-84351669 44 / 55
6.3.2 Text Display (0x11)
Add: Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China
Web:www.stone-hmi.com Tel:+86-10-84351669 45 / 55
6.3.3 RTC Display (0x12)
X/Y-coordinates: the
pointer center of the clock
dials at the coordinates
Add: Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China
Web:www.stone-hmi.com Tel:+86-10-84351669 46 / 55
6.3.4HEX Variable Display (0x13)
Add: Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China
Web:www.stone-hmi.com Tel:+86-10-84351669 47 / 55
6.3.5 Scrolling Text Display (0x14)
Add: Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China
Web:www.stone-hmi.com Tel:+86-10-84351669 48 / 55
6.4 Real-time Curve (Tendency Chart) Display (0x20)
The curve data is sent via 0x84 commend. Please refer to 3.2 Commends stipulated in the User Guide.
Remark【3】
The zoom-in factor for vertical scale of the full range curve is calculated as:
MUL_Y=(Ye-Ys)*256/(Vmax-Vmin)Ye, Ys is the Y coordinate of the curve window; Vmax and Vmin are the maximal
and minimal values of the curve data.
For instance, a 12bit A/D acquired data (Vmax=4095 Vmin=0) corresponds to Ys=50, the screen area for Ye=430 is
displayed in a full range, then:
MUL_Y=(430-50)*256/(4095-0)=23.7 is rounded to 23 downward.
When saving the variable description in the data storage space (*SP specifies a storage position), then:
In combination of 0x02 increment touchscreen commend, it can automatically zoom in or out the curve without being
Add: B605,Building 1#, Zhubang 2000, BaLiZhuang West 100#, Chaoyang District, Beijing, China
Web:www.en.stone-hmi.comTel:+86-10-84351669
49 / 55
intervened by using a user code.
When modifying the Y_Central value in combination of 0x03 drag touchscreen commend, it can automatically move the
curve upward and downward without being intervened by using a user code.
The variable address is set as 2000, then a user can realize basic graphic display only by accessing to 2000
address according to the instruction to plotting commend data packet. The data packet is explained by taking the
commend--0x0002 endpoint line for example:
a5 5a 15 82 20 00 00 0200 02 f8 00 02 3B 00 A4 02 EE 01 18 02 C2 01 B9
a5 5a: commend FH
15:82 the data length from start to end when writing the variable memory commend, in bytes.
20 00: variable address
00 02: commend to endpoint line
00 02 : number of lines
f8 00: color of lines red
02 3B 00 A4: coordinates for the first point of the line
02 EE 01 18: coordinates for the second point of the line
02 C2 01 B9: coordinates for the third point of the line
Add: B605,Building 1#, Zhubang 2000, BaLiZhuang West 100#, Chaoyang District, Beijing, China
Web:www.en.stone-hmi.comTel:+86-10-84351669
50 / 55
Instruction to plotting data packet (both the relative address and the length are in words)
Command
Operation Relative
(CMD) Length Definition Description
Address
(x,y) Coordinates of a set point, with the x-coordinate high byte as the
0x00 2
0x0001 Set Point judgment conditions
0x02 1 color Set Point Color
0x00 1 color Line Color
(x,y) 0 Coordinates of line vertex 0, with the x-coordinate high byte as
0x01 2
the judgment conditions
Endpoint
0x0002 (x,y) 1 Coordinates of line vertex 1, with the x-coordinate high byte as
Line 0x03 2
the judgment conditions
(x,y) n Coordinates of line vertex n, with the x-coordinate high byte as
0x01+2*n 2
the judgment conditions
(x,y) s Upper left coordinates of rectangular box, with the x-coordinate
0x00 2
high byte as the judgment conditions
0x0003 Rectangle 0x02 2 (x,y) e Right bottom coordinates of rectangular box
0x04 1 color Rectangle Color
Add: B605,Building 1#, Zhubang 2000, BaLiZhuang West 100#, Chaoyang District, Beijing, China
Web:www.en.stone-hmi.comTel:+86-10-84351669
51 / 55
Arc (X,Y) 0 Coordinates of center of circle (X, Y), with the x-coordinate
0x01 2
Display high byte as the judgment conditions
0x03 1 RAD0 Radius
0x04 1 DEG_S0 Start angle, in 0.5°, 0-720
Display data, one word for each pixel (MSB, 565RGB data
0x04 N Data_Pack
format)
Add: B605,Building 1#, Zhubang 2000, BaLiZhuang West 100#, Chaoyang District, Beijing, China
Web:www.en.stone-hmi.comTel:+86-10-84351669
52 / 55
The image is pasted to the After the zoomed-in area is in
zoomed in
zoomed in
Add: B605,Building 1#, Zhubang 2000, BaLiZhuang West 100#, Chaoyang District, Beijing, China
Web:www.en.stone-hmi.comTel:+86-10-84351669
53 / 55
6.4.3 List Display (0x22)
Number of Columns/Number
of Lines: display to number of
columns and lines of a table
Remark【4】
When Encode_mode.6=1, the first two words in the content of each cell data define the tabular data format, with the instructions as
follows:
High byte of the first word: Mode selection data type;
0x00=integer (2 bytes), -32768 to 32767
0x01=long integer (4 bytes)-2147483648 to 2147483647
0x02=*VP high byte, unsigned number ranging from 0 to 255
0x03=*VP low byte , unsigned number ranging from 0 to 255
0x04= ultra-long integer (8 bytes) - 9223372036854775808 to 9223372036854775807
0x05= unsigned integer (2 bytes) 0 to 65535
0x06= long unsigned integer ( 4 bytes) 0 to 4294967295
0x10= Time Format 1, 12:34:56BCD code-element string
0x11= Time Format 2, 12 -34 -56BCD code-element string
0x12= Time Format 3, YYYY-MM-DD HH: MM: SS BCD code-element string
0xFF=text form
Low byte of the first word:
Mode=0x00-0x06 defines the fixed point display format of variable data, high 4bit refers to the number of integer places, low 4bit
refers to the number of decimal places.
Mode=0x10-0X11 Time byte length of BCD code-element string
Mode=no other definitions
Add: B605,Building 1#, Zhubang 2000, BaLiZhuang West 100#, Chaoyang District, Beijing, China
Web:www.en.stone-hmi.comTel:+86-10-84351669
54 / 55
Second word: defines the text color of cell.
If the length of the actual content in the table is shorter than the specified one for Unit_Data_Num, it shall use 0xFFFF as the
end-of-text character for cell.
For an out-sized table, it can modify the TAB_X_Start and TAB_Y_Start values via a touch screen, which can easily locate and drag
the table.
Add: B605,Building 1#, Zhubang 2000, BaLiZhuang West 100#, Chaoyang District, Beijing, China
Web:www.en.stone-hmi.comTel:+86-10-84351669
55 / 55