background image

17

EA KIT160-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 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..32) or 

R

 (=reset all touch fields) to all 32 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

Summary of Contents for EA KIT160-6

Page 1: ...S 232 OR OPTIONALLY RS 422WITH BAUD RATES OF 1200 115200 BD POSITIONINGACCURATE TOTHE PIXELWITHALLFUNCTIONS PROGRAMMINGBYMEANSOFHIGH LEVELLANGUAGE TYPECOMMANDS STRAIGHTLINE POINT AREA AND OR EXOR BARGRAPH UPTO256MACROSPROGRAMMABLE COMBINATIONS OFTEXTANDGRAPHICS PULL DOWNMENUS ACCESSORIES INTEGRATEDTOUCHPANELWITH8x4FIELDS ANTI GLARE SCRATCH RESISTANT FLOPPYDISKFORMACROPROGRAMMING PCDOS EADISK240 CA...

Page 2: ...e labeling of the keys is flexible and can 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 control panel is programmed by means of commands such as Draw a rectangle from 0 0 to 64 15 Noadditionalsoftwareordriversarerequired Stringscanbeplacedwithpixelaccurac...

Page 3: ...ach keystroke the associated key number 1 32 istransmitted Thereleaseof thekeyisnottransmitted Ifthereleaseofthe key is to be transmitted as well this can be done by defining touch macro no 0 The automatic keyboard scan can be deactivated by means of the ESC T A 0 command The key number can be determined as follows Key number output 1 8 input output a number between 1 and 4 input between 1 and 8 N...

Page 4: ...hat the polarity is correct Even very brief polarity reversal can damage the display immediately and irreparably RS 232 RS 422CONNECTION The operating unit is shipped with an RS 232 interface as standard The pin assignment of connector J3isthenasshowninthetableontheleft J3hasagridof2 54mm Iftheoperatingunitisorderedtogether with the EA OPT RS4224 option special RS 422 drivers are fitted The pin as...

Page 5: ...C Y W command Themaximumcurrentperline is 6mA Output 8 PIN 17 is used to switch the LED backlighting ESCYLn1 Ifthisoutputisrequired the LED backlighting can be separated from the output via the solder strap LB 8 and switched on permanently 8 inputs The inputs can be queried and evaluated ESC Y R directly via the serial interface Each change of logic level 0V or 5V at the inputs can start an intern...

Page 6: ...he EEPROM for example connect RTS line J5 pin 6 to GND STORING 256 IMAGES IN THE EEPROM Toreducethetransmissiontimesoftheserialinterfaceortosavestoragespaceintheprocessorsystem up to 256 images can be stored in the internal EEPROM They can be called using the ESC U E command via the serial interface or from within a touch port normal macro All the images can be used in the Windows BMP format They ...

Page 7: ...racy Text and graphics can be combined as required Several different font sizes can also be displayed together 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 DISK...

Page 8: ... 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 Draws a rectangle with rounded corners from x1 y1 to x2 y2 Delete area L x1 y1 x2 y2 Deletes an area from x1 y1 to x2 y2 all pixels off Invert area I x1 y1 x2 y2 Inverts an area from x1 y1 to x2 y2 inverts all...

Page 9: ...o the clipboard If a menu is already defined it is automatically canceled and removed Define menu with vertical items rotated by 90 V Invert menu box I Inverts the entire menu box Useful for negative display Next item N Inverts the next item or remains at the end Previous item P Inverts the previous item or remains at the beginning Menu end send S Removes the menu from the display and replaces it ...

Page 10: ...ch spaces or commas must be used between them The commands require no final bytesuch as a carriage return except for the string 00 A Z L R O U All commands are transferred as ASCII characters 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 Numerical values are tr...

Page 11: ...d 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...

Page 12: ...8 08 08 08 08 08 08 08 08 08 49 2A 1C 08 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 se...

Page 13: ...60 with the address add 0 254 the address 255 FF is a master address for all EA KIT160 units Example 1B 4B 44 01 All commands for the EA 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 pat...

Page 14: ...ng the items The individual items are separated by the character 7C The string must be terminated withNUL 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 verti...

Page 15: ...ea 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 o...

Page 16: ...k 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 inverse replace Example 1B 52 4D 05 01 2D 1A 07 Fills the area with the pattern 7 45 cross from 5 1...

Page 17: ...ord TEST ESC T P R Preset reset touch fields Assigns P ascending return code 1 32 or R reset all touch fields to all 32 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 pa...

Page 18: ...aight line ESC W Continue straight line ESC R R rectangle ESC R N 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...

Page 19: ...o cut backlight from output 8 by changing the solder strip LB8 Backlight will be turned on and cannot controled by software anymore 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 m...

Page 20: ...emblingthemodule thepowersupplymustbeswitchedoff Alsoallinputsmustnotcarry anycurrent Display touch screen and cover glass are scratch sensitive plastic materials and should not be touchedwithhardobjects Surfacesshouldbecleanedwithsoftfabricwithoutusingofchemicalsolvents The module is designed for indoor use only For operating in outside enviroment adequate precautions must be undertaken Maximum o...

Page 21: ...S 6760P LTS 6980HR RG12864A GHC V RG12864A GHY V RG12864A TIG V RG12864A TIY V RG12864A YHY X RG12864B FHW V RG12864B GHW V RG12864C YHW V RG12864K BIW VBG RG160128A TIW V RG240128B YHY M RG320240A1 BIW V RG320240B BIW V RG320240B FHW V DEM 097032A SGH PY DEM 122032A SYH LY DEM 122032C SBH PW N 12 DEM 128064A SBH PW N DEM 128064B SBH PW N DEM 128064F FGH P RGB DEM 128064G FGH PW DEM 128064I FGH PW...

Reviews: