EAKIT120-5LED [ETC]
CONTROL PANEL WITH FONTS GRAPHICS COMMANDS AND MACROS;型号: | EAKIT120-5LED |
厂家: | ETC |
描述: | CONTROL PANEL WITH FONTS GRAPHICS COMMANDS AND MACROS |
文件: | 总21页 (文件大小:758K) |
中文: | 中文翻译 | 下载: | 下载PDF数据表文档文件 |
EAKIT120-5
8.2000
CONTROL PANEL WITH FONTS,
GRAPHICS COMMANDS AND MACROS
EAKIT120-5LEDTP
Dimensions 77x54mm
TECHNICALDATA
* LCDGRAPHICSDISPLAYWITHDIVERSEGRAPHICSFUNCTIONSANDFONTS
* 120x32PIXELSWITHLEDBACKLIGHTGN/GB
* FONTZOOMFROM3mmVIA8mmUPTO20mm
* SNAP-INHOUSINGFOREXTREMELYEASYINSTALLATION
* LEDBACKLIGHTINGSWITCHABLEVIASOFTWARECOMMAND
* SUPPLYVOLTAGE 5V /typ.23mA(LEDON:180mA)OROPTIONALLY9..36V
* RS-232WITHBAUDRATESFROM 1200TO115200
* POSITIONINGACCURATETOTHEPIXELWITHALLFUNCTIONS
* PROGRAMMINGBYMEANSOFHIGH-LEVELLANGUAGE-TYPECOMMANDS:
* STRAIGHTLINE,POINT,AREA,AND/OR/EXOR,BARGRAPH...
* UPTO256BITMAPGRAPHICS/ICONSSTORABLEINTHESYSTEM
* UPTO256MACROSPROGRAMMABLE(32kBINCL.FONTSANDGRAPHICS)
* COMBINATIONSOFTEXTANDGRAPHICS
* 5DIGITALINPUTSAND5OUTPUTS
* OPERATINGTEMPERATURE-20..+70°C,ON-BOARDTEMPERATURECOMPENSATION
ACCESSORIES
* INTEGRATEDTOUCHPANELWITH5x2FIELDS(ANTI-GLARE,SCRATCH-RESISTANT)
* FLOPPYDISKFORMACROPROGRAMMING(PCDOS):EADISK240
ORDERDESIGNATION
120x32DOTSWITHLEDILLUMINATIONGB/GN
120x32DOTSWITHTOUCHPANEL,LEDILLUMINATION,GB/GN
SUPPLYVOLTAGE9..36VINSTEADOF5V
EA KIT120-5LED
EA KIT120-5LEDTP
EAOPT-9/36V
OPTOCOUPLERFORTHE5INPUTSANDOUTPUTS
EAOPT-OPTO10
CABLE(1.5m)FORCONNECTIONTO9-PINSUB-DANDTHEIOPORTS EAKV24-9B10
ZEPPELINSTRASSE 19
· D-82205 GILCHING
PHONE+49-8105-778090·FAX+49-8105-778099·http://www.lcd-module.de
EAKIT120-5
GENERAL
TheEA KIT120isafullyassembledcontrolandoperatingunitwithavarietyofintegratedfunctions.The
displayhasverycompactdimensionsandoffersexcellentsupertwistcontrast,whichmeanstheunitcan
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
offeredbymacrosandinputviatouchpanelmakeitarealpowerdisplay. Toinstallit, yousimplyinsert
it into the opening in the front panel.
HARDWARE
Thegraphicsunitisdesignedtoworkwithanoperatingvoltageof+5V.Asupplyvoltageof9..36Visalso
possible.SerialasynchronousdatatransferiscarriedoutinRS-232format.Thetransmissionformatis
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.
Dataformat:
TOUCHPANEL
TheEA KIT120-5LEDTPversionisequippedwithanintegratedtouchpanel. Youcanmakeentriesby
touching the display. The labeling of the „keys“ is flexible and can also be changed during runtime
(differentlanguages,icons).Thedrawingoftheindividual„keys“andthelabelingorgroupingofseveral
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). Noadditionalsoftwareordriversarerequired. Stringscanbeplacedwithpixelaccuracy. Text
andgraphicscanbecombinedatanytime.Upto16differentcharactersetscanbeused.Eachonecan
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
Afloppydisk(EA DISK240*))isrequiredformacroprogramming.Thisconvertsthecommandsentered
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
ToenablesimpleconnectiontoPCs(macroprogramming), weprovidea1.5mcableanda9-pinSUB-
Dfemaleconnector.SimplyinsertitintoCOM 1orCOM 2andgetstarted.Thereisalsoa10-pinsocket
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
2
EAKIT120-5
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
notethatitisonlypossibletoconnectanexternalkeyboardtothe
EAKIT120-5LEDversionwithoutanintegratedtouchpaneland
withoutadditionaloptions(OPT-OPTO10=orOPT-9/36V).
Eachkeyisswitchedbetweenanoutputandaninput.Theinputs
have a 50kΩ pullup. Up to 5 keys can be connected at each
output.
Transmittingthekeystrokes
At each keystroke, the associated key
Keypad Connector J4
Pin Symbol
Function
number(1..10)istransmitted.Thereleaseof
thekeyisnottransmitted.Ifthereleaseofthe
key is to be transmitted as well, this can be
done by defining touch macro no. 0. The
automatickeyboardscancanbedeactivated
by means of the „ESC T A 0“ command.
The key number can be determined as
1
2
3
4
5
6
7
OUT 2
OUT 1
IN 1
Output Line 2
Output Line 1
Input Column 1
Input Column 2
Input Column 3
Input Column 4
Input Column 5
IN 2
IN 3
IN 4
IN 5
Application example
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.
TOUCHPANEL(EAKIT120-5LEDTPONLY)
TheEA KIT120-5LEDTPversionisequippedwithanintegratedtouchpanelwith10fields.Thegraphics
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.
Whenthetouchkeysaretouched, theycanbeautomaticallyinvertedandatonecansound, indicating
theyhavebeentouched. Atthesametime, theinternaltouchmacrowiththenumberofthereturncode
isstartedor,ifnotouchmacroisdefined,thereturncodeofthekeyistransmittedviatheserialinterface.
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
#TH 13, 25, ´A´, 2, "STOP"
Note
For
compiler
The end code 0 is not
specified here
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 $0D $19 $41 $02 $53 $54 $4F $50 $00
27 84 72 13 25 65 83 84 79 80
In decimal
2
0
3
EAKIT120-5
SUPPLYVOLTAGE/RS-232CONNECTION
RS-232 / PORT Box Header J3
Inthestandardmodel,thesupplyvoltageof+5Visfedinviascrew-
typeterminalJ1.Alternatively,the5Vsupplycanbeconnectedvia
J3 (pin 1 and pin 10).
Note: It is imperative that the polarity is correct.
The 20-pin connector J3
EA KV24-9B10
Pin Symbol In/Out
Function
Pin
Pin
1
2
3
4
5
6
7
8
9
VDD
DCD
DSR
TxD
CTS
RxD
RTS
DTR
-
-
-
-
+ 5V PowerSupply
Bridge to DTR
Bridge to DTR
1
6
Out Transmit Data
In Clear To Send
In Receive Data
2
7
9-pin
3
SUB-D
containstheconnectionfor
the RS-232 interface
( 12V)andthe5inputsand
outputs(5VC-MOSlevel).
The baud rate is set in the
factory to 9600. You can
Out Request To Send
8
-
-
-
see Pin 2, Pin 3
NC
4
9
10 GND
11 IN1
12 OUT1 Out CMOS Output 1
13 IN2 In CMOS Input 2
14 OUT2 Out CMOS Output 2
15 IN3 In CMOS Input 3
16 OUT3 Out CMOS Output 3
17 IN4 In CMOS Input 4
18 OUT4 Out CMOS Output 4
19 IN5 In CMOS Input 5
20 OUT5 Out CMOS Output 5
0V Ground
5
In CMOS Input 1
1
2
3
4
use
the
program
10-pin
IDC
socket
5
6
KITBAUD.EXE (available
7
on EA DISK240*)) to
8
configure it. To do this, you have to connect the KIT to COM1 or
COM2andpassthenewbaudrateasaparameter(e.g. KITBAUD
19200). The following baud rates can be set: 1200, 2400, 4800,
9
10
9600, 19200, 38400, 56700 and 115200.
5V RS-232 Solder Pads J5
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.
Pin Symbol In/Out Function
1
2
3
4
5
6
7
WP
VDD
In
EEprom Write Protection
+5V Power Supply
0V Ground
GND
TXD5
RXD5
RTS5
CTS5
Out Transmit data CMOS
In Receive data CMOS
Out Request To Send CMOS
In Clear To send CMOS
WRITEPROTECTIONFORMACROPROGRAMMING
Closing solder strap LB1 (WP-VDD connection) prevents the programmed macros, images and fonts
frombeingoverwritteninadvertently. Thebaudratecanthennolongerbeseteither.
INPUTSANDOUTPUTS
TheKIT120issuppliedwith5digitalinputsand5outputs(5VCMOSlevel,non-isolated).Theconnection
is made at the 20-pin connector J3.
5outputs:Eachlinecanbecontrolledbymeansofthe„ESC Y W“command.Themaximumcurrentper
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,32portmacroscanbeaddressed.Eachoftheseportmacroscanchangethecontentsofthe
screenorswitchanoutput.Thisallowsawiderangeofcontroltaskstobecarriedout.Tocreatetheport
macros,youneedaPCandthefloppydiskEA DISK240.Youwillfindamoredetaileddescriptionofthis
on page 6. Automatic poll querying can be disabled by means of the „ESC Y A 0“ command.
Note:Thelogiccircuitryisdesignedforslowoperations;inotherwords,morethan3changespersecond
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
4
EAKIT120-5
INPUTSANDOUTPUTSWITHOPTOCOUPLERS(VERSIONWITHEAOPT-OPTO10)
TheEA KIT120canbesuppliedwithoptocouplerinputsandoutputs
(EA OPT-OPTO10).Allinputsandoutputsareisolatedfromtherest
oftheelectroniccomponentsaswellaseachother.Theconnection
is made via 10 different screw-type terminals.
5optocoupleroutputs
The collector and emitter of a transistor are
eachimplementedasoutputsonthescrew-
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.
5optocouplerinputs
Voltagesof4..36Vcanbeapplieddirectlyatall5inputs.Voltagesofover4Vare
identified as high (H) level; voltages of under 2V are identified as low (L) level.
Voltagesbetween2and4Vareundefined.Notethepolarityoftheinputs(LEDs).
Note: Theoptocouplersinverttheinputlogic(allinputsopen:portmacroN°31).
Itisadvisablehere(inthepower-onmacro, forexample)tousethe„ESC Y I 1“
commandtoevaluatetheinputsinversely(allinputsopen:portmacroN°0).
EA OPT-9/36V:SUPPLYVOLTAGE 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 / Reset
Register
Comman
DEFAULTSETTINGS
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).
Text mode
Terminal font
Cursor
ESC L
Set, black
ESC FT
ESC QC
ESC QZ
Font 3, no zoom
On
Flashing time
0,6 secs.
User-defined
characters
ESC E
undefined
Graphics mode
Graphics font
Last xy
ESC V
ESC F
ESC W
ESC B
ESC K
ESC YL
ESC Y
Set
Font 3, no zoom
(0;0)
ATTENTION
Bar graph 1..4
Select/Deselect
LED backlight
Outputs OUT1..5
undefined
selected
On
handling precautions!
High level
5
EAKIT120-5
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:
Touchmacros(1..255)(0)
Thesearestartedwhenyoutouchatouchfield(inversionswithatouchpanel-TP)orwhenyouoperate
anexternalkey/matrixkeyboard.Touchmacrono.0isdifferent:Itisstartedwhenyoureleaseanykey.
Portmacros(0..31)(32..255)
ThesearestartedwhenthereisachangeinthelogiclevelatinputsIN 1..5.Theremainingportmacros
(32..255) are available and can be started by means of the ‘ESC M P no’ command.
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-on macro = normal macro (0)
Normalmacrono.0isdifferent:Itisexecutedautomaticallyafterpower-on.Itallowsyoutoswitchoffthe
cursor and define an opening screen, for example.
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. Allmonochromeimagesin
theWindowsBMPformatcanbeused.Theycanbecreatedandeditedusingwidelyavailablesoftware
such as Windows Paint.
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 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).Youspecifywhichcharactersetsaretobeintegratedandwhichcommandsequencesare
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
;MakroDemo
KIT120-5
;definedisplaytype
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.
COM2:115200
;KITconnectedtoCOM2,
;Transmissionat115.200Baud
;----------------------------------------------------------
;Defineconstants
AUS =
EIN =
0
1
FONT4x6=1
FONT5x6=2
FONT6x8=3
FONT8x8=4
FONT8x16=5
;----------------------------------------------------------
;Includefonts
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/resetmacro
;Cursorvisible
#FTFONT8x16
#UL0,20,<EA2.BMP>
;Setterminalfont
;ELECTRONICASSEMBLYlogo
*) also available on the Internet at http://www.lcd-module.de/deu/disk/disk240.zip
6
EAKIT120-5
INTEGRATEDFONTS
Self def.
ASCII-
Codes
Char. Lines x Size in
ASCII
area
Nr.
Note
height
Cols
dots
1
2
3
4
5
3,3 mm 5 x 30
3,3 mm 5 x 24
4,5 mm 4 x 20
4,5 mm 4 x 15
7,8 mm 2 x 15
4 x 6
5 x 6
6 x 8
8 x 8
32 - 95
32 - 158
32 - 158
32 - 158
1..16
1..12
1..10
1..8
Micro
Mini
Standard
Bold
Big
8 x 16 32 - 158
1..4
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
fourtimes.
Font 1: 4x6
Inaddition,youcandefineupto16characters
of your own, depending on the font being
used. These characters will remain until the
supply voltage is switched off. (See the ESC
Ecommand.)
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
justifiedorcentered. 90°rotation(forvertical
installation of the display) is also possible.
Macro programming permits the inclusion of
up to 11 additional fonts and the complete
redesignoftheindividualcharacters.
A font editor on the EA DISKFONT1520
floppydiskallowsyoutocreateandprogram
in any font you like with a size of up to 16x16
pixels.
Font 5: 8x16
TIP:FONTEFFECTS
Withlargefonts,youcanusethe„ESCL“command,TEXTmode
(link, pattern), to produce interesting effects through overlaying
(writing and offsetting a word several times).
When the „outline font“ is overlaid
again (EXOR) at pos. 2,2, this results in
an „outline font with filling“
Original font 8x16 with ZOOM 2
„Outline font“ resulting from
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 filling“
7
EAKIT120-5
ALLTHECOMMANDSATAGLANCE
When you switch the unit on, the cursor flashes in the first line, indicating that the display is ready for
operation.AlltheincomingcharactersaredisplayedinASCIIformat(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.
Alladditionalcommands(forpositioningthecursororsettingafont,orgraphicscommands,forexample)
are introduced by the ESCAPE character (dec 27/ hex 1B).
Command table for the EA KIT120-5
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
Cursor on/off
ESC
ESC
ESC
Q
O
F
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)
Position cursor
Set terminal font
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
Text mode
Set font
L
F
n1 pat
n1 n2 n3
L
Sets font with the number n1 (1..16); n2=X- n3=Y-zoom factor (1x..4x)
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
Output string
horizontally
Text
...
ESC
Z
Z
x1 y1
x1 y1
NUL
NUL
R
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;
O
Output string rotated by
90° (vertically)
Text
...
ESC
ESC
Z
E
M
U
x1 is always the right edge of the string
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
Graphics mode
ESC
V
n1
Set point
ESC
ESC
ESC
P
G
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
W
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 mst (0..7); (always replace)
Bitmap image commands
Draw rounded box
Image from EEPROM
Load image
E
L
x1 y1 no
x1 y1
Loads an internal image with the number (0..255) from the EEPROMto x1,y1
Loads an image to x1,y1; see image structure for the data of the image
U
H
data ...
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
8
EAKIT120-5
Bar graph commands
R
L
O
U
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)
Sets the bar graph with the number no (1..4) to the new user
'value'
Define bar graph
Draw bar graph
no x1 y1 x2 y2 sv ev pat
ESC
B
value
no
Keyboard/touch panel commands
Groups touch fields f1 to f2 (diametrically opposite corner fields) together
Define touch key with
horizontal label
to form a touch key with the return value ´Ret. code´ (=1..255) (Ret.
code=0 means the touch key is inactive).
H
V
Ret
Text
...
f1
f2
frm
NUL ´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
code
Define touch key with
vertical label (rotated by
90°)
P
R
Activates all touch keys in ascending order (fields with code 1..10)
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
Query key manually
M
The touch key assigned the return code n1 is inverted manually
Sends the currently depressed (touch) key at the RS-232 interface
W
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)
Control/definition commands
D
Z
x1 y1 x2 y2
n1
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
Automatic flashing area
(cursor function)
ESC
ESC
Q
K
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 tenths sec. long on
Wait (pause)
Buzzer on/off
ESC
ESC
X
J
n1
n1
Sends num (1..255; 0=256) bytes at the RS-232 interface;
data ... = num bytes (e.g. control of an external serial printer)
Send bytes
ESC
S
num
data ...
Port commands
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
n1=0: Reads in all 5 input ports as 8-bit binary value
Write output port
Read input port
W
R
n1 n2
n1
n1=1..5: Reads in input port <n1> (1=high level=5V, 0=low level=0V)
ESC
Y
Port scan on/off
Input port inverse
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)
Switches LED backlight n1=0: off; n1=1: on; n1=2: toggle; n1=2..255: for n1
tenths sec. long on and then off
LED backlight on/off
L
n1
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
ESC
D
Makes the contents of the display invisible, but they remain there and further
commands are possible
Switch display off
A
Switch display on
Reset display
E
R
Makes the contents of the display visible again
Resets and re-initializes the display controller
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
9
EAKIT120-5
PARAMETERS
The graphics unit 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,suchasspacesorcommas,mustbeusedbetweenthem.Thecommandsrequire
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
PROGRAMMINGEXAMPLE
The following table shows an example in which the character chain „Test“ is output at coordinate 7,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 (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.
Thefollowingfillpatternsareavailable:
pat=0
white
pat=1
black
pat=2
25%gray
pat=3
50%gray
pat=4
75%gray
pat=5
45° right
pat=6
45°left
pat=7
45° cross
10
EAKIT120-5
DESCRIPTIONS OF THEVARIOUS 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
Invert contents of display
Fill contents of display
Switch display off
The entire contents of the display are deleted (white).
Example: $1B $44 $4C
ESC
D I
The entire contents of the display are inverted.
Example: $1B $44 $49
ESC
D S
The entire contents of the display are filled (black).
Example: $1B $44 $53
ESC
D A
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.
11
EAKIT120-5
ESC
E n1 data
Define character
User defined
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,
characters (code)
8x 16x
4x6 5x6 6x8 8x8
16 16
1
2
1
2
1
2
1
2
3
4
5
6
7
8
whereas only 4 characters can be defined for an 8x16 font. Note: Please note
BYTE NR.
2 3 4 5 6 7 8
1
2
3
4
1
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).
3
3
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
4
3
1
4
5
4
6
5
Example 1:
7
BYTE NR.
2 3 4 5 6
5
6
1
8
$1B $45 $01
$04 $02 $7F $02 $04 $00
Defines an arrow pointing upward for ASCII no. 1 using
the 6x8 character set.
7
6
Bit 0
Bit 1
Bit 2
Bit 3
Bit 4
Bit 5
Bit 6
Bit 7
9
8
10
11
12
13
14
15
16
7
9
8
Example 2:
$1B $45 $02
10
11
12
2
9
9
10 11 12 13 14 15 16
BYTE NR.
$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.
10
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.
12
EAKIT120-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
Call touch 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
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.
13
EAKIT120-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
Cursor on/off
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
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.
14
EAKIT120-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/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 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’
(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
Sends the word ‘TEST’ via the RS-232C interface.
15
EAKIT120-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
16
EAKIT120-5
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
BYTE NR.
1
2 3 4 5 6 7 8 9 10 11 12
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).
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
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
13 14 15 16 17 18 19 20 21 22 23 24
BYTE NR.
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.
17
EAKIT120-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 valuen2 (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 orn1=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.
18
EAKIT120-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.
19
EAKIT120-5
DIMENSIONS
All dimensions in mm
Panel cutout: 70.5+0.5x48.5+0.5mm
Front panel thickness 1.5..3mm
ATTENTION
Drawing without options
EA OPT-OPTO10: +10mm depth
EA OPT-9/36V: +13mm depth
handling precautions!
DIMENSIONSWITHOUTHOUSING
Insomeapplicationsitmaymakesensetotakealltheelectroniccomponentsoutofthehousing. Ifyou
dothis,pleaseensurethatyoudonotsubjectthecomponentstostaticelectricity(ESD)whenhandling
them.
ATTENTION
all dimension in mm
handling precautions!
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 KIT120-5LEDTK
相关型号:
©2020 ICPDF网 联系我们和版权申明