Revision 1.1
WebSwitch™ Users Manual
LOG
The LOG statement causes the device to log data according to the settings specified under the
Logging
setup tab. Note that in order to log, logging must be enabled in the
Logging
setup tab. The format is:
LOG
The EMAIL statement causes the device to send an email. The format is:
EMAIL
...or...
EMAIL relayX
...or...
EMAIL inputX
...or...
EMAIL tempX
The first option (EMAIL) sends an email message to all email addresses listed under the
Network tab
.
The second option (EMAIL relayX, where relay represents the internal relay, and where X represents the
relay number 1 or 2 ) sends an email message identical to the message that is sent when that relay
changes state. The message indicates that the email was caused by the relay, and the message is only
sent to the email addresses specified in the appropriate relay setup page under the
Outlets
tab.
EMAIL relay1
The third option (EMAIL inputX , where X represents the input number 1 or 2) sends an email message
identical to the message that is sent when that input changes state. The message indicates that the
email was caused by that input, and the message is only sent to the email addresses specified in the
appropriate Input setup page under the
Inputs
tab.
EMAIL input1
The fourth option (EMAIL tempX, where X represents the sensor number 1-3) sends an email message
identical to the message that is sent when that sensor's Alarm condition is reached. The message
indicates that the email was caused by the temperature alarm being reached, and the message is only
sent to the email addresses specified in the appropriate sensor setup page under the
Sensors
tab.
EMAIL temp1
END
The END statement ends the main body of code.
END
Xytronix Research & Design, Inc.
100