Crestron
e-control Mail SW-MAIL
52
••
Demos
Installation & Reference Guide — Doc. 5798
-- end of file --
Demos
Four demonstrations on the use of
e-control Mail
are included with the package.
Each demo is described along with an accompanying “bird’s eye view” diagram of
its SIMPL program. All demos use the following three files:
•
A VT Pro-e source file (
demomail.vtp
file), containing pages for all four
demos, ready to be compiled LC-3000 touchpanel.
•
A compiled touchscreen file (
demomail.hex
file); dervied from the above;
ready to upload to an LC-3000, CT-3000, CT-3500, or VT-3500.
•
A Configuration file (
demomail.ini
) configures the server for all four
demos.
In addition, each individual demo has a folder containing the following files:
•
A SIMPL Windows source file (
demo?.smw
file), ready to be compiled for a
CNMSX-PRO control system (“PRO” = front panel with LCD display) with a
CNXENET (Ethernet) card in the DPA slot.
•
A compiled control system program file which uses serial RS-232
communications (
demo?COM.bin
file); derived from the above by
commenting off the Virtual COM port; ready to upload to such a control system.
•
A compiled control system program file which uses EtherNet communications
(
demo?TCP.bin
file); derived from the above by commenting off the serial
COM port; ready to upload to such a control system.
The supplied SIMPL and VT Pro-e files may require conversion prior to compiling
and uploading if your target touchpanel is not one of those mentioned above.
Conversion is a simple matter using VT Pro-e.
Before attempting to run the demos, use the
File | Configuration File…
command
to make sure the server is using the configuration file named above.
Demo 1: The Shortcut Signals
This example demonstrates use of the digital “shortcut” signals. A single pulse of
one of these signals sends a predetermined message to a predetermined recipient.
In this example, the control system senses a problem with one of the devices it
controls. A typical problem might be a projector bulb failure. The control system
reacts to the problem (in this case, a closure on pins 1 or 2 of the digital I/O device)
by producing a digital pulse which is routed to one of the shortcut signals on the
Send e-Mail
symbol. Refer to the block diagram on the next page for an overall
graphical representation of this first example:
Notice that the “bulb failure” can be also be reported by depressing one of the
function buttons on the CNMSX-PRO front panel. The digital signal assertion
triggers the control system to send a
Shortcut
n
signal via a
Send e-Mail
or an
Intersystem Communcation
symbol to the
tx
stream and out the COM port (or
LAN port, if using TCP/IP) to the server.
The server receives the signal and responds by sending a predetermined (constant)
e-mail message to a predetermined (constant) recipient. The origin of the message
and recipient are provided from a lookup performed on the
eMail_Msg
table (using
the first record with
ID
= the shortcut number), and, indirectly, the
eMail_Addr