background image

9

EA KIT129-6

Bar graph commands

Define bar graph

ESC

B

R

L

O

U

no

x1

y1

x2

y2

sv

ev

pat

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)

Draw bar graph

no

value

Sets the bar graph with the number no (1..2) to the new user
'value'

Keyboard/touch panel commands

Define touch key with
horizontal label

ESC

T

H

f1

f2

Ret

code

For

Text

...

NUL

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).
´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°)

V

(P)reset touch keys

P

Activates all touch keys in ascending order (fields with code 1..15)

R

Deactivates all touch keys (all fields with code 0)

Touch key response

I

n1

n1=0: Touch key is not inverted when touched
n1=1: Touch key is automatically inverted when touched

S

n1

n1=0: No tone sounds when (touch) key is touched
n1=1: Tone sounds briefly when (touch) key is touched

Invert touch key

M

n1

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

Key query on/off

A

n1

The keyboard query is n1=0:deactivated;
n1=1:activated, keystrokes are sent automatically;
n1=2:activated, keystrokes are not sent (query with ESC T W)

Control/definition commands

Automatic flashing
area
(cursor function)

ESC

Q

D

x1

y1

x2

y2

Defines a flashing area from x1,y1 to x2,y2; activates the flashing function

Z

n1

Sets the flashing time n1= 1..15 in 1/10s; 0=deactivates the flashing function

C

n1

Automatically flashing area as cursor for terminal operation
n1=0: deactivates flashing function; n1=1: activates flashing function (inverse,
6/10s)

Select/deselect

ESC

K

S

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 RS-232/RS-422 interface;
data ... = num bytes (e.g. control of an external serial printer)

Reset display

ESC

D

R

Resets and re-initializes the display controller

Port commands

Define as In- or Ouput

ESC

Y

M

n1

n1=0: I/O1..8 set to input (=default after power-on / reset)
n1=1..8: n1 I/O-lines will be set to output (beginning at I/O8 downwards)

Write output port

W

n1

n2

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

Read input port

R

n1

n1=0: Reads in all 8 input ports as 8-bit binary value
n1=1..8: Reads in input port <n1> (1=high level=5V, 0=low level=0V)

Port scan on/off

A

n1

Deactivates (n1=0) or activates (n1=1) automatic scanning of the input port

Input port inverse

I

n1

Evaluates the input port (n1=0: normal; n1=1: inverted)

Switch backlight on/off

L

n1

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

Macro commands

Execute macro

ESC

M

N

n1

Calls the (normal) macro with the number n1 (max. 7 levels)

Execute touch macro

T

n1

Calls the touch macro with the number n1 (max. 7 levels)

Execute port macro

P

n1

Calls the port macro with the number n1 (max. 7 levels)

Macros autom. cyclical

A

n1

n2

n3

Processes macros n1..n2 automatically cyclically; n3=pause in 1/10s

Macros autom.
ping-pong

J

n1

n2

n3

Processes macros n1..n2..n1 automatically (ping-pong); n3=pause in 1/10s

Display commands (which apply to the whole display)

Delete display

ESC

D

L

Deletes the contents of the display (all pixels off)

Invert display

I

Inverts the contents of the display (inverts all pixels)

Fill display

S

Fills the contents of the display (all pixels on)

Switch display off

A

Makes the contents of the display invisible, but they remain there and further
commands are possible

Switch display on

E

Makes the contents of the display visible again

Содержание 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...

Отзывы: