Crestron
e-control Mail SW-MAIL
53
••
Demos
Installation & Reference Guide — Doc. 5798
table (using the first record with
ID
= the value of the message record’s
defaultAddr
field).
Demo 1 Block Diagram
N
OTE
:
This block diagram shows the use of a virtual COM port for TCP/IP communications with
the server. For serial communications using RS-232, the virtual COM port is simply replaced with a
real COM port.
Demo 1 SIMPL Windows Program
Building this simplest example is trivial. Only two items need to be added to the
control system in the Configuration Manager workspace in SIMPL Windows. From
the
Control Systems
folder in the
Device Library
select CNMSX-PRO; and also add
a two-way serial driver to a COM port on the CNXCOM-6 board from the
Serial Drivers (General)
folder (or add a Virtual Communication Port from the
Ethernet Control Modules
folder and a driver as above).
In the Programming Manager, the other two blocks are added to the system from the
Logic Symbols
folder in the
Symbol Library:
Interlock
is selected from the
Memory
sub-folder and
Send e-Mail
is selected from the
System Control
sub-folder.
Demo 2: The LookupMsg and LookupRcpt Signals
This example demonstrates use of analog “lookup” signals. These signals choose
messages and recipients based on the signal values. An additional signal,
SendNow
,
is required to actually send the constructed message.
A “lookup” requires the program to search for various information in a database
table based on a search key (a record ID number). Demo 2 illustrates the use of the
lookup signals available as inputs to the supplied
Send e-Mail
symbol. Refer to the
block diagram after this paragraph for an overall graphical representation of this