![Crestron CNXCOM-2 Скачать руководство пользователя страница 9](http://html.mh-extra.com/html/crestron/cnxcom-2/cnxcom-2_operation-manual_2683648009.webp)
CRESTRON
Operations Guide - DOC. 8123
CNX RS-232/422/485 Expansion Card: CNXCOM-2
••
5
How the Program Works
A basic CNXCOM-2 SIMPL program is shown on the next page in block diagram
form. For this example, the CNXCOM-2 occupies slot #1 of a CNMSX-PRO.
Assume that a touchpanel is used to control the state of Zone 1 in a lighting system.
Zone 1 can either be turned ON or OFF or can be ramped UP or DOWN.
Block Diagram of CNXCOM-2
To turn the lights on, 9 bytes are sent (\x02Z-01-ON\x03). When join #1 on the
touchpanel is pressed, the signal "Lights-Z1-On" goes high. When this signal goes
high, the data is sent out the port to the lighting system. A similar approach is taken
for "Lights-Z1-Off". These buttons have true feedback from the lighting system
(i.e., when the 16 bytes (\x02Z-01-STATUS-ON\x03) enter the port, the digital
signal "Lights-Z1-On-F" goes high and drives the feedback of join #1 high). In turn,
this lights the feedback for the OFF button on the panel.
In order to ramp the zone, the appropriate command is sent to start the ramping
operation when the UP or DOWN button is pressed. When either button is released,
the output of the NOR gate goes high. This, in turn, sends the STOP command to
the lighting system, telling it to halt the ramping operation in progress.
It is important to note that the user does not have to define the [TX$] or [RX$] for
the port. If strings are being triggered and matched only in the port, the string
assignment is taken care of by the compiler. If the TX$ is defined, it can be driven
by other string creation symbols (i.e., an Analog to Serial or speed key: TXA). If
RX$ is defined, it can be routed to other string processing symbols (i.e. Serial
Gather or speed key: GATHER). Another typical usage would be if a macro were to
drive the port, then the TX$ and RX$ would come from/go to the macro definition.
Refer to the help file in SIMPL Windows. From the Contents search on Symbol
Card File or from the Index search on the names of the symbols for details.
How to Create the Program
Use the Configuration Manager workspace in SIMPL Windows to select and
configure all the devices that need to be included into the system. For this example,
add a CNXCOM-2 to slot #1 of the CNMSX-PRO. Also add a CT-3500 to the
system; its NET ID must be set to 03, shown on the next page.
NOTE:
SIMPL Windows v1.20.04 or later is required to program the CNMSX-
PRO with a CNXCOM-2 card. If using an earlier version of SIMPL Windows,
Crestron recommends a SIMPL Windows and operating system upgrade. The latest