Instructions
UM-0085-B09 DT80 Range User Manual Page 83
RG
• commsProcess is a mailto: or sms: URI that specifies a message to send by email or SMS. Multiple URIs
can be included, each enclosed by
[]. (sms: is valid for DT8xM models only)
•
{actionProcesses} is a set of channel definitions and/or commands to be executed if the alarm condition tests
true (optional)
These are explained further in the following sections.
Note: the DO command is the same as IF except that the alarm condition is assumed to be always true.
Alarm Number
Alarm commands can optionally be given a number (1-255), which is used to identify the alarm when an alarm transition
is logged.
For example:
RA1S ALARM1(2TT<15)"Too cold" ALARM2(2TT>30)"Too hot" LOGON
will test a temperature once per second. If the temperature dips below 15°C an alarm record indicating that alarm #1 has
triggered will be logged to the DT80's internal file system. See Logging and Retrieving Data (P94) for more details about
the logging of data and alarms.
Alarm numbers need not be allocated in order, and they need not be unique (although normally they would be) –
whatever you select as the alarm number will be what is logged if the alarm is triggered.
Note that unnumbered alarms, e.g.:
IF(1CV>10){9CV=9CV+1}
are not logged, even if logging is enabled for the schedule
Alarm Condition
The alarm condition compares a channel value to one or two setpoints. The state of the alarm is then set to true or false
based on this test.
(Note: in the case of the DO command, no alarm condition is specified – the state of the alarm is always true)
Six different types of test are supported:
Condition
Alarm is true if
(chan==setpoint)
channel value is equal to setpoint
(chan!=setpoint)
channel value is not equal to setpoint
(chan<setpoint)
channel value is less than
setpoint
(chan>setpoint)
channel value is greater than or equal to setpoint
(chan><setpoint1,setpoint2)
channel value is greater than or equal to setpoint1 AND less than setpoint2
(that is, between the two setpoints)
(chan<>setpoint1,setpoint2)
channel value is less than setpoint1 OR greater than or equal to setpoint2
(that is, outside the setpoint range)
where:
• chan is a standard channel definition, which will be evaluated (i.e. measured) in the usual way. One set of
channel options may be included if required. If the channel is being assigned from an expression then the whole
definition should be enclosed in parentheses, eg
IF((CALC=&1TK*2)>52)
• setpoint is a constant (e.g.
2.77) or channel variable specifier (e.g. 13CV)
Note: The equality (==) and inequality (!=) tests should normally only be used where the quantities being compared are integers.
Floating point values are subject to rounding errors. For example, after adding 0.1 to a CV ten times, the result will not necessarily be
exactly 1.0
In addition, a time specifier may be appended to the above. If a time specifier is present, the alarm will only be set true
after the condition has been continuously true for the specified time.
A time specifier has one of the following forms:
Time Specifier
Condition must be continuously true for
/nS
n seconds
/nM
n minutes
/nH
n hours
/nD
n days