Datasheet
10
EA KIT129-6
PARAMETERS
The graphics kit 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 spaces or commas, must be used between them. The commands require
no final byte such as a carriage return (except for the string $00).
A..Z, L/R/O/U .................................... All commands are transferred as ASCII characters.
Example: G= 71 (dec.) = $47 initiates the straight-line
command.
x1, x2, y1, y2 .................................... Coordinates are transferred with 1 byte.
Example: x1= 10 (dec.) = $0A
ESC .................................................. 1 byte: 27(dec.) = $1B
n1,n2,no,sv,ev,value,pat,ret,
frm,data ........................................... Numerical values are transferred with 1 byte.
Example: n1=15(dec.) = $0F
PROGRAMMING EXAMPLE
The following table shows an example in which the string "Test" is output left justified at coordinate 7,3.
Example Codes to be output
In ASCII
ESC
Z L
BEL ETX
T e s t
NUL
In hex
$1B $5A $4C $07 $03 $54 $65 $73 $74 $00
In decimal
27 90 76 7 3 84 101 115 116 0
For Turbo Pascal write(aux, chr(27), 'Z', 'L', chr(7), chr(3), 'Test', 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)
PATTERN
A pattern type (mst = 0..7) can be set as a parameter with some commands. In this way, rectangular
areas, bar graphs and even texts 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










