Sunteți pe pagina 1din 55

User Guide to Intelligent TFT LCD Module 4.

1
Development Kit
For SDW-PlusII Serial Screen

(March 16, 2016)

Beijing STONE Technology Co., Ltd.

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.

Figure 1-1 System Architecture of Intelligent TFT LCD Module

It provides the following function:


1) To control files including images, icons, fonts and audios, etc.
2) To develop UIs (User Interface)
3) To generate configuration files.
4) To download configuration files.

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.

1.3 Introduction to Software Package

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.

2 Instruction to Software Interface

2.1 Software Interface

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

2.2 Menu Bar

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.

View variables: view all the variables in form of a list.

Import variables as Excel: save variables as Excel, with sheet 1 for all variables, sheet2 for 13 Touchscreen Variables and

sheet3 for 14 Display Variables.

Icon generation tool: convert an ICON-specific icon prepared by a user into an icon file used for Intelligent TFT LCD Module

4.1.

Effect preview: preview a project effect via a PC.

Touchscreen configuration, variable configuration: tools for controls.


Screen setting: set peripheral features including serial baud rate, commend-specific FH, CRC check, image
rotation angle, buzzer, touchscreen and screensaver, etc.Click OK to generate a CONFIG.txt configuration file
under a project directory.
Help: See Figure 2-2 for the Intelligent TFT LCD Module 4.1 dialog box, which can view the current software
version.When a project is opened via the software, it can view and generate the software version used for the
project. It can switch between Chinese and English for the software.

Figure 2-2 Intelligent TFT LCD Module 4.1 Dialog Box

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

2.4 Resource Management Section

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.

Figure 2-4 Image List Dockbar

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.

Figure 2-5 Fonts List Dockbar

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.

Figure 2-6 Icon Library List Dockbar

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.

Figure 2-7 Audio File List Dockbar

2.5 Property settings List

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.

Figure 2-8 Property Settings List

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.

Figure 2-9 Work Area

3 Project Development Process

3.1 Project Folders

See Figure 3-1 for Intelligent TFT LCD Module 4.1 project folders.

Figure 3-1 Intelligent TFT LCD Module 4.1 Project Files

"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.

 Icon Library File


An icon library file is prepared by using a software icon conversion tool. A user can convert his/her icon files
into the ones used for a project.

 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.

3.3 Project Development Steps

See Figure 3-2 for the project development process.

Figure 3-2 Project Development Flow Chart

3.3.1 Create a project


Open the software, click the File→Create option, or directly click the Create button in the toolbar, with a
dialog box as shown in Figure 3-3 popped up. Click OK to generate a project folder with the name same to the
project name under the project path, which is used to store the all the files of the project.

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

3.3.2 Screen Settings


Screen Settings can set peripheral features including serial baud rate, commend-specific FH, CRC check,
image rotation angle, buzzer, touchscreen and screensaver, etc.
Click the Screen Settings button in the menu bar to pop up a screen settings configure dialog box as shown in
Figure 3-4.
The serial communication must
be configured.

Figure 3-4 Screen Settings

3.3.3 Add Image


Click the Add Image button as shown Figure 3-5 Image List, select a prepared image. After selecting and
opening all images, the software can generates all the selected images under Project/image directory. The image

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.

Figure 3-5 Image List

3.3.4 Edit a Project


A user can improve his/her interface development according to his/her own demand, by referring to the video
tutorials or relevant cases as provided by Beijing STONE Technology Co., Ltd. When editing a project, pay
attention to saving the file (Ctrl + S) to prevent the data from being lost due to power failure or shut-down, etc. It
shall develop a good habit in software operation.
3.3.5 Generate a Configuration File
Click Tool→Generate a Configuration File (F7), or the "Generate a Configuration File" button in the toolbar
to generate a file as shown in Figure 3-6 Folder "VT_SET" under the project folder, with the generation progress
displayed in the status bar. A user cannot modify the contents under the VT_SET folder.

Figure 3-6 Project Folders

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.

Figure 3-7 Prompt of Touchscreen Overlap Area

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

3.3.6 Download a Configuration File


The configuration file generated via the Intelligent TFT LCD Module 4.1 development kit can be
downloaded to the display terminal via USB or a U flash disk. USB download is applicable for the R&D stage. It
shall be avoided for the debugging stage due to repeated modifications to design, which may result in plugging a
U flash disk repeatedly. U flash disk download is applicable to mass production upon the finalized R&D. It can
effectively improve the download efficiency and lower the operation quality requirements for operators.
For both online USB download and offline U flash disk download, it shall generate a configuration file in
advance.
See Figure 3-9 for Intelligent TFT LCD Module HW connection.

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.

I. Download via USB-mini Interface


The SDW-PlusII series can be connected to a computer as a storage device. The device now enters a storage
device module. The resource manager in the computer will display the Intelligent TFT LCD Module _USER
volume label.
Click "Tool→Download a Configuration File (Ctrl+D)", or the "Download a Configuration File" button in
the toolbar, with a download dialog box as shown in Figure 3-10 popped up. When the Intelligent TFT LCD
Module is connected to the computer successfully, the download dialog box will prompt as "USB connected",
with the detected USB name " Intelligent TFT LCD Module _USER" displayed. Now click the "Download"
button to copy the configuration file directly to the display terminal.

Figure 3-10 Download a Configuration File

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

II. Download via U Flask Disk

 .FAT format is required for U flash disk.

 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

 Power up the Intelligent TFT LCD Module/download the files


After the Intelligent TFT LCD Module detects the U flash disk, information in the detected U flash disk will
be displayed, with all the information under the "VT_SETxxxx" folder in the card downloaded to the Intelligent
TFT LCD Module.
After the U flash disk is downloaded, the Intelligent TFT LCD Module will prompt as downloaded
successfully.

 Take out the U flash disk to end the downloading

3.4 Icon Generator for Icon Library

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.

Figure 3-14 Icon File Generator

3.5 Global Settings

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

3.6 Import a Configuration File

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.

 Step 1: create a project


For a newly-created project, add all the images into it.

 Step 2: import controls


Click Tool→Import a Configuration File, or click the Import a Configuration File Icon button from the
toolbar directly. A user can select whether to clear the existing controls. Choose Y or N as needed.

 Step 3: select to import a folder


After selecting the folder where the configuration file is located and clicking OK, the software will import
the controls variables automatically. A user only needs to make modifications accordingly.
Note: ① The import function requires that the sizes of existing project images are same to those of the original
configuration files.
② After the import, some may indicate a change in the size or position of variable controls. This is due to
the fact that there are no relevant parameters for the imported file, which will not affect the actual effect.
③ The import function does not import the initial values for variables, which shall be set by users.

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.

Figure 4-1 Effect Preview

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

Functional Function Remarks


Description
Classification Realization
Basic Touchscreen √
Data Input √
Popup Menu √
Increment Regulation √
Touchscreen
Drag to regulate √
Function
It can simulate to set the RTC variables, with the
RTC Settings ○
parameters set invalid
Press to Return √
Text Input √

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

5.1 Table of 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)

Area Coverage Settings: the


upper left coordinates of the
touchscreen area on the
LCD, as well as the height Key Code: the
and width of the corresponding key code
touchscreen area. value when externally
connecting a physical
keyboard via the keyboard
interface

Audio File: it requires


playing the audio file when
touching the key

Display Position: the


display position is the
position to display the input
contents during data input

Local Page: the page in


which the keyboard used by
a user to input stays

Display Position: the


display position is the
upper left coordinates Keyboard Area: the
displayed when the coordinate area in the
keyboard pops up figure that is for the
keyboard used for input

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.

Page Where Keyboard Stays

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)

Local Page: the page


in which the user
menu stays
Variable Mode: after
selecting a certain
menu option in the
Menu Area: the upper left
menu bar, a user can
coordinates and the right
modify such a variable
bottom coordinates for the
value by means of
content area of the menu
write word (two bytes).
The user can also
choose to write the
high byte, low byte or
Display Position: the a certain bit from the
upper left coordinates drop-down box.
displayed by the
pop-up menu in the
current page

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)

Regulation Mode: a user


modifies such a variable
value by means of write
word (two bytes) when
clicking the Increment
Regulation button. The user Regulation Mode: press
can also choose to write the the Increment Regulation
high byte, low byte or a button to increase a
certain bit from the regulation step value for
drop-down box. the variable. It can choose
to decrease via the
drop-down box for the
option.
Regulation Step: the increased
or decreased value that is
obtained when pressing the
Increment Regulation button
once Overdue Processing Mode:
when the variable value
increases or decreases to a
Lower Limit: the lower set upper or lower limit, it
limit value for the variable will stop increasing or
that is increased or decreasing by keeping
decreased by Increment pressing the button. The
Regulation user may also select cycle
control.

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).

5.5 Drag-to-regulate (0x03)

Data Return Format: a user


modifies such a variable
value by means of write
Return Value word (two bytes) when
Corresponding to Start clicking the drag-to-regulate
Position: the variable value button. The user can also
that is corresponding to the choose to write the high
start position of the area byte or low byte from the
dragged drop-down box.

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.

5.6RTC Settings (0x04)

Display Position: the position


to display the input content
when inputting the RTC
process on the data keyboard

Local Page: the page in


which the keyboard used by
a user to input stays

Keyboard area: to select the


upper left and right bottom
coordinates of the area in the
page where the keyboard stays
Display Position: the upper
left coordinates displayed
when the keyboard pops up

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

5.7 Key Return Value (0x05)

Regulation Mode: a user


modifies such a variable
Key Value: press the value by means of write
"Key Value Return" to word (two bytes) when
write the key value pressing the "Key Value
0xF800 into the variable Return" button. The user
with an address of 0x can also choose to write the
4003 high byte, low byte or a
certain bit from the
drop-down box.

5.8 Text Input (0x06)

5.8.1 GBK Text Input


Notes:

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.

Input Mode: a user can


choose to input again or
modify the text. Text Length: the text length a user
Input again: the initially wants to input. When saving a text
displayed text content after
being input will be covered to a specified address, 0xFFFF is
by the one that is input again. added automatically at the end of
Modify Text: it can modify the text as the end mark. 0xFFFF is
the text based on the input also added to the data is uploaded to
content the serial after being input. Max.
Variable space that may actually be
taken for the input text variable =
V_Len_Max+1.

Input Status Return: it means Display Fonts: display the fonts


to return to the status when used after inputting a Chinese
being checked. See Remark character
【1】for the status
information. Input Process Fonts: input Pinyin
and display the fonts that are
corresponding to the Chinese
characters

Input Display Position: the
area displayed during input
Pinyin Prompt Position: when
inputting Pinyin, all Chinese
characters applicable to it are
displayed to a user for choice.
Pinyin Display Position: the Pinyin is displayed on the left of the
coordinate position displayed Chinese characters.
in Pinyin during input

Local Page: the page in which the


keyboard used to input stays
Display Position: the upper
left coordinates displayed
when the keyboard pops up
Keyboard Area: the coordinate
area in the figure that is for the
keyboard used for input

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

Keyboard Area: the


coordinate area in the figure
Display Position: the upper left that is for the keyboard used
coordinates displayed when the for input
keyboard pops up

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)

Mode: the HW parameter


settings can provide
multiple operation modes, 1
stands for Mode 0x01.
Refer to the operation mode
list for specific functions.

Operation Mode List


Mode Data_Pack Instruction to Data_Pack Function
Load the data in the register variable area to the
0x6F00-0x6FFF variable memory space (occupying the low
0x00 None None byte)
The Intelligent TFT LCD Module defaults to load the data in
the register variable area to 0x6F00-0x6FFF when powered up
Load the data in the 0x6F00-0x6FFF variable memory space
(occupying the low byte) to the register variable area; rewrite
0x01 None None
the R1-R3,R5-RASD/SDHC interface configuration variables
accordingly

*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.

Coordinates of an area to be Convert the content in a specified area into a monochrome


Tran_Area converted: bitmap (horizontal extraction, bitmap format print), save it to
Upper left, right bottom the data memory pointed by the VP pointer.
1. The zone width (Xe-Xs+1) must be multiples of 16;
First address of the buffer 2. The saved data format of the *VP pointer is as follows:
0x05 area to save the converted *VP: status bit, set as 0x5555 after being processed;
*VP
bitmap data *VP+1: horizontal word length= (Xe-Xs+1) &0xFFF0/16;
*VP+2: number of data segments=(Ye-Ys+1);
*VP+3: start from bitmap data, MSB mode.
If enabling "Automatic Parameter Upload" (R2.3=1), then
Frame_End Frame end (two bytes)
upon conversion, a prompt message will be uploaded
automatically when the *VP content is modified as 0x5555.
The commend is mainly used to print the screen content.

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

When the touchscreen is pressed


for the first time, data return mode.
Refer to Remark【1】for the mode
When the touchscreen is information.
pressed for the first time, read
data address

Returned data length (number of


When the touchscreen is
bytes), when the press mode is
pressed for the first time, write
0x01, the length must be even
data address

When the touchscreen is


pressed for the first time and
continuously pressed, data
return mode
When released the touchscreen,
data return mode

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

Regulate the data format:


0x00=regulate word address
0x01=regulate the high byte address
of the word address (single-byte
Regulate the Circle center unsigned number)
coordinates of the area 0x02=regulate the low byte address
of the word address (single-byte
unsigned number)
Regulate the diameter of
the area
Regulate the outer
diameter of the area
Return value corresponding to the start
angle, integer Regulate the start angle of
the area 0-719, in 0.5o
Return value corresponding to the end
angle, integer
Regulate the end angle of
the area 1-720, in 0.5o

Rotate-to-regulate does not support key control.


Rotate-to-regulate is always assumed as turn clockwise.

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

6.1 Table of 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.

6.2 Icon Variable

6.2.1 Icon Variable Display (0x00)

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

6.2.2 Animation Icon Display (0x01)

Stop Value: stop playing an Stop Icon ID: the icon


icon animation when the displayed when the value of
value of the variable the variable is 1, which
address 0300 is 1 means to stop playing an
animation

Start Value: start to play an


icon animation when the
value of the variable
address 0300 is 1 Start Icon ID: the icon that is
an animation starts to play

Icon File: the icon library


file for users that is
generated via the host End Icon ID: playback after
computer software an animation is played in
sequence to the end icon

When a variable is not equal to the stop value or the start value, it will not display an icon or animation.

6.2.3 Slider Scale Indication (0x02)

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

Scale Interval of End


Icon File: a user generates Variable: the corresponding
an icon library file via the value displayed by the
host computer software slider at the end scale
according to the application
demand
ICON Display Mode: as a
display mode for the scale
indication icon, it can
VP Mode: return data type choose transparent display
when the slider scale or display with a
indicates a change in the background
variable value. Point to an
Integer Variable: a user can
also choose to point the Shift Forward offset of
high byte data or the low (X)-Coordinates: the shift
byte data of an integer forward offset of X-coordinates
variable displayed by the scale
indication icon

6.2.4 Wordart Variable Display (0x03)

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

Variable Type: refers to the


data type of data variables
that are represented by the Start Icon: when the value of
Wordart icon Variable 0050 is 0, the icon
representing 0 in the
corresponding Wordart icon
library. The sequence of the
Wordart icons must be:
Alignment Mode: the way 0123456789-.
to align the Wordart icon in
the display box when being
displayed

6.2.5 Image & Animation Display (0x04)

Start Image Position:


refers to the image End Image Position:
number when starting to refers to the image
play the image animation number when stopping
playing the image
animation. It can realize
loop playback by making
Display Time Interval: an image animate display
the delay time in control for the end
switching to another image.
image when playing the
image animation

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)

Icon File: the icon library


file that is generated by a
user for icon rotation via the
host computer software.
Variable Value for Start
Rotation Angle: the value for
Icon ID: image numbering
Variable Address 0000 has a
for image rotation.
corresponding relationship with
the rotation angle. Here it
means that the corresponding
value for the rotation angle is 0, Icon Rotation Center: the center
that is, when the value of coordinates of a rotating icon.
Address 0000 is 0, the icon will Screen Rotation Center: the
rotate to the start angle. upper left coordinates of the icon
rotation display box; the icon
will rotate around the center.
End Rotation Angle: the end
(start) rotation angle 0-720, in
0.5°. Even when the end angle
now is 360°, it means 180°in VP_Mode: the return data
an actual coordinate system. type when the rotation
variable is modified for the
icon. A user can point to an
integer variable, the high
byte data or the low byte
data of an integer variable as
needed.

The function is mainly used for pointer indication in a dashboard.


Rotation is always assumed as in a "clockwise" direction, that is, the end rotation angle must be greater than the start
one (if the end rotation angle is less than the start rotation angle, the system will add 360°automatically during
processing).

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

Move Spacing: the move spacing ICON0S: when not displaying


arranged according to the move the animation mode, the icon ID
mode when displaying multiple for bit =0
bitmap icons
ICON0E: when displaying the
animation mode, the end ID
position of the icon animation for
bit=0 ICON1S: when not displaying the
animation mode, the icon ID for
ICON1E: when displaying the bit= 1; when displaying the
animation mode, the end ID animation mode, the start ID
position of the icon animation for position of the icon animation for
bit= 1 bit= 1

Definition of the display mode:


Bit value
Display_Mode
0 1
0x00 ICON0S ICON1S
0x01 ICON0S Do not display
0x02 ICON0S ICON1S-ICON1E
animation
0x03 Do not display ICON1S
0x04 Do not display ICON1S-ICON1E
animation
0x05 ICON0S- ICON0E ICON1S
animation
0x06 ICON0S- ICON0E Do not display
animation
0x07 ICON0S- ICON0E ICON1S-ICON1E
animation animation

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

6.3.1 Data Variable Display (0x10)

Fonts Position: the position to


save the fonts displayed as a data
variable, the fonts sized 0 is
Variable Type: the data type
selected for ASC Code display.
displayed for data variables,
Font 0 that is pre-loaded by
determining the range for the
Stone includes all the ASCII
maximum value and the
characters for 4*8-64*128 dot
minimum value of data
matrix.
variables

Integer Places: the number of


integer places displayed by
Display Unit: display in units variables. For decimals
can be allowed when displaying displayed with all variables
the data variables based on a fixed point, need
to separate set the integer and
decimal places

Initial Value: the value


displayed for the variable once
the LCD is powered up

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)

Coding Mode: the coding


mode of fonts used for
text display.
FONT1 ID: as fonts for
text display, the coding
mode of the fonts must be
the same to that of text
FONT0 ID: the fonts display
position of the ASC
Code. Fonts sized 0
includes all the ASCII
characters for
Number of Dot Matrixes in
4*8-64*128 dot matrix.
X Direction/Number of
Dot Matrixes in Y
Direction: as the dot matrix
size of fonts for text
Horizontal Spacing: display two display, the number of dot
texts in Chinese characters or the matrixes in Y direction
pixel interval in horizontal must be even.
direction in case of an ASC text.

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)

Text RTC Display

Fonts Position: the


Date Format: the format to
position to save the fonts
display year, month, hour,
minute, second and week. used for displaying RTC.
Y-M-D H:Q:S 0x00 will be Fonts sized 0 includes all
displayed as 2014-05-01 the ASCII characters for
12:00:00 4*8-64*128 dot matrix.
M-D W H:Q 0x00 will be
displayed as 05-01 WEN
12:00

Dial Clock Display

X/Y-coordinates: the
pointer center of the clock
dials at the coordinates

Clock Icon: ID of the


clock icon, 0xFFFF
means not to display the
clock.

Clock Center Coordinates:


the rotation center position
of the clock icon

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)

Coded String: used to


provided a display format
required by customers in
Byte_Num: the number of combination with time
bytes occupied by the variables After displaying
displayed HEX variable each BCD code, an ASCII
character is taken from the
coded string in
sequentially for spaced
Hexadecimal Input: the
display, with the final
coded string is converted display effect of
into a hexadecimal one. A 0000-00-00 00:00:00
user can click to operate the Specific code definitions
software and convert the in the coded string:
hexadecimal code into 0x00: invalid, no
2D2D203A3A, with 00 characters displayed, two
manually prefixed to the BCD codes are joined
code, the two BCD codes at 0x0D: display with line
the start are joined. break, that is, X=Xs,
Y=Y+Font_X*2

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)

Rolling Screen Spacing:


Coding Mode: the coding the number of pixel dot
mode of fonts used for matrixes scrolled by text in
text display. each VGUS cycle

Alignment Mode : 0x00=Left FONT1 ID: as fonts for


Alignment text display, the coding
0x01=Right Alignment mode of the fonts must be
0x02=Center the same to that of text
The rolling screen stops when the display
displayed text contents are not
sufficient for the text box, with the
alignment mode displayed as valid
Number of Dot Matrixes in X
FONT0 ID: the fonts Direction/Number of Dot
position of the ASC Matrixes in Y Direction: as the
Code. Fonts sized 0 dot matrix size of fonts for text
includes all the ASCII display, the number of dot
characters for matrixes in Y direction must
4*8-64*128 dot matrix. be even.

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)

Zoom-in Factor for


Vertical Axle: the
zoom-in factor for
curves, with a unit of
1/256, 0x0000-0xFFFF.
Refer to Note【3】 for
calculating the zoom-in Y_Center: the position of
curve center
factor.

VD_Center: the data value of


Data Source Channel: curves corresponding to the
up to 8 curves can be center curve.
displayed for LCDs of
such a series, with one
curve having one data
source channel Horizontal Axle Interval:
the pixel interval in X
direction in case of curve
display.

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.

6.4.2 Basic Graphic Display (0x21)


Basic graphic display firstly defines a "plotting board" function in the configuration file. The specific
operation is determined according to the content of the variable memory that the variable address pointer points to.
A user can realize various plotting functions by modifying the functions of the variable memory.

Dashed Line/Dot and


Dash Line: the line
type for drafting

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

Instruction to Variable Data Format (Variable Memory Space)


Address Definition Description

VP CMD Plotting Command


Max. number of data packets: the connecting line commend (0x0002) is defined as the
VP+1 Data_Pack_Num_Max
number of connecting lines, that is, the number of vertex is -1.
VP+2 DATA_Pack Data

Instruction to plotting commend data packet

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

Upper left coordinates of rectangular domain, with the


0x00 2 (x,y) s
Rectangle X-coordinate high byte as the judgment conditions
0x0004 0x02 2 (x,y) e Upper right coordinates of rectangular domain
Filling
0x04 1 color Filling color of rectangular domain

Coordinates of center of circle, with the x-coordinate high byte


0x00 2 (x,y)
Full Radius as the judgment conditions
0x0005 0x02 1 Rad Radius
Display
0x03 1 color Circle Color
ID of the page in where the cut image area is located, with the
0x00 2 Pic_ID
Cutting & high byte as the judgment conditions
Pasting of 0x02 2 (x,y) s Upper left corner of the cut image area
0x0006 Image Area 0x04 2 (x,y) e Right bottom of the cut image area
Paste the cut image area to the coordinate position of the current
0x06 2 (x,y) page, upper left coordinates

Display the coordinates position, with the x-coordinate high byte


0x00 2 (x,y)
ICON as the judgment conditions
0x0007 Icon Icon ID, with the icon library position specified by the command
Display 0x02 1 ICON_ID high byte
The icon is fixed as not to display the background color
Area Coordinates of a seed point, with the x-coordinate high byte as
0x00 2 (x,y)
0x008 Filling the judgment conditions
0x02 1 color Filling Color
Frequency 0x00 1 Color0
Spectrum
Display Apply Color0 to (X0,Y0s)(X0,Y0e), with the X0 high byte as
0x0009
(Vertical 0x01 3 X0,Y0s,Y0e the judgment conditions
Line)

Line 0x00 1 Color


Apply Color to (Xs,Ys) (Xe,Ye), with the Xs high byte as the
0x000A Segment 0x01 2 (Xs,Ys)
judgment conditions
Display 0x03 2 (Xe,Ye)
0x000B Circular 0x00 1 Color0 Circular Arc Display

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

0x05 1 DEG_E0 End angle, in 0.5°, 0-720

0x00 1 Color0 Character Display Color


Character display position, upper left coordinates of character,
0x01 2 (X,Y) 0 with the X-coordinate high byte as the judgment conditions

0x03H 0.5 Lib_ID Fonts Position


Character coding mode: 0=8bit 1=GB2312 2=GBK 3=BIG5
Character 0x03L 0.5 En_Mode
4=SJIS 5=UNICODE
0x000C
Display 0x04H 0.5 X_Dots Number of Dot Matrix in X Direction for Characters
0x04L 0.5 Y_Dots Number of Dot Matrix in Y Direction for Characters

Character data, 8bit code, only valid for high byte


When the coding mode is of 01-04, if the character data is the
0x05 1 Text0
ASCII character, it will display by using pre-loaded fonts sized
0#
Upper left coordinates of rectangular area, with the x-coordinate
0x00 2 (x,y) s
high byte as the judgment conditions
Rectangular Right bottom coordinates of rectangular area
0x000D 0x02 2 (x,y)e
Area XOR
Color of Rectangular Area XOR, 0xFFFF for inverse color
0x04 1 Color
operation
Upper left coordinates of rectangular area for bitmap display,
0x00 2 (x,y)s
with the x-coordinate high byte as the judgment conditions
0x02 1 X_Dots Number of Dot Matrix in X Direction for Bitmap
0x03 1 Y_Dots Number of Dot Matrix in Y Direction for Bitmap
Bi-color 0x04 1 Color1 Display Color Corresponding to "1"bit
0x000E Bitmap
Display Color Corresponding to "0"bit: when setting color0 and
Display
0x05 1 Color0 color1 in the same way, it means that it is unnecessary to display
"0"bit, skipping it instead
Display data, MSB mode; to help a user to read and write data,
0x06 N Data_Pack each line of data must be aligned to one word, that is, the data in
the next line always starts from a new data word
Upper left coordinates of rectangular area for bitmap display,
0x00 2 (x,y)s
with the x-coordinate high byte as the judgment conditions
Number of Dot Matrix in X Limited to the variable space
0x02 1 X_Dots
Direction for Bitmap size, the Max. display bitmap is
Bitmap
0x000F Number of Dot Matrix in Y 196*146 (4:3) or 226*126
Display
0x03 1 Y_Dots
Direction for Bitmap (16:9)

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

upper left coordinates on the the image area that is zoomed

screen after zooming in for in, it must be aligned to the


0x00 2 (x,y)
one time, with the X high right bottom. Greater zoom-in
The area is byte as the judgment factor can be achieved by
zoomed in
for one conditions nesting and zoom-in.
0x0010
time and Upper left coordinates of
pasted to
display 0x02 2 (x,y)s rectangular domain to be

zoomed in

Upper right coordinates of


0x04 2 (x,y)e rectangular domain to be

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

Coding Mode: the coding


mode of fonts used for
displayed text, fonts sized 0 is
used for displaying the ASC
Code as default Unit_Data_Num: the data
length of each cell is displayed
in a list (unit: word)
Direct Variable Display: the 0x01-0xFF: the data lengths
content of a table can be saved by all cells are the same.
displayed in texts or variables. When the value is set as 0, it
Refer to Remark 【 4 】 to
means that the position to save
determine the format of
variables to be displayed when the data in tables will be
displaying variables. extended (Column No./2)
upward to take the whole word
address.
For example, the variable
FONT0 ID: the fonts position address is 0x1000,
of the ASC Code. Fonts sized TAB_X_Num=0x07, then:
0 includes all the ASCII
0x1000-0x1003 saves the
characters for 4*8-64*128 dot
lengths of data in tables of
matrix.
Columns 0-6 successively, with
the low byte of 1003 not used.
0x1004 address starts to save
the contents of a table
FONT1 ID: as fonts for text
display in a table, the coding
mode of the fonts must be the Number of Dot Matrixes in X
same to that of text display Direction/Number of Dot
Matrixes in Y Direction: the dot
matrix size of fonts sized 58

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.

6.4.4 Graphic Display of 2D QR Code (0x25)

Unit_Pixels: the size of a


physical pixel dot matrix
occupied by each 2D code
cell pixel. Set
Unit_Pixels=4, each cell
pixel will be in a 4*4 dot
matrix size.

Add: B605,Building 1#, Zhubang 2000, BaLiZhuang West 100#, Chaoyang District, Beijing, China
Web:www.en.stone-hmi.comTel:+86-10-84351669
55 / 55

S-ar putea să vă placă și