EXAMPLE 1

Any command sent from a remote device with the AT#WAN command is executed directly, without the need to enter the password.


DWE MESSAGE FROM ACTIVE WAN DEVICE






$S07





trigger event is the receipt of a message from a remote device that is stored as a user.

The first action contains the TAG which retrieves the content of the last message received from WAN devices. If this is a valid command it will be executed.


EXAMPLE 2

Remote control between a device that controls a downstream pump and another that checks the level of an upstream tank which is identified by the webid abc123.

The upstream device receives the contact of an empty tank float at the digital input 1 and the tank full contact at input 2.

The output 1 of the downstream device, identified by the webid def456, controls a pump. This device must have abc123 among the device users and must be in valid (active) period.


I1 DIGITAL INPUT 1

$I12=1 INPUT 1 STATUS = 1

$I22=0 INPUT 2 STATUS = 0




AT#DWAN=def456,start





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 logic state 1, it means empty tank.

The second condition to check is that the digital input 2 is in the logical state 0 (the tank is NOT full). This condition is inserted to ensure that the pump is never started if the tank is full (in the event of a fault that keeps the minimum float contact closed, stopping the pump has priority, to avoid overflows of the tank).

The first action contains the command that sends the text start to the remote device def456.


I2 DIGITAL INPUT 2

$I22=1 INPUT 2 STATUS = 1





AT#DWAN=def456,stop





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

The first condition to check is that the digital input 2 is in the logic state 1, it means tank full.

The first action contains the command that sends the text stop to the remote device def456.


DWE MESSAGE FROM WAN DEVICE

$S05=abc123 LAST WAN SENDER = abc123

$S07=start LAST WAN MESSAGE = start




out1=on





trigger event is the receipt of a message from a remote device stored as an active user.

The first condition to check is that the sender of the message is the abc123 device.

The second condition to check is that the text of the message received is start.

The first action contains the command that activates output 1, starting the pump.


DWE MESSAGE FROM WAN DEVICE

$S05=abc123 LAST WAN SENDER = abc123

$S07=stop LAST WAN MESSAGE = stop




out1=off





trigger event is the receipt of a message from a remote device stored as an active user.

The first condition to check is that the sender of the message is the abc123 device.

The second condition to check is that the text of the message received is stop.

The first action contains the command that deactivates output 1, stopping the pump.