9. MULTIPLE ACTIONS TO A SINGLE IF CONDITION
It is often required to have more than a single action to be executed for a single Trigger condition.
For instance, if your home alarm is triggered, you may want to activate an output (that in turns
switches on a loud alarm or perhaps pulls the trigger on a rigged-up shotgun), and you also want to
receive a voice-call and an SMS as well.
The Micro Commander will always execute all statements that are eligible to trigger due to a certain
event, in other words, the first statement that is triggered, does not void or "eat up" the event.
So to take our example, we will have a set of statements like:
Statement 1: IF input 1 becomes Active, THEN Place Voice Call to <your number>
Statement 2: IF input 1 becomes Active, THEN Send XYZ via SMS to <your number>
Statement 3: IF input 1 becomes Active, THEN Activate Output 1 for 10 minutes
If input 1 becomes active, all the above statements will trigger, and their associated actions will
take place. (The action for the first statement will be executed first)
Alternatively, "IF Statement X Triggers" could have been used. (See 8.1.15)
10. MESSAGE PARAMETERS
The Micro Commander support the use of parameters in predefined messages. This allows the user to
insert and refer to certain values in message.
The following is a list of all available parameters
\t – Current time (HH:MM:SS)
➢
\d – Current date (DD/MM/YYYY)
➢
\a – Current analog input reading (0-255)
➢
\# – Unit's serial number
➢
\f – Unit's current firmware version
➢
\b – Battery voltage (in volts)
➢
\p – Current power status of mains
➢
\s – GSM signal strength (in %)
➢
\c – Airtime credit remaining (local currency)
➢
\i– Current status of input (0 = OFF, 1 = ON)
➢
\o – Current status of output (0 = OFF, 1 = ON)
➢
\v – Last received voice call number
➢
\m – Last received message number
➢
\q – Last received message text
➢
\r – Carriage Return (0x0D)
➢
\n – Line Feed (0x0A)
➢
For example:
"Serial no \#'s signal is \s%" will send "Serial no 100641-12345's signal is 75%"
© Polygon Technologies. All rights reserved
together with their descriptions:
(case sensitive)
Page 28
Need help?
Do you have a question about the Micro Commander GC0101 and is the answer not in the manual?