55
1 / 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.

User Guide to Intelligent TFT LCD Module 4.1 Development Kit · The Intelligent TFT LCD Module 4.1 project resources include images, fonts, icon libraries and audio files. The resource

  • Upload
    others

  • View
    0

  • Download
    0

Embed Size (px)

Citation preview

Page 1: User Guide to Intelligent TFT LCD Module 4.1 Development Kit · The Intelligent TFT LCD Module 4.1 project resources include images, fonts, icon libraries and audio files. The resource

1 / 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.

Page 2: User Guide to Intelligent TFT LCD Module 4.1 Development Kit · The Intelligent TFT LCD Module 4.1 project resources include images, fonts, icon libraries and audio files. The resource

Add: Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China

Web:www.stone-hmi.com Tel:+86-10-84351669 2 / 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

Page 3: User Guide to Intelligent TFT LCD Module 4.1 Development Kit · The Intelligent TFT LCD Module 4.1 project resources include images, fonts, icon libraries and audio files. The resource

Add: Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China

Web:www.stone-hmi.com Tel:+86-10-84351669 3 / 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

Page 4: User Guide to Intelligent TFT LCD Module 4.1 Development Kit · The Intelligent TFT LCD Module 4.1 project resources include images, fonts, icon libraries and audio files. The resource

Add: Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China

Web:www.stone-hmi.com Tel:+86-10-84351669 4 / 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.

Page 5: User Guide to Intelligent TFT LCD Module 4.1 Development Kit · The Intelligent TFT LCD Module 4.1 project resources include images, fonts, icon libraries and audio files. The resource

Add: Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China

Web:www.stone-hmi.com Tel:+86-10-84351669 5 / 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.

Page 6: User Guide to Intelligent TFT LCD Module 4.1 Development Kit · The Intelligent TFT LCD Module 4.1 project resources include images, fonts, icon libraries and audio files. The resource

Add: Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China

Web:www.stone-hmi.com Tel:+86-10-84351669 6 / 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.

Page 7: User Guide to Intelligent TFT LCD Module 4.1 Development Kit · The Intelligent TFT LCD Module 4.1 project resources include images, fonts, icon libraries and audio files. The resource

Add: Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China

Web:www.stone-hmi.com Tel:+86-10-84351669 7 / 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

Page 8: User Guide to Intelligent TFT LCD Module 4.1 Development Kit · The Intelligent TFT LCD Module 4.1 project resources include images, fonts, icon libraries and audio files. The resource

Add: Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China

Web:www.stone-hmi.com Tel:+86-10-84351669 8 / 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

Page 9: User Guide to Intelligent TFT LCD Module 4.1 Development Kit · The Intelligent TFT LCD Module 4.1 project resources include images, fonts, icon libraries and audio files. The resource

Add: Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China

Web:www.stone-hmi.com Tel:+86-10-84351669 9 / 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.

Page 10: User Guide to Intelligent TFT LCD Module 4.1 Development Kit · The Intelligent TFT LCD Module 4.1 project resources include images, fonts, icon libraries and audio files. The resource

Add: Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China

Web:www.stone-hmi.com Tel:+86-10-84351669 10 / 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.

Page 11: User Guide to Intelligent TFT LCD Module 4.1 Development Kit · The Intelligent TFT LCD Module 4.1 project resources include images, fonts, icon libraries and audio files. The resource

Add: Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China

Web:www.stone-hmi.com Tel:+86-10-84351669 11 / 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.

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

The serial communication must

be configured.

Page 12: User Guide to Intelligent TFT LCD Module 4.1 Development Kit · The Intelligent TFT LCD Module 4.1 project resources include images, fonts, icon libraries and audio files. The resource

Add: Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China

Web:www.stone-hmi.com Tel:+86-10-84351669 12 / 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.

Page 13: User Guide to Intelligent TFT LCD Module 4.1 Development Kit · The Intelligent TFT LCD Module 4.1 project resources include images, fonts, icon libraries and audio files. The resource

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

U Flash Disk

Interface

User Serial

External

Speaker

Page 14: User Guide to Intelligent TFT LCD Module 4.1 Development Kit · The Intelligent TFT LCD Module 4.1 project resources include images, fonts, icon libraries and audio files. The resource

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

Page 15: User Guide to Intelligent TFT LCD Module 4.1 Development Kit · The Intelligent TFT LCD Module 4.1 project resources include images, fonts, icon libraries and audio files. The resource

Add: Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China

Web:www.stone-hmi.com Tel:+86-10-84351669 15 / 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.

Page 16: User Guide to Intelligent TFT LCD Module 4.1 Development Kit · The Intelligent TFT LCD Module 4.1 project resources include images, fonts, icon libraries and audio files. The resource

Add: Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China

Web:www.stone-hmi.com Tel:+86-10-84351669 16 / 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.

Page 17: User Guide to Intelligent TFT LCD Module 4.1 Development Kit · The Intelligent TFT LCD Module 4.1 project resources include images, fonts, icon libraries and audio files. The resource

Add: Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China

Web:www.stone-hmi.com Tel:+86-10-84351669 17 / 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.

Page 18: User Guide to Intelligent TFT LCD Module 4.1 Development Kit · The Intelligent TFT LCD Module 4.1 project resources include images, fonts, icon libraries and audio files. The resource

Add: Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China

Web:www.stone-hmi.com Tel:+86-10-84351669 18 / 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

Classification Description

Function

Realization

Remarks

Touchscreen

Function

Basic Touchscreen √

Data Input √

Popup Menu √

Increment Regulation √

Drag to regulate √

RTC Settings ○ It can simulate to set the RTC variables, with the

parameters set invalid

Press to Return √

Text Input √

Page 19: User Guide to Intelligent TFT LCD Module 4.1 Development Kit · The Intelligent TFT LCD Module 4.1 project resources include images, fonts, icon libraries and audio files. The resource

Add: Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China

Web:www.stone-hmi.com Tel:+86-10-84351669 19 / 55

GBK Input ○ It can display the position of each part schematically,

with all the input invalid

HW Parameter Configuration ╳

Display Function

Variable Icon √

Animation Icon √

Slider Scale Indication √

Wordart Display √

Image & Animation Display √

Bit Variable Icon Display √

Data Variable Display √

Text Display ○ It can display the ASCII Code rather than Chinese

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

Function ╳

The initial value for variables is the power-up initial

value, with no configuration files read.

Serial Commands

0x80 Command ╳

0x81 Command ╳

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.

Page 20: User Guide to Intelligent TFT LCD Module 4.1 Development Kit · The Intelligent TFT LCD Module 4.1 project resources include images, fonts, icon libraries and audio files. The resource

Add: Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China

Web:www.stone-hmi.com Tel:+86-10-84351669 20 / 55

5 Instruction to Touchscreen/Keying

5.1 Table of Touchscreen/Keying

SN Touchscreen

Key Code Function Description

01 00 Variable Data Input Input various data including integer, fixed point decimal and so on to

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.

03 02 Increment Regulation

Click the button, conduct +/- operation to a specified variable, which can set

step length and upper/lower limit.

Set cycle control ranging 0-1 to realize the check box function of the column

04 03 Drag to regulate Drag the slider to realize the input of variable data, which can set the scale

range.

05 04 RTC Settings

The touch keyboard of the Intelligent TFT LCD Module screen sets the RTC

components, needing to input solar calendar year, month, day, hour, minute,

second completely

06 05 Key Value Return Click the button, return the key value directly go the variable, supporting bit

variable return

07 06 Text Input

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,

traditional Chinese and Pinyin;

Modify the fonts and the font sized 0#, support the 8-bit code text input of

similar ASCII characters;

08 07_00 Write a Memory to

Variable Space

Provide a way for the touchscreen to rewrite the memory space, which can

control HW indirectly.

For instance, read the content of a backlight register to the variable, write it

back after regulating the variable to control the backlight brightness. 09 07_01

Write Variable Space to

Register

11 07_05

Convert an image into a

monochrome bitmap

(horizontal)

Mainly print the content displayed in the current screen

Page 21: User Guide to Intelligent TFT LCD Module 4.1 Development Kit · The Intelligent TFT LCD Module 4.1 project resources include images, fonts, icon libraries and audio files. The resource

Add: Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China

Web:www.stone-hmi.com Tel:+86-10-84351669 21 / 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.

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

Keyboard Area: the

coordinate area in the

figure that is for the

keyboard used for input

Display Position: the

display position is the

upper left coordinates

displayed when the

keyboard pops up

Area Coverage Settings: the

upper left coordinates of the

touchscreen area on the

LCD, as well as the height

and width of the

touchscreen area.

Key Code: the

corresponding key code

value when externally

connecting a physical

keyboard via the keyboard

interface

Audio File: it requires

playing the audio file when

touching the key

Page 22: User Guide to Intelligent TFT LCD Module 4.1 Development Kit · The Intelligent TFT LCD Module 4.1 project resources include images, fonts, icon libraries and audio files. The resource

Add: Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China

Web:www.stone-hmi.com Tel:+86-10-84351669 22 / 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

Page 23: User Guide to Intelligent TFT LCD Module 4.1 Development Kit · The Intelligent TFT LCD Module 4.1 project resources include images, fonts, icon libraries and audio files. The resource

Add: Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China

Web:www.stone-hmi.com Tel:+86-10-84351669 23 / 55

5.3 Pop-up Menu Selection (0x01)

Variable Mode: after

selecting a certain

menu option in the

menu bar, a user can

modify such a variable

value by means of

write word (two bytes).

The user can also

choose to write the

high byte, low byte or

a certain bit from the

drop-down box.

Local Page: the page

in which the user

menu stays

Menu Area: the upper left

coordinates and the right

bottom coordinates for the

content area of the menu

Display Position: the

upper left coordinates

displayed by the

pop-up menu in the

current page

Page 24: User Guide to Intelligent TFT LCD Module 4.1 Development Kit · The Intelligent TFT LCD Module 4.1 project resources include images, fonts, icon libraries and audio files. The resource

Add: Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China

Web:www.stone-hmi.com Tel:+86-10-84351669 24 / 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.

Page 25: User Guide to Intelligent TFT LCD Module 4.1 Development Kit · The Intelligent TFT LCD Module 4.1 project resources include images, fonts, icon libraries and audio files. The resource

Add: Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China

Web:www.stone-hmi.com Tel:+86-10-84351669 25 / 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).

Regulation Mode: a user

modifies such a variable

value by means of write

word (two bytes) when

clicking the Increment

Regulation button. The user

can also choose to write the

high byte, low byte or a

certain bit from the

drop-down box.

Regulation Mode: press

the Increment Regulation

button to increase a

regulation step value for

the variable. It can choose

to decrease via the

drop-down box for the

option.

Overdue Processing Mode:

when the variable value

increases or decreases to a

set upper or lower limit, it

will stop increasing or

decreasing by keeping

pressing the button. The

user may also select cycle

control.

Regulation Step: the increased

or decreased value that is

obtained when pressing the

Increment Regulation button

once

Lower Limit: the lower

limit value for the variable

that is increased or

decreased by Increment

Regulation

Page 26: User Guide to Intelligent TFT LCD Module 4.1 Development Kit · The Intelligent TFT LCD Module 4.1 project resources include images, fonts, icon libraries and audio files. The resource

Add: Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China

Web:www.stone-hmi.com Tel:+86-10-84351669 26 / 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)

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

Data Return Format: a user

modifies such a variable

value by means of write

word (two bytes) when

clicking the drag-to-regulate

button. The user can also

choose to write the high

byte or low byte from the

drop-down box.

Return Value

Corresponding to Start

Position: the variable value

that is corresponding to the

start position of the area

dragged

Page 27: User Guide to Intelligent TFT LCD Module 4.1 Development Kit · The Intelligent TFT LCD Module 4.1 project resources include images, fonts, icon libraries and audio files. The resource

Add: Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China

Web:www.stone-hmi.com Tel:+86-10-84351669 27 / 55

Drag-to-regulate does not support key control.

5.6RTC Settings (0x04)

The design approach and the variable data input keyboard are not in the current interface.

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

Page 28: User Guide to Intelligent TFT LCD Module 4.1 Development Kit · The Intelligent TFT LCD Module 4.1 project resources include images, fonts, icon libraries and audio files. The resource

Add: Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China

Web:www.stone-hmi.com Tel:+86-10-84351669 28 / 55

RTC Setting Keyboard and Data Variable Input are same in Property

5.7 Key Return Value (0x05)

5.8 Text Input (0x06)

5.8.1 GBK Text Input

Notes:

Key Value: press the

"Key Value Return" to

write the key value

0xF800 into the variable

with an address of 0x

4003

Regulation Mode: a user

modifies such a variable

value by means of write

word (two bytes) when

pressing the "Key Value

Return" button. The user

can also choose to write the

high byte, low byte or a

certain bit from the

drop-down box.

Page 29: User Guide to Intelligent TFT LCD Module 4.1 Development Kit · The Intelligent TFT LCD Module 4.1 project resources include images, fonts, icon libraries and audio files. The resource

Add: Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China

Web:www.stone-hmi.com Tel:+86-10-84351669 29 / 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.

Text Length: the text length a user

wants to input. When saving a text

to a specified address, 0xFFFF is

added automatically at the end of

the text as the end mark. 0xFFFF is

also added to the data is uploaded to

the serial after being input. Max.

Variable space that may actually be

taken for the input text variable =

V_Len_Max+1.

Input Process Fonts: input Pinyin

and display the fonts that are

corresponding to the Chinese

characters

Display Fonts: display the fonts

used after inputting a Chinese

character

Pinyin Prompt Position: when

inputting Pinyin, all Chinese

characters applicable to it are

displayed to a user for choice.

Pinyin is displayed on the left of the

Chinese characters.

Pinyin Display Position: the

coordinate position displayed

in Pinyin during input

Local Page: the page in which the

keyboard used to input stays

Keyboard Area: the coordinate

area in the figure that is for the

keyboard used for input

Display Position: the upper

left coordinates displayed

when the keyboard pops up

Input Mode: a user can

choose to input again or

modify the text.

Input again: the initially

displayed text content after

being input will be covered

by the one that is input again.

Modify Text: it can modify

the text based on the input

content

Input Status Return: it means

to return to the status when

being checked. See Remark

【1】for the status

information.

Input Display Position: the

area displayed during input

Page 30: User Guide to Intelligent TFT LCD Module 4.1 Development Kit · The Intelligent TFT LCD Module 4.1 project resources include images, fonts, icon libraries and audio files. The resource

Add: Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China

Web:www.stone-hmi.com Tel:+86-10-84351669 30 / 55

5.8.2 ASCII Text Input

Page 31: User Guide to Intelligent TFT LCD Module 4.1 Development Kit · The Intelligent TFT LCD Module 4.1 project resources include images, fonts, icon libraries and audio files. The resource

Add: Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China

Web:www.stone-hmi.com Tel:+86-10-84351669 31 / 55

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.

Local Page: the page in which

the keyboard used to input stays

Keyboard Area: the

coordinate area in the figure

that is for the keyboard used

for input

Display Position: the upper left

coordinates displayed when the

keyboard pops up

Input Display Position: the

area displayed when

inputting ASCII Code, the

upper left coordinates in the

area starts to display

Font Position: the fonts used

during input. Fonts sized 0.

Fonts sized 0 that is

pre-loaded by Stone

includes all the ASCII

characters for 4*8-64*128

dot matrix.

Text Length: the text

length a user wants to

input. When saving a text

to a specified address,

0xFFFF is added

automatically at the end of

the text as the end

mark.0xFFFF is also added

to the data is uploaded to

the serial after being input.

Max. Variable space that

may actually be taken for

the input text variable =

V_Len_Max+1.

录入的文本变量实际可能

占 用 最 大 变 量 空 间 =

V_Len_Max+1

Input Mode: a user can choose

to input again or modify the

text.

Input again: the initially

displayed text content after

being input will be covered by

the one that is input again.

Modify Text: it can modify the

text based on the input content

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

checked.

Page 32: User Guide to Intelligent TFT LCD Module 4.1 Development Kit · The Intelligent TFT LCD Module 4.1 project resources include images, fonts, icon libraries and audio files. The resource

Add: Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China

Web:www.stone-hmi.com Tel:+86-10-84351669 32 / 55

Page 33: User Guide to Intelligent TFT LCD Module 4.1 Development Kit · The Intelligent TFT LCD Module 4.1 project resources include images, fonts, icon libraries and audio files. The resource

Add: Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China

Web:www.stone-hmi.com Tel:+86-10-84351669 33 / 55

5.9 HW Parameter Configuration (0x07)

Operation Mode List

Mode Data_Pack Instruction to Data_Pack Function

0x00 None None

Load the data in the register variable area to the

0x6F00-0x6FFF variable memory space (occupying the low

byte)

The Intelligent TFT LCD Module defaults to load the data in

the register variable area to 0x6F00-0x6FFF when powered up

0x01 None None

Load the data in the 0x6F00-0x6FFF variable memory space

(occupying the low byte) to the register variable area; rewrite

the R1-R3,R5-RASD/SDHC interface configuration variables

accordingly

0x03

*VP Data Pointer Send the Tx_Len byte length data starting from the *VP

pointer position to the user serial.

Tx_Len is a word variable, with a length ranging from 0x0001

to 0xFFFF. Tx_LEN Data length to be sent.

0x05

Tran_Area

Coordinates of an area to be

converted:

Upper left, right bottom

Convert the content in a specified area into a monochrome

bitmap (horizontal extraction, bitmap format print), save it to

the data memory pointed by the VP pointer.

1. The zone width (Xe-Xs+1) must be multiples of 16;

2. The saved data format of the *VP pointer is as follows:

*VP: status bit, set as 0x5555 after being processed;

*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

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.

*VP

First address of the buffer

area to save the converted

bitmap data

Frame_End Frame end (two bytes)

Mode: the HW parameter

settings can provide

multiple operation modes, 1

stands for Mode 0x01.

Refer to the operation mode

list for specific functions.

Page 34: User Guide to Intelligent TFT LCD Module 4.1 Development Kit · The Intelligent TFT LCD Module 4.1 project resources include images, fonts, icon libraries and audio files. The resource

Add: Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China

Web:www.stone-hmi.com Tel:+86-10-84351669 34 / 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.

Page 35: User Guide to Intelligent TFT LCD Module 4.1 Development Kit · The Intelligent TFT LCD Module 4.1 project resources include images, fonts, icon libraries and audio files. The resource

Add: Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China

Web:www.stone-hmi.com Tel:+86-10-84351669 35 / 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.

When the touchscreen is pressed

for the first time, data return mode.

Refer to Remark【1】for the mode

information.

When the touchscreen is

pressed for the first time, read

data address

When the touchscreen is

pressed for the first time, write

data address

Returned data length (number of

bytes), when the press mode is

0x01, the length must be even

When the touchscreen is

pressed for the first time and

continuously pressed, data

return mode

When released the touchscreen,

data return mode

Page 36: User Guide to Intelligent TFT LCD Module 4.1 Development Kit · The Intelligent TFT LCD Module 4.1 project resources include images, fonts, icon libraries and audio files. The resource

Add: Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China

Web:www.stone-hmi.com Tel:+86-10-84351669 36 / 55

5.11 Rotate-to-regulate

Rotate-to-regulate does not support key control.

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

Regulate the data format:

0x00=regulate word address

0x01=regulate the high byte address

of the word address (single-byte

unsigned number)

0x02=regulate the low byte address

of the word address (single-byte

unsigned number)

Regulate the Circle center

coordinates of the area

Regulate the diameter of

the area

Regulate the outer

diameter of the area

Regulate the start angle of

the area 0-719, in 0.5o

Return value corresponding to the start

angle, integer

Return value corresponding to the end

angle, integer

Regulate the end angle of

the area 1-720, in 0.5o

Page 37: User Guide to Intelligent TFT LCD Module 4.1 Development Kit · The Intelligent TFT LCD Module 4.1 project resources include images, fonts, icon libraries and audio files. The resource

Add: Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China

Web:www.stone-hmi.com Tel:+86-10-84351669 37 / 55

6 Instruction to Variable Display

6.1 Table of Variable Display

SN Function

Code Function Description

01 00 Variable Icon Display

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

automatically. It is generally used for precision dashboard and progress bar

display.

02 01 Animation Icon

Display

A fixed-value data variable can correspond to three different icon indication

statuses: Do not Display, Display a Fixed Icon, and Display an Animation Icon.

It is generally used for variable alarm display.

03 02 Slider Scale Display

The variation range of a data variable can correspond to the change in the display

position of an icon (slider).

It is generally used for liquid level, dial and progress bar display.

04 03 Wordart Variable

Display It can use an ICON icon to display variable data instead of fonts.

05 04 Image & Animation

Display

It can play a group of full-screen images at a specified speed. It is generally used

for startup interface or screensaver.

06 05 Bit Variable Icon

Display

It can make the 0\1 status for each bit of a data variable correspond to two of 8

different display schemes,

Use an ICON icon (or icon animation) to display accordingly.

It is generally used for on-off status display, for instance, run (animation)/stop

(static icon) of an air blower.

07 06 Data Variable Display It can display a data variable in Arabic numerals with a specified font and size

according to the specified format (integer, decimal, whether with a unit or not).

08 10 Text Display It can display a character string in the display area of a specified text box

according to the specified format (depends on the selected fonts).

9 11 Text RTC Display It can display the solar calendar RTC in form of a text according to the format

edited by a user.

Page 38: User Guide to Intelligent TFT LCD Module 4.1 Development Kit · The Intelligent TFT LCD Module 4.1 project resources include images, fonts, icon libraries and audio files. The resource

Add: Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China

Web:www.stone-hmi.com Tel:+86-10-84351669 38 / 55

10 12_00 HEX Data Display

It can display variable data by separating the ASCII Code as specified by a user

based on the byte HEX mode.

It is generally used for timing display, for instance, to display 1234 as 12:34.

11 12_01 Real-time Curve

(Tendency Chart)

By writing the data in the curve-based buffer in combination of the 0x84 serial, it

can match and display the real-time curve automatically (tendency chart). It can

specify display area, coordinates of center pin, with the zoom control

(zoom-in/zoom-out) controllable.

12 13 HEX Data Display It can display variable data by separating the ASCII Code as specified by a user

based on the byte HEX mode. It is generally used for timing display, for

instance, to display 1234 as 12:34

13 20 Real-time Curve

(Tendency Chart)

By writing the data in the curve-based buffer in combination of the 0x84 serial, it

can match and display the real-time curve automatically (tendency chart). It can

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.

17 21_04 Plot_Rectangle Filling It can fill a specified rectangular area, with the filling color, position and size

controllable.

28 21_05 Plot_Plotting a Circle It can display a full radius, with the color, position and size controllable.

19 21_06 Plot_Image Cutting &

Pasting

It can cut an area from a specified image and paste it to the currently displayed

page.

20 21_07 Plot_ICON Icon

Display It can display the ICON icon, with the icon libraries optional

21 21_08 Plot_Closed Area

Filling

It can fill a closed area, with the coordinates of the seed point and the filling

color controllable.

22 21_09 Plot_Frequency

Spectrum Display

It can display a frequency spectrum (vertical line) according to the variable data,

with the line color and position controllable.

23 21_0A Plot_Line Segment

Display

It can connection a line segment according to the variable data, with the endpoint

and the color controllable

24 21_0B Plot_Circular Arc

Display

It can display a circular arc, with the radius, color and start/end angle

controllable.

25 21_0C Plot_Character

Display It can realize single character display according to the variable data.

26 21_0D Plot_Rectangular

Area XOR

It can conduct XOR operation to the specified bitmap data in a rectangular area

in a specified color, generally used for highlighted display.

27 21_0E

Plot_Bi-color Bitmap

Display

It can take the variable memory data as the bi-color bitmap data, with the color to

which 0/1 corresponding specifiable, generally used for customized cursor

28 21_0F Plot_ Bitmap Display It can display the data bit 65K color bitmap data for a variable memory, generally

used for real-time icon (photo) download display.

29 21_10 Plot_Area Zoom-in &

Pasting

It can zoom in a specified area for 1 time and paste it to a specified position,

generally used to support the commend in terms of realizing real-time photo

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)

Page 39: User Guide to Intelligent TFT LCD Module 4.1 Development Kit · The Intelligent TFT LCD Module 4.1 project resources include images, fonts, icon libraries and audio files. The resource

Add: Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China

Web:www.stone-hmi.com Tel:+86-10-84351669 39 / 55

6.2.2 Animation Icon Display (0x01)

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)

Icon File: a user generates an

icon library file via the host

computer software according to

the application demand

Upper Limit for Variables: the

upper limit for the variable

address 0060

Corresponding Icon: refers to

the corresponding icon when

turning the variable value into

the upper limit

In case of multiple icons, the

LCD terminal will share out

the values ranging from the

lower to the upper limits

equally and automatically,

corresponding to the icons

ICON Display Mode: icon

display can be transparent or

with a background

End Icon ID: playback after

an animation is played in

sequence to the end icon

Stop Icon ID: the icon

displayed when the value of

the variable is 1, which

means to stop playing an

animation

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

computer software

Stop Value: stop playing an

icon animation when the

value of the variable

address 0300 is 1

Start Value: start to play an

icon animation when the

value of the variable

address 0300 is 1

Page 40: User Guide to Intelligent TFT LCD Module 4.1 Development Kit · The Intelligent TFT LCD Module 4.1 project resources include images, fonts, icon libraries and audio files. The resource

Add: Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China

Web:www.stone-hmi.com Tel:+86-10-84351669 40 / 55

6.2.4 Wordart Variable Display (0x03)

Scale Interval of Start

Variable: the corresponding

value displayed by the

slider at the start scale

Scale Interval of End

Variable: the corresponding

value displayed by the

slider at the end scale

Scale Mode: includes

horizontal and vertical scale

modes. When dragging

horizontally, choose the

horizontal scale

Icon File: a user generates

an icon library file via the

host computer software

according to the application

demand

ICON Display Mode: as a

display mode for the scale

indication icon, it can

choose transparent display

or display with a

background

Shift Forward offset of

(X)-Coordinates: the shift

forward offset of X-coordinates

displayed by the scale

indication icon

VP Mode: return data type

when the slider scale

indicates a change in the

variable value. Point to an

Integer Variable: a user can

also choose to point the

high byte data or the low

byte data of an integer

variable

Page 41: User Guide to Intelligent TFT LCD Module 4.1 Development Kit · The Intelligent TFT LCD Module 4.1 project resources include images, fonts, icon libraries and audio files. The resource

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.5 Image & Animation Display (0x04)

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.

Start Image Position:

refers to the image

number when starting to

play the image animation

Icon File: the icon

library file that is

generated by a user for

Wordart variables via

the host computer

software

Start Icon: when the value of

Variable 0050 is 0, the icon

representing 0 in the

corresponding Wordart icon

library. The sequence of the

Wordart icons must be:

0123456789-.

Variable Type: refers to the

data type of data variables

that are represented by the

Wordart icon

Alignment Mode: the way

to align the Wordart icon in

the display box when being

displayed

End Image Position:

refers to the image

number when stopping

playing the image

animation. It can realize

loop playback by making

an image animate display

control for the end

image.

Display Time Interval:

the delay time in

switching to another

image when playing the

image animation

Page 42: User Guide to Intelligent TFT LCD Module 4.1 Development Kit · The Intelligent TFT LCD Module 4.1 project resources include images, fonts, icon libraries and audio files. The resource

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.6 Icon Rotation (0x05)

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

Icon File: the icon library

file that is generated by a

user for icon rotation via the

host computer software.

Icon ID: image numbering

for image rotation.

Icon Rotation Center: the center

coordinates of a rotating icon.

Screen Rotation Center: the

upper left coordinates of the icon

rotation display box; the icon

will rotate around the center.

Variable Value for Start

Rotation Angle: the value for

Variable Address 0000 has a

corresponding relationship with

the rotation angle. Here it

means that the corresponding

value for the rotation angle is 0,

that is, when the value of

Address 0000 is 0, the icon will

rotate to the start angle.

VP_Mode: the return data

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.

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

an actual coordinate system.

Page 43: User Guide to Intelligent TFT LCD Module 4.1 Development Kit · The Intelligent TFT LCD Module 4.1 project resources include images, fonts, icon libraries and audio files. The resource

Add: Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China

Web:www.stone-hmi.com Tel:+86-10-84351669 43 / 55

6.2.7 Bit Variable Icon Display (0x06)

Definition of the display mode:

Display_Mode Bit value

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

animation

ICON1S

0x06 ICON0S- ICON0E

animation

Do not display

0x07 ICON0S- ICON0E

animation

ICON1S-ICON1E

animation

Act_Bit_Set: the bit value that is

1 represents the bit to be set for

Variable 0040

Display Mode: when the value of

this control bit is 0 or 1, the

display mode for the bit variable

icon. A user can refer to the

definition table for display modes

to set.

Move Mode: the arrangement mode

when displaying multiple bitmap

icons.

0x00 refers to an increase in

X-coordinates, no position is

reserved for a bit that is not

processed as specified by

Act_Bit_Set; 0x01 refers to an

increase in Y-coordinates, no position

is reserved for a bit that is not

processed as specified by

Act_Bit_Set;

0x02 refers to an increase in

X-coordinates, a move spacing

interval is reserved for a bit that is

not processed as specified by

Act_Bit_Set

Move Spacing: the move spacing

arranged according to the move

mode when displaying multiple

bitmap icons

Icon File: the icon library file

displayed as a bit variable icon

that is generated by a user via the

host computer software.

ICON0S: when not displaying

the animation mode, the icon ID

for bit =0

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

bit= 1; when displaying the

animation mode, the start ID

position of the icon animation for

bit= 1

ICON1E: when displaying the

animation mode, the end ID

position of the icon animation for

bit= 1

Page 44: User Guide to Intelligent TFT LCD Module 4.1 Development Kit · The Intelligent TFT LCD Module 4.1 project resources include images, fonts, icon libraries and audio files. The resource

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

selected for ASC Code display.

Font 0 that is pre-loaded by

Stone includes all the ASCII

characters for 4*8-64*128 dot

matrix.

Variable Type: the data type

displayed for data variables,

determining the range for the

maximum value and the

minimum value of data

variables

Integer Places: the number of

integer places displayed by

variables. For decimals

displayed with all variables

based on a fixed point, need

to separate set the integer and

decimal places

Display Unit: display in units

can be allowed when displaying

the data variables

Initial Value: the value

displayed for the variable once

the LCD is powered up

Page 45: User Guide to Intelligent TFT LCD Module 4.1 Development Kit · The Intelligent TFT LCD Module 4.1 project resources include images, fonts, icon libraries and audio files. The resource

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.2 Text Display (0x11)

FONT1 ID: as fonts for

text display, the coding

mode of the fonts must be

the same to that of text

display

Number of Dot Matrixes in

X Direction/Number of

Dot Matrixes in Y

Direction: as the dot matrix

size of fonts for text

display, the number of dot

matrixes in Y direction

must be even.

Horizontal Spacing: display two

texts in Chinese characters or the

pixel interval in horizontal

direction in case of an ASC text.

Coding Mode: the coding

mode of fonts used for

text display.

FONT0 ID: the fonts

position of the ASC

Code. Fonts sized 0

includes all the ASCII

characters for

4*8-64*128 dot matrix.

Page 46: User Guide to Intelligent TFT LCD Module 4.1 Development Kit · The Intelligent TFT LCD Module 4.1 project resources include images, fonts, icon libraries and audio files. The resource

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.3 RTC Display (0x12)

Text RTC Display

Dial Clock Display

Fonts Position: the

position to save the fonts

used for displaying RTC.

Fonts sized 0 includes all

the ASCII characters for

4*8-64*128 dot matrix.

Date Format: the format to

display year, month, hour,

minute, second and week.

Y-M-D H:Q:S 0x00 will be

displayed as 2014-05-01

12:00:00

M-D W H:Q 0x00 will be

displayed as 05-01 WEN

12:00

Clock Icon: ID of the

clock icon, 0xFFFF

means not to display the

clock.

X/Y-coordinates: the

pointer center of the clock

dials at the coordinates

Clock Center Coordinates:

the rotation center position

of the clock icon

Page 47: User Guide to Intelligent TFT LCD Module 4.1 Development Kit · The Intelligent TFT LCD Module 4.1 project resources include images, fonts, icon libraries and audio files. The resource

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.4HEX Variable Display (0x13)

Coded String: used to

provided a display format

required by customers in

combination with time

variables After displaying

each BCD code, an ASCII

character is taken from the

coded string in

sequentially for spaced

display, with the final

display effect of

0000-00-00 00:00:00

Specific code definitions

in the coded string:

0x00: invalid, no

characters displayed, two

BCD codes are joined

0x0D: display with line

break, that is, X=Xs,

Y=Y+Font_X*2

Byte_Num: the number of

bytes occupied by the

displayed HEX variable

Hexadecimal Input: the

coded string is converted

into a hexadecimal one. A

user can click to operate the

software and convert the

hexadecimal code into

2D2D203A3A, with 00

manually prefixed to the

code, the two BCD codes at

the start are joined.

Page 48: User Guide to Intelligent TFT LCD Module 4.1 Development Kit · The Intelligent TFT LCD Module 4.1 project resources include images, fonts, icon libraries and audio files. The resource

Add: Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China

Web:www.stone-hmi.com Tel:+86-10-84351669 48 / 55

6.3.5 Scrolling Text Display (0x14)

Coding Mode: the coding

mode of fonts used for

text display.

FONT0 ID: the fonts

position of the ASC

Code. Fonts sized 0

includes all the ASCII

characters for

4*8-64*128 dot matrix.

FONT1 ID: as fonts for

text display, the coding

mode of the fonts must be

the same to that of text

display

Number of Dot Matrixes in X

Direction/Number of Dot

Matrixes in Y Direction: as the

dot matrix size of fonts for text

display, the number of dot

matrixes in Y direction must

be even.

Rolling Screen Spacing:

the number of pixel dot

matrixes scrolled by text in

each VGUS cycle

Alignment Mode : 0x00=Left

Alignment

0x01=Right Alignment

0x02=Center

The rolling screen stops when the

displayed text contents are not

sufficient for the text box, with the

alignment mode displayed as valid

Page 49: User Guide to Intelligent TFT LCD Module 4.1 Development Kit · The Intelligent TFT LCD Module 4.1 project resources include images, fonts, icon libraries and audio files. The resource

Add: B605,Building 1#, Zhubang 2000, BaLiZhuang West 100#, Chaoyang District, Beijing, China

Web:www.en.stone-hmi.comTel:+86-10-84351669 49 / 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

Y_Center: the position of

curve center

VD_Center: the data value of

curves corresponding to the

center curve.

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

factor.

Data Source Channel:

up to 8 curves can be

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.

Page 50: User Guide to Intelligent TFT LCD Module 4.1 Development Kit · The Intelligent TFT LCD Module 4.1 project resources include images, fonts, icon libraries and audio files. The resource

Add: B605,Building 1#, Zhubang 2000, BaLiZhuang West 100#, Chaoyang District, Beijing, China

Web:www.en.stone-hmi.comTel:+86-10-84351669 50 / 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.

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

VP+1 Data_Pack_Num_Max Max. number of data packets: the connecting line commend (0x0002) is defined as the

number of connecting lines, that is, the number of vertex is -1.

VP+2 DATA_Pack Data

Instruction to plotting commend data packet

Dashed Line/Dot and

Dash Line: the line

type for drafting

Page 51: User Guide to Intelligent TFT LCD Module 4.1 Development Kit · The Intelligent TFT LCD Module 4.1 project resources include images, fonts, icon libraries and audio files. The resource

Add: B605,Building 1#, Zhubang 2000, BaLiZhuang West 100#, Chaoyang District, Beijing, China

Web:www.en.stone-hmi.comTel:+86-10-84351669 51 / 55

Command

(CMD) Operation

Instruction to plotting data packet (both the relative address and the length are in words)

Relative

Address Length Definition Description

0x0001 Set Point 0x00 2

(x,y) Coordinates of a set point, with the x-coordinate high byte as the

judgment conditions

0x02 1 color Set Point Color

0x0002 Endpoint

Line

0x00 1 color Line Color

0x01 2 (x,y) 0 Coordinates of line vertex 0, with the x-coordinate high byte as

the judgment conditions

0x03 2 (x,y) 1 Coordinates of line vertex 1, with the x-coordinate high byte as

the judgment conditions

0x01+2*n 2 (x,y) n Coordinates of line vertex n, with the x-coordinate high byte as

the judgment conditions

0x0003 Rectangle

0x00 2 (x,y) s Upper left coordinates of rectangular box, with the x-coordinate

high byte as the judgment conditions

0x02 2 (x,y) e Right bottom coordinates of rectangular box

0x04 1 color Rectangle Color

0x0004 Rectangle

Filling

0x00 2 (x,y) s Upper left coordinates of rectangular domain, with the

X-coordinate high byte as the judgment conditions

0x02 2 (x,y) e Upper right coordinates of rectangular domain

0x04 1 color Filling color of rectangular domain

0x0005 Full Radius

Display

0x00 2 (x,y) Coordinates of center of circle, with the x-coordinate high byte

as the judgment conditions

0x02 1 Rad Radius

0x03 1 color Circle Color

0x0006

Cutting &

Pasting of

Image Area

0x00 2 Pic_ID ID of the page in where the cut image area is located, with the

high byte as the judgment conditions

0x02 2 (x,y) s Upper left corner of the cut image area

0x04 2 (x,y) e Right bottom of the cut image area

0x06 2 (x,y)

Paste the cut image area to the coordinate position of the current

page, upper left coordinates

0x0007

ICON

Icon

Display

0x00 2 (x,y) Display the coordinates position, with the x-coordinate high byte

as the judgment conditions

0x02 1 ICON_ID

Icon ID, with the icon library position specified by the command

high byte

The icon is fixed as not to display the background color

0x008

Area

Filling 0x00 2 (x,y)

Coordinates of a seed point, with the x-coordinate high byte as

the judgment conditions

0x02 1 color Filling Color

0x0009

Frequency

Spectrum

Display

(Vertical

Line)

0x00 1 Color0

Apply Color0 to (X0,Y0s)(X0,Y0e), with the X0 high byte as

the judgment conditions 0x01 3 X0,Y0s,Y0e

0x000A

Line

Segment

Display

0x00 1 Color Apply Color to (Xs,Ys) (Xe,Ye), with the Xs high byte as the

judgment conditions 0x01 2 (Xs,Ys)

0x03 2 (Xe,Ye)

0x000B Circular 0x00 1 Color0 Circular Arc Display

Page 52: User Guide to Intelligent TFT LCD Module 4.1 Development Kit · The Intelligent TFT LCD Module 4.1 project resources include images, fonts, icon libraries and audio files. The resource

Add: B605,Building 1#, Zhubang 2000, BaLiZhuang West 100#, Chaoyang District, Beijing, China

Web:www.en.stone-hmi.comTel:+86-10-84351669 52 / 55

Arc

Display

0x01 2 (X,Y) 0 Coordinates of center of circle (X, Y), with the x-coordinate

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

0x000C Character

Display

0x00 1 Color0 Character Display Color

0x01 2 (X,Y) 0 Character display position, upper left coordinates of character,

with the X-coordinate high byte as the judgment conditions

0x03H 0.5 Lib_ID Fonts Position

0x03L 0.5 En_Mode Character coding mode: 0=8bit 1=GB2312 2=GBK 3=BIG5

4=SJIS 5=UNICODE

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

0x05 1 Text0

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

When the coding mode is of 01-04, if the character data is the

ASCII character, it will display by using pre-loaded fonts sized

0#

0x000D Rectangular

Area XOR

0x00 2 (x,y) s Upper left coordinates of rectangular area, with the x-coordinate

high byte as the judgment conditions

0x02 2 (x,y)e Right bottom coordinates of rectangular area

0x04 1 Color Color of Rectangular Area XOR, 0xFFFF for inverse color

operation

0x000E

Bi-color

Bitmap

Display

0x00 2 (x,y)s Upper left coordinates of rectangular area for bitmap display,

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

0x04 1 Color1 Display Color Corresponding to "1"bit

0x05 1 Color0

Display Color Corresponding to "0"bit: when setting color0 and

color1 in the same way, it means that it is unnecessary to display

"0"bit, skipping it instead

0x06 N Data_Pack

Display data, MSB mode; to help a user to read and write data,

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

0x000F Bitmap

Display

0x00 2 (x,y)s Upper left coordinates of rectangular area for bitmap display,

with the x-coordinate high byte as the judgment conditions

0x02 1 X_Dots Number of Dot Matrix in X

Direction for Bitmap

Limited to the variable space

size, the Max. display bitmap is

196*146 (4:3) or 226*126

(16:9) 0x03 1 Y_Dots

Number of Dot Matrix in Y

Direction for Bitmap

0x04 N Data_Pack Display data, one word for each pixel (MSB, 565RGB data

format)

Page 53: User Guide to Intelligent TFT LCD Module 4.1 Development Kit · The Intelligent TFT LCD Module 4.1 project resources include images, fonts, icon libraries and audio files. The resource

Add: B605,Building 1#, Zhubang 2000, BaLiZhuang West 100#, Chaoyang District, Beijing, China

Web:www.en.stone-hmi.comTel:+86-10-84351669 53 / 55

0x0010

The area is

zoomed in

for one

time and

pasted to

display

0x00 2 (x,y)

The image is pasted to the

upper left coordinates on the

screen after zooming in for

one time, with the X high

byte as the judgment

conditions

After the zoomed-in area is in

the image area that is zoomed

in, it must be aligned to the

right bottom. Greater zoom-in

factor can be achieved by

nesting and zoom-in.

0x02 2 (x,y)s

Upper left coordinates of

rectangular domain to be

zoomed in

0x04 2 (x,y)e

Upper right coordinates of

rectangular domain to be

zoomed in

Page 54: User Guide to Intelligent TFT LCD Module 4.1 Development Kit · The Intelligent TFT LCD Module 4.1 project resources include images, fonts, icon libraries and audio files. The resource

Add: B605,Building 1#, Zhubang 2000, BaLiZhuang West 100#, Chaoyang District, Beijing, China

Web:www.en.stone-hmi.comTel:+86-10-84351669 54 / 55

6.4.3 List Display (0x22)

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

Coding Mode: the coding

mode of fonts used for

displayed text, fonts sized 0 is

used for displaying the ASC

Code as default

Direct Variable Display: the

content of a table can be

displayed in texts or variables.

Refer to Remark 【 4 】 to

determine the format of

variables to be displayed when

displaying variables.

Number of Columns/Number

of Lines: display to number of

columns and lines of a table

Unit_Data_Num: the data

length of each cell is displayed

in a list (unit: word)

0x01-0xFF: the data lengths

saved by all cells are the same.

When the value is set as 0, it

means that the position to save

the data in tables will be

extended (Column No./2)

upward to take the whole word

address.

For example, the variable

address is 0x1000,

TAB_X_Num=0x07, then:

0x1000-0x1003 saves the

lengths of data in tables of

Columns 0-6 successively, with

the low byte of 1003 not used.

0x1004 address starts to save

the contents of a table

FONT0 ID: the fonts position

of the ASC Code. Fonts sized

0 includes all the ASCII

characters for 4*8-64*128 dot

matrix.

FONT1 ID: as fonts for text

display in a table, the coding

mode of the fonts must be the

same to that of text display

Number of Dot Matrixes in X

Direction/Number of Dot

Matrixes in Y Direction: the dot

matrix size of fonts sized 58

Page 55: User Guide to Intelligent TFT LCD Module 4.1 Development Kit · The Intelligent TFT LCD Module 4.1 project resources include images, fonts, icon libraries and audio files. The resource

Add: B605,Building 1#, Zhubang 2000, BaLiZhuang West 100#, Chaoyang District, Beijing, China

Web:www.en.stone-hmi.comTel:+86-10-84351669 55 / 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.