EAKIT160-7 [ETC]

CONTROL PANEL WITH FONTS, GRAPHICS COMMANDS AND MACROS;
EAKIT160-7
型号: EAKIT160-7
厂家: ETC    ETC
描述:

CONTROL PANEL WITH FONTS, GRAPHICS COMMANDS AND MACROS

文件: 总21页 (文件大小:800K)
中文:  中文翻译
下载:  下载PDF数据表文档文件
EAKIT160-7  
4.2005  
CONTROL PANEL WITH FONTS,  
GRAPHICS COMMANDS AND MACROS  
EAKIT160-7LWTP  
Dimensions 140x102mm  
TECHNICALDATA  
* 160x128PIXELSWITHCFLILLUMINATION,BLUENEGATIVE  
* ALSOWITHLOG-LIFELEDBACKLIGHTWHITE-BLUE  
* INTEGRATEDTOUCHPANELWITH8x7FIELDS(ANTI-GLARE,SCRATCH-RESISTANT)  
* FONTZOOMOFapprox.3mm VIAapprox.5mmUPTOapprox.50mm  
* SUPPLYVOLTAGE5V/500mA(-C)/300mA(-LW)OROPTIONALLY9..35V  
* RS-232ORALTERNATIVELYRS-422WITHBAUDRATES1200..115200  
* POSITIONINGACCURATETOTHEPIXELWITHALLFUNCTIONS  
* PROGRAMMINGBYMEANSOFHIGH-LEVELLANGUAGE-TYPECOMMANDS:  
* STRAIGHTLINE,POINT,AREA,AND/OR/EXOR,BARGRAPH...  
* UPTO256MACROSPROGRAMMABLE  
* COMBINATIONOFTEXTANDGRAPHICS  
* 4CLIPBOARDFUNCTIONS,PULL-DOWNMENUS  
* 8DIGITALINPUTAND8DIGITALOUTPUT  
* BACKLIGHTCANBESWITCHEDON/OFFBYSOFTWARECONTROL  
ACCESSORIES  
SUPPLYVOLTAGE9..35VINSTEADOF5V  
RS-422INTERFACEINSTEADOFRS-232  
OPTOCOUPLERFOR8INPUTSAND8OUTPUTS  
ALUMINUMBEZEL:BLACKANODIZED  
ALUMINUMBEZEL:BLUEANODIZED  
CABLE(1.5m)FORCONNECTIONTO9-PINSUB-D(RS-232FEMALE)  
EAOPT-9/35V  
EAOPT-RS4224  
EAOPT-OPTO16  
EA0FP160-7SW  
EA0FP160-7BL  
EAKV24-9B  
FLOPPYDISKFORMACROPROGRAMMING(PCDOS/WIN)  
EADISK240  
ORDERINGINFORMATION  
160x128DOTSWITHCFLILLUMINATION,BLUENEGATIVE,TOUCHPANELEA KIT160-7CTP  
DITOWITHOUTTOUCHPANEL EA KIT160-7C  
160x128DOTSWITHWHITELED-B/L.,BLUENEGATIVE,TOUCHPANEL EA KIT160-7LWTP  
DITOWITHOUTTOUCHPANEL  
EA KIT160-7LW  
ZEPPELINSTRASSE 19  
·
D-82205 GILCHING  
PHONE+49-8105-778090·FAX+49-8105-778099·http://www.lcd-module.de  
EAKIT160-7  
GENERAL  
TheEA KIT160-7graphicskitisafullyassembledcontrolandoperatingunitwithavarietyofintegrated  
functions. The display has very compact dimensions and offers excellent super-twist contrast, which  
meanstheunitcanbeputintooperationimmediately.ItiscontrolledviathestandardRS-232orRS-422  
interface. In addition to complete graphics routines for display output, the graphics kit also contains a  
widevarietyoffonts.Graphicscommandsimilartothoseusedinhigh-levelprogramminglanguagesare  
used for programming. There is thus no longer any need for the time-consuming programming of  
charactersetsandgraphicsroutines.Theeaseofuseofferedbymacrosandinputviatouchpanelmake  
it a real power display.  
DISPLAYOPTIONS  
CFL-Backlight  
EA KIT160-7CTP: blue background with white characters. Extreme bright and  
contrastful. Life time of backlight 10,000~20,000 hours. Backlight unit is available as a  
spare part: EA CFL160-7. Power consumption: typ. 300mA@5V  
EA KIT160-7LWTP: blue background with white characters. Great contrast, power  
consumption: typ. 250mA@5V  
LED-Backlight  
HARDWARE  
Thegraphicskitisdesignedforanoperatingvoltageof+5V.Asupplyvoltageof9..35Visalsopossible.  
SerialasynchronousdatatransferiscarriedoutinRS-232orRS-422format. Thetransmissionformat  
is set permanently to 8 data bits, 1 stop bits, and no parity. A transimssion rate of between 1200 and  
115,200baudcanbeselectedbymeansofDIPswitches.RTSandCTShandshakelinesareavailable.  
Dataformat:  
TOUCHPANEL  
TheEA KIT160-7CTPand-7LWTPversionsareequippedwithanintegratedtouchpanel.Youcanmake  
entriesandchoosemenusettingsbytouchingthedisplay.Thelabelingofthe"keys"isflexibleandcan  
also be changed during runtime (different languages, icons). The drawing of the individual "keys" and  
the labeling or grouping of several fields is handled by the integrated software.  
SOFTWARE  
The graphic kits are programmed by means of commands such as Draw a rectangle from (0,0) to  
(64,15).Noadditionalsoftwareordriversarerequired.Stringscanbeplacedwithpixelaccuracy.Text  
and graphics can be combined at any time. Up to 16 different character sets can be used. Thus, when  
the 8-times zoom is used with the largest character set (16x8), the words and numbers fill the screen  
(128x64).  
ACCESSORIES  
Frontpanelformounting  
A front panel made of anodized aluminum is available as an accessory. This allows the graphics kit to  
be mounted without any screws visible. Installing it is child's play. The EA 0FP160-7 front panel is  
available in black (SW) and blue (BL).  
Floppy disk for creating macros  
Afloppydisk(EA DISK240)isrequiredformacroprogramming*).Thisconvertsthecommandsentered  
in a text file into a code that can be read by the graphics kit, and programs them into the EEPROM.  
Cable for PC  
ToenablesimpleconnectiontoPCs(macroprogramming),weprovidea1.5mcableanda9-pinSUB-D  
femaleconnector(EA KV24-9B).SimplyinsertitintoCOM 1orCOM 2andgetstarted.Note:Thecable  
is not suitable for the RS-422 version (EA OPT-RS4224).  
*)  
Also on the Internet: http://www.lcd-module.de/deu/disk/disk240.zip  
2
EAKIT160-7  
EXTERNALKEYBOARD  
Matrix - Keypad Connector J8  
Pin Symbol  
Function  
Pin Symbol  
Function  
A keyboard (anything from individual keys to a 8x7 matrix  
keyboard,J8)canbeconnectedattheplug-inconnection.  
Theconnectedkeysaredebouncedbymeansofsoftware.  
Please note that it is only possible to connect an external  
keyboardtoversionswithoutanintegratedtouchpanel.  
Eachkeyisswitchedbetweenanoutputandaninput.Each  
inputhasa100kpullup.Upto6keyscanbeconnectedat  
eachoutput.  
1
3
5
7
9
-
nc  
2
4
IN 8  
IN 7  
IN 6  
IN 5  
IN 4  
IN 3  
IN 2  
IN 1  
input column 8  
input column 7  
input column 6  
input column 5  
input column 4  
input column 3  
input column 2  
input column 1  
OUT 7  
OUT 6  
OUT 5  
OUT 4  
output line 7  
output line 6  
output line 5  
output line 4  
output line 3  
output line 2  
output line 1  
6
8
10  
12  
14  
16  
11 OUT 3  
13 OUT 2  
15 OUT 1  
To find out double-key-strokes all outputs must be  
decoupled by a Schottky-Diode (e.g. BAT 43).  
Transmittingthekeystrokes  
At each keystroke, the associated key number (1..56) is  
transmittedoraninternalTouchMakro(onlyifdefined)will  
be started. The release of the key is not transmitted. If the  
release of the key is to be transmitted as well, this can be  
done by defining touch macro no. 0. The automatic  
Application example 4x4 matrix  
keyboard scan can be deactivated by means of the command "ESC T A 0". If the handshake line (e.g.  
CTS) does not permit transmission, keystrokes can be lost.  
The key number can be determined as follows:  
Key number = (output -1) * 8 +input  
(output: a number between 1 and 7; input: a number between 1 and 8).  
TOUCHPANEL(EAKIT160-7XXTPONLY)  
VersionsEA KIT160-7CTPand-7LWTParesuppliedwithanintegratedtouchpanelwith56fields.The  
graphicskitoffersconvenientcommandssupportingthistouchpanel.Itispossible,forexample,togroup  
anumberoftouchfieldstoformasinglelargekeyandthendrawandlabelthekey.Youcanalsoassign  
arecordcode(1..255)tothekeyyouhavedefined. Ifareturncodeof0isassigned, thekeyisdisabled  
and has no effect when it is pressed.  
Whenthetouchkeysaretouched,theycanbeautomaticallyinvertedanda  
tone can sound, indicating they have been touched. At the same time, the  
defined return code of the key is transmitted via the serial interface, or an  
internal touch macro with the number of the return code is started.  
Example:  
Definitionofakeyfromfield11to21withthereturncode65=´A´andthetext  
"STOP". Note: Before individual keys are defined, all fields should be  
disabled by means of "ESC T R".  
Example  
Codes to be output  
#TH 11, 21, ´A´, 2, "STOP"  
Note  
The end code 0 is not specified  
here  
For compiler  
The dots ´.´ stand for ASCII  
characters that are not to be  
displayed  
As ASCII  
ESC  
T
H
.
.
A
.
S
T
O
P
.
In hex  
$1B $54 $48 $0B $15 $41 $02 $53 $54 $4F $50 $00  
27 84 72 11 21 65 83 84 79 80  
In decimal  
2
0
3
EAKIT160-7  
BAUDRATES  
Baud rates  
DIP switches  
Thebaudratecanbesetbymeansofthe3DIPswitchesontheleft.9,600baud  
issetatthefactory(DIP 3ON).Pleasenotethattheinternaldatabufferonlyholds  
24bytes.ItisthereforeimperativethattheRTShandshakelinebequeried(alevel  
of+10Vmeansdatacanbeaccepted;alevelof-10Vmeansthedisplayisbusy).  
The data format is fixed at 8 data bits, 1 stop bit and no parity.  
Data format  
8,N,1  
1
2
3
ON ON ON  
1200  
ON ON  
OFF  
2400  
ON  
ON  
4800  
OFF  
ON  
9600  
WRITEPROTECTIONFORPROGRAMMEDMACROS  
YoucanuseDIPswitch6topreventtheprogrammedmacros,  
imagesandfontsfrombeinginadvertentlyoverwritten.  
OFF OFF  
ON ON  
Write protection  
Write protection  
19200  
38400  
57600  
115200  
DIP  
OFF  
OFF  
for  
EEPROM  
ON  
OFF  
6
ON  
On  
ON  
No macro progr. possible  
OFF OFF  
Off  
OFF  
Macro progr. possible  
OFF OFF OFF  
RS-232/RS-422CONNECTION  
The graphics kit is shipped with an RS-232 interface as standard. The pin assignment of the plug  
connector(J3)isasshowninthetableontheleft.TheJ3hasa2.54mmgrid.Ifthegraphicskitisordered  
togetherwiththeEA OPT-RS4224optionalcomponent, RS-422driversarefitted. Inthiscase, thepin  
assignment is as shown in the table on the right.  
The same serial data with 5V levels and TTL logic is available at the J5 eyelet strip. These levels are  
suitablefordirectconnectiontoaµC.However,ifthesesignalsareused,solderlinkLB5andLB6must  
be cut or opened.  
RS-232 J3 connection  
RS-422 J3 connection  
Pin Symbo In/Out  
Function  
Pin Symbol  
Function  
1
2
3
4
5
6
7
8
9
VDD  
DCD  
DSR  
TxD  
CTS  
RxD  
RTS  
DTR  
-
-
-
-
+ 5V supply  
Strap to DTR  
Strap to DTR  
1
2
VDD  
+ 5V supply  
Data In- Receive data  
Data In+ Receive data  
Data Out- Transmit data  
Data Out+ Transmit data  
3
4
Out Transmit data  
In  
In  
Clear to send  
Receive data  
5
6
HS In-  
Handshake  
Out Request to send  
7
8
HS In+ Handshake  
HS Out- Handshake  
HS Out+ Handshake  
-
-
-
See pin 2, pin 3  
NC  
9
10 GND  
0V ground  
10  
GND  
0V ground  
SUPPLYVOLTAGE/EAOPT-9/35V  
Inthestandardmodel,thesupplyvoltageof+5V  
isfedinviascrew-typeterminalJ1.Inthecaseof  
the version for 9..35V (EA OPT-9/35V), the  
power is supplied via J2.  
Important: It is imperative that the polarity is  
correct. Polarity reversal, even for a very short  
time, can cause the immediate destruction of  
theentiredisplay.  
J5 ad-on  
Pin Symbol In/Out  
Function  
9..35V Supply  
+ 5V Supply  
0V, Ground  
1
2
3
4
5
6
7
8
VU  
VDD  
-
-
-
GND  
TxD5  
RxD5  
RTS5  
CTS5  
RESET  
Out Transmit Data  
In Receive Data  
Out Request To Send  
In  
In  
Clear To Send  
H: Reset  
4
EAKIT160-7  
DIGITALINPUTSANDOUTPUTS  
AllEA KIT160-7seriesprovide8digitalIn-and8outputs(5V  
CMOSlevel,grounded).  
J120 Inputs and Outputs  
Pin Symbol Function  
Pin Symbol Function  
1
3
5
7
9
VDD  
+5V Supply  
Output 1  
Output 2  
Output 3  
Output 4  
Output 5  
Output 6  
Output 7  
Output 8  
0V, Ground  
2
4
6
8
10  
12  
14  
16  
18  
20  
GND  
IN 1  
IN 2  
IN 3  
IN 4  
IN 5  
IN 6  
IN 7  
IN 8  
VDD  
0V, Ground  
Input 1  
Input 2  
Input 3  
Input 4  
Input 5  
Input 6  
Input 7  
Input 8  
OUT 1  
OUT 2  
OUT 3  
OUT 4  
8outputs  
Eachlinecanbecontrolledindividuallyusingthe"ESC Y W"  
command.Amaximumcurrentof10mAcanbeswitchedper  
line.FormorepoweruseanexternaltransistororMOSFET.  
8inputs  
Avoltageof>4Vstartsaninternalportmacro. However, the  
inputs can also be queried and evaluated directly via the  
serial interface ("ESC Y R"). When the 8 lines are  
combined, up to 256 port macros can thus be addressed.  
Eachoftheseportmacroscanchangethecontentsofthe  
screen or switch an output, thus enabling a wide range of  
controlfunctions.TocreatetheportmacrosyouneedaPC  
and the EA DISK240 floppy disk. You will find a more  
11 OUT 5  
13 OUT 6  
15 OUT 7  
17 OUT 8  
19  
GND  
+5V Supply  
detailed description on page 6. The automatic port query can be disabled by  
means of the "ESC Y A 0" command.  
Note:Thelogiccircuitryisdesignedforslowoperations;inotherwords,morethan  
3changespersecondcannotbeeasilyexecuted.Ifaninputisleftopen,itislogical  
high(internalypulled-upvia100kOhm).  
IN-ANDOUTPUTSVIAOPTOCOUPLER(EAOPT-OPTO16)  
Optionally all In- and Outputs are isolated via  
optocouppler circuit (EA OPT-OPTO16 only). The  
connectionismadevia16differentscrew-typeterminals.  
Direct voltages of 5..35V can be applied at all 8 inputs.  
Voltages of over 4V are recognized as high level, while  
voltages of under 2V are low level. Voltages of between  
2 and 4V are undefined. The polarity is insignificant.  
Output is a "open-collector" circuit with collector (+) and  
emitter (-) of a NPN transistor. A maximum current of  
10mA can be switched per line.  
Note:Thenegativepoleofeachscrew-typeterminalcanbeinterconnectedbyclosingthesolderstraps  
LBI1..8andLBO1..8.ThesesolderstrapscanalsobeconnectedtosystemgroundGND(solder0strap  
RGND).  
Note:Logicwillbeinvertedbyoptocoupplercircuit(allinputsleft  
open: port-macro #255). The command "ESC Y I 1" inverts  
logic back again (all inputs left open: port-macro #0)  
Default settings  
After  
power-on/reset  
Command  
Register  
Text mode  
Terminal font  
Cursor  
ESC L  
Set, black  
Font 3, no zoom  
On  
DEFAULTSETTINGS  
Afterpower-onoramanualreset,theregistersshownhereare  
set to a specific value.  
Pleasenotethatallthesettingscanbeoverwrittenbycreating  
a power-on macro (normal macro no. 0).  
ESC FT  
ESC QC  
ESC QZ  
Flashing time  
0.6 secs  
User-defined characters  
Graphics mode  
Graphics font  
Last xy  
ESC E  
ESC V  
ESC F  
ESC W  
ESC B  
ESC C  
ESC K  
ESC Y  
Undefined  
Set  
Font 3, no zoom  
(0;0)  
Bar graph 1..16  
Clipboard  
Undefined  
Empty  
Select/deselect  
Outputs OUT1..8  
Selected  
Low level/open  
5
EAKIT160-7  
MACROPROGRAMMING  
SingleormultiplecommandsequencescanbegroupedtogetherinmacrosandstoredintheEEPROM.  
YoucanthenstartthembyusingtheExecutemacrocommands.Thereare3differenttypesofmacros:  
Touchmacros(1..255)  
Thesearestartedwhenyoutouchatouchfield(inversionswithatouchpanel-TP)orwhenyouoperate  
an external key/matrix keyboard. Touch macro no. 0 is different: It is started when you release a key.  
Port macros (0..255)  
These are started when voltage is applied to IN 1..8.  
Normalmacros(1..255)  
These are started by means of a command via the serial interface or from another macro. A series of  
macrosoccurringoneaftertheothercanbecalledcyclically(movie, hourglass, multi-pagehelptext).  
Power-onmacro  
Normalmacrono.0isdifferent:Itisexecutedautomaticallyafterpower-on.Itallowsyoutoswitchoffthe  
cursor and define an opening screen, for example.  
Note:ProgrammingaendlessloopinPower-On-Macromakesthedisplaynon-accessible.Inthatcase  
switch DIP 5 to ON position, power off, and then power on again and DIP 5 back to off position. Now all  
fonts and macro must be downloaded again.  
STORING256IMAGESINTHEEEPROM  
Toreducethetransmissiontimesoftheserialinterfaceortosavestoragespaceintheprocessorsystem,  
up to 256 images can be stored in the internal EEPROM. They can be called using the "ESC U E"  
commandviatheserialinterfaceorfromwithinatouch/port/normalmacro. Alltheimagescanbeused  
in the Windows BMP format. They can be created and edit using widely available software such as  
Windows Paint or Photoshop.  
CREATINGINDIVIDUALMACROS  
Tocreateyourownmacros, youneedthefollowing:  
- The EA DISK240*)floppy disk, which contains a compiler, examples and fonts  
- A PC with a COM1 or COM2 serial interface and approximately 500KB hard disk space  
- A text editor such as WordPad or Norton Editor  
To define a sequence of commands as a macro, all the commands are written to a file on the PC (e.g.  
DEMO.KMC).Youspecifywhichcharactersetsaretobeintegratedandwhichcommandsequencesare  
to be in which macros.  
Once the macros are defined, you start the program  
;MakroDemo  
KIT160-7  
;KITfestlegen  
C:>KITCOMP DEMO.KMC. This creates an  
EEPROM file called DEMO.EEP, which is then  
automaticallystoredinthedisplayEEPROMwiththe  
baudrateentered.Thisonlytakesafewseconds,and  
you can then use your user-defined macros  
immediately. You will find a detailed description of  
howtoprogrammacros,togetherwithalargenumber  
ofexamples,inthefilesDOKU.DOC(forWORD)and  
DOKU.TXT (DOS) on the EA DISK240*) floppy disk.  
COM2:115200  
;KITistanCOM2angeschlossen,  
;Übertragungmit115.200Baud  
;----------------------------------------------------------  
;Konstantendefinieren  
AUS =  
EIN =  
0
1
FONT4x6=1  
FONT5x6=2  
FONT6x8=3  
FONT8x8=4  
FONT8x16=5  
;----------------------------------------------------------  
;Fontseinbinden  
Font:FONT4x6, 32,95 INTERN4x6  
Font:FONT5x6, 32,158 INTERN5x6  
Font:FONT6x8, 32,158 INTERN6x8  
Font:FONT8x8, 32,158 INTERN8x8  
Font:FONT8x16,32,158 INTERN8x16  
;----------------------------------------------------------  
Makro:0  
#QCEIN  
;Power-On/ResetMakro  
;Cursorsichtbar  
#FTFONT8x16  
#UL0,20,<EA2.BMP>  
;Terminalfonteinstellen  
;ELECTRONICASSEMBLYLogo  
*)  
Also on the Internet: http://www.lcd-module.de/deu/disk/disk240.zip  
6
EAKIT160-7  
INTEGRATEDFONTS  
5 character sets are integrated in each graphics  
unit as standard. Each character set can be  
used at its normal height or at up to 8 times this  
height.Independentlyoftheheight,thewidthcan  
also be increased two to eight times.  
Font 1: 4x6  
Frei def.  
ASCII- Bemerkung  
Codes  
Zeichen Zeilen x Größe in ASCII-  
höhe Zeichen Pixel Bereich  
Nr.  
1
2
3
4
5
2,2 mm 21 x 60  
2,2 mm 21 x 48  
3,1 mm 16 x 40  
3,1 mm 16 x 30  
6,3 mm 8 x 30  
4 x 6  
5 x 6  
6 x 8  
8 x 8  
32 - 95  
32 - 158  
32 - 158  
32 - 158  
1..21  
1..21  
1..16  
1..16  
1..8  
Microschrift  
Minischrift  
Normalschrift  
Fettschrift  
Großschrift  
8 x 16 32 - 158  
In addition, you can define up to 21 characters  
of your own, depending on the font. These  
characters are preserved until the supply  
voltage is switched off. (See the ESC E  
command.)  
Each character can be positioned with pixel  
accuracy. Text and graphics can be combined  
as required. Several different font sizes can  
also be displayed together.  
Font 3: 6x8  
Each text can be output left justified, right  
justified or centered. 90° rotation (for vertical  
installation of the display) is also possible.  
Macro programming permits the inclusion of  
up to 11 additional fonts and the complete  
redesign of the individual characters. A font  
editor on the EA DISKFONT6963 floppy disk  
allows you to create and program in any font  
you like with a size of up to 16x16 pixels.  
Font 5: 8x16  
TIP:FONTEFFECTS  
With large fonts, you can use the command ESC L TEXT mode (link,  
pattern) to produce interesting effects through overlaying (writing and  
offsetting a word several times).  
Overlaying (EXOR) of the "outline font" at  
pos. 2,2. results in an "outline font with fill"  
Original font 8x16 with ZOOM 3  
"Outline font" produced by  
at position 0,0 with black pattern  
overlaying (EXOR) at pos. 1,1  
Overlaying (OR) with 50% gray pattern of  
the "outline font" at pos. 0,0. results in a  
"font with pattern fill"  
7
EAKIT160-7  
ALLCOMMANDSATAGLANCE  
Command table for the EA KIT160-7  
Command  
Codes  
Note  
Commands for terminal operation  
Form feed FF (dec:12)  
Carriage return CR(13)  
^L  
Deletes the screen and sets the cursor at position (1,1)  
^M  
Positions the cursor on the left at the beginning of the line  
Positions the cursor in the line below the current one. If the cursor is in the last  
line, positions it in the 1st line  
Line feed LF (dec:10)  
^J  
ESC  
Q
Cursor on/off  
C
n1  
n1 n2  
n1  
n1=0: cursor is not visible; n1=1: cursor flashes (inverse 6/10s)  
n1=column; n2=line; upper left origin is (1,1)  
ESC  
O
Position cursor  
Set terminal font  
ESC  
F
T
n1=1: sets font no. n1 (1..16) for terminal operation  
Text output commands  
Mode n1: 1=set; 2=delete; 3=inverse 4=replace; 5=inverse replace;  
pat: pattern no. 0..7  
ESC  
ESC  
L
F
n1 pat  
Text mode  
Set font  
n1 n2 n3  
L
Sets font with the number n1 (1..16); n2=X- n3=Y-zoom factor (1x..8x)  
Outputs a string (...) at x1,y1. ´NUL´ ($00)=end of string;  
lines are separated by the character '|' ($7C, dec:124);  
'L':= left justified at x1; 'Z':= centered at x1; 'R':= right justified at x1;  
y1 is always the upper edge of the string  
Output string  
horizontally  
Text  
...  
ESC  
Z
Z
x1 y1  
NUL  
NUL  
R
O
Outputs a string (...) rotated by 90° at x1,y1; ´NUL´ ($00)=end;  
lines are separated by the character '|' ($7C, dec: 124);  
'O':= top justified at y1; 'M':= vertically centered at y1; 'U':= bottom justified at y1  
x1 is always the right edge of the string  
Output string rotated  
by  
90° (vertically)  
Text  
...  
ESC  
ESC  
Z
E
x1 y1  
M
U
Define character  
n1  
data ...  
n1=character no.; data=number of bytes depending on current font  
Drawing commands  
Sets the drawing mode for the commands 'Set point', 'Draw straight line',  
'Rectangle', 'Rouded rectangle' and 'Fill area with pattern'  
n1: 1=set; 2=delete; 3=inverse; 4=replace; 5=inverse replace  
ESC  
V
n1  
Graphics mode  
ESC  
ESC  
ESC  
Set point  
P
G
W
x1 y1  
Sets a pixel at position x1, y1  
Draw straight line  
Continue straight line  
x1 y1 x2 y2  
x1 y1  
Draws a straight line from x1,y1 to x2,y2  
Draws a straight line from the last end point to x1, y1  
Rectangle commands  
Draw rectangle  
R
N
x1 y1 x2 y2  
Draws a rectangle (frame) from x1,y1 to x2,y2  
Draw rounded  
rectangle  
x1 y1 x2 y2  
Draws a rectangle with rounded corners from x1,y1 to x2,y2  
Delete area  
L
I
x1 y1 x2 y2  
x1 y1 x2 y2  
x1 y1 x2 y2  
Deletes an area from x1,y1 to x2,y2 (all pixels off)  
Inverts an area from x1,y1 to x2,y2 (inverts all pixels)  
Fills an area from x1,y1 to x2,y2 (all pixels on)  
Invert area  
ESC  
R
Fill area  
S
M
O
J
Fill area with pattern  
Draw box  
x1 y1 x2 y2 pat Fills an area from x1,y1 to x2,y2 with the pattern pat (0..7)  
x1 y1 x2 y2 pat Draws a rectangle with the fill pattern pat (0..7); (always replace)  
x1 y1 x2 y2 pat Draws a rectangle with the fill pattern pat (0..7); (always replace)  
Bitmap image commands  
Draw rounded box  
E
L
x1 y1 no  
Loads an internal image with the number (0..255) from the EEPROM to x1,y1  
Image from EEPROM  
Load image  
U
H
x1 y1  
data ...  
Loads an image to x1,y1; see image structure for the data of the image  
ESC  
Requests an image. Sends the width and height in pixels followed by the actual  
image data via RS232  
Send hard copy  
x1 y1 x2 y2  
Display commands (which apply to the whole display)  
Deletes the contents of the display (all pixels off)  
Inverts the contents of the display (inverts all pixels)  
Fills the contents of the display (all pixels on)  
Delete display  
Invert display  
Fill display  
L
I
S
Makes the contents of the display invisible, but they remain there and further  
commands are possible  
Switch display off  
Switch display on  
Clipboard display  
A
E
C
ESC  
D
Makes the contents of the display visible again  
Displays the contents of the clipboard. The display contents are no longer visible  
N
R
Displays the current image (normal mode). All outputs are visible again  
Resets and re-initializes the display controller  
Normal display  
Reset display  
Macro commands  
Execute macro  
N
T
P
A
n1  
Calls the (normal) macro with the number n1 (max. 7 levels)  
Calls the touch macro with the number n1 (max. 7 levels)  
Calls the port macro with the number n1 (max. 7 levels)  
Processes macros n1..n2 automatically cyclically; n3=pause in 1/10s  
Execute touch macro  
Execute port macro  
Macros autom. cyclical  
n1  
n1  
ESC  
M
n1 n2 n3  
Macros autom.  
ping-pong  
J
n1 n2 n3  
Processes macros n1..n2..n1 automatically (ping-pong); n3=pause in 1/10s  
8
EAKIT160-7  
Bar graph commands  
R
L
O
Defines a bar graph to the left (L), right (R), top (O) or bottom (U  
with the number no (1..16). x1,y1,x2,y2 define the rectangle  
enclosing the bar graph. sv,ev are the values for 0% and 100%.  
pat=pattern (0..7)  
Sets the bar graph with the number no (1..16) to the new user  
'value'  
Define bar graph  
Draw bar graph  
no x1 y1 x2 y2 sv ev pat  
ESC  
ESC  
B
C
U
no value  
Clipboard commands (clipboard for image areas)  
Save display contents  
Save image  
Restore display  
Copy area  
B
Copies the entire contents of the display to the clipboard as an image area  
S
R
K
x1 y1 x2 y2  
Copies the image area from x1, y1 to x2, y2 to the clipboard  
Copies the image area on the clipboard back to the display  
x1 y1  
Copies the image area on the clipboard to position x1, y1 in the display  
Keyboard/touch panel commands  
Groups touch fields f1 to f2 (diametrically opposite corner fields) together to  
form a touch key with the return value ´Ret. code´ (=1..255) (Ret. code=0  
means the touch key is inactive).  
Define touch key with  
horizontal label  
H
V
Ret  
code  
Text  
...  
f1  
f2  
Form  
NUL ´Form´: Draws touch key (=0 nothing; =1 delete; =2 with frame)  
´Text´: Positions a string on the touch key (centered) using the current font;  
lines are separated by the character '|' ($7C, dec: 124); NUL character  
($00) = end of string  
Define touch key with  
vertical label (rotated  
by 90°)  
P
R
Activates all touch keys in ascending order (fields with code 1..60)  
Deactivates all touch keys (all fields with code 0)  
n1=0: Touch key is not inverted when touched  
n1=1: Touch key is automatically inverted when touched  
n1=0: No tone sounds when (touch) key is touched  
n1=1: Tone sounds briefly when (touch) key is touched  
(P)reset touch keys  
ESC  
T
I
n1  
Touch key response  
S
n1  
n1  
Invert touch key  
M
The touch key assigned the return code n1 is inverted manually  
Query key manually  
W
Sends the currently depressed (touch) key at the RS-232/RS-422 interface  
The keyboard query is n1=0:deactivated;  
Key query on/off  
A
n1  
n1=1:activated, keystrokes are sent automatically;  
n1=2:activated, keystrokes are not sent (query with ESC T W)  
Menu/pop-up commands  
Draws a menu from the corner x1,y1 (horizontal menu = upper left corner; vertica  
Define menu with  
horizontal items  
menu = upper right corner) using the current font.  
H
V
no:= currently inverted item (e.g.: 1 = 1st item)  
NUL Text:= string with the menu items. The items are separated by the character '|'  
($7C,dec:124), e.g. "Item1|Item2|Item3"  
Text  
...  
x1 y1 no  
Define menu with  
vertical items (rotated  
by 90°)  
The background of the menu is automatically saved to the clipboard.  
If a menu is already defined, it is automatically canceled and removed  
Invert menu box  
Next item  
Previous item  
I
Inverts the entire menu box. Useful for negative display  
Inverts the next item or remains at the end  
ESC  
N
N
P
Inverts the previous item or remains at the beginning  
Removes the menu from the display and replaces it with the clipboard contents.  
The current item is sent as a number (1..n) (0=no menu displayed)  
Removes the menu from the display and replaces it with the contents of the  
clipboard. Macro 'no' is called for item 1; macro no+1 for item 2, and so on  
Removes the menu from the display and replaces it with the contents of the  
clipboard  
Menu end/send  
Menu end/macro  
Menu end/cancel  
S
M
A
no  
Control/definition commands  
D
Z
x1 y1 x2 y2  
n1  
I
Defines a flashing area from x1,y1 to x2,y2; activates the flashing function  
Sets the flashing time n1= 1..15 in 1/10s; 0=deactivates the flashing function  
Inverse mode (flashing area is inverted); activates the flashing function  
Clipboard mode pat=pattern (0..7) of the block cursor; activates flashing  
Automatic flashing  
area  
(cursor function)  
M
ESC  
ESC  
Q
K
pat  
Automatically flashing area as cursor for terminal operation  
n1=0: deactivates flashing function; n1=1: activates flashing function (inverse,  
6/10s)  
C
n1  
S
D
A
add  
add  
add  
Activates the kit with the address n1 (n1=255: all)  
Select/deselect  
Deactivates the kit with the address n1 (n1=255: all)  
Assigns a new address (add) (in the power-on macro, for example)  
Wait n1 tenths of a second before the next command is executed  
n1=0:tone off; n1=1:tone on; n1=2..255:for n1 1/10s long on  
Wait (pause)  
Buzzer on/off  
ESC  
ESC  
X
J
n1  
n1  
Sends num (1..255; 0=256) bytes at the RS-232/RS-422 interface;  
data ... = num bytes (e.g. control of an external serial printer)  
ESC  
Send bytes  
S
num  
data ...  
Port commands  
n1=0: Sets all 8 output ports in accordance with n2 (=8-bit binary value)  
n1=1..8: Resets (n2=0), sets (n2=1) or inverts (n2=2) output port n1  
n1=0: Reads in all 8 input ports as 8-bit binary value  
Write output port  
Read input port  
W
R
n1 n2  
n1  
n1=1..8: Reads in input port <n1> (1=high level=5V, 0=low level=0V)  
ESC  
Y
A
I
n1  
n1  
Deactivates (n1=0) or activates (n1=1) automatic scanning of the input port  
Evaluates the input port (n1=0: normal; n1=1: inverted)  
Port scan on/off  
Input port inverse  
CFL/LED backlight n1=0: off; n1=1: on; n1=2: invert;  
n1=3..255: backlight for n1/10 sec. switched on and then automat. turn off  
Switch backlight on/off  
L
n1  
9
EAKIT160-7  
PARAMETERS  
The graphics kit can be programmed by means of various integrated commands. Each command  
beginswithESCfollowedbyoneortwocommandlettersandthenparameters. Allthecommandsand  
their parameters, such as coordinates and other transfer values, are always expected as bytes. No  
separatingcharacters,suchspacesorcommas,mustbeusedbetweenthem.Thecommandsrequire  
no final bytesuch as a carriage return (except for the string $00).  
A..Z,L/R/O/U .................................... AllcommandsaretransferredasASCIIcharacters.  
Example:G= 71(dec.) = $47initiatesthestraight-line  
command.  
x1, x2, y1, y2.................................... Coordinates are transferred with 1 byte.  
Example:x1= 10 (dec.) = $0A  
ESC.................................................. 1 byte: 27(dec.) = $1B  
n1,n2,no,sv,ev,value,pat,ret,  
frm,data ........................................... Numericalvaluesaretransferredwith1byte.  
Example:n1=15(dec.) =$0F  
PROGRAMMINGEXAMPLE  
Thefollowingtableshowsanexampleinwhichthestring"Test"isoutputleftjustifiedatcoordinate7,3.  
Example  
Codes to be output  
ESC  
BEL  
ETX  
NUL  
In ASCII  
Z
L
T
e
s
t
In hex  
$1B $5A $4C $07 $03 $54 $65 $73 $74 $00  
27 90 76 84 101 115 116  
In decimal  
7
3
0
For Turbo Pascal write(aux, chr(27), 'Z', 'L', chr(7), chr(3), 'Test', chr(0));  
For C  
fprintf(stdaux, "\x1BZL%c%c%s\x00", 7, 3, "Test");  
OPEN "COM1:9600,N,8,1,BIN" FOR RANDOM AS #1  
PRINT #1,CHR$(27)+"ZL"+CHR$(7)+CHR$(3)+"Test"+CHR$(0)  
For Q Basic  
PATTERN  
A pattern type (mst = 0..7) can be set as a parameter with some commands. In this way, rectangular  
areas, bar graphs and even texts can be linked to different patterns and displayed.  
Thefollowingfillpatternsareavailable:  
pat=0  
pat=1  
pat=2  
pat=3  
pat=4  
pat=5  
pat=6  
pat=7  
White  
Black  
25%gray  
50%gray  
75%gray  
45° right  
45°left  
45° cross  
10  
EAKIT160-7  
DESCRIPTIONSOFTHEVARIOUSGRAPHICSFUNCTIONS  
On the following pages you will find detailed descriptions of all of the functions in alphabetical order. In  
each case, an enlarged section of the image, 50x32 pixels in size, is shown as a hard copy example,  
indicating the contents of the display after the command is executed. The bytes to be transferred are  
shownashexvaluesintheexamples.  
ESC  
B L/R/O/U no x1 y1 x2 y2 sv ev pat  
Define bar graph  
Up to 16 bar graphs (no=1..16) can be defined. These can extend to the left (L), right  
(R), up (O) or down (U). At its full extent, the bar graph occupies an area from x1,y1 to  
x2,y2. It is scaled with the start value (no extension) sv (=0..254) and the end value  
(full extension) ev (=0..254). The bar graph is always drawn in inverse mode with the  
pattern (pat): The background is thus always retained. (Note: When this command is  
executed, it defines the bar graph but does not display it).  
Example: $1B $42 $4F $01 $04 $02 $09 $1E $04 $14 $01  
Bar graph no. 1, which extends upwards, is defined. When it is fully extended, it takes up an area from 4,2 to  
9,30. The start and end values correspond to a 4..20 mA display. (The diagram shows the bar graph fully  
extended, as represented with $42 $01 $14.)  
ESC  
B no value  
Draw bar graph  
The bar graph with the number n1 (1..16) is set to the new value (sv <= value <= ev). If value > ev, the end value  
(ev) is displayed. The bar graph must be defined first (see above).  
Example: $1B $42 $01 $0A  
Bar graph no. 1 defined in the above example is set to a value of 10.  
ESC  
C B  
Save contents of display to clipboard  
Copies the entire contents of the display to the clipboard.  
Example: $1B $43 $42  
Saves the entire contents of the display to the clipboard so that the screen can subsequently be restored. The  
contents of the display do not change.  
ESC  
C S x1 y1 x2 y2  
Save area to clipboard  
Copies an area from the upper left corner (x1,y1) to the lower right corner (x2,y2) to the clipboard.  
Example: $1B $43 $53 $00 $00 $17 $1B  
Saves the area from 0,0 to 23,27 so that the screen can subsequently be restored. The contents of the display do  
not change.  
ESC  
C R  
Restore area  
Copies the the area last saved from the clipboard back to the display. Destination: the original coordinates.  
Example: $1B $43 $52  
Restores the area last saved.  
ESC  
C K x1 y1  
Copy area from clipboard  
Copies the area last saved on the clipboard to a new position (x1,y1) on the display.  
Example: $1B $43 $4B $0A $20  
Copies the area last saved to the point 10,32.  
11  
EAKIT160-7  
ESC  
D L/I/S  
Change contents of display  
The entire contents of the display are deleted (L - white), inverted (I) or filled (S - black).  
Example: $1B $44 $49  
Inverts the entire contents of the display.  
ESC  
D A/E  
Switch display on/off  
Switches the contents of the display off (A - not visible) or on (E - visible). Outputs are still possible when it is  
switched off.  
Example: $1B $44 $41  
The contents of the display are no longer visible after this command.  
ESC  
D N/C  
Display normal/clipboard contents  
The normal contents (N) or the clipboard contents (C) appear on the display. Concealed drawing is possible with  
this command. Example: The current contents of the display are saved to the clipboard with ESC C B, and the  
contents of the clipboard are then displayed with ESC D C. All subsequent outputs to the display will be invisible  
until the command ESC D N is entered, at which point the current contents will become visible again.  
Example: $1B $44 $49  
The display now shows the contents of the clipboard (only complete images are recognizable).  
ESC  
E n1 data  
Define character  
User-definable  
characters (code)  
You can define up to 21 characters yourself (depending on the font size). These characters then have  
the ASCII codes 1 to max. 21 and remain in an invisible screen RAM 128 bytes in size until the  
supply voltage is switched off. In the case of a 4x6 font, up to 21 characters can be defined, whereas  
only 8 characters can be defined for an 8x16 font. Please note that if you want to define several  
characters in different fonts, you must bear in mind that a character with code 1 of the 8x16 font, for  
4x6 6x8  
5x6 8x8  
16x  
16  
8x16  
1
1
1
2
2
3
1
2
3
4
3
4
2
3
4
5
6
7
8
5
example, requires the same amount of RAM as the characters with the  
codes 1 to 3 in the 4x6 font (see the adjacent table).  
4
BIT NR.  
6 5 4 3 2 1 0  
6
7
5
7
6
Byte 1  
Byte 2  
Byte 3  
Byte 4  
Byte 5  
Byte 6  
Byte 7  
Byte 8  
Byte 9  
Byte 10  
Byte 11  
Byte 12  
Byte 13  
Byte 14  
Byte 15  
Byte 16  
BIT NR.  
6 5 4 3 2  
8
Example 1:  
$1B $45 $01  
$20 $70 $A8 $20 $20 $20 $20 $00  
Defines an arrow pointing upward for ASCII no. 1  
using the 6x8 character set.  
7
9
7
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
8
Byte 1  
Byte 2  
Byte 3  
Byte 4  
Byte 5  
Byte 6  
Byte 7  
Byte 8  
9
10  
11  
12  
13  
14  
15  
16  
Example 2:  
$1B $45 $02  
$10 $10 $10 $10 $10 $10 $10 $10 $10 $10 $92 $54 $38 $10 $00 $00  
Defines an arrow pointing downward for ASCII no. 2 using the 8x16  
character set.  
ESC  
F
n1 n2 n3  
Set font  
Sets the font with the number n1 (1=4x6 uppercase letters only; 2=6x8; 3=8x16). In  
addition, an enlargement factor (1..8 times) is set for the width (n2) and height (n3)  
separately.  
Example: $1B $46 $02 $03 $04  
The 6x8 with 3 times the width and 4 times the height is set with immediate effect.  
In the adjacent figure, the character 'E' is shown in the 6x8 font and with various  
enlargement factors.  
ESC  
F
T n1  
Set terminal font  
Sets the font with the number n1 for terminal operation. The font for the terminal is always used without zoom  
and in REPLACE mode.  
Example: $1B $46 $54 $03  
The 6x8 font is set as the terminal font with immediate effect.  
12  
EAKIT160-7  
ESC  
G x1 y1 x2 y2  
Draw straight line  
A straight line is drawn from x1,y1 to x2,y2 taking into account the graphics mode set  
'V'(set/delete/inverse).  
Example: $1B $47 $03 $14 $28 $06  
A straight line is drawn from 3,20 to 50,6.  
ESC  
H x1 y1 x2 y2  
Create hard copy of display contents  
Requests the area from the upper left corner (x1,y1) to the lower right corner (x2,y2). The graphics chip then  
immediately sends the width and height of the image section followed by the image data. See the upload image  
command ('U') for the structure of the image data.  
Example: $1B $48 $00 $00 $1F $0F  
The upper left part of the screen (32 x 16 pixels) is sent via RS-232.  
ESC  
J
n1  
Switch tone on/off manually  
Switches the tone off (n1=0), on for an undefined period (n1=1) or on for n1/10 seconds (n1=2..255). (This only  
applies to versions with EA KIT240-7CTP and EA KIT240-7LEDTP touch panels.)  
Example: $1B  
$4A $0A  
The tone sounds for 1 second after this command.  
ESC  
K A add  
Assign address  
Assigns an address to the KIT240 (add=0..254). The best place for this command is in the power-on macro.  
Example: $1B $4B $41 $01  
The KIT240 is assigned the address $01 with immediate effect.  
ESC  
K S/Dadd  
(De)select KIT160  
Selects (S) or deselects (D) the KIT240 with the address add (0..254); the address 255=$FF is a master address  
for all KIT160 units.  
Example: $1B  
$4B $44 $01  
All commands for the KIT160 with the address $01 are ignored with immediate effect.  
ESC  
L
n1 pat  
Set text mode  
Sets the link mode (n1) and pattern (pat) for the string  
output text function (ESC Z).  
Example: $1B  
$4C $03 $03  
Sets the link mode for all subsequent text functions to  
gray characters (pattern 3 = 50% gray) inverted with the  
background.  
Link mode n1:  
1 = set: black pixels irrespective of the previous value (OR)  
2 = delete: white pixels irrespective of the previous value  
3 = inverse: changes black pixels to white pixels and vice versa (EXOR)  
4 = replace: deletes the background and sets black pixels  
5 = inverse replace: fills the background and sets white pixels  
13  
EAKIT160-7  
ESC  
M N/T/P n1  
Call macro  
Calls the normal macro (N), touch macro (T) or port macro (P) with the number n1 (0..255).  
Example: $1B $4D $4E $0F  
The (normal) macro with the number 15 is executed.  
ESC  
M A/J n1 n2 n3  
Execute macros automatically  
Calls the normal macros with the numbers n1 to n2 automatically every n3/10 seconds. A=cyclical call (e.g.  
1,2,3,4,1,2,3,4, etc.); J=ping-pong call (e.g. 1,2,3,4,3,2,1,2,3,4, etc.).  
Automatic execution is terminated:  
- When a character is received from the RS-232 interface  
- When a touch automatically executes a touch macro  
- When an input change executes a port macro  
Example: $1B  
$4D $41 $01 $03 $05  
The macros with the numbers 1, 2 and 3 are executed automatically with a break of 1/2 second.  
ESC  
N H/Vx1 y1 no Text... NUL  
Display menu  
Defines and displays a menu with the current font. The background of the menu box is automatically saved on the  
clipboard (the previous contents of the clipboard are lost): H=horizontal menu at  
x1,y1 (upper left corner) orV=vertical menu (rotated 90°) atx1,y1 (upper right corner).  
n1=currently inverted item;Text...=string containing the items. The individual items  
are separated by the character '|' (=$7C). The string must be terminated with NUL=  
$00.  
Example 1 - Horizontal menu:  
$1B $4E $48 $02 $02 $01  
$54 $65 $73 $74 $7C $53 $74 $6F $70 $7C $45 $6E $64 $00  
Defines a horizontal menu containing the items "Test", "Stop" and "End" at position  
2,2. The 1st item is inverted.  
Example 2 - Vertical menu:  
$1B $4E $56 $28 $01 $01  
$54 $65 $73 $74 $7C $53 $74 $6F $70 $7C $45 $6E $64 $00  
Defines a vertical menu containing the items "Test", "Stop" and "End" at position 40,1.  
The 1st item is inverted.  
ESC  
N N/P  
Next/previous menu item  
Inverts the next (N) or previous (P) menu item. If the last/first item is already inverted, the command is ignored.  
Example: $1B $4E $4E  
The next menu item is inverted.  
ESC  
N I  
Invert menu box  
Inverts the entire menu box.  
Example: $1B $4E $49  
ESC  
N S  
Terminate and send menu  
Removes the menu from the display and replaces it with the background from the clipboard. The currently  
selected item is sent as a number (1..max. item) via the RS 232 interface.  
Example: $1B  
$4E $53  
ESC  
N M n1  
Terminate menu and call macro  
Removes the menu from the display and replaces it with the background from the clipboard. If item 1 is selected,  
the (normal) macro with the number n1 is called, for item 2 the macro n1+1 etc.  
Example: $1B  
$4E $4D $0A  
ESC  
N A  
Cancel menu  
Removes the menu from the display and replaces it with the background from the clipboard.  
Example: $1B  
$4E $41  
14  
EAKIT160-7  
ESC  
O n1 n2  
Position cursor  
Sets the cursor to column n1 and row n2 for terminal operation. The origin in the upper left corner is 1,1.  
Example: $1B $4F $03 $05  
Sets the cursor to the 3rd column in row 5.  
ESC  
P
x1 y1  
Set dot  
Cursor on/off  
Sets a pixel at x1,y1 taking into account the graphics set mode 'ESC V' (set/delete/  
invert).  
Example: $50 $11 $0D  
Sets the pixel at 17,13.  
ESC  
Q C n1  
n1=1: Switches the cursor on; it flashes at the current position on the terminal.  
n1=0: Switches the cursor off.  
Example: $1B  
$51 $43 $01  
Switches the cursor off.  
ESC  
Q D x1 y1 x2 y2  
Define flashing area  
Defines the area from the upper left corner (x1,y1) to the lower right corner (x2,y2) as an automatically flashing  
area. The flashing function is started at the same time. This deactivates the terminal cursor.  
Example: $1B  
$51 $44 $00 $0F $07 $10  
Defines the flashing area from 0,15 to 7,16.  
ESC  
Q Z n1  
Set flashing time  
Sets the flashing time to n1 (=1..15) tenths of a second. When n1= 0, the flashing function is deactivated and the  
original screen restored.  
Example: $1B  
$51 $5A $03  
Sets the flashing time to 0.3 seconds.  
ESC  
Q M I  
Inverse flashing mode  
Automatically inverts the defined flashing area cyclically with the set flashing time. The flashing function is started  
at the same time.  
Example: $1B  
$51 $49  
Sets the inverse flashing mode.  
ESC  
Q M pat  
Block cursor flashing mode  
Saves the defined flashing area on the clipboard (the previous contents of the clipboard are lost). There is a  
cyclical changeover between the original area and the pattern pat (=0..7) on the basis of the set flashing time. In  
this way, for example, a block cursor can be simulated (pat=1 black) or a flashing word displayed (pat=0 white).  
The flashing function is started at the same time.  
Example: $1B  
$51 $43 $00  
The block cursor flashing mode is set with the pattern white. As a result, the set area flashes on a white  
background.  
ESC  
R R x1 y1 x2 y2  
Draw rectangle  
Draws a rectangle from the upper left corner (x1,y1) to the lower right corner (x2,y2)  
taking into account the set graphics mode 'V' (set/delete/inverse). The contents of the  
rectangle are not changed. See 'ESC R O' (Draw box).  
Example: $1B  
$52 $52 $15 $08 $30 $25  
Draws a rectangle from 21,8 to 48,37.  
15  
EAKIT160-7  
ESC  
R N x1 y1 x2 y2  
Draw rounded rectangle  
Draws a rectangle with rounded corners from the upper left corner (x1,y1) to the lower  
right corner (x2,y2) taking into account the set graphics mode 'V' (set/delete/inverse).  
The contents of the rounded rectangle are not changed. See 'ESC R J' (Draw rounded  
box).  
Example: $1B  
$52 $4E $06 $02 $26 $13  
Draws a rounded rectangle from 6,2 to 38,19.  
ESC  
R L x1 y1 x2 y2  
Delete area  
Invert area  
Deletes the area from the upper left corner (x1,y1) to the lower right corner (x2,y2).  
Example: $1B $44 $53 $1B $52 $4C $06 $04 $28 $19  
The display is filled with ESC D S and then deleted from 6,4 to 40,25.  
ESC  
R I  
x1 y1 x2 y2  
Inverts the area from the upper left corner (x1,y1) to the lower right corner (x2,y2)  
(black pixels turn white and vice versa).  
Example: $1B  
$52 $49 $00 $00 $17 $1B  
Inverts the area from 0,0 to 23,27 with the display contents from the "Set font"  
example.  
ESC  
R S x1 y1 x2 y2  
Fill area  
Fills the area from the upper left corner (x1,y1) to the lower right corner (x2,y2) (sets  
the pixels to black).  
Example: $1B  
$52 $53 $09 $05 $16 $16  
Sets the area from 9,5 to 22,22 black.  
ESC  
R M x1 y1 x2 y2 pat  
Fill area with pattern  
Fills a rectangular area from the upper left corner (x1,y1) to the lower right corner  
(x2,y2) with the pattern pat taking into account the set graphics mode "ESC V' (set/  
delete/invert/replace/inversereplace).  
Example: $1B  
$52 $4D $05 $01 $2D $1A $07  
Fills the area with the pattern 7=45°cross from 5,1 to 45,26.  
ESC  
R O x1 y1 x2 y2 pat  
Draw box  
Draws a rectangle from the upper left corner (x1,y1) to the lower right corner (x2,y2)  
with the pattern pat. The background of the box is deleted. See 'ESC R R' (Draw  
rectangle).  
Example: $1B  
$52 $4F $02 $05 $12 $1E $02  
Draws a box from 2,5 to 18,30 with the pattern 2=25%gray.  
ESC  
R J x1 y1 x2 y2 pat  
Draw rounded box  
Draws a rectangle with rounded corners from the upper left corner (x1,y1) to the lower  
right corner (x2,y2) with the pattern pat. The background is deleted. See 'ESC R N'  
(Drawroundedrectangle).  
Example: $1B  
$52 $4A $07 $03 $23 $16 $03  
Draws a rounded box from 7,3 to 35,22 with the pattern 3=50%gray.  
ESC  
S num  
data...  
Send bytes via RS-232  
Outputs the next num (1..255, 0=256) bytes at the serial interface.  
Example: $1B $53 $04 $54 $45 $53 $54  
Transmits the word 'TEST' via the RS-232C interface.  
16  
EAKIT160-7  
ESC  
T
H/Vf1 f2 ret frm text... NUL  
Define touch key  
Defines a touch key and labels it with the current font.H=horizontal or V=vertical labeling (rotated 90°). Several  
touch fields can be grouped together to form a single touch key (f1=upper left touch field; f2=lower right touch field  
of the new touch key). This touch key is assigned a return code with ret (1..255). When the touch key is touched,  
the touch macro with the number ret is called or, if no touch macro is defined, this return code is sent via the  
RS232. You use frm to define the format of the touch key (frm=0: don't draw anything;  
frm=1: delete touch key; frm=2: delete touch key and draw with frame). text...=string  
with the label (which is always centered on the touch key). The label can also have  
more than one line; in this case, the lines are separated by the character '|' (=$7C).  
The string must be concluded with NUL= $00. See example on page 3.  
Example 1: Horizontal touch key:  
$1B $54 $48 $01 $01 $41 $02 $54 $45 $53 $54 $00  
Defines a horizontal touch key (field no. 1 only) with the return code 65='A'. The touch  
key is drawn with a frame and labeled with the word 'TEST'.  
Example 2: Vertical touch key:  
$1B $54 $56 $02 $02 $42 $02 $54 $45 $53 $54 $00  
Defines a vertical touch key (touch field no. 2 only) with the return code 66='B'. The  
touch key is drawn with a frame and labeled with the word 'TEST'.  
ESC  
T
P/R  
Preset/reset touch fields  
Assigns P (=ascending return code: 1..60) or R (=reset all touch fields) to all 60 touch fields. In the latter case all  
touch fields receive the return code 0 (i.e. they are deactivated).  
Example: $1B  
$54 $52  
All touch fields are deactivated by this command and no longer recognized.  
ESC  
T
I/S n1  
Touch key response  
These commands set the automatic response of the touch panel to touching. Both responses can be activated  
simultaneously.  
I=automatic inversion when the touch key is touched (n1=0: off or n1=1: on)  
S=automatic signal tone when the touch key is touched (n1=0: off or n1=1: on)  
Example: $1B  
$54 $49 $01  
After this command the tone sounds when a touch key is touched.  
ESC  
T
M ret  
Invert touch key manually  
This command manually inverts the touch key with the return code ret.  
Example: $1B $54 $4D $41  
Inverts the touch key from the above example with the return code 65='A'.  
ESC  
T
A n1  
(Touch) key query on/off  
This command sets the (touch) key query:  
n1=0: Switches the key query off - no touch macros or manual key query possible.  
n1=1: Activates the key query - keystrokes trigger touch macros or are sent via RS232.  
n1=2: Activates the key query - keystrokes trigger touch macros; must be queried manually.  
Example: $1B  
$54 $41 $02  
Activates the (touch) key query. The keystrokes are not sent automatically via RS232; they have to be requested  
manually by means of the command ESC T W.  
ESC  
T
W
Query touch key manually  
Sends the return code of the currently depressed touch key at the RS232.  
Example: $1B $54 $57  
17  
EAKIT160-7  
ESC  
U E x1 y1 n1  
Load image from EEPROM  
Displays the image saved in the EEPROM with the number n1 (0..255) at position x1,y1.  
Example: $1B $55 $45 $02 $03 $0E  
Displays image number 14 from the EEPROM at position 2,3.  
ESC  
U L x1 y1 data...  
Upload image  
Displays an image at position x1,y1.  
data..: - 1 byte for the image width in pixels  
- 1 byte for the image height in pixels  
- Image data: number = ((width+7) / 8) * height bytes.  
1 byte stands for 8 horizontal pixels on the screen; 0=white, 1=black;  
MSB: left, LSB: right; the image is stored from the top down.  
The BMP2BLH.EXE program on the EA DISK240 floppy disk available as  
an accessory creates the image data, including the width and height,  
from monochrome Windows bitmap graphics (*.BMP).  
Bit Nr.  
Bit Nr.  
7
6 5 4 3 2 1 0 7 6 5 4  
Byte 1  
Byte 3  
Byte 5  
Byte 2  
Byte 4  
Byte 6  
Byte 7  
Byte 8  
Example:  
$1B $55 $4C $09 $04 $0C $0C  
$0F $00 $3F $C0 $7F $E0 $76 $E0 $FF $F0 $FF $F0  
$F1 $F0 $FF $F0 $6F $60 $70 $E0 $3F $C0 $0F $00  
Byte 9  
Byte 10  
Byte 12  
Byte 14  
Byte 16  
Byte 18  
Byte 20  
Byte 22  
Byte 24  
Byte 11  
Byte 13  
Byte 15  
Byte 17  
Byte 19  
Byte 21  
Byte 23  
Loads the adjacent image at position 9,4.  
ESC  
V n1  
Set graphics mode  
Sets the link mode n1 for the following graphics functions:  
ESC P (Set point), ESC G (Draw straight line), ESC W  
(Continue straight line), ESC R R (Draw rectangle), ESC  
R N (Draw rounded rectangle), ESC R M (Fill area with  
pattern).  
Example: $1B  
$56 $03  
Sets the link mode to inverse.  
By way of example, a rectangle is drawn alongside with the link modes set, delete and  
inverse on an existing background.  
Link mode n1:  
1 = set: black pixels irrespective of the previous value (OR)  
2 = delete: white pixels irrespective of the previous value  
3 = inverse: changes black pixels to white pixels and vice versa (EXOR)  
4 = replace: deletes the background and sets black pixels; only area with fill pattern 'pat'  
5 = inverse replace: fills the background and sets white pixels; only area with fill pattern 'pat'  
ESC  
W x1 y1  
Continue straight line  
Continues a straight line from the last end or point drawn to x1,y1 taking into account  
the set graphics mode 'V'.  
Example:  
$1B $47 $00 $00 $10  
$1B $57 $16 $1B  
$1B $57 $30 $0F  
$04  
A straight line is drawn from 0,0 to 16,4.It is then continued to 22,27 and to 48,15.  
ESC  
X n1  
Wait/pause  
This command suspends the KIT240 forn1/10 seconds.  
Example: $1B $58 $0A  
After this command the KIT240 waits for a second before the next command is processed.  
18  
EAKIT160-7  
ESC  
Y
R n1  
Read input port  
Reads in the input port (n1=1..8 = IN1..IN8). When n1=0, all the inputs are read in as 8-bit binary values  
(MSB:IN8...In1:LSB); see application on page 5. Important: The optocouplers invert the input logic (input open: 1).  
The command "ESC Y I 1" puts this right (input open: 0).  
Example: $1B  
$59 $52 $03  
Reads in port IN3. The result is sent via RS232.  
ESC  
Y
W n1 n2  
Write output port  
Changes the output port (n1=1..8 = OUT1..OUT8) to the valuen2 (0=low level; 1=high level; 2=invert port). When  
n1=0, all the outputs are output as a binary value n2 (MSB:OUT8...OUT1:LSB); see application on page 5.  
Example: $1B  
$59 $57 $02 $01  
Switches the output port OUT2 to high level.  
ESC  
Y
A n1  
Automatic port query on/off  
Each change at the input port (8-bit binary value IN8..IN1) can call a port macro (0..255). This command activates  
(n1=1) or deactivates (n1=0) the automatic port query. After power-on, the current port status is read and the  
associated port macro executed immediately.  
Example: $1B  
$59 $41 $01  
Activates the automatic port query and executes the associated port macro.  
ESC  
Y
I
n1  
Invert input port  
This command allows the logic of the input port to be inverted (n1=0 for normal or n1=1 for inverse). This is useful  
with the optocoupler inputs, for example.  
Example: $1B  
$59 $49 $01  
Inverts the input port logic.  
ESC  
Z
L/Z/R  
x1 y1 text... NUL  
Horizontal string  
Writes the string text... left justified (L), centered (Z) or right justified (R) at position  
x1 taking into account the set text mode (ESC L). Multi-line text can also be output,  
with the lines separated by the character '|' (=$7C). The string must be concluded with  
NUL= $00. Position y1 is the upper edge of the 1st line.  
Example 1: Writes the text "Left|Ok" left justified at 0,0.  
$1B $5A $4C $00 $00 $4C $65 $66 $74 $7C $4F $6B $00  
Example 2: Writes the text "Center|Ok" centered at 25,0.  
$1B $5A $5A $19 $00 $43 $65 $6E $74 $65 $72 $7C $4F  
$6B $00  
Example 3: Writes the text "Right|Ok" right justified at 49,0.  
$1B $5A $52 $31 $00 $52 $69 $67 $68 $74 $7C $4F $6B  
$00  
ESC  
Z
O/M/U x1 y1 text... NUL  
Vertical string  
Writes the string text... rotated by 90° degrees top justified (O), vertically centered (M) or bottom justified (U) at  
position y1 taking into account the text mode (ESC L). Multi-line text can also be output, with the lines separated  
by the character '|' (=$7C). The string must be concluded with NUL= $00. Position x1  
is the right edge of the 1st line.  
Example 1: Writes the text "Top|Ok" top justified at 49,0.  
$1B $5A $4F $31 $00 $54 $6F $70 $7C $4F $6B $00  
Example 2: Writes the text "Mid|Ok" vertically centered at 49,15.  
$1B $5A $4D $31 $0F $4D $69 $64 $7C $4F $6B $00  
Example 3: Writes the text "Bot|Ok" bottom justified at  
$1B $5A $55 $31 $1F $42 $6F $74 $7C $4F $6B $00  
49,31.  
19  
EAKIT160-7  
DIMENSIONSWITHOUTTOUCHPANEL  
All dimensions in mm  
DIMENSIONSWITHTOUCHPANEL  
All dimensions in mm  
EA0FP160-7FRONTPANEL  
PANELCUTOUT  
All dimensions in mm  
ZEPPELINSTRASSE 19  
· D-82205 GILCHING  
PHONE+49-8105-778090·FAX+49-8105-778099·http://www.lcd-module.de  
Mouser Electronics  
Authorized Distributor  
Click to View Pricing, Inventory, Delivery & Lifecycle Information:  
ELECTRONIC ASSEMBLY:  
EA KIT160-7LWTK  

相关型号:

EAKIT160-7C

CONTROL PANEL WITH FONTS, GRAPHICS COMMANDS AND MACROS
ETC

EAKIT160-7CTP

CONTROL PANEL WITH FONTS, GRAPHICS COMMANDS AND MACROS
ETC

EAKIT160-7LW

CONTROL PANEL WITH FONTS, GRAPHICS COMMANDS AND MACROS
ETC

EAKIT160-7LWTP

CONTROL PANEL WITH FONTS, GRAPHICS COMMANDS AND MACROS
ETC

EAKIT240-7

CONTROL PANEL WITH FONTS, GRAPHICS COMMANDS AND MACROS
ETC

EAKIT240-7C

CONTROL PANEL WITH FONTS, GRAPHICS COMMANDS AND MACROS
ETC

EAKIT240-7CTP

CONTROL PANEL WITH FONTS, GRAPHICS COMMANDS AND MACROS
ETC

EAKIT240-7LED

CONTROL PANEL WITH FONTS, GRAPHICS COMMANDS AND MACROS
ETC

EAKIT240-7LEDTP

CONTROL PANEL WITH FONTS, GRAPHICS COMMANDS AND MACROS
ETC

EAKIT240-7LW

CONTROL PANEL WITH FONTS, GRAPHICS COMMANDS AND MACROS
ETC

EAKIT240-7LWTP

CONTROL PANEL WITH FONTS, GRAPHICS COMMANDS AND MACROS
ETC

EAKIT320-8

5,7 LCD CONTROL PANEL WITH TOUCH PANEL
ETC