background image

 16

EA KIT129-6

ESC

T

H/V f1

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

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

Содержание EA KIT129-6

Страница 1: ...A AND OR EXOR BARGRAPH UPTO256MACROSPROGRAMMABLE COMBINATIONOFTEXTANDGRAPHICSALLTHETIME BUILTINSOFTWARESUPPORTSTOUCHPANEL OPERATINGTEMPERATURERANGE 20 70 C STORAGE 30 70 C ACCESSORIES WITHTOUCHPANEL5x3AREAS ANTI GLAREANDSCRATCH PROOF FLOPPYDISKFORMACROPROGRAMMING PCDOS WIN EADISK240 CABLE 1 5m FORCONNECTIONTO9 PINSUB D RS 232FEMALE EAKV24 9B ORDERINGINFORMATION 128x64WITHTOUCHPANEL5x3 LED B L BLUE...

Страница 2: ... 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 ...

Страница 3: ...rs convenient commands supporting this touch panel It is possible for example to group a number of touch fields to form a single large key and then draw and label the key Youcanalsoassignarecordcode 1 255 tothekeyyouhavedefined Ifareturncodeof0isassigned the key is disabled and has no effect when it is pressed When the touch keys are touched they can be automatically inverted and a tone can sound ...

Страница 4: ...240 zip BAUDRATES The baud rate can be set by means of the 3 DIP switches on the left 9 600 baud issetatthefactory DIP 3ON Pleasenotethattheinternaldatabufferonlyholds 16bytes ItisthereforeimperativethattheRTShandshakelinebequeried alevel of 10Vmeansdatacanbeaccepted alevelof 10Vmeansthedisplayisbusy The data format is fixed at 8 data bits 1 stop bit and no parity WRITEPROTECTIONFORPROGRAMMEDMACRO...

Страница 5: ...dforslowoperations inotherwords morethan 3changespersecondcannotbeeasilyexecuted Ifaninputisleftopen itislogical high internalypulled upvia100kOhm 8outputs Writing the command ESC Y M anz will redefine one or more line as an output Upper lines will be outputsandlowerlinesstayasinputs Command ESCYM2 forexample defines IO8 and IO7 as output lines and IO1 6 will stay as inputs Each re defined line ca...

Страница 6: ...ble software such as Windows Paint or Photoshop CREATINGINDIVIDUALMACROS To create your own macros you need the following the EA DISK240 floppy disk which contains the 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...

Страница 7: ...rs A font editor on the EA DISKFONT1520 floppy disk allows you to create and program in any font you like with a size of up to 16x16 pixels Font 5 8x16 Font 3 6x8 Nr Char Height Lines x Chars Size in pixels ASCII area Note 1 2 6 mm 13 x 40 4 x 6 32 95 Micro 2 2 6 mm 13 x 32 5 x 6 32 158 Mini 3 3 6 mm 10 x 26 6 x 8 32 158 Normal 4 3 6 mm 10 x 20 8 x 8 32 158 Bold 5 7 2 mm 5 x 20 8 x 16 32 158 Big T...

Страница 8: ...te 3 inverse 4 replace 5 inverse replace Set point ESC P x1 y1 Sets a pixel at position x1 y1 Draw straight line ESC G x1 y1 x2 y2 Draws a straight line from x1 y1 to x2 y2 Continue straight line ESC W x1 y1 Draws a straight line from the last end point to x1 y1 Rectangle commands Draw rectangle ESC R R x1 y1 x2 y2 Draws a rectangle frame from x1 y1 to x2 y2 Draw rounded rectangle N x1 y1 x2 y2 Dr...

Страница 9: ... add Activates the kit with the address n1 n1 255 all D add Deactivates the kit with the address n1 n1 255 all A add Assigns a new address add in the power on macro for example Wait pause ESC X n1 Wait n1 tenths of a second before the next command is executed Buzzer on off ESC J n1 n1 0 tone off n1 1 tone on n1 2 255 for n1 1 10s long on Send bytes ESC S num data Sends num 1 255 0 256 bytes at the...

Страница 10: ... ev value pat ret frm data Numerical values are transferred with 1 byte Example n1 15 dec 0F PROGRAMMINGEXAMPLE Thefollowing tableshowsanexampleinwhichthestring Test isoutputleftjustifiedatcoordinate7 3 Example Codes to be output In ASCII ESC Z L BEL ETX T e s t NUL In hex 1B 5A 4C 07 03 54 65 73 74 00 In decimal 27 90 76 7 3 84 101 115 116 0 For Turbo Pascal write aux chr 27 Z L chr 7 chr 3 Test ...

Страница 11: ...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 2 is set to the new ...

Страница 12: ... 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 ES...

Страница 13: ...D 4E 0F The normal macro with the number 15 is executed ESC M T n1 Call touch macro Calls the touch macro with the number n1 0 255 Example 1B 4D 54 03 The normal macro with the number 3 is executed ESC M P n1 Call port macro Calls the port macro with the number n1 0 255 Example 1B 4D 50 01 The normal macro with the number 1 is executed ESC M A J n1 n2 n3 Execute macros automatically Calls the norm...

Страница 14: ...rsor 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 R R x1 y1 x2 y2 Draw rectangle Draws a rectangle from the upper left corner x1 y1 to the lower rig...

Страница 15: ...lower right corner x2 y2 with the pattern pat taking into account the set graphics mode ESC V set delete invert replace inverse replace 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 delet...

Страница 16: ... 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 ...

Страница 17: ... 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 whit...

Страница 18: ...cation on page 5 Example 1B 59 57 02 01 Switches the output port I O2 to high level ESC Y A n1 Automatic port query on off Each change at the input port 8 bit binary value I O8 I O1 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...

Страница 19: ...xample 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 b...

Страница 20: ...without using of chemical solvents Themoduleisdesignedforindooruseonly Foroperatinginoutside enviromentadequateprecautions mustbeundertaken Maximumoperatingtemperaturerangefrom 20 70 Cshouldbenotexceeded Please note that ambient temperature range is different because of self heating of module In humid atmosphereorincondensingsituationsthemodulefunctionsmaydropout Directsunexposuretothe display sho...

Отзывы: