EXAMPLE 1

Send an SMS message when the contact connected to digital input 1 closes and at the same time switch on an acoustic alarm connected to output 4.


I1 DIGITAL INPUT 1

$I12=1 INPUT 1 STATUS = 1





AT+SMS=+391234,"Door open alarm"

out4=1,20




trigger event is the change of state of digital input 1.

The first condition to check is that the digital input 1 is in the logical state 1, it means closed.

The first action contains the command that sends an SMS message to the number +391 with the text "Door open alarm".

The second action contains the command that activates output 4 for 20 seconds.

EXAMPLE 2

Send an email when the door is open for more than 60 seconds but immediately detects closing.

When the door is open the name of the input is changed.


I1 DIGITAL INPUT 1

$I12=0 INPUT 1 STATUS = 0





AT#EMAIL=mark@home.com,"Door open"

I14=0

I11=Door.OPEN



trigger event is the change of state of digital input 1.

The first condition to check is that the digital input 1 is in the logical state 0, it means the door is open for 60 seconds (set with parameter I14).

The first action contains the command that sends an EMAIL to the address mark@home.com with the text "Door open" as Subject.

he second action contains the command that sets the activation time of input 1 to 0 to immediately detect the next action which will be the closing of the door.

The third action contains the command that sets Door.OPEN as the name for digital input 1. No spaces are allowed so we use a period as a separator.


I1 DIGITAL INPUT 1

$I12=1 INPUT 1 STATUS = 1





I14=60

I11=Door.CLOSED




trigger event is the change of state of digital input 1.

The first condition to check is that the digital input 1 is in the logical state 1, it means door closed.

The first action contains the command that sets the activation time of input 1 to 60 seconds to detect the door that remains open for a long time.

The second action contains the command that sets Door.CLOSED as the name for digital input 1. No spaces are allowed so we use a period as a separator.

EXAMPLE 3

Check the usage time of a machine every hour to send a preventive maintenance notice after one year of operation.


SCH**00 SCHEDULED AT **:00

$I33>525600 INPUT 3 RUNNING COUNTER > 525600





AT+SMS=+391234,"Maintenance required"

out2=1

horn=on,10

I33=0


At minute 00 of any hour (**00) the trigger event occurs.

The first condition to check is that the accumulated time with input 3 closed is greater than 525600 minutes (12 months).

The first action contains the command that sends an SMS message to the number +391234 with the text "Maintenance required".

The second action contains the command that activates output 2.

The third action contains the command that activates for 10 seconds the output to which has been assigned the name horn.
As you can see, an output can be recalled both with its standard identification and with the name assigned to it using either 0/1 or on / off.

The fourth action contains the command that resets the counter that contains the accumulated time for input 3.