C
ONFIGURATION
C
OMMAND
S
ET
- F
IRMWARE
R
EVISION
2.4.0_
BETA
-
V
ERSION
1.0.0
3.2.14.4 MACRO<index>
Parameter syntax
MACRO<
This parameter specifies the macro configuration. A macro can consist of more
alarm actions than a usual alarm. It is possible to specify the command e.g.
„
Sys.Macro0
“
as an alarm action. Thereby it activates this macro (
0
in our example).
If such a macro is activated, all commands defined inside this macro will be
executed. Macros are designed to make possible executing of the large numbers
of commands within a single line. Macro can also be used to store several
commands, which can be used frequently inside the alarm configuration. This
setting improves the style of a clearly arranged alarm configuration, it prevents the
configuration mistakes and can ease the readability of a configuration.
<index>
It specifies the macro index in range from
0
to
9
(10 macros).
<
command1
>&….&
command10
>
It specifies the command to be released for a specific task. Up to
10
commands
separated by ampersand
“
&
”
can be specified and executed.
However, the
maximum number of characters in a single command line is limited to 1500
. More
then
1500
characters will be ignored.
To specify a command, please, refer to the
. All commands within this chapter can
be set as commands without leading the “$PFAL,”.
How to set/get MACRO configuration:
Set configuration
$PFAL,Cnf.Set,MACRO0=IO.LED1.Red=hpulse,3000
$PFAL,Cnf.Set,MACRO1=GSM.SMS.Send,"+491234567",8,"AL1 SMS"
….
Get configuration
$PFAL,Cnf.Set,MACRO0
$PFAL,Cnf.Set,MACRO1
….
Notes
•
The maximal number of commands to be specified is currently set to
10.
The
maximum number of characters in a single command line is limited to
1500
.
•
It is not recommended to set the read commands inside the macros,
because this would only slow down the system performance. (The information
to be read out cannot be displayed in this way. Use the
MSG.send
commands for such purposes).
•
It is
NOT
allowed to set/activate other macro commands inside a macro
configuration parameter, as the activation of them might lead to endless
loops of set commands.
NOT allowed configuration
:
$PFAL,Cnf.Set,MACRO0=IO.Beep=hpulse,3000&Sys.Macro0
•
Keep in mind that, some configuration parameters (such as
„MACRO“
) are
case sensitive, while all commands are case insensitive.
This confidential document is a property of FALCOM and may not be copied or circulated without previous permission.
Page 169 of 271