User Development Guide
User Development Guide
www.stone-hmi.com
I
Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China,100025
Tel:86)-10-84351669 Fax: 86)-10-84351668 www.stone-hmi.com
STONE TECH
Modification record
Data Modified content
2015-6-1 First draft.
2015-8-15 Add audio playback function.
2015-10-10 Add video playing function.
2015-11-28 Add the two-dimensional code display function.
2016-4-7 Add text scrolling display function.
2016-8-9 1. Add View Tech OS programming command;
2. Add automatic upload function after the input of RTC;
3. When the name of the folder is "VT _ SET-REPLACE ", update only the files
with the same name and not delete other project files.
4. Supports large icons (greater than 255 dot matrix) display
2016-9-5 1. Insert the USB Mini to support the UART receiving command;
2. Add 85 00 command write memory function;
3. The power-on start-up brightness is the screen saver lighting brightness R6, the
start-up brightness can be set in the project, and the brightness value in the
brightness register is changed to 1 save brightness.
4. Data reverse color display is added to data variable entering and data variable
display;
5. Invalid bit zero option is added to data variable;
6. Input length limit is added to variable data entering.
2016-11-4 Examples of command operation. To add register and variable registers.
2016-12-12 Add command to set audio play mode.
2017-01-13 Add Register 0x10-0x1D to configure the register mapping function.
2017-06-20 Update chapter 1 and chapter 2
II
Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China,100025
Tel:86)-10-84351669 Fax: 86)-10-84351668 www.stone-hmi.com
STONE TECH
Contents
1 Intelligent TFT LCD Module 4.3 General .................................................................................................. 1
1. 1. Recognize Beijing STONE TECH Intelligent TFT LCD Module ............................................................. 1
1. 1. 1 System architecture ................................................................................................................................. 1
1. 1. 2 Product Features ..................................................................................................................................... 3
1. 1. 3 Recognize Configuration ........................................................................................................................ 4
1. 1. 4 Development Flow.................................................................................................................................. 5
1. 2 Download.................................................................................................................................................... 8
1. 2. 1 Download online (USB mini interface) .................................................................................................. 8
1. 2. 2 Offline download (USB flash disk) ........................................................................................................ 9
1. 3 File Format and Name Rules ...................................................................................................................... 9
1. 4 User data encryption ..................................................................................................................................11
1. 5 Firmware update ....................................................................................................................................... 12
2 UART Command Set .................................................................................................................................. 13
2.1 Format convention ..................................................................................................................................... 13
2. 2 Register Reading &Writing command 0x80, 0x81 ................................................................................... 14
2. 3 Variable Memory Read & Write command 0x82, 0x83............................................................................ 15
2. 4 writing command 0x84 of curve buffer .................................................................................................... 17
2. 5 Extended command 0x85 ......................................................................................................................... 17
3 Register ........................................................................................................................................................ 22
3. 1 Register Schedule ..................................................................................................................................... 22
3. 1. 1 Read version number ............................................................................................................................ 26
3. 1. 2 Modify the back light brightness .......................................................................................................... 26
3. 1. 3 Control buzzer ...................................................................................................................................... 27
3. 1. 4 Switching interface ............................................................................................................................... 27
3.2 Clock (RTC) read-write ............................................................................................................................. 27
3. 3 Voice playing ............................................................................................................................................ 28
3. 3. 1 Audio file format................................................................................................................................... 28
3. 4 Video playing ............................................................................................................................................ 29
3. 4. 1 Video File Format ................................................................................................................................. 29
3. 4. 2 Video file playing.................................................................................................................................. 30
3. 5 User data files loaded into variable space ................................................................................................. 32
3. 6 Database read-write .................................................................................................................................. 33
3. 7 Touch screen calibration ........................................................................................................................... 34
3. 8 Screen parameter configuration read ........................................................................................................ 35
III
Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China,100025
Tel:86)-10-84351669 Fax: 86)-10-84351668 www.stone-hmi.com
STONE TECH
IV
Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China,100025
Tel:86)-10-84351669 Fax: 86)-10-84351668 www.stone-hmi.com
STONE TECH
TFT LCD
Font file
Picture file
Module Audio file
Configuration
configuration
file Icon library file
development
USB Flash disk
software
/ USB Download
-1-
Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China,100025
Tel:86)-10-84351669 Fax: 86)-10-84351668 www.stone-hmi.com
STONE TECH
D7 … D0
D15 … D0
128 M bytes,
D7 … D0 FFFF
can
FF
64K word (128 K be expanded
… …
256 bytes bytes) to 1G bytes
00 0000
The internal storage space of Intelligent TFT LCD Module is divided into three parts: register area,
variable memory area and flash memory.
The register area has 256 units (address 0x00 ~ 0xFF) in total, and each unit corresponds to one byte,
which is 256 bytes. It is used for hardware configuration and control operations, the typical functions such as
back brightness adjustment, version information read, and UART command control picture display, audio
playing control, video playing control, etc. A complete summary of the registers is given in Chapter 3. The
user MCU can write and read the register cell contents through the 0x80 and 0x81 commands, respectively.
The variable memory has 64K units (Address 0x0000 to 0xFFFF) in total, and each unit corresponds to
two bytes, which has a total of 128K bytes. As its name implies, variable memory is used to store variable
values. The user MCU can write and read the register cell contents through the 0x82 and 0x83 commands,
respectively.
Flash memory has 128M bytes in total, and can be extended to 1G byte. Flash memory is used to store
configuration files (such as variable display formats), picture files, icon files, fonts files, audio files, video
files, etc. After the interface design is finished, the above contents are downloaded into the Intelligent TFT
LCD Module through USB flash disk and saved permanently. Intelligent TFT LCD Module adopts JPG data
compression algorithm and continuous storage mode, which greatly improves the storage efficiency and the
number of stored pictures, which is sufficient for general picture applications, such as full-size picture with
resolution of 1024 * 768, and can store about a thousand pictures (The actual number stored is related to the
color). When customers have more video files need to be stored, it may be necessary to expand storage
space.
-2-
Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China,100025
Tel:86)-10-84351669 Fax: 86)-10-84351668 www.stone-hmi.com
STONE TECH
1. 1. 2 Product Features
256-byte register space;
128 K byte variable memory space, 8-channel curve trend picture memory, fast (80 ms) variable display
response speed;
128 M Flash memory space, expanded to 1G byte;
The single page supports 128 display variables at most;
Integrated real time clock RTC, touch buzzer sound function;
Support the screen rotation of 90 degrees, 180 degrees, 270 degrees by software, adjust to appropriate
viewing angle;
Support backlight brightness adjustment, automatic standby screen saver function;
Support external matrix keyboard;
Industry-leading electromagnetic radiation indicators to help you to cope with Class B easily;
Support the USB mini interface to download and debug on line, and improve the development efficiency,
avoid repeatedly inserting and removing TF cards during debugging
Support offline batch download in USB flash disk, effectively improve the download efficiency, reduce
the professional requirements of the operator;
Support hardware JPG decoding, more efficient storage, faster display
Support audio and video playing;
Matching a configuration development tools Intelligent TFT LCD Module 4.3 with simple operation;
The name rule of the file name is simple, and does not need to correspond to the Flash block number,
and does not need for tedious manual allocation of flash block function.
-3-
Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China,100025
Tel:86)-10-84351669 Fax: 86)-10-84351668 www.stone-hmi.com
STONE TECH
1. 1. 3 Recognize Configuration
command set screen Intelligent TFT LCD Module configuration screen
When the early command set screen displays The Intelligent TFT LCD Module is driven by
characters, Chinese characters, icons and variables, and all displayed characters, icons,
other information, the user needs to send the etc. are defined as a variable, and the variable
display content and display format as storage address is assigned, the display format is
command to the terminal through the UART , defined, then the configuration file is generated
so as to realize the display on the current and downloaded to the Intelligent TFT LCD
page. Module. When the refresh display is needed, the
Figure 1-4 The difference between the command set screen and the configuration screen
Example: display the floating point variable "25. 3" on interface NO.1
Implement step of command set screen:
Step1: The user MCU sends commands directly through the UART to the terminal screen:
AA98 0073 00B4 224000 F800 FFFF 32352E33 CC33C33C
AA 98: Ox 98 character string display command frame header;
0073 00B4: the coordinates of data 25. 3 displayed on the LCD screen;
22400 F800 FFFF: defined font ID number + display mode + dot matrix + foreground color +
background color (format) ;
32 35 2E 33: String 25. 3
CC 33 C3 3C: Frame End;
Step2: When refreshing the data, the command of display format and display contents are sent to
the terminal through the UART .
Step 3: If the display terminal switches to the interface No. 2, and then back to the interface No. 1,
the variable does not display, and it must be displayed again by sending the command to the
interface No. 1.
Implementation steps of configuration screen:
Step1 display configuration: first the "data variable" is added on the interface NO.1 through the
Intelligent TFT LCD Module configuration software, and setting the basic properties of "data
variable display format" (including variable storage addresses, display colors, sizes, displays
-4-
Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China,100025
Tel:86)-10-84351669 Fax: 86)-10-84351668 www.stone-hmi.com
STONE TECH
mode, etc.), as shown in the right. Then the configuration file is generated and downloaded into
the screen.
Step2 run and refresh the display: when refresh is needed, only the variable content and the
variable storage address are needed to be sent to the screen through 82 command.
82 command data format: A5 5A 02 82 00 00 00 FD
A5 5A: UART data frame header (user can be self-define frame header content )
05: Data length
00 00: User-defined variable storage address for this variable 25.3
00 FD: Variable 25. 3 (The decimal point is the fixed point display, i. e., hex data of "253").
Note: when switch to interface No. 2 and then return to interface NO.1, the screen will automatically read
variable contents from the variable memory and display it.
1. 1. 4 Development Flow
It only needs 3 steps in developing by Intelligent TFT LCD Module to complete complex
human-machine interface design.
① Prepare the project materials; Arrange the artwork to design the needed background image and icon for
the products, and prepare fonts, audio and video files according to the design needs.
② Interface design; Firstly the Intelligent TFT LCD Module 4. 3 development tool is used to perform
Interface layout, screen parameter configuration and control configuration with designed picture, and
then perform compile, then preview the effect, finally the generated configuration file is downloaded into
the Intelligent TFT LCD Module.
③ User MCU sends UART command to debug interface display. Once the configuration file is downloaded
into the screen, and once one button on the screen is pressed, the user MCU will receive the address
information of button variables which uploaded from the Intelligent TFT LCD Module. By resolving the
variable address, the user can obtain the function attribute of the current button, so that the related
peripheral device or interface update display can be controlled. For non-touch products, users only need
-5-
Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China,100025
Tel:86)-10-84351669 Fax: 86)-10-84351668 www.stone-hmi.com
STONE TECH
The characteristics such as UART baud rate, command frame header, CRC validation and buzzer, touch
screen and screen saver are set in the screen parameter configuration, as shown in the following figure.
② Control configuration
Define all the variable storage address and display format, generate the configuration file and download
it into the Intelligent TFT LCD Module. The user can send the variable value and the corresponding variable
storage address to the Intelligent TFT LCD Module.
For example, add a "data variable" control on interface NO.1, and set the basic property for "data
variable" (including variable storage address, display color, size, display mode, etc.), as shown in the figure
below. And then the configuration file is generated and downloaded into the terminal. All variable storage
-6-
Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China,100025
Tel:86)-10-84351669 Fax: 86)-10-84351668 www.stone-hmi.com
STONE TECH
④ Effect Preview
The compiled project that can be previewed directly in the Intelligent TFT LCD Module software (the
actual effects is subjected to the showing on the screen).
(III)Download
Download the "VT _ SET" folder into the Intelligent TFT LCD Module via the USB flash disk or USB
mini interface, and the details method is shown in following 1.2 section.
(IV)UART debugging
After the "VT _ SET" folder is downloaded into the terminal, the variable display can be debugged by
UART debugging assistant or the third party UART debugging tools of the Intelligent TFT LCD Module
software to test the interface function of the Intelligent TFT LCD Module.
-7-
Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China,100025
Tel:86)-10-84351669 Fax: 86)-10-84351668 www.stone-hmi.com
STONE TECH
1. 2 Download
After the "VT_SET" folder is compiled and generated, it can be downloaded into the Intelligent TFT
LCD Module through the USB mini interface or the USB flash disk. The online download and debugging of
the USB mini interface is suitable for use in the development stage, which can effectively improve
development efficiency, avoid repeatedly inserting and removing TF cards during debugging; the USB flash
disk download is suitable for batch production after the development is finalized, so as to effectively improve
download efficiency and reduce requirements for operating personnel.
Gentle hint:
When the Intelligent TFT LCD Module is connected with the computer through the USB-mini interface,
it is actually a virtual hard drive, and a new disk letter "Intelligent TFT LCD Module _ USER " will appear in
-8-
Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China,100025
Tel:86)-10-84351669 Fax: 86)-10-84351668 www.stone-hmi.com
STONE TECH
the computer. If the configuration file, download failed, please reformat Intelligent TFT LCD Module _
USER to FAT 32 format in My Computer.
② By inserting the USB flash disk into the Intelligent TFT LCD Module, the system will automatically start
the data copy, and the data in the USB flash disk can be copied into the Intelligent TFT LCD Module one
by one. Upon completion of the copy, the buzzer will prompt the download completion, while the upper
left corner on the screen will display "Please plug out the U disk".
③ Pull out USB flash disk.
Description:
② Before the first use of USB flash disk, it is recommended to format USB flash disk into FAT 32 file
format.
② The "VT _ SET" folder contains information of all configuration files, fonts, pictures, audio files and
drawings, etc. , and the user cannot make any modification to these files in the folder;
③ The video file needs to be manually copied to the "VT _ SET" folder before downloading;
④ When the name of the folder is "VT _ SET _ REPLACE ", only update the files of the same name when
downloading, and not delete other project files. This function is suitable for the user to modify the startup
interface.
display effect of JPG format file cannot meet the requirements and the user can select the BMP format file.
The use of BMP format will takes up more storage space, and the speed of screen refresh becomes slower.
Icon file format
The icon file also supports multiple formats such as BMP and JPG. However, the BMP format should be
used in the case of transparent display of icons, because the working principle of icon generating tools
extracting transparent icons is to take the color of the pixel point of the source picture (0, 0) as the
background filter color. As the JPG file is a damaged compressed file, each pixel in background color may
have very small differences (which may not be recognized by the human eye), resulting in an inability to
effectively filter the background.
The name of picture in the ICON source file must be began with number, otherwise it cannot be
generated, and it is the best begin with consecutive numbers.
The designed icons need to use the ICON generator in the Intelligent TFT LCD Module 4.3
development tool, so the icon files can be generated into ICON format file. Then it can be added to use in
project (see the document " Intelligent TFT LCD Module 4. 3 Development Tools Usage command" for the
ICON generator).
Font file format
The 0 # font file (0. dzk) is pre-installed for Intelligent TFT LCD Module, which contains all ASCII
codewords from 4 * 8 to 64 * 128 dots.
When other types of fonts are needed, they can be obtained through technical support to obtain or
generate through TS3 software. The new font needs to be named from 1 and not renamed 0-font.
TS3 software and command for use can be downloaded from. official website .The font code support
ASCII code, GB2312 internal code, GBK, BIG5, SJIS and UNI CODE.
Audio file format
Intelligent TFT LCD Module 4. 3 Supports WAV and MP3 audio file formats, as detailed in 3. 3
sections.
Video File Format
Intelligent TFT LCD Module 4. 3 Supports AVI format video files, as detailed in 3. 4 Section.
- 11 -
Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China,100025
Tel:86)-10-84351669 Fax: 86)-10-84351668 www.stone-hmi.com
STONE TECH
USB flash disk onto the Intelligent TFT LCD Module, the password will be automatically copied into the
Intelligent TFT LCD Module to protect the internal data of Intelligent TFT LCD Module.
Once the Intelligent TFT LCD Module is encrypted, the internal data of the Intelligent TFT LCD
Module cannot be read out. the USB-mini port can not be connected to the computer, and not support online
download debugging.
The decryption process is similar to encryption, firstly, the decrypted file "de _ encrypted. Txt " will be
copied to the root directory of USB flash disk (the password must be the same as the encrypted file
"password.txt"), when the USB flash disk is inserted into the Intelligent TFT LCD Module, the system will
automatically check the decryption password. If it is consistent with the encryption password, the Intelligent
TFT LCD Module will automatically decrypt it. After the decryption, the Intelligent TFT LCD Module can
be reconnected to the computer through the USB-mini interface to implement the online download
debugging.
The encrypted file "password. Txt" is the same as the password in the decrypted file "de _ password.
Txt", except that the file name is different. The password is an arbitrary Chinese-English character string no
more than 128 bytes. It must be saved properly. Once the password is lost, it will not be decrypted again.
1. 5 Firmware update
Make sure the power supply is stable during the firmware update!
During the firmware update process, the display will be automatically restarted multiple times, the power
should not be cutted during the process!
1. Copy the firmware program " Intelligent TFT LCD Module -Plus II. bin" file to the root directory of
USB flash disk;
2. Insert the USB flash disk into the UART display,and ensure the stable power supplying. The system will
automatically start updating the firmware.
3. Please pull out the USB flash disk after the prompt message “Please plug out the USB flash disk” is
displayed, and the buzzer also ring.
4. After the information "Update success." is displayed, the firmware update has been completed and after
- 12 -
Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China,100025
Tel:86)-10-84351669 Fax: 86)-10-84351668 www.stone-hmi.com
STONE TECH
The Intelligent TFT LCD Module adopts variable drive mode working, the working modes of screen
and GUI states can be fully controlled by variables and registers. Correspondingly, the UART command only
need to read and write variables and registers, there are five commands in total.
The Intelligent TFT LCD Module adopts asynchronous, full duplex serial port (UART), using 10 bits
for each byte data transmission: 1start bit, 8 data bits, 1 stop bit, with no checking bit. The baud rate of
UART can be set through “Screen parameter Configuration” in Intelligent TFT LCD Module 4. 3
development tools.
- 13 -
Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China,100025
Tel:86)-10-84351669 Fax: 86)-10-84351668 www.stone-hmi.com
STONE TECH
All UART commands or data are in a hexadecimal (HEX) format. As for the double-byte data, the
method of high byte transfer first is adopted. For example 0x1234, sends 0x12 first, then sending 0x34.
[CRC
command beginning [Data [Data
command frame header command checking
length address Length] Content]
code]
Each command includes four parts: command frame header, command length, command and start
address. [Data length], [data content], [CRC checking code],these three parameters are not included in each
command.
The command frame header is a double byte, the user can self-define the content (Register R3,
RA)through “Screen Parameter Configuration” in Intelligent TFT LCD Module 4.3 Development Tool. Users
can implement multiple Intelligent TFT LCD Modules in parallel by setting different frame heads.
The command length includes command, start address, data content, data length, and CRC checking
code.
The commands include two register reading and writing commands (0x80, 0x81), two variable memory
reading and writing commands (0x82, 0x83), a write curve buffer command 0x84, and an extension function
command 0x85.
- 14 -
Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China,100025
Tel:86)-10-84351669 Fax: 86)-10-84351668 www.stone-hmi.com
STONE TECH
Table 2-5 UART sends 0x81 command Frame Structure (Read Register Transmission)
- 15 -
Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China,100025
Tel:86)-10-84351669 Fax: 86)-10-84351668 www.stone-hmi.com
STONE TECH
Table 2-8 UART receive 0x82 command frame structure (write variable memory unit)
Table 2-9 UART Send 0x83 command Frame Structure (Read Variable Memory Transmit)
Table 2-10 UART receiving 0x83 command frame structure (read variable memory receiving, UART transmission)
- 16 -
Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China,100025
Tel:86)-10-84351669 Fax: 86)-10-84351668 www.stone-hmi.com
STONE TECH
Intelligent TFT LCD Modules adopts variable drive to separate variable values from
variable display formats. The variable display format is downloaded in the terminal through
the configuration file in advance. And the variable value is transmitted to the terminal through
the UART in real time. The variable memory is used to store the received variable value.
Intelligent TFT LCD Module has 64K word(128K Byte)variable memory, the addressing
operation is done according to the word, address is 0x0000-0xFFFF. When the user is planning
a variable, the variable memory address is manually assigned according to the variable length.
The Intelligent TFT LCD Module has a buffer area of 8K Word, which can store eight curves
buffer, and it is used for simple and fast display of curves. The data in the curve buffer is a 16-bit
unsigned number.
- 17 -
Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China,100025
Tel:86)-10-84351669 Fax: 86)-10-84351668 www.stone-hmi.com
STONE TECH
2. 6 CRC checking
Whether to enable CRC is depend on the user’s choice, and it can be set via “Screen Parameter
Configuration” in Intelligent TFT LCD Module 4. 3 Development Tools. When CRC checking is enabled, the
tail of all commands will add a double-byte CRC checking code.
The CRC checking does not include the command frame header and command length, adopt ANSI-16
- 18 -
Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China,100025
Tel:86)-10-84351669 Fax: 86)-10-84351668 www.stone-hmi.com
STONE TECH
When the CRC checking and CRC checking result response is enabled simultaneously (through
Intelligent TFT LCD Module 4. 3 in the development tool "screen parameter configuration" setting), the
Intelligent TFT LCD Module automatically sends out the checking result through the UART after CRC
checking. CRC checking result response frame structure is shown in Table 2-2.
Table 2-14CRC checking Result Response Frame Structure
CRC checking
Definition Frame head Data length command Data
code
Length
2 1 1 1 2
(bytes)
0xFF represents correct CRC
Fixed to Received checking
Description User Defined
0x02 command 0x00 represents wrong CRC
checking
Example 0xA5,0x5A 0x02 0x81 0xFF 0x21,0xA0
- 20 -
Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China,100025
Tel:86)-10-84351669 Fax: 86)-10-84351668 www.stone-hmi.com
STONE TECH
- 21 -
Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China,100025
Tel:86)-10-84351669 Fax: 86)-10-84351668 www.stone-hmi.com
STONE TECH
3 Register
The Intelligent TFT LCD Module is internally designed with 256-byte registers for hardware related
operations such as backlight adjustment, clock read-write, and speech play.
3. 1 Register Schedule
Table 3-1 Register Schedule
Byte
Register
Definition R/W length Description
Address
- 22 -
Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China,100025
Tel:86)-10-84351669 Fax: 86)-10-84351668 www.stone-hmi.com
STONE TECH
- 23 -
Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China,100025
Tel:86)-10-84351669 Fax: 86)-10-84351668 www.stone-hmi.com
STONE TECH
- 24 -
Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China,100025
Tel:86)-10-84351669 Fax: 86)-10-84351668 www.stone-hmi.com
STONE TECH
2. If it needs to achieve the screensaver effect by MCU control, the command can be used to control the
back light brightness to achieve the screensaver effect.
3. 1. 3 Control buzzer
Register Byte
Definition R/W Description
Address Length
0x02 BZ_TIME W 1 Buzzer chirping control register, unit 10ms
For example, control the buzzer chirping for 2s, send the command
A5 5A 03 80 02 C8
3. 1. 4 Switching interface
Register Byte
Definition R/W Description
address length
Read: The current user interface ID is displayed; write: switch to
0x03-0x04 PIC_ID R/W 2
the specified user interface
For example, the command for switching to interface 2
A5 5A 04 80 03 00 02
Register Byte
Definition R/W Description
Address Length
RTC_COM W 1 0x5A represents that the user's UART has requested to rewrite
_ADJ the RTC data and it will be cleared after the Intelligent TFT LCD
0x1F-0x26 Module modify the RTC
RTC_NOW R/W 7 YY: MM: DD: WW: HH: MM: SS, year: month: day: week:
hours: minutes: seconds, format is BCD code
UART Read Clock RTC
The 0x20 register save the current RTC value, then reads it by the 0x81 command.
Read Calendar (YY: MM: DD: WW: HH: MM: SS): A5 5A 03 81 20 07
Read time (HH: MM: SS): A5 5A 03 81 24 03
UART modify (write/set) clock RTC
The 0x80 command is used to rewrite 0x1F register to 0x5A, and write the time need to be revised for
the register begining with 0x20, that is rewrite the RTC.
For example, set the RTC to 2015-06-01 Monday at 18: 56: 00, the UART sends the following
- 27 -
Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China,100025
Tel:86)-10-84351669 Fax: 86)-10-84351668 www.stone-hmi.com
STONE TECH
commands:
A5 5A 0A 80 1F 5A 15 06 01 00 18 56 00 the Intelligent TFT LCD Module can convert the week
automatically. When rewrite the time, any value for week can be written.
3. 3 Voice playing
3. 3. 1 Audio file format
Intelligent TFT LCD Module 4. 3 Supports WAV and MP3 audio file formats with extensions *. wav or
*. mp3.
WAV format occupies large space, the voice output is free of delay, and suitable for played with short
waiting time. Two-channel data is recommended for WAV format file.
MP3 format occupies small space, so the voice output will be slightly delayed (0. 5 seconds). It is
suitable for playing with long waiting time.
The user adds the voice file to the project through the Intelligent TFT LCD Module configuration
software, and then through the 0x80 command to write the relevant register to control voice playing and
adjust volume.
Table 3-3 voice playing register
Register Byte
Definition R/W Description
Address Length
0x5b: Playing Voice
Music_Set W 1
0x50-0x52 0x5c: Stop playing
Music_Num W 2 Music playing setting (0-4095)
0x5A represents the volume of the applied adjustment playing
Vol_Adj_En W 1
music
0x53-0x54
Volume value, range 0x00-0x40, default value as power-up is
Vol W 1
0x40
0x55 Vol_Status R 1 Audio playing status 0x00: Stop playing; 0x01: Playing
For example, a piece of voice is saved as 6. wav, play with 100 % volume, UART send :
A5 5A 07 80 50 5b 00 06 5A 40
To stop audio playing, UART send :
A5 5A 05 80 50 5c 00 06
In addition, that extension command 0x85 provide sequential playing audio functions, refer to chapter 2
for details.
- 28 -
Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China,100025
Tel:86)-10-84351669 Fax: 86)-10-84351668 www.stone-hmi.com
STONE TECH
3. 4 Video playing
The design of the Intelligent TFT LCD Module video play without increasing the hardware cost,
satisfying the video function needs for various occasions such as power-on animation, advertisement video,
entertainment video, equipment maintenance video, and so on.
1. Power-on animation: it is a powerful way to show the equipment level and image of the enterprise. At
present, the animation of peer products is achieved through displaying images continuously. On the one hand,
it is limited by the number of stored pictures and the playing time is very limited, also it is impossible to
realize synchronous playing of sound.
2. Advertising video: such as retail equipment, vending equipment, the advertising videos can be played
during the free time of the equipment.
3. Entertainment video: such as fitness equipment, beauty equipment, medical devices, etc., the
entertainment videos can be played during working time of the equipment.
4. Equipment maintenance video: such as daily maintenance and troubleshooting of equipment, the
video can be embedded into the equipment, which can effectively improve the daily service efficiency and
reduce the after-sale service cost.
- 29 -
Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China,100025
Tel:86)-10-84351669 Fax: 86)-10-84351668 www.stone-hmi.com
STONE TECH
Figure 3-1 Audio and Video File Format Editing Software "Format Factory"
If the video file is saved into the Intelligent TFT LCD Module, the video file should be manually copied
into the "VT_SET" file, and the video file will be downloaded into the Intelligent TFT LCD Module along
with the "VT_SET" folder.
If the video file in the USB flash disk is played directly, the video file needs to be saved directly under
the root directory of the USB flash disk. In addition, when playing the video file in the USB flash disk
directly, it is required that the bit rate of the video file should not be more than 4096KB, otherwise, the video
cannot be played fluently as the restriction by USB transmission speed.
Register Byte
Definition R/W Description
address length
Play_Avi_Set R/W 1 0x5A: Request to set player parameter
0x00: play one video in Intelligent TFT LCD Module (Default
0x60-0x67 mode)
Avi_Type W 1
0x01: circle play one video in Intelligent TFT LCD Module
0x02: sequential play the video in VGA screen
- 30 -
Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China,100025
Tel:86)-10-84351669 Fax: 86)-10-84351668 www.stone-hmi.com
STONE TECH
Tips: User registers 0x61-0x6e map to user variable memory 0xff01-0xff0e, that is the operating user
variable memory 0xff01-0xff0e performs the same function (avi video is played through touch control, no
need user MCU command intervention).
video playing can be controlled through user command control and touch control.
Mode 1: User command control mode.
The user MCU writes the register 0x60-0x6d through 0x80 command, and realizes the function of play,
pause, continuation and stop of avi video.
Mode 2: Touch control mode.
- 31 -
Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China,100025
Tel:86)-10-84351669 Fax: 86)-10-84351668 www.stone-hmi.com
STONE TECH
On the player interface, the user creates play/pause, stop, next one, volume adjustment buttons, and the
variable memory 0xff01-0xff0e is modified through "button key value return". The avi video can be played
without the intervention of user MCU.
Tip: implement power-on default play-on animation. By Intelligent TFT LCD Module4. 3 Configuration
software sets the initial value of 0xff0a unit to 0x5a and sets the file name video file name to 0. avi: After the
Intelligent TFT LCD Module is powered on, the power-on animation 0.avi will be played automatically.
The specific method is to set a data variable, the address is set to 0xff0a, and the initial value is set to
90.
For example, single play the 01 video in the USB flash disk in display screen (10, 10) position:
First modify the play parameter A5 5A 0A 0A 80 60 5A 03 00 0A 00 0A 00 0A 00 01, and then send the
command for playing the video A5 5A 03 80 6A 5A.
When the video is played, the variable on the display screen is no longer refreshed and the voice playing
in the previous section is not available
Register
Definition R/W Byte length Description
address
0x5A represents that the application user data file is
loaded into the variable space, and the register is
En_Lib_OP R/W 1
cleared after operation. One read operation is
performed per Intelligent TFT LCD Module cycle
Lib_OP_Mode W 1 Fixed to 0xA0
0x40-0x49 Lib_ID W 1 Specify the user data file name 0x00-0xff.
Specify data operation head(word) address, 0x00:
Lib_Address W 3
00: 00-0x01: FF: FF
Specify data operation(head) address for variable
VP W 2
space 0x0000-0xFFFF
OP_Length W 2 Data length of operation(word), 0x0001-0xFFFF
The user data file extension is * bin, numbered 0x00-0xff. The user data file can be loaded into the
variable memory via the UART command (if the user system needs to be used, it can be read from the
variable memory using the 0x82 command). User data files must be manually copied to the "VT _ SET"
folder.
For example, start reading the 4KW (0x1000) data from 0x 00 00 00 adress of “80.bin” user data file to
the beginning position of variable memory 0x1000, the UART send the command :
- 32 -
Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China,100025
Tel:86)-10-84351669 Fax: 86)-10-84351668 www.stone-hmi.com
STONE TECH
A5 5A 0C 80 40 5A A0 50 00 00 00 10 00 10 00
3. 6 Database read-write
The file name of the user database is "User Db. bin", which can be read and written at random, and has
the function of power-down storage user data. The“UserDb.bin”and" VT _ SET "folders are stored under"
Intelligent TFT LCD Module _ USER ", the size of the database file is related to the user project file, and the
free space of "Intelligent TFT LCD Module _ USER " can be viewed to determine the size of the available
database files.
Table 3-6 Database Read and Write Register
Register Byte
Definition R/W Description
address length
0x5A represents user application for database operation, and
register is cleared after completion of operation.
En_DBL_OP R/W 1
Each Intelligent TFT LCD Module cycle performs a database
read or write operation once
0x50 represents writing variable memory data into database
space
OP_Mode W 1
0x56-0x5F 0xA0 represents reading the data of the database space into the
variable storage space.
Database head (word) address (both database and user's "VT _
DBL_Address W 4 SET" folder is stored under " Intelligent TFT LCD Module _
USER ")
VP W 2 First address (word) of variable space, 0x0000-0xFFFF
OP_Length W 2 Length (word) of database operation, 0x0001-0xFFFF
For example, write the data of the variable address 0000-0100 to the database address 0000 0000-0000
0100, the data length is 256W (0x0100), and the UART sends the command:
A5 5A 0C 80 56 5A 50 00 00 00 00 00 00 01 00
Write the data of the database address 0000 0000-0000 0100 to the variable address 0000-0100, the data
length is 256W (0x0100), and the UART sends the command:
A5 5A 0C 80 56 5A A0 00 00 00 00 00 00 01 00
- 33 -
Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China,100025
Tel:86)-10-84351669 Fax: 86)-10-84351668 www.stone-hmi.com
STONE TECH
Register Byte
Definition R/W Description
address length
Start touch screen calibration by writing 0x5A. After calibration,
0xEA TPCal_Triger W 1
it will be cleared by Intelligent TFT LCD Module .
- 34 -
Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China,100025
Tel:86)-10-84351669 Fax: 86)-10-84351668 www.stone-hmi.com
STONE TECH
Register Byte
Definition R/W Description
address Length
The mapping register of "screen parameter
configuration" of Intelligent TFT LCD Module
0x10-0x1C R0-RC R 13
development tool, UART can be read through register
address.
- 35 -
Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China,100025
Tel:86)-10-84351669 Fax: 86)-10-84351668 www.stone-hmi.com
STONE TECH
- 36 -
Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China,100025
Tel:86)-10-84351669 Fax: 86)-10-84351668 www.stone-hmi.com
STONE TECH
The R2 register is defined by bit for configuring the Intelligent TFT LCD Module software operating
mode, as shown in the following table (shaded areas indicate factory setting values).
Table 3-10 Register R2 Bit Function Definition
Bit Weight Definition Description
.7 0x80 VDS Undefined
.6 0x40 HDS Undefined
0 = disable screen saver function, backlight is not controlled by touch
screen status
1 = enable screen saver function, backlight is controlled by touch screen
.5 0x20 TP_LED
state, control parameters are set by the R6, R7, R8 registers
R6 is the display brightness at the start-up time, and the user can set the
start-up brightness in the work
0 = CRC16 frame checking is disabled for serial communication
.4 0x10 FCRC
1 = CRC16 frame checking is enabled for serial communication
0 = touch screen input parameter is not automatically uploaded (user query)
1 = whether the input parameters of touch screen are automatically
.3 0x08 TPSAUTO
uploaded to the UART is determined by the configuration of corresponding
touch variables
0 = 128 KB variable memory power-up initialization is 0x00
Initial value
.2 0x04 1 = power-up initial value of 128 KB variable memory determined by
of variable
configuration file
.1 0x02 FRS1 Set the Intelligent TFT LCD Module period, the smaller the Intelligent TFT
LCD Module period, the more sensitive the variable response, but the lower
the ability of the variable process.
Intelligent TFT 80ms 120ms 160ms 200ms
LCD Module
period
.0 0x01 FRS0 FRS1 1 1 0 0
FRS0 1 0 1 0
For 1024 * 768 resolution, it is recommended that the Intelligent TFT LCD
Module cycle be set to more than 120 ms.
The Intelligent TFT LCD Module circle period can affect the animation
speed of the animated icon display.
- 37 -
Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China,100025
Tel:86)-10-84351669 Fax: 86)-10-84351668 www.stone-hmi.com
STONE TECH
0 = Click the active area of touch screen, there is buzzer tone
1 = No warning tone of the buzzer appears when clicking on the active area
.5 0x20 TP_BUZZ_EN
of the touch screen, but the buzzer can be controlled by writing the data
control buzzer to the 0x02 register
0 = Display variables number per page is 64
.4 0x10 PAGE128_EN
1 = Undefined
0 = No response to frame checking result after CRC frame checking is
.3 0x08 CRC_ACK_EN started
1 = Response to frame checking result after CRC frame checking is started
.2 0x04 TP_CAL_MOD Undefined
.1 0x02 Undefined Write 0
.0 0x00 Undefined Write 0
For example, set R2. 5 = 1, R6 = 0x40, R7 = 0x10, R8 = 0x1E, do not click on the touch screen for 30
seconds (0x1E) , the backlight brightness will automatically be reduced to 0x10 (25% brightness); click on
the touch screen, the backlight will automatically adjusted to 0x40 (100% brightness).
- 38 -
Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China,100025
Tel:86)-10-84351669 Fax: 86)-10-84351668 www.stone-hmi.com
STONE TECH
4 Input Control
- 40 -
Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China,100025
Tel:86)-10-84351669 Fax: 86)-10-84351668 www.stone-hmi.com
STONE TECH
For example: Setting the number of input data bits is 4 bit, click "Data entering" button to input "1234 ",
click "OK", and the UART returns to the command:
A5 5A 06 83 00 20 01 04 D2
Description: A55A: Frame head
06: command byte length, 83 00 20 01 04 D2 total 6 bytes (without frame header)
83: Read variable register command
00 20: Variable address, set in control properties
01: Data word length, 04 D2 total 1 word length
04 D2: Data content, 1234 hexadecimal data
- 41 -
Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China,100025
Tel:86)-10-84351669 Fax: 86)-10-84351668 www.stone-hmi.com
STONE TECH
For example: the variable address of "pop-up menu" button is set as 0200, and the key value of "OK"
button on the pop-up menu page is set to be 0001. Click the "pop-up menu" button to pop-up the set menu.
Click "OK" on the menu to return the button value 0001 to address 0200. The UART returns the command:
A5 5A 06 83 02 00 01 00 01
Description: A55A: Frame head
06: command byte length, 83 02 00 01 00 01 total 6 bytes (without frame header)
83: Read variable register command
02 00: Variable address, set in the pop-up menu control property
01: Data word length, 0001 total 1 word length
00 01: Data content, set button key value 00 01
4. 3 increment adjustment
For example: set the lower limit to 0 and the upper limit to 9. Click the "increment Adjustment" button
continuously. The UART returns the command:
A5 5A 06 83 01 20 01 00 01
A5 5A 06 83 01 20 01 00 02
……
A5 5A 06 83 01 20 01 00 08
A5 5A 06 83 01 20 01 00 09
Description: A5 5A: Frame head
06: command byte length, 83 01 20 01 00 01 in total 6 bytes (without frame header)
83: Read variable register command
01 20: Variable address, set in control properties
01: Data word length, 0001 for 1 word length
00 01: Data contents, from setting lower limit to upper limit, i. e. continuously from 00 01
to 00 09
- 42 -
Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China,100025
Tel:86)-10-84351669 Fax: 86)-10-84351668 www.stone-hmi.com
STONE TECH
4. 4 Drag adjustment
For example: set the beginning value to 0, the ending value to 1000, drag the "dragging adjustment"
button, and the UART returns the command:
A5 5A 06 83 01 80 01 00 00
……
A5 5A 06 83 01 80 01 03 E8
Description: A5 5A: Frame head
06: command byte length, 83 01 80 01 00 00 in total 6 bytes (without frame header)
83: Read variable register command
01 80: Variable address, set in control properties
01: Data word length, 00 00 total 1 word length
00 01: The data content, changes from the setting beginning value to the ending value, i. e.
changing continuously from 00 00 to 03 E8.
4. 5 RTC Settings
For example: Click "RTC setup" button to input time 16-10-26 16: 09: 00, and the UART returns the
- 43 -
Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China,100025
Tel:86)-10-84351669 Fax: 86)-10-84351668 www.stone-hmi.com
STONE TECH
command:
A5 5A 0A 81 20 07 16 10 26 03 16 09 00
Description: A5 5A: Frame head
0A: command byte length, 81 20 07 16 10 26 03 16 09 00 is 10 bytes (without frame
header)
81: Read register command
20: Control register address of RTC
07:Data byte length, 16 10 26 03 16 09 00 total 7 bytes length
16 10 26 03 16 09 00: BCD code of time variable
For example: Click the "button key value return" button, and the UART return the command:
A5 5A 06 83 00 00 01 02 22
Description: A55A: Frame head
06: command byte length, 83 00 00 01 02 22 total 6 bytes (without frame header)
83: Read variable register command
00 00: Variable register address
01: Data word length, 02 22 total 1 word length
02 22: Data content, setting key value
- 44 -
Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China,100025
Tel:86)-10-84351669 Fax: 86)-10-84351668 www.stone-hmi.com
STONE TECH
4. 7 Text entering
For example: Click the "GBK Entering" button to input "STONE", and click the "Enter " button. The
UART returns the command:
A5 5A 0E 83 01 40 05 CE E4 BA BA D6 D0 CF D4 FF FF
Description: A5 5A: Frame head
0E: command byte length, 83 01 40 06 CE E4 BA D6 D0 CF D4 FF FF total 14 bytes
(without frame header)
83: Read variable register command
01 40: Variable address, setting in control properties
05: Data word length, CE E4 BA BA D6 D0 CF D4 FF FF is 5 words length
CE E4 BA D6 D0 CF D4 FF FF: Data Contents, Chinese internal code of “STONE” CE E4 BA D6 D0
CF D4, the last 2 bytes FF FF are the flag bit of the end of entering ending, and the text entering and
ASCII entering have an ending flag bit.
- 45 -
Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China,100025
Tel:86)-10-84351669 Fax: 86)-10-84351668 www.stone-hmi.com
STONE TECH
5 Display control
- 46 -
Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China,100025
Tel:86)-10-84351669 Fax: 86)-10-84351668 www.stone-hmi.com
STONE TECH
Area Fill
Drawing _ Display spectrum (vertical lines) based on variable data, line color and position
21_09
spectrum display controllable.
Drawing _
21_0A Connecting segment with variable data, endpoint and color controllable.
Segment Display
Drawing _ Arc
21_0B Display circle arc, radius and color and start-stop angle controllable.
Display
Drawing _
21_0C Individual character display based on variable data.
Character Display
Draw _
The specified rectangular field bitmap data is XOR operated with a specified
21_0D Rectangular area
color, which is used for highlight display.
XOR
Drawing _ Bicolor The variable memory data is regarded as TWO-color bitmap data, and the
21_0E
Bitmap Display corresponding color of 0 /1 can be specified for more custom cursor.
Drawing _ Bitmap Variable memory data bit 65K color bitmap data for real-time icon (photo)
21_0F
Display downloading display.
Drawing _ area Enlarge the designated area by a factor of 1 and paste it into the specified position.
21_10 magnification It is used to cooperate with the 0F command to realize the real-time picture
pasting display.
22 List display The data defined by the two-dimensional array is shown in the table column.
Two-dimensional The specified two-dimensional pattern information is displayed on the screen
23
code display based on the specified contents.
5. 1 icon variable
5. 1. 1 Variable icon display (0x00)
Address
Data
Offset
Definition length(byte) Description
(Double
Bytes)
0x00 *VP 2 The variable pointer, the variable is an integer format.
The variable display position is the coordinate position at the top
0x01 X,Y 4
left corner of the icon.
The lower limit of the variable, is not displayed for beyond the
0x03 V_Min 2
range.
0x04 V_Max 2 Variable upper limit, is not displayed for beyond the range.
0x05 Icon_Min 2 The icon ID corresponding to V _ Min.
0x06 Icon_Max 1 The icon ID corresponding to V _ Max.
0x07:H Icon_Lib 1 Icon library storage position.
ICON display mode. 0x00 = transparent (background not shown),
0x07:L Mode 1
others = display icon background.
- 47 -
Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China,100025
Tel:86)-10-84351669 Fax: 86)-10-84351668 www.stone-hmi.com
STONE TECH
For example: Let the left side of the figure shows the following 10 different states, the UART send
command
A5 5A 05 82 01 20 00 00
A5 5A 05 82 01 20 00 01
……..
A5 5A 05 82 01 20 00 08
A5 5A 05 82 01 20 00 09
Description: A5 5A: Frame head
05: command byte length, 82 01 20 00 01 total 5 bytes
82: write variable register command
01 20: set the variable address, as shown in the figure above
- 48 -
Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China,100025
Tel:86)-10-84351669 Fax: 86)-10-84351668 www.stone-hmi.com
STONE TECH
00 00: set the value of the variable, the upper and lower bounds of the variable 0-9
corresponds to the icon of the numbered 5-14 one by one, that is, the sending 00 00
display the icon number 5, 00 01 display the icon number 6, and so on.
Please refer to the Intelligent TFT LCD Module development software operating instruction for details on the
generation of the ICON file.
When the variable is not equal to V _ Stop or V _ Start, icon or animation can not be displayed.
For example, let the middle animation icon in the above figure show the following animation effects:
- 49 -
Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China,100025
Tel:86)-10-84351669 Fax: 86)-10-84351668 www.stone-hmi.com
STONE TECH
- 50 -
Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China,100025
Tel:86)-10-84351669 Fax: 86)-10-84351668 www.stone-hmi.com
STONE TECH
For example: display the sliding scale in the above figure at any position on the progress bar, and send
the command:
A5 5A 05 82 01 80 00 00
A5 5A 05 82 01 80 00 01
……..
A5 5A 05 82 01 80 03 E7
A5 5A 05 82 01 80 03 E8
Description: A5 5A: Frame head
05: command byte length, 82 01 80 00 01 total 5 bytes
82: write variable register command
01 80: setting variable address, as shown in above figure
00 00: Setting the variable scale value, i. e., change from 00 00 to 03 E8
- 51 -
Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China,100025
Tel:86)-10-84351669 Fax: 86)-10-84351668 www.stone-hmi.com
STONE TECH
Can be understood as icon display of word-art, display method and icon display is basically the same.
- 52 -
Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China,100025
Tel:86)-10-84351669 Fax: 86)-10-84351668 www.stone-hmi.com
STONE TECH
If the "picture animation" control is also set on the Pic _ End page, the replaying can be achieved.
UART sends command to switch pictures or touch buttons to switch pictures to end replay
Address offset
(Double Definition Data length (bytes) Description
Bytes)
0x00 *VP 2 Variable pointer, variable format is determined by Mode.
0x01 Icon_ID 2 Specifies the icon ID.
0x02 Icon_Xc 2 The X coordinate of specified rotational center on the icon.
0x03 Icon_Yc 2 The Y coordinate of specified rotational center on the icon.
The X coordinate of the rotation center position of icon
0x04 Xc 2
display on the current screen
The Y coordinate of the rotation center position of icon
0x05 Yc 2
display on the current screen.
Corresponding to the variable value of starting rotation
0x06 V_Begin 2
angle, integer data is not displayed beyond limit.
Corresponding to the variable value of ending rotation
0x07 V_End 2
angle, integer data is not displayed beyond limit.
Beginning rotation angle 0-720 (0x0000-0x02D0), in 0. 5
0x08 AL_Begin 2
degrees.
Rotation angle = (Ending angle-initial angle) ( Ending
value-initial value) * input value;
0x09 AL_End 2
Ending rotation angle 0-720 (0x0000-0x02D0) in 0. 5
degrees.
0x00 = * VP points to an integer variable;
0x0A:H VP_Mode 1 0x01 = * VP points to one integer variable high byte data;
0x02 = * VP points to one integer variable low byte data.
- 53 -
Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China,100025
Tel:86)-10-84351669 Fax: 86)-10-84351668 www.stone-hmi.com
STONE TECH
Address
Data
Offset
Definition length Description
(Double
(bytes)
Bytes)
0x00 *VP 2 Bit variable pointer, word variable
0x01 *VP_AUX Auxiliary variable pointer, double word, user disabled
A bit value of 1 indicates that the corresponding position of the*VP
0x02 Act_Bit_Set 2
needs to be displayed
Display mode definition:
Display_Mo Bit value
de 0 1
0x00 ICON0S ICON1S
0x01 ICON0S Not shown
0x02 ICON0S ICON1S-ICON1E
Display_Mo animation
0x03:H 1
de 0x03 Not shown ICON1S
0x04 Not shown ICON1S-ICON1E
animation
0x05 ICON0S-ICONFIG ICON1S
animation
0x06 ICON0S-ICONFIG Not shown
animation
- 54 -
Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China,100025
Tel:86)-10-84351669 Fax: 86)-10-84351668 www.stone-hmi.com
STONE TECH
5. 2 Text Variables
5. 2. 1 Data variable display (0x10)
Address
Data
Offset
Definition length Description
(Double
(bytes)
Bytes)
0x00 *VP 2 Variable pointer
Starting display position, display coordinates of upper left corner of
0x01 X,Y 4
character string
0x03 Color 2 Display Color
0x04:H Lib_ID 1 ASCII font Position
0x04:L Font size 1 The dot matrix number in the character X direction
0x05:H Alignment 1 0x00 = left alignment, 0x01 = right alignment, 0x02 = centered
- 55 -
Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China,100025
Tel:86)-10-84351669 Fax: 86)-10-84351668 www.stone-hmi.com
STONE TECH
mode
Display the number of integer digits(the sum of the integer and
0x05:L Integer digit 1
decimal digits cannot exceed 20).
Decimal Display the number of decimal digits(the sum of the integer and
0x06:H 1
digit decimal digits cannot exceed 20)
0x00 = integer (two bytes) : -32768 to 32767
0x01 = long integer (4 bytes) : -214 7483648 to 214 7483647
0x02 = VP * high byte: 0 to 255
Variable 0x03 = VP * low byte: 0 to 255
0x06:L data 1 0x04 =Extra-long integer (8 bytes) :
TYPE -9223372036854775808 to 9223372036854775807
-9223372036854775808 to 9223372036854775807
0x05 = unsigned integer (2 bytes) : 0 to 65536
0x06 = Unsigned long integer (4 bytes) : 0 to 4294967295
0x07:H Len_unit 1 Variable unit display length, 0x00 represents the unit is not displayed
0x07:L String_unit 9 Unit string, ASCII code
0x0C Bclr 2 Background color
- 56 -
Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China,100025
Tel:86)-10-84351669 Fax: 86)-10-84351668 www.stone-hmi.com
STONE TECH
For example: Show integer "1234 ", the UART returns the command:
A5 5A 05 82 00 20 04 D2
Description: A5 5A: Frame head
05: command byte length, 83 00 20 04 D2 total 5 bytes (without frame header)
83: write variable register command
00 20: Variable address, setting in control properties
04 D2: Data content, 1234 hexadecimal data
Address
Data
Offset
Definition length Description
(Double
(bytes)
Bytes)
0x00 *VP 2 Text pointer
Beginning display position, display coordinates of upper left corner
0x01 X,Y 4
of character string
0x03 Color 2 Show Text Color
0x04 Xs,Ys,Xe,Ye 8 Text box
Number of bytes displayed, 0xFFFF, do not display when 0xFFFF
0x08 Text_Length 2
data is encountered or displayed to the end of the text box
0x09:H Font0_ID 1 ASCII font location when the encoding mode is 0x01-0x04
The position of the fonts used for non-ASCII characters of the coding
0x09:L Font1_ID 1
mode for 0x00,0x05, and 0x01-0x04
0x0A:H Font_X_Dots 1 The dot matrix number in font X-direction, the ASCII character X is
- 57 -
Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China,100025
Tel:86)-10-84351669 Fax: 86)-10-84351668 www.stone-hmi.com
STONE TECH
Note: when the text is displayed, the number of dot matrix in the Y-direction in the font must be even.
The 0 # font pre-install-ed in Intelligent TFT LCD Module, contains all the ASCII characters of 4 * 8-64 *
128 dot matrix
- 58 -
Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China,100025
Tel:86)-10-84351669 Fax: 86)-10-84351668 www.stone-hmi.com
STONE TECH
For example: display the English and number "VIEW 123", the UART sends command:
A5 5A 0A 82 01 40 56 49 45 57 31 32 33
Description: A5 5A: Frame head
0A: command byte length, 82 01 40 56 49 45 57 31 32 33 is 10 bytes (without frame
header)
82: write variable register command
01 40: Variable address, set in control properties
56 49 45 57 31 32 33: Data content, ASCII code for "VIEW 123"
Address
Data
Offset
Definition length Description
(Double
(bytes)
Bytes)
0x00 0x0000 2
Beginning display position, display coordinates of upper left corner of
0x01 X,Y 4
character string
0x03 Color 2 Font Color
0x04:H Lib_ID 1 Font position
0x04:L Font size 1 The dot matrix number of X direction
Coded string, composed by RTC coding table and ASCII character
Assume current time 2014-05-0112: 00: 00: 00 Wednesday
0x05 String_Code Max14
Y_M_D H: Q: S0x00 will be displayed as 2014-05-01 12: 00: 00
M_D W H: Q0x00 will be displayed as 05-01 WEN12: 00
- 59 -
Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China,100025
Tel:86)-10-84351669 Fax: 86)-10-84351668 www.stone-hmi.com
STONE TECH
0x06 Icon_Minute 2 ID of minute ICON, and 0xFFFF represents that the minute hand is
not shown
Icon_Minute
0x07 4 Rotation center position of minute ICON.
_ central
The ID of the second hand ICON, 0xFFFF indicates that the second
0x09 Icon_Second 2
pointer is not shown
- 60 -
Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China,100025
Tel:86)-10-84351669 Fax: 86)-10-84351668 www.stone-hmi.com
STONE TECH
Icon_Second
0x0A 4 Rotation center position of second hand ICON.
_ central
0x0C:H ICON_Lib 1 ICON Library File ID of Pointer icon
Undefined 1 Write 0x00
Address
Data
Offset
Definition length Description
(Double
(bytes)
Bytes)
The intial address for variable pointer data string, variable is BCD
0x00 *VP 2
code
Intial display position, display coordinates of upper left corner of
0x01 X,Y 4
character string
0x03 Color 2 Font Color
0x04:H Byte_Num 1 Number of VP pointer high byte start display, 0x01-0x0F
The font library position must be a half angle font. If the Lib _ ID is
0x04:L Lib_ID 1
not 0, it must be encoded with 8 bit.
0x05:H Font_X 1 Dot matrix number of X-direction
The coded string, combined with the time variable to form the display
format required by the client. Each time a BCD code is displayed, an
ASCII character is taken in order from the encoding string for interval
display
0x05:L String_Code Max13
The special coding definition of coded string :
0x00: Invalid, no character displayed, two BCD codes connected
together.
0x0D: Line feed display. That is X = Xs, Y = Y + Font _ X * 2
For example: display the time variable "08: 30", and UART send the command:
- 61 -
Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China,100025
Tel:86)-10-84351669 Fax: 86)-10-84351668 www.stone-hmi.com
STONE TECH
A5 5A 05 82 6F 00 08 30
Description: A55A: Frame head
05: command byte length, 82 6F 00 08 30 total 5 bytes (excluding frame header)
82: write variable register command
6F 00: Variable address, set in control properties
08 30: data content, BCD code of 08 30
Address
Offset Data length
Definition Description
(Double (bytes)
Bytes)
Text pointer
The first 3 words of a text pointer must be reserved, the user
0x00 *VP 2
display text content must be stored from (VP + 3) and text must
end with 0xFF or 0x00
0x01:H Rolling_Mode 1 Scroll mode: 0x00 represents scroll from right to left
Scroll distance, pixels number of each Intelligent TFT LCD
0x01:L Rolling_Dis 1
Module periodic text scrolling
Alignment: 0x00 = left alignment, 0x01 = right alignment, 0x02 =
centered
0x02:H Adjust_Mode 1
The scrolling stops when the text display content is insufficient for
the text box, and the display alignment mode is valid.
0x02:L Undefined 1 Write 0x00
0x03 Color 2 Show Text Color
0x04 Xs Ys Xe Ye 8 Text box
When coding mode is 0x01-0x04, the font library position
displayed by ASCII characters
0x08:H Font0_ID 1
When coding mode is 0x00, 0x05, do not set this parameter, and
write 0x00.
When coding mode is 0x01-0x04, the font library position
displayed by non-ASCII character
0x08:L Font1_ID 1
When coding mode is 0x00, 0x05: display the font library
position used by character
The dot matrix number of font X direction (0x01-0x04 mode,
0x09:H Font_X_Dots 1
ASCII character X will be automatically calculated according to
- 62 -
Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China,100025
Tel:86)-10-84351669 Fax: 86)-10-84351668 www.stone-hmi.com
STONE TECH
Y/2)
0x09:L Font_Y_Dots 1 The dot matrix number of font Y-direction
. 7 defines whether displayed character spacing is automatically
adjusted:
. 7 = 0 character spacing is automatically adjusted;
. 7 = 1 character spacing does not automatically adjusted, and the
0x0A:H Encode_Mode 1
character width is fixed to the set dot matrix number.
. 6-. 0 defines text coding:
0 = 8 bit code, 1 = GB2312 internal code, 2 = GBK, 3 = BIG5, 4 =
SJIS, 5 = UNI CODE
0x0A:L Text_Dis 1 Character space distance
Note that when the text is displayed, the dot matrix number of Y-direction in the font must be even.
The 0 font pre-loaded in Intelligent TFT LCD Module contains all ASCII characters of 4 * 8-64 * 128
dot matrix.
Send command reference text display.
5. 3 Graphic Variables
5. 3. 1 Real-time curve (trend chart) display (0x20)
Address
Data
Offset
Definition length Description
(Double
(bytes)
Bytes)
0x00 0x0000 2 No definition
Curve window: coordinates of upper left corner (Xs, Ys), coordinates of
0x01 Xs:Ys:Xe:Ye 8
lower right corner (Xe, Ye)
0x05 Y_Central 2 Curve center position
0x06 VD_Central 2 Curve data value corresponding to center curve
0x07 Color 2 Curve Color
0x08 NUL_Y 2 Curve magnification in 1/256, 0x0000-0xFFFF
0x09:H CHANEL 1 Data Source Channel: 0x01-0x07
0x09:L Dis_HOR 1 Horizontal axis space distance
The curve data is sent with 0x84 command, refer to 2. 2 command set description
- 63 -
Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China,100025
Tel:86)-10-84351669 Fax: 86)-10-84351668 www.stone-hmi.com
STONE TECH
If the variable description content is stored in the data storage space (* SP specifies the storage position),
then:
The automatic contraction and expansion of the curve can be achieved without the user’s code
intervention when combined with the 0x02 incremental touch command
The up and down movement of the curve can be achieved without the user’s code intervention
when combined with 0x03 dragging the touch command to modify the value of Y _ Central.
Vertical axis magnification calculation of full-scale curve:
MUL _ Y = (Ye-Ys) * 256 (Vmax-Vmin) Ye, Ys are Y coordinates of the curve window, and Vmax
and Vmin are the maximum and minimum values of the curve data.
For example, a 12bit A D acquisition data (Vmax = 4095Vmin = 0) should correspond to a full-scale
display of the screen region of Ys = 50, Ye = 430:
MUL _ Y = (430-50) * 256 (4095-0) = 23. 7 round down to 23..
Address
Data
Offset
Definition length Description
(Double
(bytes)
Bytes)
0x00 *VP 2 Variable data pointer
Drawing display area definition: the coordinates of the upper left
corner and lower right corner of the specified area
0x01 Area 8
Beyond limit drawing will not be shown, and only valid for
0x0001-0x0005, 0x0009, 0x000A, 0x000B
0x5A: Line drawing command (0x02, 0x03, 0x09, 0x0A command)
will be used
Dashed_Li
0x05:H 1 Dotted line or dot dash line displayed line segment
ne_Ent Other: display the line segment use the drawing command of line
segment
- 64 -
Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China,100025
Tel:86)-10-84351669 Fax: 86)-10-84351668 www.stone-hmi.com
STONE TECH
The 4 bytes are sequentially formatted with dotted lines (dot-dash
lines) :
The number of solid lines dot matrix in first section, The number of
dotted lines dot matrix in first section, The number of solid lines dot
0x05:L Dash_Set 4
matrix in second section, The number of dotted lines dot matrix in
second section
For example, set 0x100x040x100x04 to display dotted lines, and set
0x100x040x020 x04 to display dotted dash lines
13 Reserved, write 0x00
The basic graphic display first defines a "drawing board" function in the configuration file, and the
specific drawing operation is determined by the variable memory content pointed to by * VP. The user can
change the variable memory function to achieve different drawing functions.
(Variable storage space)Variable data format Description
- 65 -
Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China,100025
Tel:86)-10-84351669 Fax: 86)-10-84351668 www.stone-hmi.com
STONE TECH
0x02 2 (x,y) e Lower right corner coordinate of rectangular
0x04 1 color Rectangular color
Upper left corner coordinate of rectangular
0x00 2 (x,y) s domain, X coordinate high byte is the judgment
Rectangle
condition
0x0004 filling
Lower right corner coordinate of rectangular
0x02 2 (x,y) e
domain
0x04 1 color Rectangular Filling Color
Circle center coordinate, X coordinate high byte is
Integral 0x00 2 (x,y)
the judgment condition
0x0005 arc display
0x02 1 Rad Radius
0x03 1 color Circular color
Page ID of cut image area, high byte is the
0x00 2 Pic_ID
judgment condition
Picture
0x02 2 (x,y) s Upper left corner of the cut picture area
area cut
0x0006 0x04 2 (x,y) e Lower Right Corner of the cut Picture Area
and paste
The cut picture area is pasted to the coordinate
0x06 2 (x,y) position of the current page, the upper left corner
coordinate
Display coordinate position, x coordinate high
0x00 2 (x,y)
byte is the judgment condition
Icon Icon ID, icon library position is specify by the
0x**07
display high byte of command 0x ** 07
0x02 1 ICON_ID
The icon is fixed without displaying the
background.
Area Seed-point coordinate, x-coordinate high byte is
0x00 2 (x,y)
0x008 filling the judgment condition
0x02 1 color Filling Color
Spectrum 0x00 1 Color0
Display connect (X0,Y0s)(X0,Y0e)with Color 0, X0
0x0009 X0,Y0s,Y
(Vertical) 0x01 3 high byte is the judging condition
0e
0x00 1 Color
Segment Connect (Xs, Ys) (Xe, Ys) with Color, Xs high
0x000A 0x01 2 (Xs,Ys)
display byte is the judging condition
0x03 2 (Xe,Ye)
0x00 1 Color0
Circular arc display
0x01 2 (X,Y) 0 Center (X, Y) coordinate, X coordinate high byte
Circular
0x000B is the judgment condition
arc display
0x03 1 RAD0 Radius
0x04 1 DEG_S0 Starting angle, Unit 0. 5°, 0-720
0x05 1 DEG_E0 Ending angle, unit 0. 5°, 0-720
0x00 1 Color0 Character display color
Character Character display position, upper left corner
0x000C
display 0x01 2 (X,Y) 0 coordinate of character and X coordinate high byte
is the judgment condition
- 66 -
Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China,100025
Tel:86)-10-84351669 Fax: 86)-10-84351668 www.stone-hmi.com
STONE TECH
0x03H 0.5 Lib_ID Font library position
Character coding mode: 0 = 8bit 1 = GB23122 =
0x03L 0.5 En_Mode
GBK3 = BIG54 = SJ IS5 = UNI CODE
0x04H 0.5 X_Dots The dot matrix number of character X-direction
0x04L 0.5 Y_Dots The dot matrix number of character Y-direction
Character data, 8 bit coding, valid only for high
byte
0x05 1 Text0 When the coding mode is 01-04, if the character
data is ASCII characters, it is displayed
automatically using 0 # pre-installed fonts.
The upper left corner of coordinates rectangle area
0x00 2 (x,y)s and the x coordinate high byte as the judgment
Rectangul condition
0x000D ar area The lower right corner coordinates of rectangular
0x02 2 (x,y)e
XOR area
Color of rectangular area XOR, 0xFFFF will
0x04 1 Color
perform anti-color operation
Bitmap shows the upper left corner coordinates of
0x00 2 (x,y)s the rectangular area. The x coordinate high byte is
the judgment condition.
0x02 1 X_Dots The dot matrix number of Bitmap X direction
0x03 1 Y_Dots The dot matrix number of Bitmap X direction
Two-color 0x04 1 Color1 Display color corresponding to "1" bit
0x000E bitmap Display color corresponds to "0" bit: if color 0 and
display 0x05 1 Color0 color 1 are the same, representing that the "0" bit
does not need to be displayed and directly skips.
Display data, MSB mode; for the convenience of
users to read and write data, each line of data must
0x06 N Data_Pack
be aligned to a word, that is the next line of data is
always begin with a new data word (word)
Bitmap shows the upper left corner coordinates of
0x00 2 (x,y)s the rectangular area. The x coordinate high byte is
the judgment condition.
The dot matrix
0x02 1 X_Dots number of Bitmap X Limited by variable space
Bitmap direction size , maximum display
0x000F
display The dot matrix bitmap is 196 * 146 (4: 3)
0x03 1 Y_Dots number of Bitmap Y or 226 * 126 (16: 9)
direction
Display data, one word per pixel (MSB, 565RGB
0x04 N Data_Pack
data format)
- 67 -
Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China,100025
Tel:86)-10-84351669 Fax: 86)-10-84351668 www.stone-hmi.com
STONE TECH
After magnified
once, the image is
pasted on the upper
0x00 2 (x,y) left corner of the
screen, and the X When the area to be
Sticking high byte is the enlarged is located in the
display of judgment condition. enlarged image area, it
0x0010 area Top left corner must be aligned in the
magnificat coordinates of lower right corner. Nested
0x02 2 (x,y)s
ion rectangular area to be amplification can produce
enlarged greater magnification
Right corner
coordinates of
0x04 2 (x,y)e
rectangular area to be
enlarged
Judgment condition: 0xFF drawing operation ends, 0xFE is skipped (omitted).
Example of basic graphic display (take the example of cut and past command in picture 0x0006)
Step1 defines a basic graphic display on the interface, and the variable * VP points to Address 0x1000;
Step2 using USB to download the configuration file to Intelligent TFT LCD Module;
Step3 UART writes 0x0006 command related contents to 0x1000 address (* VP), and (cut (100, 100) (512,
256) area of the third page and paste into the (0, 0) position of the current interface. ).
As long as the VP content is unchanged, the Intelligent TFT LCD Module will execute command on the
page where the drawing board command is located, showing the cut and paste contents
- 68 -
Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China,100025
Tel:86)-10-84351669 Fax: 86)-10-84351668 www.stone-hmi.com
STONE TECH
Connect the end point of coordinate (340, 237) and coordinate (585, 237)
A5 5A 11 82 10 00 00 02 00 01 00 00 01 54 00 ED 02 49 00 ED
Set point on coordinates (340, 237)
A5 5A 11 82 10 00 00 01 00 01 01 54 00 ED 00 00
The rectangle of the lower right corner coordinates(585, 340), and the upper left corner coordinates (340,
237) rectangle
A5 5A 11 82 10 00 00 03 00 01 01 54 00 ED 02 49 01 54 00 00
The circle of circle center coordinates (470, 325), and the radius is 50
A5 5A 0F 82 10 00 00 05 00 01 01 D6 01 45 00 32 00 00
The coordinates of upper left corner(265, 64) and coordinates of lower right corner (785,256)are cut
and pasted into the current interface coordinates (265, 64).
A5 5A 15 82 10 00 00 06 00 01 00 01 01 09 00 40 03 11 01 00 01 09 00 40
Endpoint coordinates (80, 80) (128, 128) segment display
A5 5A 11 82 10 00 00 0A 00 01 00 00 00 50 00 50 00 80 00 80
Description: 0001 in above command refers to the number of maximum data packets, that is, the times
of implementing drawing command, such as drawing a line, a rectangular box, a circle, is set to 00 01, draw
two lines, two rectangular box, two circles, is set to 00 02.
5. 3. 3List display (0x22)
Address
Data
Offset
Definition length Description
(Double
(bytes)
Bytes)
2 Table Content Pointer, that is the First Address of TAB _ X _ Num
0x00 *VP
and TAB _ Y _ Num Array
0x01:H TAB_X_Num 1 Number of columns, 0x01-0xFF
0x01:L TAB_Y_Num 1 Number of lines, 0x01-0xFF
0x02:H TAB_X_Start 1 column position of Table start display , 0x00-0xFF
0x02:L TAB_Y_ Start 1 Line position of Table Start Display, 0x00-0xFF
0x01-0xFF All cell stores have the same data length.
0x00 defines the length of data for different column cells by
the * VP variable address pointer to the variable memory space.
(Word, word length)
0x03:H Unit_Data_Num 1
When Unit _ Data _ Num = 0x00, the table data content storage
position is extended (TAB _ X _ Num 2), and round up to entire
word address
For example, * VP = 0x1000, TAB _ X _ Num = 0x07, then:
0x1000-0x1003 sequentially stores the table data length of column
- 69 -
Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China,100025
Tel:86)-10-84351669 Fax: 86)-10-84351668 www.stone-hmi.com
STONE TECH
0-6, where 1003 low byte is unused. 0x1004 Address starts to store
table content
. 7 defines whether text display character spacing is automatically
adjusted:
. 7 = 0 character spacing automatically adjusted
. 7 = 1 no automatic adjustment of characters spacing, and the width
of characters is fixed set dot matrix number
. 6 defines Form content format:
Note: When Encode _ mode. When 6 = 1, the first two words of each cell data content define the table data
format, which is explained as follows:
First word high byte: Mode Select data type
- 70 -
Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China,100025
Tel:86)-10-84351669 Fax: 86)-10-84351668 www.stone-hmi.com
STONE TECH
0x00 = integer (2 bytes),-32768 to 32767
0x01 = long integer (4 bytes)-214 7483648 to 214 7483647
0x02 = * VP high byte, unsigned number 0 to 255
0x03 = * VP low byte, unsigned number 0 to 255
0x04 = Super Long integer (8 bytes)-92233720 36854775808 to 92233720 36854775807
0x05 = unsigned integer (2 bytes) 0 to 65535
0x06 = Unsigned long integer (4 bytes) 0 to 4294967295
0x10 = time format 1, 12: 34: 56BCD code string
0x11 = time format 2, 12-34-56BCD code string
0x12 = time format 3, YYYY-MM-DD HH: MM: SS BCD code string
0xFF = Text format
First word low byte:
Mode = 0x00-0x06 defines the fixed point display format of the variable data, the high 4bit represents
the integer number of bits, and the low 4bit represents the decimal number.
Mode =Length of byte of 0x10-0X11 time BCD code string
Mode = Other undefined
2nd word: Define cell text color
If that actual content of the table is short than the length specified by Unit_Data_Num, use 0xFFFF as
the text ending character of the cell
For particularly large tables, the positioning and dragging of the table can be easily achieved through
the modification of TAB_X_Start、TAB_Y_Start value.
Data
Address Offset
Definition length Description
(Double Bytes)
(bytes)
0x00 *VP 2 The two-dimensional code displays the content pointer.
The two-dimensional code is 458 Bytes, and 0x0000 or 0xffff is
an ending character.
0x01 (x,y) 4 The coordinate position of the two-dimensional code.
(x, y) is the coordinate position of the upper left corner of the
two-dimensional code in the screen.
Two-dimensional code graphics have 45 * 45 unit pixels (data less
than 155 bytes) and 73 * 73 unit pixels (data less than 459 bytes).
0x03 Unit Pixels 2 The physical pixel dot matrix size of each two-dimensional code
unit pixel, 0x01-0x07.
Setting Unit _ Pix els = 4, then each unit pixel will show in 4 * 4
dot matrix size.
- 71 -
Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China,100025
Tel:86)-10-84351669 Fax: 86)-10-84351668 www.stone-hmi.com
STONE TECH
- 72 -
Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China,100025
Tel:86)-10-84351669 Fax: 86)-10-84351668 www.stone-hmi.com
STONE TECH
6 Description pointer
For simple applications, users do not require knowledge of this chapter.
As shown in the graph description pointer column, FFFF represents that the current variable is
prohibited to describe the pointer function. If it is filled with other data (any one of the 0000-FFFE) that
represents that the current variable is enabled to describe the pointer, and the filled data is used to specify the
variable memory address as the begining unit, open continuously in the variable memory A space (different
variable types, block lengths, and data formats are also different, each variable has a detailed table that
defines the corresponding data format) for storing the display format of the variable. The user can use the
variable memory address to dynamically modify the variable display format using the 0x82 command.
Each attribute of a display variable can be read and written by describing pointer. The pointer address
- 73 -
Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China,100025
Tel:86)-10-84351669 Fax: 86)-10-84351668 www.stone-hmi.com
STONE TECH
range, 0x0000-0xFFFE, is also stored in the user variable data store area, so the user-defined variable address
can not overlap with the address describing the pointer.
2. See Section 5.2 for the description of the data variables, as shown in Figure 6-2-2
Address
Data
Offset
Definition length Description
(Double
(bytes)
Bytes)
0x00 *VP 2 Variable pointer
Beginning display position, display character string upper left corner
0x01 X,Y 4
coordinates
0x03 Color 2 Display Color
0x04:H Lib_ID 1 ASCII character Position
0x04:L Font size 1 The dot matrix number in the character X direction
Alignment
0x05:H 1 0x00 = left alignment, 0x01 = right alignment, 0x02 = align centered
mode
Number of integer bit displayed (the sum of the integer and decimal
0x05:L Integer digit 1
bit cannot exceed 20).
Number of decimal bit displayed (the sum of the integer and decimal
0x06:H Decimal digit 1
bit cannot exceed 20)
- 74 -
Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China,100025
Tel:86)-10-84351669 Fax: 86)-10-84351668 www.stone-hmi.com
STONE TECH
It can be seen from the figure that the offset corresponding to the color is 03, and the variable memory
address corresponding to the color attribute is 0x4000 + 03 = 0x40 03. The display color of the data variable
is changed by adjusting the data in the 0x40 03 cell through 0x82 command.
For example, UART sends: A5 5A 05 82 40 03 F8 00
Then setting data variable displayed by red (0xF800 red).
In this example, the button key value is used to return the control. When the button is pressed, the key
value is written directly as the corresponding color value into the variable memory 0x40 03 unit. The key
return control property setting is shown in Figure 6-2-3.
- 75 -
Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China,100025
Tel:86)-10-84351669 Fax: 86)-10-84351668 www.stone-hmi.com
STONE TECH
Many models of Intelligent TFT LCD Module are provided with a keyboard interface, as shown in Figure
1-2, the interface can connect 8 rows and 8 columns keyboard at most through the adapter plate KAP02.
As shown in the above figure, the adapter plate KAP02 provides two sockets, one is 6 PIN 1.0 pitch
FPC socket, used for connection to the Intelligent TFT LCD Module, the other is 16PIN 2.54 pitch
single-row bent needle, used to connect 8 rows and 8 columns keyboard at most.
Row line
codes in the picture
The blue numbers are key
Column line
- 76 -
Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China,100025
Tel:86)-10-84351669 Fax: 86)-10-84351668 www.stone-hmi.com
STONE TECH
The keyboard line connection relationship and key codes are as shown in the figure above. The
intersection position of each line and column is a key, there are 64 buttons at most, and the corresponding
key code is 0-63.
When users design the button through Intelligent TFT LCD Module 4.3 configuration software, the
specified button and external keyboard can be linked by specified key code.
When the user needs external keyboard, contact the relevant personnel to select the KAP02 adapter plate
or make add coring to the circuit principle diagram of Fig. 2-3.
- 77 -
Room 1407, Building C, Yuanyang International Center, Chaoyang District, Beijing, China,100025
Tel:86)-10-84351669 Fax: 86)-10-84351668 www.stone-hmi.com