Page 15
Printing and typographical errors reserved.
ELECTRONIC ASSEMBLY reserves the right to change specifications without prior notice.
EA eDIPTFT32-A
EA eDIPTFT32-A: Bargraph commands
after
reset
Command
Codes
Remarks
Bargraph commands
Set color for bargraph
ESC
F
B
fg
bg
fc
Colors: fg = foreground; bg = background; fc = color for frame
8,1,8
Bargraph pattern
ESC
B
M
n1
Pattern for bargraph n1=1..255; n1=0 no pattern/solid (valid for type=0..3)
0
Bargraph border
E
n1
Border for bargraph n1=1..255 (valid for type=4..7)
1
Bargraph linewidth
B
n1
Linewidth for bargraph n1=1..255; n1=0 automatic (valid for type=2,3,6,7)
0
Define bargraph
ESC
B
R
L
O
U
no
xx1
yy1 xx2
yy2
sv
ev
type
Define bargraph no=1..20 to L(eft), R(ight), O(up), U(down)
xx1,yy1,xx2,yy2 rectangle enclosing the bar graph.
sv, ev are the values for 0% and 100%.
type: 0=pattern bar; 1=pattern bar in rectangle;
type: 2=pattern line; 3=pattern line in rectangle;
type: 4=border bar; 5=border bar in rectangle;
type: 6=border line; 7=border line in rectangle;
no bar
defined
Update bargraph
ESC
B
A
no
val
Set and draw the bargraph with the number no=1..20 to the new value val
Draw bargraph
N
no
Entirely redraw the bargraph with the number no=1..20
Send bargraph value
S
no
Send the current value of bargraph number no=1..20 to sendbuffer
Delete bargraph
D
no
n2
The definition of the bar graph with the number no=1..20 becomes invalid.
If the bar graph was defined as input with touch, this touch field will also be deleted.
n2=0: Bar graph remains visible; n2=1: Bar graph is deleted
User values - Format text output
User value color
ESC
F
X
fg
bg
Set color for bargraph user value; fg=foreground, bg=background color
8,1
User value font
ESC
B
F
n1
Set font n1 for bargraph user value
5
User value zoom
Z
n1
n2
Set zoom factor for bargraph user value; n1=X-Zoom 1x..8x; n2=Y-Zoom 1x..8x
1,1
User value additional
width/height
Y
n1
n2
n1=0..15: additional width left/right;
n2=0..15: additional height top/bottom for bargraph user value;
0, 0
User value angle
W
n1
Set writing angle for bargraph user value; n1=0: 0°; n1=1: 90°; n1=2: 180°; n1=3: 270°;
0°
User values / scaling
ESC
B
X
no
xx1
yy1
For
mat
Str
ing
NUL
Define user value for bargraph no=1..20. Output is always right justified to xx1,yy1;
Format String: "bv1=uservalue1;bv2=uservalue2". 'NUL' ($00) = termination;
Assign two bar values (bv1,bv2 =0..254) to user defined values
max. range: 4 1/2 digits 19999 + decimal point ('.' oder ',') + sign
e.g. display "-123.4" for bar value bv1=0 and "567.8" for bar value bv2=100
Format String: "0=-123.4;100=567.8"
EA eDIPTFT32-A: Instrument commands
after
reset
Command
Codes
Remarks
Define, use instruments
Definine instrument
ESC
I
P
n1
xx1
yy1
n2
n3
aw
ew
Define instrument n1=1..4 an xx1,yy1 (=left top edge);
Use intrument image n2=0..255
Output angle n3=0: 0°; n3=1: 90°; n3=2: 180°; n3=3: 270°;
aw, ew (0..254) are start and endvalue (0% and 100%).
nothing
definied
Update instrument
ESC
I
A
n1
val
Update instrument with new value and redraw
Redraw instrument
N
n1
Redraw entirely instument n1=1..4
Send instrument value
S
n1
Send actual instrument value n1=1..4 to send buffer
Delete instrument
D
n1
n2
The definition of the instrumets gets invalid. If the instrument was adjustable by touch,
the touch area will be deleted, too.
n2=0: Instrument stays visible; n2=1: Instrument is deleted completely
User values - formatted string output
User value color
ESC
F
I
vf
hf
Set color 1..32 for instrument user value fg=foreground; bg=background color
8,1
User value font
ESC
I
F
n1
Set font nr for instrument user value
5
User value zoom
Z
n1
n2
Set zoom factor for instrument user value: n1=X-Zoom 1x..8x; n2=Y-Zoom 1x..8x
1,1
User value additional
hight/width
Y
n1
n2
n1=0..15: additional width left/right;
n2=0..15: additional height top/bottom for instrument user value;
0, 0
User value angle
W
n1
Set writing angle for instrument user value: n1=0: 0°; n1=1: 90°; n1=2: 180°; n1=3: 270°
0°
User values / scaling
ESC
I
X
n1
xx1
yy1
For
mat
Str
ing
NUL
Define user value for instrument no=1..4. Output is right justified to x1,y1
Format String: "iv1=uservalue1;iv2=uservalue2"
Assign two instrument values (iv1,iv2 =0..254) to user defined values max. range: 4 1/2 digits 19999
+ decimal point ('.' or ',') + sign
e.g. display "-123.4" for iv1=0 and "567.8" for iv2=100
Format String: "0=-123.4;100=567.8"