![Asentria Teleboss 850 Скачать руководство пользователя страница 118](http://html.mh-extra.com/html/asentria/teleboss-850/teleboss-850_user-manual_2981745118.webp)
TeleBoss 850 2.06.280_STD User Manual
Page 112
Data Alarm Macros
Data alarm macros provide a way to define up to 100 equations that can be used in one or more data alarm
equations. Each macro consists of an equation and an associated name that can be used to reference the macro in a
data alarm equation. They simplify the creating of data alarm events, particularly where more than one event uses the
same expression in its equation. Also, since the macro expression is evaluated only once per record, it improves the
efficiency of alarm processing.
Data alarm macros can be configured using the setup menu or setting keys:
Menu
Setup -> Alarm/Event Definitions -> Data Alarm/Filter Settings -> Data Alarm Macro
Settings Keys
event.macro[].name
event.macro[}.equation
The macro equation is entered the same way as a data alarm equation. A macro equation cannot refer to another
macro; in such a case, the expression involved will always evaluate to FALSE. The macro equation can be up to 160
characters in length.
The macro name is the name by which the macro is referenced in any data alarm equation, and can be up to 16
characters in length. Macro names are subject to these restrictions:
Macro names and data field names are not case sensitive; therefore DLT35 and Dlt35 are equivalent.
A macro cannot be given the same name as a data field or another macro.
The following names are reserved and should not be used as macro names or data field names:
IOx (where x is a number)
FALSE
IPRC
AND
TRAP
OR
FTP
IS
TRUE
ISNOT
Using a macro name or data field name that starts with AND or OR will cause that part of the expression to always
evaluate to FALSE.
Macro names and data field names cannot start with $.
When used in a data alarm equation, macros are always compared to TRUE or FALSE. Any other comparison yields
a result of FALSE.
Example
Settings
event.data[1].enable
=ON
event.data[2].enable
=ON
event.data[1].equation
=m1=true
event.data[2].equation
=m1 = true and f2 = "0"
event.field[1].start
=7
event.field[2].start
=6
event.field[1].length
=1
event.field[2].length
=1
event.field[1].name
=f1
event.field[2].name
=f2
event.macro[1].name
=m1
event.macro[1].equation
=f1="1"
Содержание Teleboss 850
Страница 6: ......