![Delta Controls DNT-T103 Application Manual Download Page 40](http://html1.mh-extra.com/html/delta-controls/dnt-t103/dnt-t103_application-manual_2475113040.webp)
DNT-T103 & DNT-T221 Application Guide
Page 40 of 41
Document Edition 4.1
Programming Notes (LINKnet)
The following provides additional important programming information.
C
OMMANDING
V
ARIABLES
:
When commanding all other variables for LINKnet devices from
GCL++ in an Application Controller write your programs so they are not being commanded on every
program scan. Use I
F
O
NCE
or D
O
E
VERY
statements to key execution to specific events or time
intervals, and thereby limit the frequency of such commands.
N
OTE
:
This is not quite the same issue when controlling the LCD display by commanding properties
of the LCD object in GCL+ programming. You may command these values and properties as often as
you require, but it is still recommended practice to use D
O
E
VERY
statements. And of course, you may
read
any
object value as often as you can – there is no issue with reading.
GCL+
P
ROGRAMMING WITH
T
EMPERATURE
U
NITS
:
It is possible in GCL+ programming to specify
the temperature units when writing to lines 2 and 3 of the LCD display. Here is a table of example
programming, which is dependent on the firmware version loaded in the Application Controller.
Description
GCL+ used with V3.22
Firmware
GCL+ used with V3.30
Firmware
Temperature on line 2
with º symbol:
LCD101.LINE2 = AI101 &
“^”
LCD101.LINE2 = AI101
LCD101.LINE2UNITS = 1
Temperature on line 3
with ºC symbol:
LCD101.LINE3 = AI101 &
“^C”
LCD101.LINE3 = AI101
LCD101.LINE3UNITS = 2
Temperature on line 3
with ºF symbol:
LCD101.LINE3 = AI101 &
“^F”
LCD101.LINE3 = AI101
LCD101.LINE3UNITS = 3
GCL++
P
ROGRAMMING TO
R
ESET THE
K
EY
P
RESS
V
ALUE TO
0:
Normally the KeyPress value
(AVx04) only changes when a new button or button-combination is pressed, and under these
conditions it is not possible to detect that the same button has been pressed again. With Release 3
firmware you can now reset the KeyPress value after you have read it, allowing you to detect when
the same button gets pressed again. The following is an example of resetting the KeyPress value back
to zero (using a mapped AV in the DAC), assuming you have already read the value.
AV104 = 0
[where AV104 is the mapped AV in the DAC associated with BACstat #1]
Note
: Keypress value is not updated while the BACstat is in Configuration or Service Tool Menu.
GCL+
P
ROGRAMMING
&
K
EY
P
RESS
V
ALUES
:
In GCL+ programming you can evaluate the
KeyPress object to determine which BACstat button has been pressed, or any 2-button combination.
Where two buttons are pressed, the first button represents the hundreds digit and the second button
represents the units digit of a 3 digit number. Note that processing KeyPress values is disabled when
using the Configuration or Service Tool menu. Here is the list of KeyPress values.
If the display code is enabled AVx15 (>1111) use Avx04, from the BACstat, to evaluate the Key
presses. If the display code is disabled (1111) use the LCDx01.Key press, from the DAC, to evaluate
the Key presses.
Button
Value
Button
Value
Button
Value
Button
Value
Button
Value
O
1
O + I
102
I + O
201
▼ + O
301
▲ + O
401
I
2
O +
▼
103
I +
▼
203
▼ + I
302
▲ + I
402
▼
3
O +
▲
104
I +
▲
204
▼+
▲
304
▲
+
▼
403
▲
4