Part Number Hot Search : 
F6222 21000 X9312ZPM 38036M7 E1307 WSH130NL C30724P S3BR3
Product Description
Full Text Search
 

To Download EAOPT-OPTO10 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  zeppelinstrasse 19 d- 82 205 gilching phone +49-8105-778090 fax +49-8105-778099 http://www.lcd-module.de ea kit120-5 8.2000 touch panel optional ea kit120-5ledtp dimensions 77x54mm technical data * lcd graphics display with diverse graphics functions and fonts * 120x32 pixels with led backlight gn/gb * font zoom from 3mm via 8mm up to 20mm * snap-in housing for extremel y easy inst allation * led backlighting switchable via software command * supply voltage 5v / typ. 23ma (led on: 180ma) or optionally 9..36v * rs-232 with baud rates from 1200 to 115200 * positioning accurate to the pixel with all functions * programming by means of high-level language-type commands: * straight line, point, area, and/or/exor, bar graph... * up to 256 bitmap graphics/icons storable in the system * up to 256 macros programmable ( 32kb incl. fonts and graphics) * combina tions of text and graphics * 5 digital inputs and 5 outputs * opera ting temperature -20..+70c, on-board temperature compensation accessories * integra ted touch p anel with 5x2 fields (anti-glare, scratch-resistant) * floppy disk for macro programming (pc dos): ea disk240 order designation 120x32 dots with led illumination gb/gn ea kit120-5led 120x32 dots with touch panel, led illumination, gb/gn ea kit120-5ledtp supply voltage 9..36v instead of 5v ea opt-9/36v optocoupler for the 5 inputs and outputs ea opt-opto10 cable (1.5m) for connection to 9-pin sub-d and the io ports ea kv24-9b10 control panel with fonts, graphics commands and macros
2 ea kit120-5 general the ea kit120 is a fully assembled control and operating unit with a variety of integrated functions. the display has very compact dimensions and offers excellent supertwist contrast, which means the unit can be put into operation immediately. it is controlled via the standard rs-232 interface. in addition to complete graphics routines for display output, the graphics unit also contains a wide variety of fonts. graphics commands similar to high-level language are used for programming. there is no longer any need for the time-consuming programming of character sets and graphics routines. the ease of use offered by macros and input via touch panel make it a real power display. to install it, you simply insert it into the opening in the front panel. hardware the graphics unit is designed to work with an operating voltage of +5v. a supply voltage of 9..36v is also possible. serial asynchronous data transfer is carried out in rs-232 format. the transmission format is set permanently to 8 data bits, 1 stop bit, and no parity. rates between 1200 baud and 115,200 baud can be set using a pc. rts and cts handshake lines are available. data format: touch panel the ea kit120-5ledtp version is equipped with an integrated touch panel. you can make entries by touching the display. the 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 operating unit is programmed by means of commands, such as draw a rectangle from (0,0) to (64,15) . no additional software or drivers are required. strings can be placed with pixel accuracy. text and graphics can be combined at any time. up to 16 different character sets can be used. each one can be zoomed from 2 to 4 times. when the 2-times zoom is used with the largest character set (16x8), the words and numbers displayed will fill the screen (= 16x32). accessories floppy disk for creating macros and setting the baud rate a floppy disk (ea disk240 *) ) is required for macro programming. this converts the commands entered in a text file into a code that can be read by the graphics unit, and programs them into the eeprom. if you require a different baud rate to the factory setting of 9600 baud, you need the floppy disk again. cable for pc to enable simple connection to pcs (macro programming), we provide a 1.5m cable and a 9-pin sub- d female connector. simply insert it into com 1 or com 2 and get started. there is also a 10-pin socket connector for the 5 inputs and outputs (with c-mos level) for this cable. *) also available on the internet at http://www.lcd-module.de/deu/disk/disk240.zip
3 ea kit120-5 application example external keyboard (ea kit120-5led only) a keyboard (anything from individual keys to a 5x2 matrix keyboard) can be connected at the plug-in connection j4. the connected keys are debounced by means of software. please note that it is only possible to connect an external keyboard to the ea kit120-5led version without an integrated touch panel and without additional options (opt-opto10= or opt-9/36v). each key is switched between an output and an input. the inputs have a 50k ? pullup. up to 5 keys can be connected at each output. transmitting the keystrokes at each keystroke, the associated key number (1..10) is transmitted. 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 keyboard scan can be deactivated by means of the ?esc t a 0? command. the key number can be determined as follows: (output -1) * 5 + input (output: the number 1 or 2, input: between 1 and 5). note: if the handshake line (e.g. cts) does not permit transmission, keystrokes can be lost. touch panel (ea kit120-5ledtp only) the ea kit120-5ledtp version is equipped with an integrated touch panel with 10 fields. the graphics unit offers 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. you can also assign a return code (1..255) to the key you have defined. if a return code of 0 is assigned, the key is disabled and has no effect when pressed. when the touch keys are touched, they can be automatically inverted and a tone can sound, indicating they have been touched. at the same time, the internal touch macro with the number of the return code is started or, if no touch macro is defined, the return code of the key is transmitted via the serial interface. example: definition of a key from field 4 to 10 with the return code 65=a and the text ?stop?. note: before individual keys are defined, all fields should be disabled by means of ?esc t r?. example codes to be output note for compiler #th 13, 25, a, 2, "stop" the end code 0 is not specified here as asc ii esc t h . . a . s t o p . the dots . stand for ascii characters that are not to be displayed in hex $1b $54 $48 $0d $19 $41 $02 $53 $54 $4f $50 $00 in decimal 27 84 72 13 25 65 2 83 84 79 80 0 command id initiation of touch command horizontal labeling upper left touch field lower right touch field return code drawing of key with frame end of text id keypad connector j4 pin symbol function 1 out 2 output line 2 2 out 1 output line 1 3 in 1 input column 1 4 in 2 input column 2 5 in 3 input column 3 6 in 4 input column 4 7 in 5 input column 5
4 ea kit120-5 rs-232 / port box header j3 pin symbol in/out function ea kv24-9b10 1 vdd - + 5v powersupply pin pin 2 dcd - bridge to dtr 1 9-pin sub-d 3 dsr - bridge to dtr 6 4 txd out transmit data 2 5 cts in clear to send 7 6 rxd in receive data 3 7 rts out request to send 8 8 dtr - seepin2,pin3 4 9 - - nc 9 10 gnd - 0v ground 5 11 in1 in cmos input 1 10-pin idc socket 1 12 out1 out cmos output 1 2 13 in2 in cmos input 2 3 14 out2 out cmos output 2 4 15 in3 in cmos input 3 5 16 out3 out cmos output 3 6 17 in4 in cmos input 4 7 18 out4 out cmos output 4 8 19 in5 in cmos input 5 9 20 out5 out cmos output 5 10 5v rs-232 solder pads j5 pin symbol in/out function 1 wp in eeprom write protection 2 vdd +5v power supply 3 gnd 0v ground 4 txd5 out transmit data cmos 5 rxd5 in receive data cmos 6 rts5 out request to send cmos 7 cts5 in clear to send cmos supply voltage / rs-232 connection in the standard model, the supply voltage of +5v is fed in via screw- type terminal j1. alternatively, the 5v supply can be connected via j3 (pin 1 and pin 10). note: it is imperative that the polarity is correct. the 20-pin connector j3 contains the connection for the rs-232 interface (12v) and the 5 inputs and outputs (5v c-mos level). the baud rate is set in the factory to 9600. you can use the program kitbaud.exe (available on ea disk240 *) ) to configure it. to do this, you have to connect the kit to com1 or com2 and pass the new baud rate as a parameter (e.g. kitbaud 19200). the following baud rates can be set: 1200, 2400, 4800, 9600, 19200, 38400, 56700 and 115200. please note that the internal data buffer is only 32 bytes. the rts handshake line must therefore be queried (+10v level: data can be accepted; -10v level: display is busy). the data format is set permanently to 8 data bits, 1 stop bit, no parity. if the rs-232 data is fed in to j5 at the 5v level, solder straps lb2 and lb3 must be opened. write protection for macro programming closing solder strap lb1 (wp-vdd connection) prevents the programmed macros, images and fonts from being overwritten inadvertently. the baud rate can then no longer be set either. inputs and outputs the kit120 is supplied with 5 digital inputs and 5 outputs (5v cmos level, non-isolated). the connection is made at the 20-pin connector j3. 5 outputs: each line can be controlled by means of the ?esc y w? command. the maximum current per line is 6ma. 5 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 internal port macro. when the 5 lines are combined, 32 port macros can be addressed. each of these port macros can change the contents of the screen or switch an output. this allows a wide range of control tasks to be carried out. to create the port macros, you need a pc and the floppy disk ea disk240. you will find a more detailed description of this on page 6. automatic poll querying can be disabled by means of the ?esc y a 0? command. note: the logic circuitry is designed for slow operations; in other words, more than 3 changes per second cannot be easily executed. if an input is open, this is evaluated as high (approx. 50 kohm pullup). *) also available on the internet at http://www.lcd-module.de/deu/disk/disk240.zip
5 ea kit120-5 attention handling precautions! inputs and outputs with optocouplers (version with ea opt-opto10) the ea kit120 can be supplied with optocoupler inputs and outputs (ea opt-opto10). all inputs and outputs are isolated from the rest of the electronic components as well as each other. the connection is made via 10 different screw-type terminals. 5 optocoupler outputs the collector and emitter of a transistor are each implemented as outputs on the screw- on terminals. each output can switch a maximum of 10ma. note the polarity and load-dependent voltage drop of the transistor of 0.6..5v. 5 optocoupler inputs voltages of 4..36v can be applied directly at all 5 inputs. voltages of over 4v are identified as high (h) level; voltages of under 2v are identified as low (l) level. voltages between 2 and 4v are undefined. note the polarity of the inputs (leds). note: the optocouplers invert the input logic (all inputs open: port macro n31). it is advisable here (in the power-on macro, for example) to use the ?esc y i 1? command to evaluate the inputs inversely (all inputs open: port macro n0). ea opt-9/36v: supply voltage of 9..36v in the case of the version for 9 to 36v supply voltage (ea opt-9/36v), the power is supplied via j2. default settings after power-on or a manual reset, the registers shown here are set to a specific value. please note that all the settings can be overwritten by creating a power-on macro (normal macro no. 0). default settings register comman after power on / reset text mode esc l set, black terminal font esc ft font 3, no zoom cursor esc qc on flashing time esc qz 0,6 secs. user-defined characters esc e undefined graphics mode esc v set graphics font esc f font 3, no zoom last xy esc w (0;0) bar graph 1..4 esc b undefined select/deselect esc k selected led backlight esc yl on outputs out1..5 esc y high level
6 ea kit120-5 ;makro demo kit120-5 ; define display type com2: 115200 ; kit connected to com2, ; transmission at 115.200 baud ;---------------------------------------------------------- ;define constants aus = 0 ein = 1 font4x6 = 1 font5x6 = 2 font6x8 = 3 font8x8 = 4 font8x16= 5 ;---------------------------------------------------------- ;include fonts 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; power-on/reset macro #qc ein ; cursor visible #ft font8x16 ; set terminal font #ul 0,20, ; electronic assembly logo macro programming single or multiple command sequences can be grouped together in macros and stored in the eeprom. you can then start them by using the run macro commands. there are 4 different types of macro: touch macros (1..255)(0) these are started when you touch a touch field (in versions with a touch panel - tp) or when you operate an external key/matrix keyboard. touch macro no. 0 is different: it is started when you release any key. port macros (0..31)(32..255) these are started when there is a change in the logic level at inputs in 1..5. the remaining port macros (32..255) are available and can be started by means of the ?esc m p no? command. normal macros (1..255) these are started by means of a command via the serial interface or from another macro. a series of macros occurring one after the other can be called cyclically (movie, hourglass, multi-page help text). power-on macro = normal macro (0) normal macro no. 0 is different: it is executed automatically after power-on. it allows you to switch off the cursor and define an opening screen, for example. storing 256 images in the eeprom to reduce the transmission times of the serial interface or to save storage space in the processor system, 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 monochrome images in the windows bmp format can be used. they can be created and edited using widely available software such as windows paint. creating individual macros to create your own macros, you need the following: - the ea disk240 *) floppy disk, which contains a compiler, examples and fonts - a pc with a com1 or com2 serial interface and approximately 500kb of 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). you specify which character sets are to be integrated and which command sequences are to be in which macros. once the macros are defined, you start the program c:>kitcomp demo.kmc. this creates an eeprom file called demo.eep, which is then automatically stored in the display eeprom with the baud rate entered. this only takes a few seconds, and you can then use your user- defined macros immediately. you will find a detailed description (in german) of how to program macros, together with a large number of examples, in the files doku.doc (for word) and doku.txt (dos) on the ea disk240 *) floppy disk. *) also available on the internet at http://www.lcd-module.de/deu/disk/disk240.zip
7 ea kit120-5 font 1: 4x6 integrated fonts 5 character sets are integrated in the ea kit120-5 as standard. each one can be zoomed from 1 to 4 times. independently of this, the width can also be increased two to four times. in addition, you can define up to 16 characters of your own, depending on the font being used. these characters will remain 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. 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 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 line s x cols size in dots ascii area se lf de f. ascii- codes note 1 3,3 mm 5x30 4x6 32 - 95 1..16 micro 2 3,3 mm 5x24 5x6 32 - 158 1..12 mini 3 4,5 mm 4x20 6x8 32 - 158 1..10 standard 4 4,5 mm 4x15 8x8 32 - 158 1..8 bold 5 7,8 mm 2x15 8x16 32 - 158 1..4 big overlaying ( or ) with 50% gray pattern of the ?outline font? at pos. 0,0 results in a ?font with pattern filling? when the ?outline font? is overlaid again (exor) at pos. 2,2 , this results in an ?outline font with filling? ?outline font? resulting from overlaying (exor) at pos. 1,1 original font 8x16 with zoom 2 at position 0,0 with black pattern tip: font effects with large fonts, you can use the ?esc l? command, text mode (link, pattern), to produce interesting effects through overlaying (writing and offsetting a word several times).
8 ea kit120-5 command table for the ea kit120-5 command codes note commands for terminal operation form feed ff (dec:12) ^l deletes the screen and sets the cursor at position (1,1) carriage return cr(13) ^m positions the cursor on the left at the beginning of the line line feed lf (dec:10) ^j positions the cursor in the line below the current one. if the cursor is in the last line, positions it in the 1st line cursor on/off esc q c n1 n1=0: cursor is not visible; n1=1: cursor flashes (inverse 6/10s) position cursor esc o n1 n2 n1=column; n2=line; upper left origin is (1,1) set terminal font esc f t n1 n1=1: sets font no. n1 (1..16) for terminal operation text output commands text mode esc l n1 pat mode n1: 1=set; 2=delete; 3=inverse 4=replace; 5=inverse replace; pat: pattern no. 0..7 set font esc f n1 n2 n3 sets font with the number n1 (1..16); n2=x- n3=y-zoom factor (1x..4x) output string horizontally esc z l x1 y1 text ... nul 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 1; y1 is always the upper edge of the string z r output string rotated by 90 (vertically) esc z o x1 y1 text ... nul 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 m u define character esc e n1 data ... n1=character no.; data=number of bytes depending on current font drawing commands graphics mode esc v n1 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 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 draws a rectangle with rounded corners from x1,y1 to x2,y2 delete area lx1 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 pixels) fill area s x1 y1 x2 y2 fills an area from x1,y1 to x2,y2 (all pixels on) fill area with pattern m x1 y1 x2 y2 pat fills an area from x1,y1 to x2,y2 with the pattern pat (0..7) draw box o x1 y1 x2 y2 pat draws a rectangle with the fill pattern pat (0..7); (always replace) draw rounded box j x1 y1 x2 y2 pat draws a rectangle with the fill pattern mst (0..7); (always replace) bitmap image commands image from eeprom esc u e x1 y1 no loads an internal image with the number (0..255) from the eeprom to x1,y1 load image l x1 y1 data ... loads an image to x1,y1; see image structure for the data of the image send hard copy h x1 y1 x2 y2 requests an image. sends the width and height in pixels followed by the actual image data via rs232 all the commands at a glance when you switch the unit on, the cursor flashes in the first line, indicating that the display is ready for operation. all the incoming characters are displayed in ascii format (exception: cr, lf, ff, esc). line breaks are automatic or can be executed by means of the lf character. when the display is full, the cursor returns to position 1,1. the ff character (page feed) deletes the display. all additional commands (for positioning the cursor or setting a font, or graphics commands, for example) are introduced by the escape character (dec 27/ hex 1b).
9 ea kit120-5 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..4). 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..4) to the new user 'value' keyboard/touch panel commands define touch key with horizontal label esc t h f1 f2 ret code frm tex t ... 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). frm: 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..10) 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 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 tenths sec. long on send bytes esc s num data ... sends num (1..255; 0=256) bytes at the rs-232 interface; data ... = num bytes (e.g. control of an external serial printer) port commands write output port esc y w n1 n2 n1=0: sets all 5 output ports in accordance with n2 (=8-bit binary value) n1=1..5: resets (n2=0), sets (n2=1) or inverts (n2=2) output port n1 read input port r n1 n1=0: reads in all 5 input ports as 8-bit binary value n1=1..5: reads in input port (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) led backlight on/off l n1 switches led backlight n1=0: off; n1=1: on; n1=2: toggle; n1=2..255: for n1 tenths sec. long on and then off 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 reset display r resets and re-initializes the display controller macro commands execute macro esc m n n1 calls the (normal) macro with the number n1 (max. 7 levels) execute touch macro t n1 callsthetouchmacrowiththenumbern1(max.7levels) 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
10 ea kit120-5 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', chr(0)); for c fprintf(stdaux, "\x1bzl%c%c%s\x00", 7, 3, "test"); for q basic open "com1:9600,n,8,1,bin" for random as #1 print #1,chr$(27)+"zl"+chr$(7)+chr$(3)+"test"+chr$(0) parameters the graphics unit can be programmed by means of various integrated commands. each command begins with esc followed by one or two command letters and then parameters. all the commands and their parameters, such as coordinates and other transfer values, are always expected as bytes. no separating characters, such as spaces or commas, must be used between them. the commands require no final byte, such as a carriage return (apart from the string $00). a..z, l/r/o/u ......................................... all commands are transferred as ascii characters. example:? g= 71 (dec.) = $47 initiates the straight line command. x1, x2, y1, y2 ......................................... coordinate specifications are transferred with 1 byte. example: x1= 10 (dec.) = $0a esc ....................................................... 1 byte: 27(dec.) = $1b n1,n2,no,sv,ev,value,pat,data frm,data ................................................ numerical values are transferred with 1 byte. example: n1=15(dec.) = $0f programming example the following table shows an example in which the character chain ?test? is output at coordinate 7,3. pattern a pattern type (pat = 0..7) can be set as a parameter with some commands. in this way, rectangular areas, bar graphs and even text can be linked to different patterns and displayed. the following fill patterns are available: 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
11 ea kit120-5 descriptions of the various graphics functions on the following pages you will find detailed descriptions of all 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 has been executed. the bytes to be transferred are shown as hex values in the examples. esc b l/r/o/u no x1 y1 x2 y2 sv ev pat define bar graph up to 4 bar graphs ( no =1..4) 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 coordinate 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..4) 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 d l delete contents of display the entire contents of the display are deleted (white). example: $1b $44 $4c esc d i invert contents of display the entire contents of the display are inverted. example: $1b $44 $49 esc d s fill contents of display the entire contents of the display are filled (black). example: $1b $44 $53 esc d a switch display off the contents of the display are switched off (made invisible). outputs are also possible when the contents of the display are switched off. example: $1b $44 $41 after this command is executed, the contents of the display are no longer visible. esc d e switching the display on the contents of the display are switched on (made visible). example: $1b $44 $41 after this command is executed, the contents of the display become visible again.
12 ea kit120-5 user defined characters (code) 4x6 5x6 6x8 8x8 8x 16 16x 16 1 1 1 1 1 1 2 2 2 3 2 3 4 3 4 5 3 2 4 6 5 7 5 4 6 8 7 6 9 5 3 2 8 10 7 11 9 6 8 12 10 13 9 7 4 11 14 10 12 15 8 16 byte nr. 1 2 3 4 5 6 bi t 0 bi t 1 bi t 2 bi t 3 bi t 4 bi t 5 bi t 6 bi t 7 byte nr. 1 2 3 4 5 6 7 8 bi t 0 bi t 1 bi t 2 bi t 3 bi t 4 bi t 5 bi t 6 bi t 7 bi t 0 bi t 1 bi t 2 bi t 3 bi t 4 bi t 5 bi t 6 bi t 7 9 10 11 12 13 14 15 16 byte nr. esc e n1 data define character you can define up to 16 characters yourself (depending on the size of the font). these characters then have the ascii codes 1 to max. 16 and remain in an invisible screen ram 64 bytes in size until the supply voltage is switched off. in the case of a 4x6 font, up to 16 characters can be defined, whereas only 4 characters can be defined for an 8x16 font. note: 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 example, requires the same amount of ram as characters with the codes 1 to 4 of the 4x6 font (see the adjacent table). example 1: $1b $45 $01 $04 $02 $7f $02 $04 $00 defines an arrow pointing upward for ascii no. 1 using the 6x8 character set. example 2: $1b $45 $02 $00 $00 $00 $ff $00 $00 $00 $00 $04 $08 $10 $3f $10 $08 $04 $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 . in addition, an enlargement factor (1..4 times) is set for the width ( n2 ) and the height ( n3 ) separately. example: $1b $46 $02 $03 $04 the 6x8 font 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 with various enlargements. esc f t n1 set terminal font sets the font with the number n1 for the terminal. 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. esc g x1 y1 x2 y2 draw straight line a straight line is drawn from x1,y1 to x2,y2 , taking into account the set graphics mode ?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 kit then immediately sends the width and height of the image section followed by the image data. see the upload image command ( esc u l ) 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 the ea kit120-5ledtp touch panel.) example: $1b $4a $0a the tone sounds for 1 second after this command.
13 ea kit120-5 esc k a add assign address assigns an address to the kit ( adr =0..254). the best place for this command is in the power-on macro. example: $1b $4b $41 $01 the kit is assigned the address $01 with immediate effect. esc k s/dadd (de)select ea kit120 selects ( s ) or deselects ( d ) the kit with the address add (0..254); the address 255=$ff is a master address for all kits. example: $1b $4b $44 $01 all commands for the kit 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 set black pixels 5 = inverse replace: fills the background and sets white pixels esc m n n1 call macro calls the (normal) macro with the number n1 (0..255). example: $1b $4d $4e $0f ; macro number 15 is started after this command. esc m t n1 call touch macro calls the touch macro with the number n1 (0..255). example: $1b $4d $4e $0f ; touch macro number 15 is started after this command. esc m p n1 call port macro calls the port macro with the number n1 (0..255). example: $1b $4d $4e $0f ; port macro number 15 is started after this command. 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.
14 ea kit120-5 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 point sets a pixel at x1,y1 , taking into account the set graphics mode ?esc v? (set/delete/ invert). example: $50 $11 $0d sets the pixel at 17,13. esc q c n1 cursor on/off 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 on. 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 inverting area and starts the flashing function. 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 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. 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.
15 ea kit120-5 esc r l x1 y1 x2 y2 delete 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 invert area 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 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 to 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=45cross from 5,1 to 45,26. esc r o x1 y1 x2 y2 pat draw 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 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? (draw rounded rectangle). 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 sends the word ?test? via the rs-232c interface.
16 ea kit120-5 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 the 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..10) or r (=reset all touch fields) to all 10 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 query key 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 esc t w command. esc t w query touch key manually sends the return code of the currently pressed touch key at the rs232. example: $1b $54 $57
17 ea kit120-5 by te nr. 1 2 3 4 5 6 7 8 9 10 11 12 bit 0 bit 1 bit 2 bit 3 bit 4 bit 5 bit 6 bit 7 bit 0 bit 1 bit 2 bit 3 bit 4 bit 5 bit 6 bit 7 13 14 15 16 17 18 19 20 21 22 23 24 by te nr. 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 = ((height+7) / 8) * width bytes 1 byte stands for 8 horizontal pixels on the screen; 0=white, 1=black; lsb: top, msb: bottom; the image is stored from left to right. the bmp2blv.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). example: $1b $55 $4c $09 $04 $0c $0c $f0 $fc $fe $fe $f7 $bf $bf $f7 $fe $fe $fc $f0 $00 $03 $07 $06 $0d $0d $0d $0d $06 $07 $03 $00 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 $04 $1b $57 $16 $1b $1b $57 $30 $0f a straight line is drawn from 0,0 to 16,4. it is then continued to 22,27 and to 48,15.
18 ea kit120-5 esc x n1 wait/pause this command suspends the kit for n1 /10 seconds. example: $1b $58 $0a after this command the kit waits for a second before the next command is processed. esc y r n1 read input port reads in the input port ( n1 =1..5 = in1..in5). when n1 =0, all the inputs are read in as 5-bit binary values (msb:in5...in1:lsb); see application on page 5. important: the optocouplers invert the input logic (input open: 1). the ?esc y i 1? command 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..5 = out1..out5) to the value n2 (0=low level; 1=high level; 2=invert port). when n1 =0, all the outputs are output as a binary value n2 (msb:out5...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 (5-bit binary value in5..in1) can call a port macro (0..31). 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 y l n1 switch led illumination on/off the led backlighting is switched off ( n1 =0), switched on for an undefined period ( n1 =1) or inverted ( n1 =2): on->off or off->on or switched on for n1/10 seconds with n1 =3..255. example: $1b $4a $64 the led backlighting comes on for 10s after this command.
19 ea kit120-5 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: $1b $5a $4c $00 $00 $4c $65 $66 $74 $7c $4f $6b $00 writes the text ?left|ok? left justified at 0,0. example 2: $1b $5a $5a $19 $00 $43 $65 $6e $74 $65 $72 $7c $4f $6b $00 writes the text ?center|ok? centered at 25,0. example 3: $1b $5a $52 $31 $00 $52 $69 $67 $68 $74 $7c $4f $6b $00 writes the text ?right|ok? at 49,0. esc z o/m/u x1 y1 text... nul vertical string writes the string text... rotated by 90 top justified ( o ), vertically centered ( m ) or bottom justified ( u ) at position y1 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 right edge of the 1st line. example 1: $1b $5a $4f $31 $00 $54 $6f $70 $7c $4f $6b $00 writes the text ?top|ok? top justified at 49,0. example 2: $1b $5a $4d $31 $0f $4d $69 $64 $7c $4f $6b $00 writes the text ?mid|ok? vertically centered at 49,15. example 3: $1b $5a $55 $31 $1f $42 $6f $74 $7c $4f $6b $00 writes the text ?bot|ok? bottom justified at 49,31.
zeppelinstrasse 19 d- 82 205 gilching phone +49-8105-778090 fax +49-8105-778099 http://www.lcd-module.de ea kit120-5 dimensions all dimension in mm attention handling precautions! attention handling precautions! all dimensions in mm panel cutout: 70.5 +0.5 x48.5 +0.5 mm front panel thickness 1.5..3mm drawing without options ea opt-opto10: +10mm depth ea opt-9/36v: +13mm depth dimensions without housing in some applications it may make sense to take all the electronic components out of the housing. if you do this, please ensure that you do not subject the components to static electricity (esd) when handling them.
mouser electronics authorized distributor click to view pricing, inventory, delivery & lifecycle information: electronic assembly: ? ea kit120-5ledtk


▲Up To Search▲   

 
Price & Availability of EAOPT-OPTO10

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X