UM-0085-B09 DT80 Range User Manual Page 86
RG
Substitution Characters
Special substitution characters can be placed into actionText. These instruct the DT80 to dynamically insert the following
information when the alarm returns and/or logs its action text:
Substitutes the following
DT80 serial number, :, alarm number
! character
@
time at which action text was returned
(in P39 and P40 format)
12:13:14.634
@ character
#
date at which action text was returned
(in P31 format)
17/9/2007
relation (test condition)
?V
channel value when alarm tested true
(use
n etc. channel options to control format)
100.2
?A
A = any letter (A-Z)
other than
not valid
value of nCV in fixed point format, p decimal places
value of nCV in exponential format, p decimal places
value of nCV in mixed format, p significant digits
?nA
A = any letter (A-Z)
other than
not valid
n = 1-50 value of string variable n$
n = 1-1000
same as
? character
c = any character
c
Note: Substitution characters are not case sensitive (?v is equivalent to ?V)
Special Characters
Special characters may be inserted in alarm strings using control character (e.g. ^M) or backslash (e.g. \013) notation.
See ASCII-Decimal Table (P389) for more information.
For example,
ALARM(3TT>120)"\192 hautes temp\233ratures!! ?v \176C^M^J"
will return/log the following string when the specified temperature is exceeded:
À hautes températures! 129.4 °C
In this example the \192 and \233 insert the accented characters, \176 inserts the degree symbol, and ^M^J adds a
carriage return/line feed pair. Note also the !! to generate a single exclamation mark, and the ?v substitution string, which
is replaced by the channel value.
If the software used to enter the program text supports it, you could alternatively have entered the special characters
directly, i.e.
ALARM(3TT>120)"À hautes températures!! ?v °C^M^J"
Be aware that many extended ASCII character codes display differently on the DT80's LCD compared with the host
computer. See ASCII-Decimal Table (P389).
Examples
Substitution Characters
The following command:
ALARM(9TK("Oven 9")<200)"Alarm: SN ! at # @, ?n value is ?v ?u"[sms:+61400123456]
would, on DT8xM models, send an SMS alarm message similar to the following:
Alarm: SN 081234:0 at 17/5/2011 19:09:11.002, Oven 9 value is 187.2 degC