Software
Crestron
SIMPL+
Using SIMPL vs. SIMPL
+
SIMPL
+
, while exciting and powerful, does present the programmer with somewhat
of a dilemma, namely, when to program in SIMPL and when in SIMPL
+
. The
answer of course is not cut-and-dry, and just about any task can be accomplished
entirely in one language or the other. However, the true power of Crestron
control
system programming is unleashed when the strengths of both environments are
harnessed simultaneously.
First, almost every program to be written will have some elements of SIMPL. Any
time a button is needed to act as a toggle, or it is necessary to interlock a group of
source buttons, it is generally simpler to handle these tasks with SIMPL.
SIMPL
+
is advantageous for more complex and algorithmic tasks, such as building
complex strings, calculating checksums, or parsing data coming from another device.
In addition, complex decision-making, especially when dealing with time and date, is
generally much easier to handle in SIMPL
+
. Finally, data storage and manipulation
may be better suited to SIMPL
+
than to SIMPL (though many SIMPL programs
have been written to do these chores).
Of course, ultimately the decision as to how to program is up to the individual.
Personal preference certainly comes in to play. With practice, a happy medium can
be found that makes programming both efficient and fun.
What is Needed to Use
SIMPL+
?
SIMPL+ version 2.0 requires a CNX-series control processor and SIMPL Windows
v1.23 or later.
SIMPL+ version 3.0 accompanies SIMPL Windows v2.00 or later, and may be used
to program either a 2-Series control system or a CNX-series control system.
Where Can I Get More Information?
This guide should contain all the information needed to program in SIMPL
+
. For
specific information about the language syntax, refer to the latest revision of the
SIMPL+ Language Reference Guide (Doc. 5797)
.
Quick Start
Writing Your First
SIMPL+
Program: “Hello world!”
The best way to become acquainted with SIMPL
+
is to write a simple program right
off the bat. Although programs can be written in SIMPL
+
, it is important to
understand that all control system “i/o” must be defined directly in SIMPL Windows.
This SIMPL Windows program can be thought of as a “shell” in which the SIMPL
+
modules are contained. This shell consists of hardware definitions at the very least,
but in most cases also consists of raw SIMPL code. SIMPL
+
program(s) appear as
logic symbols in the overall SIMPL program.
Based on the fact that SIMPL
+
programs can exist only inside this wrapper, it is
necessary to create a skeleton SIMPL Windows program before testing the program.
This is covered in a later section (to be supplied). For now, concentrate on writing
the SIMPL
+
code only.
2
•
SIMPL+
Programming Guide – DOC. 5789A