EXAMPLE 1 |
||
Every hour on working days (excluding Saturdays and Sundays) forces the update to cloud and sends an email with the average and maximum values of the last measurement period for analog input 4. |
||
|
|
SCH**00 SCHEDULED AT **:00 |
|
$D16(12345 WEEKDAY ( 12345 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
AT#CON |
|
|
AT#EMAIL=mark@home.com,"$A41: $A42 ($A44)$A46" |
|
|
|
|
|
|
|
|
|
|
trigger event occurs every hour at minute 00 (**00) . The first condition checked is that the current day is included among those indicated 12345, i.e. from Monday to Friday. The first action contains the command that forces the upload of all changed parameters to cloud. The second action contains the command that sends an EMAIL to the address mark@home.com with the subject: |
EXAMPLE 2 |
||
At the end of each measurement period, suppose set to 60 minutes (i.e. 1 hour), store the average value measured by analog input 3 in a file. |
||
|
|
A3 ANALOG INPUT 3 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
AT#AFILE=S:LOGS/$A31.txt,T,"$D15: $A32 $A36" |
|
|
|
|
|
|
|
|
|
|
|
|
|
trigger event is the end of the analog input 3 measurement period. The first action contains the command that appends to the Current.txt file ($A31 that is the name assigned to analog input 3) in the LOGS folder of the S: (SD card) a line containing: |