EasyManua.ls Logo

Crestron SIMPL+ - Example 2: 8-Level Switch on a Pesa Switcher

Crestron SIMPL+
374 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Software Crestron SIMPL+
®
280 z SIMPL+
®
Language Reference Guide - DOC. 5797G
Example 2: 8-Level switch on a Pesa switcher
#SYMBOL_NAME “Pesa Switcher - 8 Levels”
#HINT “Creates Pesa CPU-Link H command for Switching”
/
************************************************************
******
DIGITAL, ANALOG and SERIAL INPUTS and OUTPUTS
************************************************************
******/
// Digital trigger from the SIMPL program - this sends the
command
// string out.
DIGITAL_INPUT TRIG;
// Analogs for the output and 8 levels of the switcher from the
// SIMPL program.
ANALOG_INPUT
OUTPUT,LEVEL1,LEVEL2,LEVEL3,LEVEL4,LEVEL5,LEVEL6,LEVEL7,LEVE
L8;
// The output string that is to be sent from the SIMPL+ program
to
// the SIMPL program to the switcher.
STRING_OUTPUT COMMAND$;
/
************************************************************
Global Variables
(Uncomment and declare global variables as needed)
************************************************************
*/
INTEGER I, COUNT, CKSLOW, CKSHI;
STRING PESABUF[30];
/
************************************************************
Event Handlers
(Uncomment and declare additional event handlers as needed)
************************************************************
*/
PUSH TRIG
{
// Format command which stores the switcher command in a

Table of Contents