Crestron
CEN-COM
Ethernet
RS-232/422
COM
Module
be found in the Crestron SDK documentation and example files. Be sure to enter the
CEN-COM IP address for the IP parameter of this component.
The ActiveCNX control can be thought of as a "Virtual Communication Port" or
"e-control PC Interface
symbol in SIMPL™ Windows
. In the case of the CEN-
COM, it sends and receives serial data. The signals map directly to the device instead
of signal number inputs to the SIMPL program. To send a string to COM A use join
1, and for COM B use join 2. For example, call the method SendSerial( 2, "TEST")
to send the string "TEST" to COM B. When strings are received in the CEN-COM
device the OnSerial( channel, value ) event is fired. To get and set the components
properties, right click the ActiveCNX icon and select
Properties
. The “Property
Pages” window appears. It permits the programmer to set initial values. Be sure to
check the checkbox, Dynamically add entry to IP table. Refer to the Creston
e-control SDK for additional documentation and examples.
SIMPL™ Windows
Programming
SIMPL (Symbol Intensive Master Programming Language) is an easy-to-use
programming language that is completely integrated and compatible with all
Crestron system hardware. The objects that are used in SIMPL are called symbols.
SIMPL Windows offers drag and drop functionality in a familiar Windows®
environment.
SIMPL Windows is Crestron Electronics' software for programming Crestron control
systems. It provides a well-designed graphical environment with a number of
workspaces (i.e., windows) in which a programmer can select, configure, program,
test, and monitor a Crestron control system.
The next two subsections describe a sample SIMPL Windows program that utilizes a
CEN-COM module. The first subsection details how the sample program works with
a textual description and block diagram. The second subsection provides a broad
description of how to actually create the SIMPL Windows program.
NOTE:
The following description assumes that the reader has knowledge of SIMPL
Windows. If not, please refer to the extensive help information provided with the
software.
NOTE:
There is no need to recreate the sample SIMPL Windows program. A
similar copy of this program is available from Crestron’s ControlCD (version 6.1 and
later) or the Software Downloads page (Examples Library) of the Crestron website
(www.crestron.com). Search for the CEN-COM.SMW project.
How the Program Works
A basic CEN-COM SIMPL program is shown after this paragraph in block diagram
form. The serial driver in the diagram does not use [TX$] or [RX$].
Operations Guide - DOC. 5719
Ethernet RS-232/422 COM Module: CEN-COM
•
13