Programming
Abbreviations for common points used in scripts are as follows:
8
8
.
.
1
1
.
.
1
1
W
W
R
R
I
I
T
T
I
I
N
N
G
G
S
S
C
C
R
R
I
I
P
P
T
T
S
S
•
All scripts must be terminated with a semi-CO
LON ” ; ”.
•
Scripts always belong to the output to which they are controlling.
•
A script going true will turn the output on.
•
All system input and output points, as seen in section 7.1.5 on Point Formats, can be used in Scripts.
•
Scripts can have a maximum bracket ( ) nesting of 20. i.e. 20 pairs of brackets.
A DELAY TIMER CAN BE ADDED TO THE END OF ANY SCRIPT BY ADDING
“AND TNN” – where nn is the number of seconds of
delay before the script goes active, e.g. T10 for a 10 second delay timer. This means that the script conditions
must be true for 10 seconds before the script goes true. You can only have 1 timer per script. Time delays can be
up to 28,800 seconds (8 hrs).
Range functions include all points of the same type within the specified range as a large OR or AND function. This
function is performed as a macro and includes only modules installed at the time of parsing. If modules are added
after this point they will not automatically be included in the range. If you add a module and you and want it
included in range scripts, you must re-parse the script again.
When using a Range Function, if the point you are writing the script for falls within the range, the script will
automatically exclude the point from the script to avoid the output latching on. If you want the output to latch on,
you can manually add the point into the script.
8
8
.
.
1
1
.
.
2
2
U
U
S
S
I
I
N
N
G
G
Z
Z
O
O
N
N
E
E
N
N
U
U
M
M
B
B
E
E
R
R
S
S
I
I
N
N
S
S
C
C
R
R
I
I
P
P
T
T
S
S
:
:
As Display Zones are a collection of individual points, they can be used in scripting equations to save time. For
Example: If Z1 contained the points L1D1, L1D2, L1D3, and you needed L1M1 to turn on whenever a detector in
Z1 went into alarm you could write a script as follows:
L1M1 = Z1;
8
8
.
.
1
1
.
.
3
3
M
M
A
A
K
K
I
I
N
N
G
G
A
A
N
N
O
O
U
U
T
T
P
P
U
U
T
T
L
L
A
A
T
T
C
C
H
H
The way to latch an output is to include itself in its script, you do need to remember however to include a way to
reset the output. For example, a fire trip relay (L1M3) is required to latch on common alarm and to be reset by
push button 1 on annunciator 1, once all alarms have cleared. A script that will perform this operation is:
L1M3 = CA OR (L1M3 AND !1.101.I1);
AFP-2800/2802 Manual
– P/N DOC-01-011
90
Abbreviation
Point
CA
Common Alarm (Common alarm relay)
CF
Common Fault (Fault LED)
CI
Common Isolate (Isolate LED)
BI
Bell Isolate (Bell isolate LED)
WI
Warning System Isolate (Warning system isolate LED)
MO
Mains ON (Mains ON LED)
PF
PSU Fail (PSU fail LED)
BF
Battery Fail (Battery fault LED)
CL
Charger Fault (charger high or low)
Содержание AFP-2800
Страница 139: ...Appendix 9 12 PANEL EXPANSION RELAYS AFP 2800 2802 Manual P N DOC 01 011 139...
Страница 143: ...Appendix 9 9 1 13 3 4 4 R RE EL LA AY Y M MO OD DU UL LE E F FR RM M 1 1 AFP 2800 2802 Manual P N DOC 01 011 143...
Страница 144: ...Appendix 9 9 1 13 3 5 5 C CO ON NT TR RO OL L M MO OD DU UL LE E F FC CM M 1 1 AFP 2800 2802 Manual P N DOC 01 011 144...
Страница 145: ...Appendix 9 9 1 13 3 6 6 Z ZO ON NE E M MO OD DU UL LE E F FZ ZM M 1 1 AFP 2800 2802 Manual P N DOC 01 011 145...
Страница 156: ...Notes...
Страница 157: ......
Страница 158: ......