Crestron SIMPL+ Especificaciones

Busca en linea o descarga Especificaciones para Software Crestron SIMPL+. Crestron SIMPL+ Specifications Manual de usuario

  • Descarga
  • Añadir a mis manuales
  • Imprimir

Indice de contenidos

Pagina 1 - Programming Guide

Crestron SIMPL+ Software Programming Guide

Pagina 2

Software Crestron SIMPL+ #SYMBOL_NAME - Allows the user to specify the name that SIMPL Windows uses for this module. If this directive is left out,

Pagina 3 - Contents

Crestron SIMPL+ Software #DEFINE_CONSTANT VCR_INPUT 3 #DEFINE_CONSTANT DVD_INPUT 4 #DEFINE_CONSTANT VPROJ_OUTPUT 2 PUSH vcr_select { switcher_inpu

Pagina 4 - Software Crestron SIMPL+

Software Crestron SIMPL+ Crestron-Libraries are provided from Crestron and are contained within the Crestron Database. Variable Declarations Variabl

Pagina 5 - Introduction

Crestron SIMPL+ Software variables are also available with the INTEGER and STRING datatype. Integers are 16 bit quantities. For the 2-series contr

Pagina 6 - Quick Start

Software Crestron SIMPL+ User-Defined Functions The term checksum byte is commonly used in serial communications to represent a byte (or bytes) that

Pagina 7

Crestron SIMPL+ Software This example assumes that the camera unit being controlled continues to move in a given direction until a stop command is i

Pagina 8 - Making it Work

Software Crestron SIMPL+ CHANGE output_value PUSH button1, button2 { <statements> } A useful feature of SIMPL+ event functions is that a sing

Pagina 9 - Compiler Directives

Crestron SIMPL+ Software while (1) { <do something forever> // code in here runs // continuously } } This loop runs continuou

Pagina 10 - Software Crestron SIMPL+

Software Crestron SIMPL+ Analog Inputs/Outputs Analog signals are used in SIMPL to accomplish tasks for which digital signals are inadequate. Typica

Pagina 11 - Include Libraries

Crestron SIMPL+ Software SIMPL+ program. The value of any output is the value of the signal as seen by the outside SIMPL program at that instant. Th

Pagina 12 - Variable Declarations

This document was prepared and written by the Technical Documentation department at: Crestron Electronics, Inc. 15 Volvo Drive Rockleigh, NJ 0764

Pagina 13

Software Crestron SIMPL+ The 'if' language construct is described in detail in “Controlling Program Flow: Branching”. Evaluation of TRUE a

Pagina 14 - Event Functions

Crestron SIMPL+ Software When an integer has a value of between 0 and 32767, it is identical whether it is considered signed or unsigned. However, n

Pagina 15

Software Crestron SIMPL+ Examine one more example: INTEGER a, b, c, d; Function Main() { a = 100; b = -4; c = a / b; // c = 0 (100/65532)

Pagina 16 - Function Main

Crestron SIMPL+ Software name, as was done when it was declared. When assigning a value to a string, that value is always assigned starting at the f

Pagina 17 - Input/Output Types

Software Crestron SIMPL+ Notice how the constant parts of the string are entered directly. The interesting thing about the format specification is t

Pagina 18

Crestron SIMPL+ Software The first two examples above define 1D and 2D integer arrays, respectively. The last example looks like it declares a 2D ar

Pagina 19

Software Crestron SIMPL+ Operators, Expressions, and Statements This section deals with the core programming elements in SIMPL+. Operators Operator

Pagina 20 - All About Variables

Crestron SIMPL+ Software Expressions As reading through the later parts of this guide, as well as the latest revision of the SIMPL+ Language Referen

Pagina 21

Software Crestron SIMPL+ Branching” and “Controlling Program Flow: Loops” on pages 24 and 27, respectively. Statements Statements in SIMPL+ consist

Pagina 22

Crestron SIMPL+ Software Expressions EXPRESSION EVALUATES TO a = 3 true if a=3, false otherwiseb*4 - a/3 true as long as the result is non-zero1 alw

Pagina 23

Crestron SIMPL+ Software Contents SIMPL+ 1 Introduction ...

Pagina 24

Software Crestron SIMPL+ today = getDayNum(); // gets the current day of the week if (today = 0) // is today Sunday? { // code to run on Sunda

Pagina 25

Crestron SIMPL+ Software Examine an example using the switch-case construct. Perhaps there is a variable that should hold the number of days in the

Pagina 26 - Operators

Software Crestron SIMPL+ To see an example of the for loop use the situation alluded to above. That is, a need to clear each string element in a str

Pagina 27 - Expressions

Crestron SIMPL+ Software while and do-until Loops The for loop discussed in an earlier section is useful for iterating through code a specific numbe

Pagina 28 - Statements

Software Crestron SIMPL+ this code, the value of this expression determines whether or not the code should be executed again. Here lies the other di

Pagina 29

Crestron SIMPL+ Software programming task that has been predefined and given a name. Many of the examples in previous sections of this document have

Pagina 30

Software Crestron SIMPL+ perform exactly like system functions with the only exception in that they must be defined before they are used. Function D

Pagina 31

Crestron SIMPL+ Software The FUNCTION keyword is used to tell the SIMPL+ compiler that what follows is the definition of a function and not a functi

Pagina 32

Software Crestron SIMPL+ This code causes a compile error, because the function MyUserFunction1 has been called before it has been defined. This can

Pagina 33

Crestron SIMPL+ Software Print("i = %d, j = %d, k = %d\n", i, j, k); Call sillyFunction(); Print("i = %d, j = %d, k = %d\n"

Pagina 34 - Using System Functions

Software Crestron SIMPL+ Wait Events ...

Pagina 35 - User Defined Functions

Software Crestron SIMPL+ localStr = left(var3, 10); } Notice that the function shown above has three arguments, named var1, var2, and var3. var1

Pagina 36 - Function Definitions

Crestron SIMPL+ Software String1 = itoa(int1); position = find(“Artist”,CD_data); int3 = max(int1, int2); For clarity, here are some example stateme

Pagina 37

Software Crestron SIMPL+ Print(“5 raised to the power of 3 = %d\n”,power(5,3)); x = power(y,z); As a second example, we shall build a function which

Pagina 38

Crestron SIMPL+ Software To solve this problem, SIMPL+ has introduced the concept of function libraries. Simply put, a function library is a collect

Pagina 39

Software Crestron SIMPL+ flash card within the control system. The function will return an error code and the program can act accordingly. Other pr

Pagina 40 - Functions That Return Values

Crestron SIMPL+ Software DIGITAL_INPUT readCompactFlashCard; DIGITAL_INPUT writeCompactFlashCard; INTEGER myInt; LONG_INTEGER myLongInt; STRING myS

Pagina 41

Software Crestron SIMPL+ } myStruct struct; PUSH writeCompactFlashCard { SIGNED_INTEGER nFileHandle; INTEGER nNumBytes; StartFileOpe

Pagina 42 - Function Libraries

Crestron SIMPL+ Software PUSH startMe { Print("I’m starting now..."); Delay(500); //this equals 5 seconds Print("and I’m endin

Pagina 43 - Compact Flash Functions

Software Crestron SIMPL+ This syntax defines a wait event to occur at some time in the future, defined by the value of wait_time. While the wait eve

Pagina 44 - Reading and Writing Data

Crestron SIMPL+ Software Pulse(PULSETIME, vproj_on); } Wait (1500, sysOnWait2) // 15 second delay pulse(PULSETIME, vproj_video); } // end of

Pagina 45

Crestron SIMPL+ Software SIMPL+ Introduction What is SIMPL+? SIMPL+ is a language extension to SIMPL Windows. It does not replace SIMPL, but inste

Pagina 46 - Working with Time

Software Crestron SIMPL+ The Serial Send symbol simply generates the static text defined in its parameter field onto the output serial signal whenev

Pagina 47 - Wait Events

Crestron SIMPL+ Software second pass: jukebox_in = "k=My Way, Album=Very Good Yea" third pass: jukebox_in = "rs<CR>" I

Pagina 48

Software Crestron SIMPL+ Notice that a do-until loop was used in the example above. Every time a change event is triggered for the data_in buffer, i

Pagina 49 - Working with Strings

Crestron SIMPL+ Software tempStr = ""; } This example introduces two new system functions, which are extremely useful for string manipul

Pagina 50

Software Crestron SIMPL+ There are two ways to force a task switch: with the ProcessLogic function or the Delay function. To provide an immediate ta

Pagina 51 - Removing Data From Buffers

Crestron SIMPL+ Software To determine if a run-time error is occurring in your program, watch the status of the control system's computer port

Pagina 52

Software Crestron SIMPL+ Software License Agreement This License Agreement (“Agreement”) is a legal contract between you (either an individual or a

Pagina 53 - Forcing a Task Switch

Crestron SIMPL+ Software If You are a business or organization, You agree that upon request from Crestron or its authorized agent, You will within t

Pagina 54 - Debugging

Software Crestron SIMPL+ Return and Warranty Policies Merchandise Returns / Repair Service 1. No merchandise may be returned for credit, exchange,

Pagina 55 - Debugging with Print()

Crestron SIMPL+ Software This page intentionally left blank. Programming Guide – DOC. 5789A

Pagina 56 - Software License Agreement

Software Crestron SIMPL+ Using SIMPL vs. SIMPL+ SIMPL+, while exciting and powerful, does present the programmer with somewhat of a dilemma, namely,

Pagina 57

Crestron Electronics, Inc. Programming Guide – DOC. 5789A 15 Volvo Drive Rockleigh, NJ 07647

Pagina 58 - Return and Warranty Policies

Crestron SIMPL+ Software Start creating a new SIMPL+ program while running SIMPL Windows. Select File | New | New SIMPL+ Module. The SIMPL+ program

Pagina 59

Software Crestron SIMPL+ Function Main { Print( “I am born!”\n ); } This causes the text “I am born” to be sent out the computer port only upon st

Pagina 60

Crestron SIMPL+ Software program by clicking on the compile toolbar button or selecting Project | Convert/Compile. The compile process automatically

Comentarios a estos manuales

Sin comentarios