High Country Tek DVC80 User Manual

Page 109

Advertising
background image

P/N: 021-00154, Rev. A.6 - updated for V4.7 Tools

Page | 109

6.15

D206 Touch Screen Color Graphical Display


With release 4.7 the DVC tools provide support for the D206
Touch Screen Color Graphical Display input/output device.
The display comes in various sizes along with black and white.

The midsize display is 5” by 7” and can be used in a landscape
or portrait orientation. The D206 connects to the DVC5/7/10
controller using the RS232 interface. Backlighting provides for
easy reading of the display. Power for the display can be
provided for by connecting to a DVC5/7/10 power pin or from
an external source.

Programming the D206
The D206 is programmed using the Programming Tool much like you would program the Virtual Display. The
main difference is that instead of specifying only text as you do for the Virtual Display you select objects from
the D206 screen Object’s menu and modify the fields of the objects where appropriate. An example simple
script of three objects would be:

‘ Sample script
1-Button, key/1/,x/1/,y/1/,clr/w/,lbl/1/,w/10/,h/10/
2-CheckBox, key/1/,x/1/,y/1/,clr/w/,state/1/,lbl/1/,w/10/,h/10/
3-Gauge, x/1/,y/1/,clr/w/,value/512/,w/20/,h/40/,min/0/,max/1023/

Each numbered line represents one object whose name is the first field. The additional fields each have a
descriptor (x,y,clr,..) and a value delimited by the / / pair of characters. You can change the values using the
editor or have a display variable mapped into a particular line and field number for changing the value in your
application. The field order needs to be maintained but the values can be changed. Fields have valid values
that are checked when the object fields are received by the
D206 display’s firmware. Location (x,y) and size (w,h) fields
are in terms of display pixels. In landscape orientation x can
be from 1-320 and y 1-240 pixels. In portrait orientation x can
be from 1-240 and y 1-320 pixels.

You basically program the display in four steps:

Step 1: Add the Graphical Display to Your Project

Add the Graphical Display icon to your project by right
clicking your mouse in the Project window and selecting “Add
Graphical Display” from the popup menu.

Step 2: Define the Screens

Next, construct the various displays images you want in your
application. Double click the GD icon in your project
window. Right click in the GraphicalDisplay: GD window
and select “Add Screen”. Do this once for each display
image you will need. Each screen you define has a name,
its own object script and display variable definitions which
include the variable type, field and line numbers for script
substitution.

Advertising
This manual is related to the following products: