AACS-Display (all angle color stability, optimized backlight and TFT-Panel over widest viewing angle)
·
Superbright LED backlight over 800 cd/m²
·
Object-oriented screen layout
·
Change object during run-time: size, shape, color, content
·
Animate and move objects, alpha-blending
·
Fonts: ASCII and Unicode
·
Single supply 3.3 V or directly through USB
·
Serial Interfaces: USB, RS232, SPI, I²C
·
8 digital, freely definable I/Os built in, expandable up to 136, 4 analog inputs
·
Time (RTC), battery-buffered
·
Flash-memory as storage for pictures, fonts, menus and log-files
·
Internal functions for calculation as well as programmability
·
Tone feedback build-in
ORDERING CODES
2.0" TFT 320x240 dots, PCAP, white LED backlight (external dimensions: 65 x 43 mm)EA uniTFTs020-ATC
2.8" TFT 320x240 dots, PCAP, white LED backlight (external dimensions: 84 x 58 mm)EA uniTFTs028-ATC
3.5" TFT 480x320 dots, PCAP, white LED backlight (external dimensions: 100 x 65 mm)EA uniTFTs035-ATC
4.3" TFT 480x272 dots, PCAP, white LED backlight (external dimensions: 114 x 84 mm)EA uniTFTs043-ATC
ACCESSORIES
Quick-Start Set incl. 2.8" Display
ZIF-connector 40 positions 0.5 mm pitch connector for FPC-cableEA WF050-40S
FPC-cable 40 postitions, 0.5 mm pitch, 102 mm longEA KF050-40
USB-Kabel Type A -> Mini USB around 1 mEA KUSB-MINI
Printing and typographical errors reserved.
ELECTRONIC ASSEMBLY reserves the right to change specification without prior note.
Page 2
EA uniTFTs series
Content
General .......................................................................................................................................................... 4
Coordinate system and angle ...................................................................................................................... 9
Multi language - String files ........................................................................................................................ 10
Power supply ........................................................................................................................................... 19
Serial interfaces ........................................................................................................................................ 20
USB ................................................................................................................................................... 23
Time ........................................................................................................................................................ 29
Dimension EA uniTFTs020-ATC .................................................................................................................. 33
Dimension EA uniTFTs028-ATC .................................................................................................................. 37
Dimension EA uniTFTs035-ATC .................................................................................................................. 41
Dimension EA uniTFTs043-ATC .................................................................................................................. 45
Protocol / Data transfer.................................................................................................................................. 49
Short protocol ........................................................................................................................................... 51
Small protocol .......................................................................................................................................... 55
Input elements ........................................................................................................................................ 108
I/O Port .................................................................................................................................................. 174
Serial master interfaces ........................................................................................................................... 181
Time ...................................................................................................................................................... 192
Functions and Calculations ........................................................................................................................... 224
Printing and typographical errors reserved.
ELECTRONIC ASSEMBLY reserves the right to change specification without prior note.
Short cuts .............................................................................................................................................. 236
Language Editor ...................................................................................................................................... 238
Printing and typographical errors reserved.
ELECTRONIC ASSEMBLY reserves the right to change specification without prior note.
3 / 252
Page 4
EA uniTFTs series
GENERAL
The EA uniTFTs series provides sophisticated graphical functions and intuitive menu control with its built-in instruction
set. Thanks to the integrated instruction set and the Windows design software uniTFTDesigner, not only electronics
specialists, but also experts in the field of design and user guidance are able to create the entire HMI.
The display modules are immediately ready for operation with 3.3 V, controlled via the built-in serial interfaces RS232,
SPI, I²C or USB. The modules can be operated directly through the USB, too.
Object-oriented "programming", the wide set of commands, and the integrated but extensible Unicode fonts make
"time-to-market" a breeze.
The EA uniTFT series, which forms the high-end market with larger modules, comes up with a very similar command
set:
Currently are 3 different sizes available: 5" with 800x480 dots, 7" IPS with 1024x600 dots and 1000cd/m² and 10.1"
IPS with 1280x800 dots and 1000cd/m².
Printing and typographical errors reserved.
ELECTRONIC ASSEMBLY reserves the right to change specification without prior note.
4 / 252
Page 5
EA uniTFTs series
SOFTWARE - OPERATION OF EA UNITFTS-SERIES
The presentation on the display is based on the given commands. The commands can either be transmitted at runtime
via one of the serial interfaces or combined on the internal memory in so-called macros and stored permanently. With
the help of the commands, graphic objects are created. These objects have different properties, like color, position and
built-in actions. These properties can be changed at any time, for example a string or the position of a touch-sensitive
button can be changed.
All conceivable objects can be arbitrarily placed, moved and deleted. Windows font sets are stored directly in the
display's memory. Thanks to automatic ASCII and Unicode switching, a wide variety of systems are supported flexibly,
Chinese characters included. Elegant effects like fading in or out are already integrated. Style sheets can be used to
create consistent designs. Images JPEG, PNG and many more (also transparent) can be integrated. Together with the
integrated (EA uniTFTs035-ATC and EA uniTFTs043-ATC), battery-buffered time base, events can be documented
together with a time stamp or processes can be controlled completely autonomously without an external computer.
Printing and typographical errors reserved.
ELECTRONIC ASSEMBLY reserves the right to change specification without prior note.
5 / 252
Page 6
EA uniTFTs series
Objects
Every picture, text element and button is a so-called object. Each object got its own, individual object ID, which makes
it uniquely identifiable. The object ID can be used to change the properties of an object at any time (size, position...).
You can use 0 as ID for creating simple graphical objects. These objects are rendered directly to the background and
aren't editable and manipulable any more. If you assign an already existing object ID to a new object, the previous
object will be overwritten.
Commands for object management can be found here.
Object position / Anchor
General anchors
The position of an object is based on the coordinates (origin: bottom left edge) related to the object anchor. Each
object has 9 fixed anchors. Transformation on the object (e.g. rotation or shear) will be applied to the active anchor.
Strings and anchors
Strings have additional 9 anchors used to align objects (e.g. an underscore line) to the text base line.
Special case: Anchor 0
Each object has additionally a freely definable anchor. For circles, ellipses, and stars, the object anchor 0 is the
Printing and typographical errors reserved.
ELECTRONIC ASSEMBLY reserves the right to change specification without prior note.
6 / 252
Page 7
construction point.
EA uniTFTs series
Example: The pointer should rotate around the centre of
the circle. The pointers 9 standard anchors (shown in
dark grey) are not useful in this case because none of the
defaults are located in the right position. The anchor 0
can be placed pixel-precise (#OAS) as shown, and this
custom location marks the correct rotation point for the
pointer object.
Printing and typographical errors reserved.
ELECTRONIC ASSEMBLY reserves the right to change specification without prior note.
7 / 252
Page 8
EA uniTFTs series
Styles / StyleSheets
Styles can be used to create consistent design. There are
- DrawStyles
- TextStyles
- ButtonStyles
Before placing any graphic object or text object, a DrawStyle or a TextStyle need to be defined. A DrawStyle defines
the pen type and a fill color and the TextStyle the font and it's size.
DrawStyle:
Color, gradients, pattern and pen for (out)lines are defined in a DrawStyle.
TextStyle:
The appearance of a string is defined in a TextStyle. A TextStyle is based on a DrawStyle for color and some font
specification for size, alignment and spacing.
ButtonStyle:
Touch buttons and switches are defined by a ButtonStyle, which consists of a TextStyle for labeling and DrawStyles
for background painting.
ColorRamp:
Filling an object can be done with solid color or with some gradient. Those gradient and its colors are defined in
ColorRamps and can be used linear or radial.
The Windows tools uniTFTDesigner supports StyleSheets that contain a collection of several Draw, Text, and
ButtonStyles ans also ColorRamps.
The commands related to styles and colorramps can be found here.
Printing and typographical errors reserved.
ELECTRONIC ASSEMBLY reserves the right to change specification without prior note.
8 / 252
Page 9
EA uniTFTs series
Coordinate system and angle
The coordinate system refers directly to the display resolution of the module with the origin 0|0 placed in the lower left
corner of the display. For example the EA uniTFTs028-A has a drawing field of 320 x 240 dots. Valid coordinates for
this display are 0..319 and 0..239 hence.
Angles are given in the mathematical sense of rotation (counter-clockwise). 0° is horizontally right. Besides
instruments rotation is available in 90° steps:
Printing and typographical errors reserved.
ELECTRONIC ASSEMBLY reserves the right to change specification without prior note.
9 / 252
Page 10
EA uniTFTs series
Multi language - String files
In an increasingly interdependent world of international assignments, supporting multiple languages is a must. The EA
uniTFTs-Series with its unicode support is part of the solution. Without unicode it's basically impossible to work with
Chinese characters e.g..
The second part of supporting internationalization are string files: these text files provide a database of strings to be
displayed. In macro files, strings are referenced by an index, then at runtime this index is replaced with the
corresponding text taken from the string file.
Further details can be found by looking at the command description under #VFL or the examples.
Printing and typographical errors reserved.
ELECTRONIC ASSEMBLY reserves the right to change specification without prior note.
10 / 252
Page 11
EA uniTFTs series
Boot menu
Multiple projects can be stored on the integrated memory. The project which is started automatically is defined using
the "start.emc" file. To load a different project, the start file need to be updated, or on touch enabled panels, a project
can be selected via the boot menu:
When switching on the device (or after hardware reset), wipe over the touch panel several times in short interval.
To avoid mis-use by the operator, the boot menu can be deactivated. For this purpose, an empty file named
"bootmenu.off" must be placed in the root directory of the memory. This can be done using mass storage mode and
Windows Explorer to transfer the file, or directly via uniTFTs commands:
#FWO</bootmenu.off>
#FWC
In addition to project selection, the boot menu offers the option to start test mode, or to display information about the
module. It provides the version, protocol status, baudrate, SPI mode, I²C bus address etc
Printing and typographical errors reserved.
ELECTRONIC ASSEMBLY reserves the right to change specification without prior note.
11 / 252
Page 12
EA uniTFTs series
Firmware-update
To use the latest features of the EA uniTFTs-Series, it might be necessary to update the internal firmware of the
module. There are two ways of updating, through the serial interface or with the help of the SD-Card.
Firmware-update via serial interface and Windows PC:
·
Save the firmware file (e.g. EA_uniTFTs_V1_1.fw) to your local drive
·
Connect the EA uniTFT with your PC
·
Start uniTRANSFER.exe (found in the Simulator_and_Tools folder of the uniTFTDesigner installation) and select
the correct serial interface to the EA uniTFTs.
·
Drag'n'Drop the firmware file to the EA uniTRANSFER window.
·
After transferring the data, a manually reset needs to be performed, then the firmware will be loaded automatically
after restart. Attention: Please do not switch of the module while updating.
·
The firmware file is deleted from the SD Card as long as the file is not marked as "read only".
Firmware update via serial interface
The firmware file also can be transferred to EA uniTFT with any system. To do this, transfer the contents of the * .fw file
1:1 (with protocol in packets) to the EA uniTFT. The transfer progress will become visible on the display module. After
successful transfer, a data check will be done automatically. If the data is correct, the update starts automatically.
Printing and typographical errors reserved.
ELECTRONIC ASSEMBLY reserves the right to change specification without prior note.
12 / 252
Page 13
EA uniTFTs series
Attention: Please do not switch of the module while updating.
Printing and typographical errors reserved.
ELECTRONIC ASSEMBLY reserves the right to change specification without prior note.
13 / 252
Page 14
EA uniTFTs series
HARDWARE
The EA uniTFTs-Series consists of a TFT-Display with LED backlight, driven by an integrated driving circuit, which is
dimmable using software commands. In 24/7 operation the backlight can be dimmed automatically to increase the
LED life-time and save energy.
The module is designed to work with 3.3 VDC. Serial data transfer is possible through RS232, SPI, I²C or direct via
USB protocol.
For simple control tasks, the module has 8 freely usable I/Os (expandable up to 136), 4 analogue inputs, one PWM
output and 3 serial interfaces (RS232, SPI and I²C).
The moudles do have an integrated capacitive touch panel. By touching the display you can enter data and make
adjustments via menu or bar graph. The labelling, size and shape of the "keys" is flexible and can also be changed
during runtime (different languages, icons). The drawing of the individual "keys", as well as the labelling is completely
taken over by the built-in software. The capacitive touchpanel has an robust glass surface that can also be operated
with thin gloves.
Front view (example EA uniTFTs043-ATC)
Printing and typographical errors reserved.
ELECTRONIC ASSEMBLY reserves the right to change specification without prior note.
14 / 252
Page 15
EA uniTFTs series
Rear view (example EA uniTFTs043-ATC)
Printing and typographical errors reserved.
ELECTRONIC ASSEMBLY reserves the right to change specification without prior note.
15 / 252
Page 16
EA uniTFTs series
Pin assignment
Pin assignment for ZIF connector. It's an FPC connector with 40 positions and 0.5 mm pitch. Bottom contact.
Printing and typographical errors reserved.
ELECTRONIC ASSEMBLY reserves the right to change specification without prior note.
16 / 252
Page 17
EA uniTFTs series
PinSymbolI/ODescription
1GNDGround 0 V
2VDDPower Supply 3.3 V
3RESIResetinternal Pull-Up: (10..75 kW)
4CSISPI: Chip Selectinternal Pull-Up: (1 MW)
5MOSIISPI: MOSI
6MISOOSPI: MISO
7CLKISPI: CLKinternal Pull-Up: (1 MW)
8RxDIRS232: Receive Datainternal Pull-Up: (1 MW)
9TxDORS232: Transmit Data
10DEORS485: Transmit Enable
11SDAI/OI²C: Serial Datainternal Pull-Up: (10 kW); Pull-Up resistors can be changedforproperI²Cconnection
12SCLII²C: Serial Clockinternal Pull-Up: (10 kW´
13SBUF
Printing and typographical errors reserved.
ELECTRONIC ASSEMBLY reserves the right to change specification without prior note.
18 / 252
Page 19
EA uniTFTs series
Power supply
The modules can be powered in three different ways:
Ziff-ConnectorSolderpadasUSB
Spannung3.3 V3.3 V5 V (Power over USB)
USB Lötrbückeopenopenclosed
Attention:
In order to avoid fault currents, the "USB Power Enable" solder bridge must be set correctly. The solder bridge is
closed by default. The internal voltage regulator is now active and generates 3.3 V from the connected USB supply. If
an additional 3.3 V is now supplied externally, fault currents occur.
Printing and typographical errors reserved.
ELECTRONIC ASSEMBLY reserves the right to change specification without prior note.
19 / 252
Page 20
EA uniTFTs series
Serial interfaces
The module provides 4 serial interfaces, including RS232, SPI, I²C and USB. In addition to the USB interface, the other
interfaces can change your behaviour:
They can either be used to connect to an external host, i.e. to a higher-level controller, or used as a master interface.
By default, all interfaces are parameterized as slaves and accept the commands.
Parameterized as a master interface, it enables the control of external sensors and actuators. The display module
behaves here as a master.
As already described, the interfaces behave as slave interfaces by default and accept commands. However, as soon
as a master interface command (#H ...)is executed, the interface gets master functions.
RS232
RS232 is a standard for a serial interface.
The EA uniTFT provides one RS232 interface, that can be operated as slave (default) or as master: As slave interface
it is used to communicate with the display. All data sent to the display are interpreted as a command (with and w./o.
Small-/Short-Protocol). If you would like to send and receive any data via RS232 to other devices then you have to use
it as master. Those are handled via #H commands.
The transmission is serially asynchronous. Thus the data is converted into a bit stream and transmitted. There is no
clock signal, so transmitter and receiver need to work with the same data rate (so-called baud rate). RS232 is a
voltage interface, such that data is transmitted using changing voltage levels. In the PC world and industrial controls,
levels of + 12V and - 12V are defined as standard. With boards or micro-controllers levels of 0V and VDD (in the case
of EA uniTFTs-Series 3.3 V) are common. To adjust the signal levels, there are some possibilities in the form of level
shifters (e.g., ICL232, MAX202). RS232 consists of "listening" and "talking" lines that are crossed between the two
parties.
In the EA uniTFTs-Series, the data format is fixed to 8-N-1:
The EA uniTFTs-Series works with the following baud rates:
Printing and typographical errors reserved.
ELECTRONIC ASSEMBLY reserves the right to change specification without prior note.
20 / 252
Page 21
EA uniTFTs series
The parameters (baud rate) are set using command #XCR (higher-level control unit), and the master interface is set
with the command #HRP. Those definition can be done in start.emc e.g.
Application notes
RS232 V24 - Interface to a PC (EA uniTFTs)
RS485 / RS422 interface
With this simple external IC a communicaion to any RS-485 and RS-422 can be done.
RS485 - Interface to a PLC (EA uniTFT )
SPI
The Serial Peripheral Interface is a bus system for serial synchronous data transfer.
The EA uniTFT provides a SPI interface: AS default the interface has Slave functionality and is used to communicate
with the display. All data sent to the display are interpreted as a command (with and w./o. Small-/Short-Protocol).
Would you like to send and receive any data via SPI to other devices like temperature sensor, then you have to use
the Master interface. Those are handled via #H commands.
Printing and typographical errors reserved.
ELECTRONIC ASSEMBLY reserves the right to change specification without prior note.
21 / 252
Page 22
EA uniTFTs series
The SPI is working with 4 lines:
·
MOSI (Master Out ®Slave In) or SDO (Serial Data Out) or DO
·
MISO (Master In ¬Slave Out) or SDI (Serial Data In) or DI
·
SCK (Serial Clock) - Shift clock
·
SS (Slave Select ® Addressing) or CS (Chip Select)
SPI works with a bidirectional transmission principle, meaning that data is exchanged between the connected devices
at the same time. The communication is controlled by the master using the SCK line.
The protocol for data transfer is not defined in SPI, therefore there are different configuration possibilities, which are
defined by the parameters Clock Polarity, Clock Phase and Data Order. The default setting is SPI mode 3 with DORD
= 0. The commands #XCS and #HSP (master interface) ) set the mode 0..3. Alternatively the command can be stored
directly into the boot file <start.emc>.
Printing and typographical errors reserved.
ELECTRONIC ASSEMBLY reserves the right to change specification without prior note.
22 / 252
Page 23
EA uniTFTs series
311
The maximum clock frequency is 1 MHz. The module needs some time to prepare data for transfer. That means a wait
cycle (no activity on the SCK-line) of at least 50 ms is required before reading data.
I²C
I²C stands for Inter-Integrated Circuit and is a serial data-bus developed by Phillips.
The EA uniTFT provides one I²C interface: As default the interface is parametrized as Slave and used to communicate
with the display. All data sent to the display are interpreted as a command (with and w./o. Small-/Short-Protocol).
Would you like to send and receive any data via I²C to any other device like temperature sensor, then you have to use
the Master functionality (pins 43 and 44). Those are handled via #H commands.
The bus is a Master-Slave implementation and needs 2 signal lines:
·
SCL (Serial Clock Line)
·
SDA (Serial Data Line)
The electrical specification defines that both lines are terminated with a pull-up resistor at VDD, because all devices
connected to the bus have open collector outputs. The bus clock is always given by the master, which controls the
entire communication:
After the start condition, the slave address follows. In this case, bit 0 is the so-called R/W bit and determines whether
the slave should be read (1) or data is transmitted (0). The data exchange takes place until the master executes the
stop condition. More detailed information can be found in the I²C specification. The default I²C bus address is 0xDE (as
8-Bit address, including R/W bit, as 7-Bit address without R/W bit it's 0x6F) when writing to the slave unit.
The command #XCI and #HIP (master interface) can change the I²C write address to any other address. Alternatively
the command can be written directly into the boot file <start.emc>.
The maximum frequency in slave mode is 400 kHz, the master interface is capable up to 1 MHz.The module needs
some time to prepare data for transfer. That means a wait cycle (no activity on the SCL-line) of at least 50 ms is
required before reading data.
Printing and typographical errors reserved.
ELECTRONIC ASSEMBLY reserves the right to change specification without prior note.
23 / 252
Page 24
EA uniTFTs series
USB
The Universal Serial Bus is a serial bus system for interfacing a PC with other peripherals. It's based on differential
data transfer. The bus topology is a strict master-slave communication (Exception: On the Go devices). In the case of
EA uniTFTs-Series the PC/Master needs to coordinate the communication. The module has a CDC (Communications
Device Class) and is found by Windows PC's as a virtual COM-Port:
DescriptionValue
Device Class2
USB Vendor ID0x2DA9
USB Product ID0x2454
Device descriptionEA uniTFT
To program the module, adjust settings or to perform initial tests, we recommend using the USB interface. It's easy to
connect, the transfer rate is fast and no interface parameters need to be specified. The driver for Windows can be
downloaded on our web-page: http://www.lcd-module.de/fileadmin/downloads/EA_CDCdriver_V5_2.zip
Attention:
A protocol has to be used in USB CDC mode. It's impossible to use the USB interface without a protocol, which
means pin 22 (primary connector) must not be set to GND. The high-speed connection of USB leads to buffer
overflow, which are prevented by the protocol.
Printing and typographical errors reserved.
ELECTRONIC ASSEMBLY reserves the right to change specification without prior note.
24 / 252
Page 25
EA uniTFTs series
Touch-panel
The modules all do have a optically bonded capcitive touchpanels, which is used for mounting, too. By touching the
display you can enter data and adjust settings via menus or bar graphs. The labelling of the "keys" is flexible and can
also be changed during runtime (different languages, icons). The drawing of the individual "keys" as well as the
labelling is completely handled by the built-in software.
Printing and typographical errors reserved.
ELECTRONIC ASSEMBLY reserves the right to change specification without prior note.
25 / 252
Page 26
EA uniTFTs series
I/O - digital in- and outputs
The module has 8 digital I/Os (CMOS level, nonfloating). The input range is 0... 3.3 V. All 8 I/Os have a
weak pull-up at 1 MW and are set as inputs after reset.
Remark: The logic is not designed for time-critical
operations; i.e. it is not a real-time operating system
By using one or more external (max. 8) MCP23017-E
(16 I/Os per IC), the total number of I/Os can be
expanded up to 136. Therefore the port-expanders are
connected to pins 35-37 (see application example).
The maximum power of the MCP23017-E is 700 mW in total. The maximum current load for a single pin is 25 mA,
which makes it possible to directly operate a low current LED. If a higher load is required, the I/O current must be
amplified with suitable circuitry, e.g. through an external transistor. For more details see Electrical characteristics
The overview of the software commands for the I/Os can be found under the chapter 'I/O Port'.
Printing and typographical errors reserved.
ELECTRONIC ASSEMBLY reserves the right to change specification without prior note.
26 / 252
Page 27
EA uniTFTs series
Analogue input
The module uses 4 analogue inputs with a resolution of
12 bit and an input range of 0 V...VDD. The input range
can be arbitrarily expanded with the help of external
voltage dividers or amplifiers. Every single input is
referenced to GND and has an input resistance of about
1 MW. The absolute accuracy is 11 bits, as reference
VDD/2 is used.
This enables the display to measure analogue voltages,
e.g. to display or save the values for further processing.
The exceeding or undershooting of a threshold can also
be used to trigger an alarm.
The overview of the software commands for the analogue
inputs can be found under the chapter 'Analogue Input'
Printing and typographical errors reserved.
ELECTRONIC ASSEMBLY reserves the right to change specification without prior note.
27 / 252
Page 28
EA uniTFTs series
PWM output
The module has the option of controlling external
components via a PWM signal (pulse width modulation).
At constant frequency (adjustable from 2 Hz to 1 MHz
#HFO), the duty cycle of a rectangular pulse is
changed. Modulation changes the ratio between the onand off-time and thus the characteristics of the output
signal. In this way, electromechanical components such
as motors can be driven or even a quasi-analogue
voltage can be generated. The variation of the duty
cycles supports a low engine speed/voltage with a short
start-up time or a high motor speed/voltage with a long
start-up time. The output levels are at 0V and VDD.
Printing and typographical errors reserved.
ELECTRONIC ASSEMBLY reserves the right to change specification without prior note.
28 / 252
Page 29
EA uniTFTs series
Time / RTC
An RTC can be connected to the EA uniTFTs-Series,
the EA uniTFTs035-ATC and EA uniTFTs043-ATC has
the RTC already build in. In addition to providing timestamps for log files, the time and date can be displayed
on the screen. On delivery, the time is set to Central
European Time (CET / MEZ). Depending on the location
it may be necessary to set the device to local time
(#WTD). In the event of a voltage drop, or when the
module is switched off, the clock is powered by a button
cell (D377), so that the correct time is retained.
Due to component tolerances and temperature
fluctuations, deviations of up to 0.02% are possible. The
deviation can be reduced by repeatedly adjusting the
time (#WTD).
If your module has no built-in RTC, but you need the
time and RTC functions an external RTC has to be
connected. The part MCP7940N - SN is supported:
Printing and typographical errors reserved.
ELECTRONIC ASSEMBLY reserves the right to change specification without prior note.
29 / 252
Page 30
EA uniTFTs series
Memory
The module has a built-in flash memory. The size is 31
MByte.
This memory is used to store all data, whether
generated at runtime, e.g. log files, or pre-loaded as
project data, such as macro files, pictures, animations
and icons.
Printing and typographical errors reserved.
ELECTRONIC ASSEMBLY reserves the right to change specification without prior note.
Operating temperature -2070°C
Storage temperature -3080°C
Storage humidity@ 60°C90% RH
Operating voltage 3.13.33.5V
Input low voltage (except USB,I/O)-0,300.3*VDD V
Input high voltage (except USB,I/O)VDD*0.7 VDD+0.3 V
Output low voltage (except USB,I/O)- - 0,4V
Output high voltage (except USB, I/O)VDD-0.5 - - V
single
Output current I/O
all
I²C-bus pull-up 10kΩ
- - 2mA
- - 16
mA
(total)
Printing and typographical errors reserved.
ELECTRONIC ASSEMBLY reserves the right to change specification without prior note.
32 / 252
Page 33
EA uniTFTs series
Printing and typographical errors reserved.
ELECTRONIC ASSEMBLY reserves the right to change specification without prior note.
33 / 252
Page 34
EA uniTFTs series
Dimension EA uniTFTs020-ATC
Printing and typographical errors reserved.
ELECTRONIC ASSEMBLY reserves the right to change specification without prior note.
Printing and typographical errors reserved.
ELECTRONIC ASSEMBLY reserves the right to change specification without prior note.
48 / 252
Page 49
EA uniTFTs series
PROTOCOL / DATA TRANSFER
The transmission protocol is identical regardless of which of the 4 serial interfaces is used to transfer data from the
higher-level controller. The hardware circuit for each interface varies, which is described under the chapter "serial
interfaces".
The data transfer is embedded in a fixed frame with checksum. The EA uniTFTs-Series acknowledges this packet with
the character <ACK> (= 0x06) on successful reception or <NAK> (= 0x15) when it detects a faulty checksum or
encounters a buffer overflow. In case of a <NAK>, the complete packet is discarded and has to be sent again. An
<ACK> only confirms the correct transmission. A syntax check does not take place.
Two different protocols are implemented, the "Short Protocol" and the "Small Protocol". The short protocol works with
a CRC16 checksum and allows the transfer of larger data packets. The Small protocol was implemented mainly for
compatibility with the EA eDIPxxx series.
The maximum amount of user data per packet is 2042 bytes or 255 bytes, respectively. Commands that are larger (for
example, image or file transfers, #FWD ...) must be split into several packets. The data in the individual packets is
reassembled by the display module after receiving them successfully.
Remark:
The <ACK> has to be read (SPI and I²C). If the master doesn't receive the acknowledgement, at least one byte is lost.
In this case the time-out time needs to be observed before the packet is resent.
The protocol can be disabled on the serial port for testing purposes. To turn off the protocol, pin 14 has to be set low
(see pin assignment).
Printing and typographical errors reserved.
ELECTRONIC ASSEMBLY reserves the right to change specification without prior note.
49 / 252
Page 50
EA uniTFTs series
Printing and typographical errors reserved.
ELECTRONIC ASSEMBLY reserves the right to change specification without prior note.
50 / 252
Page 51
EA uniTFTs series
Short Protocol commands
1. Commands / sending data to module
This protocol command transfers data to the display. Several graphics commands can be packaged into a single
protocol packet. If the amount of data is larger than the maximum packet size, the data can be split into several
packets. The module reassembles the individual data packets.
Module receivesDC3
0x13
Module sendsACK
0x06
length (16 Bit)
0xXX 0xXX
Data.......
0x....
crc (16 Bit)
0xXX 0xXX
2. Request data of send buffer
If data is generated in the module, it is stored in the module's send buffer. The data can be requested via the serial
interfaces. Whether data is available can be monitored via the pin 20 SBUF, or the higher-level controller can cyclically
poll the data.
Module receivesDC4
0x14
Module sendsACK
0x06
Module sendsDC3
0x13
length (16 Bit)
0x01 0x00
length (16 Bit)
0xXX 0xXX
'S'
0x53
Data.......
0x....
crc (16 Bit)
0x30 0x08
crc (16 Bit)
0xXX 0xXX
3. Repeat last data packet
If a packet received from the module is faulty (wrong length or checksum) it can be requested again:
Module receivesDC4
0x14
Module sendsACK
0x06
Module sendsDC3
0x13
length (16 Bit)
0x01 0x00
length (16 Bit)
0xXX 0xXX
'R'
0x52
Data.......
0x....
crc (16 Bit)
0x11 0x18
crc (16 Bit)
0xXX 0xXX
4. Request buffer information
This command queries whether user data is ready (= Pin20 SBUF) and also indicates how much free space is left in
the device's receive buffer.
Module receivesDC4
0x14
Module sendsACK
0x06
Module sendsDC4
0x14
length (16 Bit)
0x01 0x00
length (16 Bit)
0x04 0x00
'I'
0x49
send buffer bytes ready (16 Bit)
0xXX 0xXX
receive buffer bytes free (16 Bit)
0xXX 0xXX
crc(16Bit)
0x4B0xBB
crc(16Bit)
0xXX0xXX
Printing and typographical errors reserved.
ELECTRONIC ASSEMBLY reserves the right to change specification without prior note.
51 / 252
Page 52
EA uniTFTs series
5. Protocol settings
This can be used to limit the maximum packet size that the display may send. The default maximum packet size is
2042 bytes. Furthermore, the time-out can be set in 1 / 1000s. The time-out is activated when individual bytes have
been lost. After the timeout, the entire packet must be retransmitted.
Module receives
Default values
Module sendsACK
DC4
0x14
0x06
length (16 Bit)
0x05 0x00
'D'
packet size send buffer (16 Bit)
0x44
0xFA 0x07 (=2042 Byte)
Time-out (16 Bit) in ms
0xD0 0x07 (=2 seconds)
6. Protocol information
Request protocol settings (see 5.).
Module receivesDC4
0x14
Module sendsACK
0x06
Module sendsDC4
0x14
length (16 Bit)
0x01 0x00
length (16 Bit)
0x06 0x00
'P'
0x50
maximum packet size send buffer (16 Bit)
0xFA 0x07 (=2042 Byte)
packet size Send buffer (16 Bit)
0xXX 0xXX
7. RS485 address select / deselect
With this command, a module can be selected or deselected on the RS485 bus. By default, the module with address
7 is always active.
crc (16Bit)
0x98 0xF5
Time-out(16Bit)inms
0xXX0xXX
Module receives
Default values
Module sendsACK
DC4
0x14
0x06
----
length (16 Bit)
0x03 0x00
® select
® deselect
'A'
0x41
'S' (=select)
'D' (=deselect)
0x53 or 0x44
RS485-address
0xXX
8. RS485 enable signal - delay
Some RS485 masters take some time to change the enable signal, e.g. to switch from write to read mode. In order to
enable successful communication with these devices, this command can be used to delay switching to write mode.
Module receives
Default values
Module sendsACK
DC4
0x14
0x06
length (16 Bit)
0x03 0x00
'T'
0x54
Delay in 10 us
0x00 0x00
crc (16 Bit)
0xE9 0x7E
9. Request interface exclusively
All 4 serial ports are handled in parallel and equivalently after reset. To ensure that a sequence of protocol packets is
executed without interruption, the other serial interfaces can be disabled so the active interface can communicate with
the module exclusively. This is useful, for example, for a project update via USB.
Printing and typographical errors reserved.
ELECTRONIC ASSEMBLY reserves the right to change specification without prior note.
52 / 252
Page 53
0x140x02 0x000x470x01 = Request0xXX 0xXX
Module sendsACK
0x06
EA uniTFTs series
Module sendsDC4
0x14
length (16 Bit)
0x01 0x00
active (16 Bit)
0x00 = all
0x01 = RS232
0x02 = SPI
0x03 = IIC
0x04 = USB
crc (16 Bit)
0xXX 0xXX
10. Break-Command, Break / Stop execution
If a continuous loop has been programmed in a macro or if a normal process flow is blocked, this command can be
used to interrupt and quit. This command is also suitable for update processes.
The module is restarted with this protocol command. Depending on the parameter, various start options can be
selected to automatically run after the reset.
crc (16 Bit)
0xXX 0xXX
Module receives
Default values
Module sendsACK
DC4
0x14
0x06
Länge (16 Bit)
0x02 0x00
'B'
Option
0x42
0x00 = normal restart
0x01 = Restart with test mode
0x02 = Restart without running 'start.emc'
0x03 = Restart without loading default styles
0x04 = Show boot-menu (project selection)
0x05 = Reserved
0x06 = Mass Storage Mode (from V1.2)
crc (16 Bit)
0xXX 0xXX
CRC-Calculation
A cyclic redundancy check (CRC) is used to calculate the checksum. A common and well known CRC exam is the
CRC-CCITT. The starting value is 0xFFFF. The following is a typical C implementation. The functions must be called
externally. The checksum must be preallocated with the starting value.
//---------------------------------------------------------------------------//function: buffer2crc16()
//input: ptr data, ptr CRC, block length
//output: --//descr: CRC-CCITT of a buffer
//----------------------------------------------------------------------------
Printing and typographical errors reserved.
ELECTRONIC ASSEMBLY reserves the right to change specification without prior note.
54 / 252
Page 55
EA uniTFTs series
Small Protocol commands
1. Commands / data send to module
This protocol command transfers data to the display. Several graphics commands can be packaged in a protocol
package. If the data is larger than the maximum packet size, the data can be split into several packets. The module
reassembles the individual data packets.
Module receivesDC1
0x11
Module sendsACK
0x06
length (8 Bit)
0xXX
Data.......
0x....
bcc (8 Bit)
0xXX
2. Request data of send buffer
If data is generated in the module, it is stored in the module's send buffer. The data can be requested via the serial
interfaces. Whether data is available can be monitored via the pin 20 SBUF, or the higher-level controller can cyclically
poll the data.
Module receivesDC2
0x12
Module sendsACK
0x06
Module sendsDC1
0x11
length (8 Bit)
0x01
length (8 Bit)
0xXX
'S'
0x53
Data.......
0x....
bcc (8 Bit)
0x66
bcc (8 Bit)
0xXX
3. Repeat last data packet
If a received packet of the module is faulty (wrong length or checksum) it can be requested again:
Module receivesDC2
0x12
Module sendsACK
0x06
Module sendsDC1
0x11
length (8 Bit)
0x01
length (8 Bit)
0xXX
'R'
0x52
Data.......
0x....
bcc (8 Bit)
0x65
bcc (8 Bit)
0xXX
4. Request buffer information
This command queries whether user data is ready (= Pin20 SBUF) and also indicates how much free space is left in
the device's receive buffer.
Module receivesDC2
0x12
Module sendsACK
0x06
Module sendsDC2
0x12
length (8 Bit)
0x01
length (8 Bit)
0x02
'I'
0x49
send buffer bytes ready (8 Bit)
0xXX
receive buffer bytes free (8 Bit)
0xXX
bcc(8Bit)
0x5C
bcc(8Bit)
0xXX
Printing and typographical errors reserved.
ELECTRONIC ASSEMBLY reserves the right to change specification without prior note.
55 / 252
Page 56
EA uniTFTs series
5. Protocol settings
This can be used to limit the maximum packet size that the display may send. As default a packet size with up to
2042 bytes of user data is set. Furthermore, the time-out can be set in 1 / 1000s. The time-out is activated when
individual bytes have been lost. After the timeout, the entire packet must be retransmitted.
Module receives
Default values
Module sendsACK
DC2
0x12
0x06
length (8 Bit)
0x03
'D'
packet size send buffer (8 Bit)
0x44
0xFF
Time-out (8 Bit) in 1/100s
0xC8 (=2 seconds)
6. Protocol information
Request protocol settings (see 5.).
Module receivesDC2
0x12
Module sendsACK
0x06
Module sendsDC2
0x12
length (8 Bit)
0x01
length (8 Bit)
0x03
'P'
0x50
maximum packet size send buffer (8 Bit)
0xFF
packet size send buffer (8 Bit)
0xXX
7. RS485 address select / deselect
With this command, a module can be selected or deselected on the RS485 bus. By default, the module with address
7 is always active.
bcc (8 Bit)
0x20
Time-out(8Bit)inms
0xXX
Module receives
Default values
Module sendsACK
DC2
0x12
0x06
----
length (8 Bit)
0x03
® select
® deselect
'A'
0x41
'S' (=select)
'D' (=deselect)
0x53 or 0x44
RS485-address
0xXX
8. RS485 enable signal - delay
Some RS485 masters take some time to change the enable signal, e.g. to switch from write to read mode. In order to
enable successful communication with these devices, this command can be used to delay switching to write mode.
Module receives
Default values
Module sendsACK
DC2
0x12
0x06
length (8 Bit)
0x03
'T'
0x54
Delay in 10 us
0x00 0x00
bcc (8 Bit)
0x69
9. Request interface exclusively
All 4 serial ports are handled in parallel and equivalently after reset. To ensure that a sequence of protocol packets is
executed without interruption, the other serial interfaces can be disabled so the active interface can communicate with
the module exclusively. This is useful, for example, for a project update via USB.
Printing and typographical errors reserved.
ELECTRONIC ASSEMBLY reserves the right to change specification without prior note.
56 / 252
Page 57
0x120x020x470x01 = Request0xXX
Module sendsACK
0x06
EA uniTFTs series
Module sendsDC2
0x12
length (8 Bit)
0x01
active (8 Bit)
0x00 = all
0x01 = RS232
0x02 = SPI
0x03 = IIC
0x04 = USB
bcc (8 Bit)
0xXX
10. Break-Command, Break / Stop execution
If a continuous loop has been programmed in a macro or if a normal process flow is blocked, this command can be
used to interrupt and quit. This command is also suitable for update processes.
The module is restarted with this protocol command. Depending on the parameter, various start options can be
selected to automatically run after the reset.
bcc (8 Bit)
0xXX
Module receives
Default values
Module sendsACK
DC2
0x12
0x06
length (8 Bit)
0x02
'B'
Option
0x42
0x00 = normal restart
0x01 = Restart with test mode
0x02 = Restart without running 'start.emc'
0x03 = Restart without loading default styles
0x04 = Show boot-menu (project selection)
0x05 = Reserved
0x06 = Mass Storage Mode (from V1.2)
BCC-Calculation
The calculation of the checksum requires a simple 8-bit sum test (modulo 256). The following is a typical C
implementation.
//---------------------------------------------------------------------------//function: buffer2bcc()
//input: ptr data, block length
//output: Byte bcc
//descr: calculate bcc for a buffer
//----------------------------------------------------------------------------
UBYTE buffer2bcc(UBYTE *dat, UBYTE len)
{
UBYTE bcc = 0;
bcc (8 Bit)
0xXX
Printing and typographical errors reserved.
ELECTRONIC ASSEMBLY reserves the right to change specification without prior note.
57 / 252
Page 58
while(len--)
bcc += *dat++;
return bcc;
}
EA uniTFTs series
Printing and typographical errors reserved.
ELECTRONIC ASSEMBLY reserves the right to change specification without prior note.
58 / 252
Page 59
EA uniTFTs series
COMMAND SUMMARY
The EA uniTFTs-Series has an integrated command set, including graphical commands, calculations, hardware
commands and many more.
The commands can be transmitted at runtime via the serial interfaces or stored in so-called macro files on the
module's micro SD card.
The following tables describe all commands. The default values are given in brackets after the respective parameters.
BLACK writen parameters must be set, GRAY ones are optional.
All command groups at a glance
In the terminal window, all received data is displayed
Terminal window #Y
Text output / strings #S
directly. This window is useful for quickly creating
simple outputs or receiving error messages during
development time.
The group includes commands to display simple,
formatted and self-changing strings. In addition, there is
the possibility to place texts using edit boxes (one line
inputs) and string boxes (multiple lines output).
Picture #P
Touch functions #T
Draw / graphic primitives #G
Bargraph / Instruments #I
Input elements per Touch #E
Keyboard #K
Command group to display pictures. The design
software uniTFT Designer automatically converts the
data into the correct internal format. The design
software uniTFT Designer allows to use following
filetypes/graphic formats: png, bmp, jpg, jpeg, tga, gif,
g16, svg, svgz.
If uniTFT Designer is not used, those files can be
converted by EAconvert.exe (directory
\Simulator_and_Tools) (-> evg, epg, epa)
Command group to enable touch functions. Simple
buttons and switches can be used, as well as radio
buttons, sliders, bar-graphs and rotary or meter
instruments.
Command group to show graphical simple objects:
Command group to show bar graphs, sliders and
rotary / pointer instruments
Commands to create touch input elements like menus,
SpinBoxes or ComboBoxes.
Command group to represent a keyboard for value
inputs. Normally, the keyboard is connected to an
EditBox.
Action / Animation #A
Object management #O
Styles #C
Printing and typographical errors reserved.
ELECTRONIC ASSEMBLY reserves the right to change specification without prior note.
Command group to animate objects, e.g. Show, fly
away, rotate or fade out.
Command group to manage, modify and group objects.
Command group to create styles. The look of each
object is based on a style appropriate to the object
type. The maximum number of styles available for each
style is 100.
59 / 252
Page 60
Macros #M
Variables / Registers #V
I/O Port #H
Analog Input #H
EA uniTFTs series
Single or multiple command sequences can be
collected as so-called macros and which reside in
individual files stored on the micro SD card. The
following commands describe how to work with
macros.
Command group to execute calculations and logical
operations. With the help of the string files,
internationalization (multiple languages) can be realized.
There are registers for numbers and strings (can record
characters up to 200), integer registers use signed 32bit, floating-point registers use 23-bit mantissa, 8-bit
exponent, 1-bit signed.
I/O port lines, which can be expanded to up to 136. If
the port input pins are changed, macros can be started,
see #MHP, and #MHB.
Command group to parameterize and read out the
analog input of the module. The module has four 12-bit
analog inputs. If the analog input changes, a macro can
be started, see #MHA.
PWM output #H
Serielle Master-Interface #H
Sound #H
Time #W
Files / SD-Card access #F
System commands #X
Answer / Feedback
Command group for the PWM output
Command group to use the 3 serial interfaces of the
module as master interface. For example to connect
additional peripherals like temperature sensor
Command group to play tones
Command group to work with the built-in RTC.
Commands to handle file access on the built-in SD-Card
Settings of the EA uniTFTs-Series.
The module stores information in its send buffer after
requests or touch events. Description of the module's
answers.
Printing and typographical errors reserved.
ELECTRONIC ASSEMBLY reserves the right to change specification without prior note.
All parameters are transferred as 16-bit values (unless otherwise stated).
Parameter
Numbers
123decimal passed as ASCII characters
$5Ahexadecimal passed as ASCII character
%
1010001
5-8Passing of a range. Commands influencing multiple objects can be passed using an object range.
?xCode of a single character (Unicode/ASCII)
R0 ...
R499
Q0 ...
Q499
(....)Calculation-string used for return value
G len32
data....
!index!Use values of a string file's index
Strings
"string"
or 'string'
"str" 32
"str"
"str1";
"str2"
S0 ...
S499
T0 ...
T499
U"Hello"Interpret characters after U as 16 bit uni code (until next # or V, also CR + LF)
V"Hello"Interpret characters after U as 8 bit ASCII (until next # or U, also CR + LF)
!index!Use string of a string file's index
binary passed as ASCII character
The given example relates to object-IDs 5,6,7,8
Passing a register value
Indexed passing of a register value (pointer) ® R (R0 ... R499)
Passing binary data: len32 defines the data length (already passed as binary 32-bit value)
standard string passing
simple string with any code in between, which is incorporated into the final string
Semicolon represents the string ending. Important if passing two strings or following parameters
after a string.
Passing string registers
Passing string registers using a register as index S(R0 ... R499).
UniCode: [13] 19 ([0x0D 0x00] 0x0A0x00)
CR is optional
Each parameter is separated by blank (' '), comma (','), semicolon (';') or point ('.'). For separating Strings you haveto use a semicolon.
Printing and typographical errors reserved.
ELECTRONIC ASSEMBLY reserves the right to change specification without prior note.
61 / 252
Page 62
EA uniTFTs series
Ending
The ending always is a LF (0x0A). A leading CR (0x0D) is optional and skipped over.
Comments
Comments can be included into macro files. A comments starts with #- and is active till line end (LF).
Calculation
Every numerical parameter can be replaced by a calculation string. The calculation needs to be inside parentheses ()
to be passed as one parameter. The documentation on calculation commands lists all operations and functions,
including mathematical, logical as well as module-specific operations, e.g. time or object properties.
Printing and typographical errors reserved.
ELECTRONIC ASSEMBLY reserves the right to change specification without prior note.
62 / 252
Page 63
EA uniTFTs series
Terminal window #Y
In the terminal window, all received data is displayed directly. This window is useful for quickly creating simple outputs
or receiving error messages during development time.
All important setings of the terminal window are summarized in this command group.
Size and position settings
#YDW
The command defines the dimensions of the terminal window. The width results from the specification of the columns
and rows and the font size (8x16): Width in pixels = 8 ∗ columns; Height in pixels = 16 ∗ lines
The command sets the drawing order (Layer) of the terminal window:
Layer
0
1Terminal is shown on top
By default, the terminal is always on top.
Printing and typographical errors reserved.
ELECTRONIC ASSEMBLY reserves the right to change specification without prior note.
Terminal is shown behind
all objects
64 / 252
Page 65
Terminal window on/off
EA uniTFTs series
...
#YDL 0
...
#YDO
With this command the terminal output can be activated or deactivated and the visibility can be set. If only one
parameter is passed, it applies to both values.
Definition of the Output:
0
1
Definition of the Visibility:
0Terminal is invisible
1Terminal is visible
Output, Visibility(=Output)
Output
Terminal output is
deactivated
Terminal output is
activated
Visibility
#YDO 0 Outputs are disabled and the terminal is invisible
#YDO 1 Outputs are activated and the terminal is visible
#YDO
0,1
#YDO
1,0
Outputs are deactivated and the terminal is visible
Outputs are activated and the terminal is invisible.
Cursor on/off
#YCB
The command sets the visibility of the Cursor:
Printing and typographical errors reserved.
ELECTRONIC ASSEMBLY reserves the right to change specification without prior note.
Cursor
65 / 252
Page 66
Cursor
0Cursor is invisible
1Cursor is visible
Set cursor position
EA uniTFTs series
#YCP
The command sets the cursor position within the terminal window. If no line is specified, it is not changed. The position
starts at (1,1).
Column, Row(no change)
...
#YCP 10,2
...
Save cursor position
#YCS
The current position of the cursor is saved.
Restore cursor position
#YCR
The cursor is placed on the last saved position.
Terminal window output
This group includes commands to display strings and predefined outputs on the terminal.
Print string
#YPA
The characters (strings) are displayed in the terminal window. Entire character strings (e.g.
individual ASCI characters (
String
$21, 33, ?!
) can be transferred. The semicolon forms the end of the string.
"Test", 'Test'
) or
Printing and typographical errors reserved.
ELECTRONIC ASSEMBLY reserves the right to change specification without prior note.
66 / 252
Page 67
Print formatted string
EA uniTFTs series
...
#YPA "Hello World"$21;
...
#YPF
The formatted string is displayed on the terminal. If the variable set repeats, the format string is used again. The
structure is explained in more detail in the section Formatted string.
"Formatted string"; Value1, Value2, ..., ValueN
...
#YPF "Formatstring %d"; 42
...
Print date/time
#YPD
The date and time are displayed on the terminal. The way of presentation is based on the date format. The structure is
explained in more detail in the section Date formats.
"Dateformat"; date (act. time)
...
#YPD "%D.%M.%Y";
...
Print module information
Printing and typographical errors reserved.
ELECTRONIC ASSEMBLY reserves the right to change specification without prior note.
67 / 252
Page 68
EA uniTFTs series
#YPI
Module parameters (e.g. firmware version, resolution, or interface parameters) are displayed in the terminal
Print firmware version string
#YPV
The firmware version of the module is displayed in the terminal.
Printing and typographical errors reserved.
ELECTRONIC ASSEMBLY reserves the right to change specification without prior note.
68 / 252
Page 69
EA uniTFTs series
Text output / string #S
The group includes commands to display simple, formatted and self-changing strings. In addition, there is the
possibility to place texts using edit boxes (one line inputs) and string boxes (multiple lines output).
Simple strings
Place string
(String Static Place)
#SSP
Obj-ID, TextStyle-No., x, y, Anchor, "Text"
Change string
(String Static Change)
Formatted strings
Place formatted string
(String Formated Place)
Change parameter of formatted
string
(String Formated Change)
Convert string to formatted string
(String Formated Format)
Auto update formatted strings
Place formatted string with Auto
Update
(String Automatic Place)
Change calculation from formatted
string with Auto Update
(String Automatic Change)
Convert string to formatted string
with Auto Update
(String Automatic Format)
Date / time strings
Place the string with the date / time
(String Date Place)
#SSC
#SFP
#SFC
#SFF
#SAP
#SAC
#SAF
#SDP
Obj-ID, "Text"
Obj-ID, TextStyle-No., x, y, Anchor, "Formatted string"; Value1,
This group includes commands for placing and changing simple strings.
Place string
#SSP
The command places a string with the given Anchor at the position x, y. The appearance of the character string is
determined with the TextStyle (TextStyle-No.). This is explained in more detail in the section TextStyle.
Obj-ID, TextStyle-No., x, y, Anchor, "Text"
...
#SSP 1,1,20,20,7,"Hello World";
...
Change string
#SSC
The command changes an existing string. Other object properties (position, style, etc.) remain unchanged.
Printing and typographical errors reserved.
ELECTRONIC ASSEMBLY reserves the right to change specification without prior note.
Obj-ID, "Text"
70 / 252
Page 71
EA uniTFTs series
...
#SSC 1,"New String";
...
Formatted string
This group contains commands for placing and changing formatted strings.
Place formatted string
#SFP
The command places a formatted string with the given Anchor at the position x, y. The appearance of the character
string is determined with the TextStyle (TextStyle-No.). This is explained in more detail in the subsection TextStyle. If
the variable set repeats, the format string is used again. The structure is described in more detail in the subsection
This command changes the parameters of a formatted string. The object properties (position, style, etc.) remain
unchanged.
Printing and typographical errors reserved.
ELECTRONIC ASSEMBLY reserves the right to change specification without prior note.
71 / 252
Page 72
Convert string to formatted string
EA uniTFTs series
...
#SFC 1,25
...
#SFF
An existing string is changed to a formatted string. Other object properties (position, style, etc.) remain unchanged.
The structure is explained in more detail in the section Formatted string.
The command places a formatted string with the given Anchor at the position x, y. The appearance of the character
string is determined with the TextStyle (TextStyle-No.). The text-structure is described in more detail in the section
Formatted string. The output is renewed as soon as the Calculation changes. If the other parameters (value1, ...
valueN) are also calculations, their value is recalculated, too (only if the value of the first calculation changes).
Printing and typographical errors reserved.
ELECTRONIC ASSEMBLY reserves the right to change specification without prior note.
Obj-ID, TextStyle-No., x, y, Anchor, "Formatted string"; (Calculation), Value1...., ValueN
72 / 252
Page 73
EA uniTFTs series
...
#SAP 1,1,20,20,7,"Analog %d";(analog(0))
...
Change calculation from formatted string with Auto Update
#SAC
The command changes the calculation of a formatted string with Auto Update. The new calculation only determines the
time when the string is output again, without influencing the displayed values / calculation.
Obj-ID, (Calculation)
...
#SAP 1,1,20,20,7,"Zufallswert %d";
(rand()) /**Ausgabe eines Zufallswertes
#SAC 1,
(time()) /**Änderu
ng des Zufallswertes nur alle Sekunde
...
Convert string to formatted string with Auto Update
An existing character string is changed to a formatted character string with Auto Update function. Other object
properties (position, style, etc.) remain unchanged. The structure is explained in more detail in the subsection
Formatted string. The string renews the output as soon as the Calculation changes. If the other parameters
(value1, ... valueN) are also calculations, their value is recalculatedtoo (only if the value of the first calculation
changes).
Printing and typographical errors reserved.
ELECTRONIC ASSEMBLY reserves the right to change specification without prior note.
73 / 252
Page 74
Date / time strings
Place string with date / time
EA uniTFTs series
...
#SAF 1,"Analog %d";(analog(0))
...
#SDP
The command places a character string with date / time and the given Anchor at the position x, y. The way of
presentation is based on the date format. The structure is described in more detail in the sub-chapterDate formats. If
the current time is displayed, the output of the current time adapts automatically. The appearance of the character
string is determined with the TextStyle (TextStyle-No.). This is explained in more detail in the subsection TextStyle.
Obj-ID, TextStyle-No., x, y, Anchor, "Dateformat"; date (act. time)
...
#SDP 1,1,20,20,7,"%D.%M.%Y|%h:%m:%s";
...
Change date / time in string
#SDC
Obj-ID, date (act. time)
The displayed time of the date format is changed. Other object properties (position, style, etc.) remain unchanged. The
structure is described in more detail in the sub-chapter Date formats.
Printing and typographical errors reserved.
ELECTRONIC ASSEMBLY reserves the right to change specification without prior note.
74 / 252
Page 75
EA uniTFTs series
Convert string to string with date / time
...
#SDC 1,(datetime(14,36,20,24,09,2031))
...
#SDF
An existing string is changed to a string with date / time. Other object properties (position, style, etc.) remain
unchanged. The structure is described in more detail in the sub-chapter Date formats.
Obj-ID, "Dateformat"; date (act. time)
...
#SDF 1,"%h:%m:%s";
...
EditBox
EditBoxes are used for entering characters. The input is usually made using a keyboard. The definition of a keyboard
is explained in more detail in the Keyboard sub-chapter. Entries can also be made by command (see #SEC). The box
must be connected to a keyboard, that entries via keyboard end up in the EditBox (see #SEK). To receive values the
EditBox must be active. This can be done either by command (#SEA) or by touch (#TID). In the following example an
EditBox is placed, connected to a keyboard and activated by touch. The definition of the keyboard is not included.
Printing and typographical errors reserved.
ELECTRONIC ASSEMBLY reserves the right to change specification without prior note.
75 / 252
Page 76
EA uniTFTs series
#SEP
The command places an EditBox with the given Anchor at position x, y with a defined Width and Height. The
DrawStyle defines the appearance of the background of the EditBox (DrawStyle No.). The structure is described in
more detail in the DrawStyle subsection. The parameter Radius specifies the corner rounding. The appearance of the
character string is determined with the TextStyle (TextStyle-No.). This is explained in more detail in the TextStyle
subsection. With the two optional parameters (BorderX and BorderY) the distance of the text to the edge of the box
can be specified.
A standard text is defined. Further strings indicate the default string for further EditBoxes with the object IDs ObjID+1, ..., Obj-ID+n.
Obj-ID, "Default text"; "Default text (Obj-ID+1)"; "Default text (Obj-ID+2)";....
...
#SED 1,"Default";
...
Send strings / codes to EditBox
#SEC
The command can be used to send strings and codes to the EditBox. Additional strings are sent to the edit boxes
with the object IDs Obj-ID + 1, ..., Obj-ID + n.
Printing and typographical errors reserved.
ELECTRONIC ASSEMBLY reserves the right to change specification without prior note.
76 / 252
Page 77
Connect EditBox with keyboard
EA uniTFTs series
...
#SEC 1,"Hello"$21;
...
#SEK
This command connects a keyboard (Keyboard-ID) with one or more EditBoxes (Obj-ID)
Keyboard-ID,Obj-ID, Obj-ID+1, ...
Activate/deactivate EditBox
#SEA
The command activates or deactivates EditBoxes.
Activate:
Obj-ID
Keybo
ard-ID
Deactivate:
Obj-ID 0
Keyboa
rd-ID
Obj-ID(0), Keyboard-ID(0)
Object ID of the
edit box
Not necessary
0
Keyboard-ID
all edit boxes are
deactivated
all edit boxes assigned to
the keyboard are deactivated
Define valid character codes (from V1.2)
#SER
The command specifies valid entries that are displayed in the EditBox. Valid characters (codes) are separated by
commas or specified as a range string (e.g. "0-9A-Za-z", which allows all digits and the Latin alphabet).
Printing and typographical errors reserved.
ELECTRONIC ASSEMBLY reserves the right to change specification without prior note.
Obj-ID, Codes
77 / 252
Page 78
Define input mask (from V1.2)
EA uniTFTs series
...
#SER 1,"A-Za-z,4"
#SEC 1,"Value 42";
...
#SEM
An input mask is defined for the EditBox. The Placeholder parameter defines the visible character code (e.g. '_').
Following masks are possible:
TypeMaskExample
Integer
Float
ASCII%character countA
Unicode%character countU
Range%character countR
Obj-ID, "Input mask"; Placeholder
%Maximum valueI or %
from;toI
%Maximum valueF or
%from;toF
"%42I";
"%23.4I";
"%4A"
the ASCII character set)
"%4U"
the Unicode area)
"%4R"
the range #SER)
or
"%10;25I";
or
"%0.5;7.9I";
(max. 4 characters from
(max. 4 characters from
(max. 4 characters from
...
#SEM 1,"%42I";?_
...
Define password mode (from V1.2)
#SEW
The replacement character (Wildcardcode) is displayed instead of the characters entered.
Printing and typographical errors reserved.
ELECTRONIC ASSEMBLY reserves the right to change specification without prior note.
Obj-ID, Wildcardcode
78 / 252
Page 79
EA uniTFTs series
...
#SEW 1,$25cf
...
StringBox
StringBoxes can display large amounts of text. Additional text can be added or deleted at any time. Every newly
added text (#SBA, #SBF) is inserted as a new paragraph. If the AutoWrap (see #SBS) function is deactivated, the
paragraph number is the same as the line number. Otherwise, the two can differ. However, there are calculations to
convert them into each other. In the following example, a StringBox is created and one paragraph is added.
...
#SBP 1,20,20,7,250,200,10
#SBS 1,1,2,4,5,5
#SBA 1,1,"Lorem ipsum dolor ...";
...
Place StringBox (from V1.3)
#SBP
The command places a StringBox with the given Anchor at the position x, y with a defined Width and Height.
Optionally, the width of the scrollbar can be specified (ScrollbarWidth). If no value is specified, the text height is used
as the width. It's mandatory to assign a style to the StringBox, otherwise it's invisble (see #SBS).
Obj-ID, x, y, Anchor, Width, Height, Radius, ScrollbarWidth(text height)
Define styles for StringBox (from V1.3)
#SBS
The command defines the appearance of the StringBox. Two DrawStyles are required. On the one hand the
background of the EditBox and on the other hand the bar of the slider (scrollbar) is defined. The structure is described
in more detail in the subsection DrawStyle. The appearance of the character string is determined with the TextStyle
(TextStyle-No.). This is explained in more detail in the TextStyle subsection. With the two optional parameters
(BorderX and BorderY) the distance of the text to the edge of the box can be specified. AutoWrap determines the
line break:
Printing and typographical errors reserved.
ELECTRONIC ASSEMBLY reserves the right to change specification without prior note.
79 / 252
Page 80
AutoWrap
0Text is cut off at the end of line
1Automatic line break active
Add paragraph (ab V1.3)
EA uniTFTs series
#SBA
With the command additional lines can be added to the StringBox. The parameter Paragraph specifies the position in
the box. The first line has the number 1. If 0 is selected as the paragraph, the text is added at the end.
One or more paragraphs are removed from the StringBox. If 0 is passed as a paragraph, all strings are removed from
the StringBox and the box is empty. Areas can also be specified, e.g. 1-5.
Obj-ID, Paragraph, Line1. ...
Add text file (from V1.3)
#SBF
A StringBox can also display complete text files. The parameter <Textfile> specifies the path to the file. The
parameter Paragraph specifies the position in the box. The first line has the number 1. If 0 is selected as the
paragraph, the text is added at the end.
Obj-ID, Paragraph, <Textfile>
...
#SBF 1,1,<P:Testfile.txt>
...
Printing and typographical errors reserved.
ELECTRONIC ASSEMBLY reserves the right to change specification without prior note.
80 / 252
Page 81
EA uniTFTs series
Jump to line
#SBO
The content of the StringBox jumps to the specified line. The jump can be animated with optional parameters. The
Time parameter is specified in 1/100s. If the value is positive, the duration is used for the entire scroll area. The speed
is therefore constant. A negative value determines the time until the new line is reached. So the speed depends on the
number of lines to be scrolled. The ActionCurve-No. determines the chronological sequence. This is explained in
more detail in the sub-chapter Action Curves and Action Paths.
Obj-ID, Line, Time (0), ActionCurve-No (0)
(from V1.3)
Formatted string
Formatted strings are used in string outputs. The format is based on the C-function "printf". The function has a format
specifier and the concrete arguments to be issued. The following specifiers are used in the format string for the various
data types:
TypePlaceholderExample
Fixed-point value decimal%d42
Octal value%o645
Hex value%x, %X7a, 7A
Float%f,299.57
Scientific notation%e, %E2.9957e+2, 2.9957E+2
Shortest Notation: Float or
scientific
Character%ca
Each specifier can be additionally formatted with flags, field width and accuracy, in this order:
FlagDescription
-Align the value left justified, Right justified is default.
+Show '+' and '-' depending on the value
(space)Show ' ' (space) if value is positive, '-' if value is negative.
#Showing hex and octal values, the 0x, 0X or 0 is shown if the value is ¹ 0.
0Within the field width, left-unnecessary space is filled up with 0.
%g, %G299.57
Float and scientific notation will always have a '.' output - even if only 0 follows. Default
the point is only output if values follow
Field widthDescription
(number)Minimum field width for outputting the value
*The field width is given by the arguments. The width is directly defined in front of the
value in the arguments.
Printing and typographical errors reserved.
ELECTRONIC ASSEMBLY reserves the right to change specification without prior note.
81 / 252
Page 82
EA uniTFTs series
PrecisionDescription
.numberInteger: Minimum count of digits (default =1)
Float: Minimum count of digits after the point (default =6)
.*Number of digits is taken from the argument list. The number of digits is directly before
the actual argument in the list.
Printing and typographical errors reserved.
ELECTRONIC ASSEMBLY reserves the right to change specification without prior note.
82 / 252
Page 83
EA uniTFTs series
Pictures #P
Command group to display pictures. The design software uniTFTDesigner automatically converts the data into the
correct internal format. The design software uniTFTDesigner allows to use following filetypes/graphic formats: png,
bmp, jpg, jpeg, tga, gif, g16, svg, svgz.
If uniTFTDesigner is not used, those files can be converted by EAconvert.exe (directory \Simulator_and_Tools) (-> evg,
epg, epa)
Place picture
(Picture Place)
Change animation parameters
(Picture change)
Load and place image via serial
interface
(Picture Interface Place)
#PPP
#PPA
#PIP
Obj-ID, <Name>, y, y, Anchor(1), Width(0), Height (0), Angle (0)
With the command, a image (<Name>) with the given Anchor is placed at position x, y. If Width = 0 and Height = 0,
the original size of the image is adopted. If only one of the two parameters is 0, the image is scaled proportionally to
the other. The further optional parameter Angle specifies the rotation of the image. If an animation is placed, it will be
executed cyclically.
Obj-ID, <Name>, y, y, Anchor(1), Width(0), Height (0), Angle (0)
...
#PPP 1,<P:picture/Logo.epg>,20,20,7,300
...
...
#PPP 1,"Logo";20,20,7,300
...
Change animation parameters
#PPA
The command changes an existing image animation. The two parameters Time and Image-No. are only considered if
the AnimationType is 7. The animation then runs in the specified time (time in 1 / 100s) up to the picture number.
The time between the pictures is recalculated. The following animation types can be selected:
1Cyclic
2Cyclic backward
3Ping Pong
Obj-ID, AnimationType(0), Time, Image-No.
AnimationType
Printing and typographical errors reserved.
ELECTRONIC ASSEMBLY reserves the right to change specification without prior note.
Load and place image via serial interface (from V1.3)
#PIP
The command displays an image. For this purpose, the data is transmitted in binary format via the serial interface in *
.epg or * .evg format and is placed analogously to the #PPP command.
Printing and typographical errors reserved.
ELECTRONIC ASSEMBLY reserves the right to change specification without prior note.
84 / 252
Page 85
EA uniTFTs series
Touch functions #T
Command group to enable touch functions. Simple buttons and switches can be used, as well as radio buttons,
sliders, bar-graphs and rotary or meter instruments.
Buttons and switches
Place rectangular button
(Touch Button Rectangle)
#TBR
Obj-ID, ButtonStyle-No., "Text normal"; "Text down"; x, y,
Printing and typographical errors reserved.
ELECTRONIC ASSEMBLY reserves the right to change specification without prior note.
85 / 252
Page 86
EA uniTFTs series
Internal touch processing
(Touch Id Define)
Place free touch area
(Touch Area Free)
Setting gesture times
(Touch Configure Gesture)
#TID
#TAF
#TCG
Mask, Obj-ID1, ..., Obj-IDn
Obj-ID, x, y, Anchor, Width, Height
DoubleClick Time (30), LongClick Time (100)
Buttons and switches
Buttons and switches can react to different events (Down, Up, Drag, DoubleClick, LongClick). There are two ways to
evaluate the state changes of buttons and switches:
·
Changes are placed in the send buffer:
The command #TCR can be used to specify which responses are placed in the send buffer (no DoubleClick and
LongClick)
·
A macro is executed when changes are made:
The commands #MDT and #MDG can be used to connect macros to the button / switch. When the status
changes, the associated macro is called.
Place rectangular button/switch
#TBR
#TSR
The command places a rectangular button / switch with the given Anchor at the position x, y. The parameter "Text
normal" specifies the output in the unpressed state. "Text down" in the pressed state. With the ButtonStyle the
appearance of the button / switch is determined (ButtonStyle No.). This is explained in more detail in the ButtonStyle
subsection. The Width and Height of the button / switch is taken from the ButtonStyle, but can optionally be
overwritten.
The command places an elliptical button / switch with the given Anchor at the position x, y. The parameter "Text
normal" specifies the output in the unpressed state. "Text down" in the pressed state. With the ButtonStyle theappearance of the button / switch is determined (ButtonStyle-No.). This is explained in more detail in the ButtonStyle
Printing and typographical errors reserved.
ELECTRONIC ASSEMBLY reserves the right to change specification without prior note.
subsection. The Width (Æ X) and Height (Æ Y) of the button / switch are taken from the ButtonStyle, but can
optionally be overwritten.
...
#TBE 1,1,"Normal";"Pressed";20,20,7
...
Place picture button/switch
#TBP
#TSP
The command places a button / switch as an image with the given Anchor at position x, y. The parameter "Text
normal" specifies the output in the unpressed state. "Text down" in the pressed state. With the ButtonStyle the
appearance of the button / switch is determined (ButtonStyle-No.). This is explained in more detail in the ButtonStyle
subsection. The Width and Height of the button / switch is taken from the ButtonStyle, but can optionally be
overwritten.
The command places a button / switch as an icon with the given Anchor at position x, y. A ButtonStyle is not
necessary for this. The two parameters <Buttonname normal> and <Buttonname down> specify the images to be
displayed. If no Width (in pixels) or zero is specified, the original size of the image is used. The height is calculated
internally (proportional). The last parameter "Sound string" specifies the notes that are played when touched.
Printing and typographical errors reserved.
ELECTRONIC ASSEMBLY reserves the right to change specification without prior note.
Obj-ID, x, y, Anchor, <Button-name normal>, Width normal (0), 'Button-name down' (keine Änderung);
Any existing object is converted into a button / switch. The ButtonStyle provides additional information (e.g. Sound
name). If the object is a graphic primitive (e.g. polygon) with the same DrawSytle as in the ButtonStyle, the DrawStyle
of the ButtonStyle is automatically adopted for the pressed state.
...
#TBO 1,1,"Normal";"Pressed";
...
Settings of buttons and switches
Change labeling of button/switch
#TCL
Obj-ID, "Text normal"; "Text down";
The command changes the labeling of touch objects. If no text is specified for the pressed state ("Text down"), "Textnormal" is used for both.
Printing and typographical errors reserved.
ELECTRONIC ASSEMBLY reserves the right to change specification without prior note.
88 / 252
Page 89
Change state of button/switch
EA uniTFTs series
...
#TBR 1,...
#TCL 1,"Change";
...
#TCS
The command changes the state of the touch objects (Obj-ID1, ..., Obj-IDn):
The state of the touch objects (Obj-ID1, ..., Obj-IDn) is placed in the send buffer. The feedback has the following
structure:
Printing and typographical errors reserved.
ELECTRONIC ASSEMBLY reserves the right to change specification without prior note.
Obj-ID1, ..., Obj-IDn
89 / 252
Page 90
EA uniTFTs series
#TQSObj-IDState
$1B$54$51$5316-Bit value16-Bit value
...
#TBR 1,...
#TQS 1
...
Activate/ deavtivate button/switch
...
#TCE
The command activates or deactivates touch objects (Obj-ID1, ..., Obj-IDn) (Active):
0not active
1active
Active, Obj-ID1, ..., Obj-IDn
Active
...
#TBR 1,...
#TCE 0,1
...
Define feedback from touch events
#TCR
Each touch object can be assigned whether and which feedback is sent to the send buffer. A distinction is made
between three events: up, down and drag. For each of these events it can be set individually whether it triggers a
feedback or not. This can be set with the Event parameter. The event is bit coded according to the following table:
Up
Down
Drag
Printing and typographical errors reserved.
ELECTRONIC ASSEMBLY reserves the right to change specification without prior note.
Event, Filter,Obj-ID1, ..., Obj-IDn
Event
01234567
●●●●
●●●●
●●●●
90 / 252
Page 91
EA uniTFTs series
If you only want to receive feedback for up and down events, set the Event parameter to 3. In addition, the feedback
can also be made dependent on a defined macro for the event (Filter):
The active switch of the radio group (Group-ID) is placed in the send buffer. The feedback is structured as follows:
Printing and typographical errors reserved.
ELECTRONIC ASSEMBLY reserves the right to change specification without prior note.
Group-ID1, ..., Group-IDn
ESCTQRObj-IDGroup-ID...
91 / 252
Page 92
$1B$54$51$5216-Bit value 16-Bit value
Special touch functions
Internal touch processing
EA uniTFTs series
...
#TRA 4,...
#TQR 4
...
#TID
A special touch action can be assigned to each object (Obj-ID) or touch input can be enabled. The individual bits of
the Mask can be combined with bit decoding, that multiple touch actions are possible at the same time:
1
2
4
8
16Size change with two fingers
32Rotate with two fingers
Move (object can be moved by touching
and dragging)
Object can be enlarged/reduced
proportionally
Object can be rotated around the active
anchor
Object remains unchanged, touch
macros are executed
Place free touch area (from V1.4)
#TAF
The command places a free touch area with the given Anchor, Width and Height at the position x, y.
Obj-ID, x, y, Anchor, Width, Height
Setting gesture times (from V1.4)
#TCG
The command sets the time threshold of gestures. The DoubleClick Time specifies in 1 / 100s the maximum time
that can pass between two down events, so that a valid double click is still recognized. The parameter LongClick
Time determines which time span (in 1 / 100s) must elapse at least for a LongClick to be detected.
The valid range for DoubleClick is 20 (=200 ms) to 100 (=1 sec.), for LongClick it is valid for 30 (=300 ms) to 1000 (=10
sec.).
Printing and typographical errors reserved.
ELECTRONIC ASSEMBLY reserves the right to change specification without prior note.
DoubleClick Time, LongClick Time
92 / 252
Page 93
EA uniTFTs series
Draw / graphic primitives #G
Command group to show graphical simple objects:
Place rectangle
(Graphic Rounded Rectangle)
Place regular polygon
(Graphic Geometric Polygon)
Place star
(Graphic Geometric Star)
Place circle/ellipse
(Graphic Ellipse Total)
Place circular sector/piece of cake
Graphic Ellipse Pie)
Place circular segment
(Graphic Ellipse Segment)
Place arc
(Graphic Ellipse Arc)
Place polyline
(Graphic Polygon Line)
Place irregular polygon
(Graphic Polygon Fill)
Add points to polyline
(Graphic Polyline Add)
#GRR
#GGP
#GGS
#GET
#GEP
#GES
#GEA
#GPL
#GPF
#GPA
Obj-ID, DrawStyle-No, x, y, Anchor, Width, Height(=Width),
Radius (0), FrameThickness(0), Angle(0)
Obj-ID, DrawStyle-No, x, y, Anchor, Radius, Corners,
FrameThickness(0), Angle(0)
Obj-ID, DrawStyle-No, x, y, Anchor, Radius1, Radius2, Tip,
FrameThickness(0), Angle(0)
Obj-ID, DrawStyle-No, x, y, Anchor, RadiusX,
RadiusY(=RadiusX), FrameThickness(0), Angle(0)
Obj-ID, DrawStyle-No, x, y, Anchor, RadiusX, RadiusY,
StartAngle, EndAngle, Angle(0)
Obj-ID, DrawStyle-No, x, y, Anchor, RadiusX, RadiusY,
StartAngle, EndAngle, WiAnglekel(0)
The command places a rectangle with the Anchor and the Width at the position x, y. The appearance of the rectangle
is determined with the DrawStyle (DrawStyle-No.). This is explained in more detail in the DrawStyle subsection. If noHeight is specified, the height is set to the width (square). A Radius can optionally be specified. This rounds off the
corners. It is also possible to determine a FrameThickness. Rotation around the anchor (Angle) can also be set.
Printing and typographical errors reserved.
ELECTRONIC ASSEMBLY reserves the right to change specification without prior note.
93 / 252
Page 94
EA uniTFTs series
#GGP
The command places a regular polygon with the Anchor and the given number of Corners at the position x, y. With
the DrawStyle the appearance of the n-corner is determined (DrawStyle-No.). This is explained in more detail in the
DrawStyle subsection. The Radius determines the size of the figure. It is also possible to determine a
FrameThickness. Rotation around the anchor (Angle) can also be set. If anchor = 0, the construction point is used.
Obj-ID, DrawStyle-No, x, y, Anchor, Radius, Corners, FrameThickness(0), Angle(0)
...
#GGP 1,1,20,20,7,100,5
...
Place star
#GGS
Obj-ID, DrawStyle-No, x, y, Anchor, Radius1, Radius2, Tip, FrameThickness(0), Angle(0)
The command places a star with the Anchor at the position x, y. The appearance of the star is determined with the
DrawStyle (DrawStyle-No.). This is explained in more detail in the DrawStyle subsection. The first tip is set toRadius1 above the center point. Then the connection to Radius2 is made then back to Radius1 etc. until the number
of Tips is reached. It is also possible to determine a FrameThickness. Rotation around the anchor (Angle) can also
be set. If anchor = 0, the construction point is used.
...
#GGS 1,1,20,20,7,100,50,7
...
Place circle/ellipse
#GET
Obj-ID, DrawStyle-No, x, y, Anchor, RadiusX, RadiusY(=RadiusX), FrameThickness(0), Winkel(0)
The command places an ellipse with the Anchor and the RadiusX at the position x, y. The appearance of the circle is
determined with the DrawStyle (DrawStyle-No.). This is explained in more detail in the DrawStyle subsection. If noRadiusY is specified, it is set to RadiusX (circle). It is also possible to determine a FrameThickness. Rotation around
the anchor (Angle) can also be set.
Printing and typographical errors reserved.
ELECTRONIC ASSEMBLY reserves the right to change specification without prior note.
94 / 252
Page 95
Place circular sector/piece of cake
EA uniTFTs series
...
#GET 1,1,20,20,7,120,80
...
#GEP
The command places a circle sector / piece of cake with the Anchor, the RadiusX and the RadiusY at the position x,
y. Start-/EndAngles indicate the size of the piece. With the DrawStyle the appearance of the circle sector is
determined (DrawStyle-No.). This is explained in more detail in the DrawStyle subsection. If no RadiusY is specified,
it is set to RadiusX (circle). Rotation around the anchor (Angle) can also be set.
Obj-ID, DrawStyle-No, x, y, Anchor, RadiusX, RadiusY, StartAngle, EndAngle, Winkel(0)
...
#GEP 1,1,20,20,7,100,100,20,250
...
Place circular segment
#GES
Obj-ID, DrawStyle-No, x, y, Anchor, RadiusX, RadiusY, StartAngle, EndAngle, Winkel(0)
The command places a segment of a circle with the Anchor, the RadiusX and the RadiusY at the position x, y.Start-/ EndAngles indicate the size of the piece. The appearance of the circle segment is determined with the
DrawStyle (DrawStyle-No.). This is explained in more detail in the DrawStyle subsection. If no RadiusY is specified,
it is set to RadiusX (circle). Rotation around the anchor (Angle) can also be set.
Printing and typographical errors reserved.
ELECTRONIC ASSEMBLY reserves the right to change specification without prior note.
95 / 252
Page 96
Place arc
EA uniTFTs series
...
#GES 1,1,20,20,7,100,100,20,250
...
#GEA
The command places an arc with the Anchor, the RadiusX and the RadiusY at the position x, y. Start-/ EndAngles
indicate the size of the piece. The appearance of the circular arc is determined with the DrawStyle (DrawStyle-No.).
This is explained in more detail in the DrawStyle subsection. If no RadiusY is specified, it is set to RadiusX (circle). It
is also possible to determine a frame thickness. Rotation around the anchor (Angle) can also be set.
The command draws a polyline with the coordinates [x1, y1], [x2, y2], ..., [xn, yn]. The appearance of the polyline is
determined with the DrawStyle (DrawStyle-No.). This is explained in more detail in the DrawStyle subsection.
Printing and typographical errors reserved.
ELECTRONIC ASSEMBLY reserves the right to change specification without prior note.
96 / 252
Page 97
Place irregular polygon
EA uniTFTs series
...
#GPL 1,1,20,20,80,60,100,90,70,100,120,180
...
#GPF
The command draws a filled polygon with the coordinates [x1, y1], [x2, y2], ..., [x4, y4]. The appearance of the
polygon is determined with the DrawStyle (DrawStyle-No.). This is explained in more detail in the DrawStyle
subsection. From the last given point the shape is automatically closed. Only 2-4 points are allowed, meaning you can
draw lines, triangle and quadrangle.
Obj-ID, DrawStyle-No, x1, y1, x2, y2, ... x4, y4
...
#GPF 1,1,20,20,100,100,120,180, 40,150,40,100
...
Add points to polyline
#GPA
Obj-ID, x1, y1, x2, y2, ... xn, yn
The command adds coordinates [x1, y1], [x2, y2], ..., [xn, yn] at the end of a polyline. In the case of a polygon, the
figure is closed automatically.
Printing and typographical errors reserved.
ELECTRONIC ASSEMBLY reserves the right to change specification without prior note.
Bargraphs can be used for displaying or for entering values. After the definition (#IBR, #IBT, #IBA), the Bargraph can
neither be operated by touch nor does it display a predefined value. To activate it for touch input, you need the
command #TID. Values can be set with the #IVS command. The #IVA function is required if the Bargraph should
change automatically when changing a calculation value (e.g. analog input, register value, ...). In the following
example, a rectangular Bargraph is placed, pre-assigned to the value 30 and activated by touch.
Printing and typographical errors reserved.
ELECTRONIC ASSEMBLY reserves the right to change specification without prior note.
99 / 252
Page 100
Place rectangular Bargraph
EA uniTFTs series
...
#IBR 1,2,1,20,20,7,150,30,10
#IVS 1,30
#TID 1,1
...
#IBR
The command places a rectangular Bargraph with the Anchor, Width and Height at the position x, y. The filling color
is taken from the DrawStyle-Filling. The DrawStyle-Background specifies the background and frame color. The
structure of the DrawStyle sub-chapter is explained in more detail. A Radius can optionally be specified. This rounds
off the corners. The StartValue and EndValue determine the two limits of the Bargraph. The running direction is
determined by Direction:
0Right to left
1Left to right
Rotation around the anchor (Angle) can also be set.
Obj-ID, DrawStyle-Filling, DrawStyle-Background, x, y, Anchor, Width, Height, Radius(0), StartValue(0),
EndValue(100), Direction (1), Angle(0)
Direction
...
#IBR 1,2,1,20,20,7,150,30,10
...
Place triangular Bargraph
#IBT
The command places a triangular Bargraph with the Anchor, Width and Height at the position x, y. The filling color is
taken from the DrawStyle-Filling. The DrawStyle-Background specifies the background and frame color. The
structure of the DrawStyle sub-chapter is explained in more detail. The tip is on the left side. The optional parameterTip specifies the position of the tip:
Printing and typographical errors reserved.
ELECTRONIC ASSEMBLY reserves the right to change specification without prior note.
Obj-ID, DrawStyle-Filling, DrawStyle-Background, x, y, Anchor, Width, Height, Tip(0), StartValue(0),
EndValue(100), Direction(1), Angle(0)
100 / 252
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.