Anda di halaman 1dari 184

CNX CookBook 1.

40 2001 David Webster

Crestron CNX Series CookBook


For

CNMSX-AV/PRO
Version 1.40 Supplied by

RGB Communications Ltd.


Crestrons UK Distributor Tel: 01488 73366 Fax: 01488 73377 E-Mail: info@rgbcomms.co.uk Web Site: www.rgbcomms.co.uk 2001 David Webster

Page 1

CNX CookBook 1.40 2001 David Webster

CNX LEVEL 1 (BASIC) TRAINING CONTENTS........................................................................ 7 CNX LEVEL 2 (INTERMEDIATE) TRAINING CONTENTS ..................................................... 8 CNX LEVEL 3 (ADVANCED) TRAINING CONTENTS.............................................................. 9 INTRODUCTION .......................................................................................................................... 10 COPYRIGHT .................................................................................................................................. 11 SOFTWARE VERSIONS .................................................................................................................... 11 PC MINIMUM REQUIREMENTS ....................................................................................................... 11 SELECTING DEVICES FROM THE DATABASES................................................................... 12 GENERAL ..................................................................................................................................... 12 CRESTRON DATABASE .................................................................................................................. 12 Popular Devices...................................................................................................................... 13 USER DATABASE........................................................................................................................... 14 RC5 or Odd/Even IR codes................................................................................................... 14 Sony Control-S drivers............................................................................................................ 15 CRESTRON CABLE DATABASE ....................................................................................................... 16 PROGRAMMING & NETWORK CABLES................................................................................ 17 GENERAL ..................................................................................................................................... 17 CNX PROGRAMMING.................................................................................................................... 17 HANDSET RF ID PROGRAMMING ................................................................................................... 18 CNX TO CN SERIES NETWORK CABLES ........................................................................................ 19 CNX TO ST SERIES NETWORK CABLES ......................................................................................... 19 ST-CP TO SONY CTRL-S CABLE .................................................................................................. 20 RS232 CONTROL CABLES ............................................................................................................. 21 9w Female to 9w Female Type 1: (Part number RGBCN-9F1) ............................................ 22 9w Female to 9w Female Type 2: (Part number RGBCN-9F2) ............................................ 22 9w Female to 9w Male Type 1: (Part number RGBCN-9M1)............................................... 23 9w Female to 9w Male Type 2: (Part number RGBCN-9M2)............................................... 23 9w Female to 25w Female Type 1: (Part number RGBCN-25F1) ........................................ 24 9w Female to 25w Female Type 2: (Part number RGBCN-25F2) ........................................ 24 9w Female to 25w Male Type 1: (Part number RGBCN-25M1)........................................... 25 9w Female to 25w Male Type 2: (Part number RGBCN-25M2)........................................... 25 ST-CP to ST-COM conversion................................................................................................. 26 CHECKING RS232/422/485 OUTPUT SENT BY THE CNMSX ............................................................ 27 CNMSX-Pro............................................................................................................................ 27 CNMSX-AV............................................................................................................................. 27 TOUCH PANEL LAYOUT TIPS.................................................................................................. 28 JOIN NUMBER NOTES ............................................................................................................... 29 RECOMMENDED NUMBERING......................................................................................................... 29 ANALOGUE JOIN NUMBERS............................................................................................................ 29 RESERVED JOIN NUMBERS ............................................................................................................. 30 ST1550 series.......................................................................................................................... 30 SIMPL WINDOWS PROGRAM EXAMPLES............................................................................. 32 CNX AUTOMATION THE STS WAY ................................................................................................ 32 Button Presses ........................................................................................................................ 32 Stepper.................................................................................................................................... 32

Page 2

CNX CookBook 1.40 2001 David Webster


Tri-State Logic........................................................................................................................ 33 PAGE FLIPS ................................................................................................................................... 34 Password Protected Pages ...................................................................................................... 34 Touch Panel Tracking ............................................................................................................. 35 SIMPL COMPILER NOTES......................................................................................................... 36 IMPROVING PROGRAM COMPILATION LEGIBILITY ........................................................................... 36 VIEWPORT NOTES ..................................................................................................................... 37 IMPROVING LEGIBILITY ................................................................................................................. 37 RS232 DEVICE CONTROL WITH VIEWPORT ..................................................................................... 38 TEST MANAGER NOTES............................................................................................................ 39 DISPLAYING SERIAL STRING VALUES ............................................................................................. 39 DISPLAYING ANALOGUE VALUES ................................................................................................... 39 COMMENTING OUT SYMBOLS ........................................................................................................ 40 PARAMETER NOTES .................................................................................................................. 40 CREATING USER MACRO NOTES ........................................................................................... 41 CAUTION WHEN REUSING MACROS ................................................................................................. 41 USING CRESTRON AND USER MACROS ................................................................................ 42 DEFAULT LOGIC SUBSYSTEMS (RED FOLDER) NOTES .................................................... 42 SUBSYSTEMS FOR CRESTRON CUSTOM SERIAL DRIVERS ................................................................. 43 USING SERIAL PORTS................................................................................................................ 44 CNX COM PORT WIRING.............................................................................................................. 44 IR/SERIAL PORT WIRING ................................................................................................................ 44 SERIAL PORT PROGRAMMING ......................................................................................................... 44 NON VOLATILE MEMORY NOTES.......................................................................................... 46 SAVE OR LOAD NVRAM DATA ..................................................................................................... 46 POP-UP SUB-PAGES .................................................................................................................... 47 DESCRIPTION ................................................................................................................................ 47 SUB-PAGE .................................................................................................................................... 47 MAIN PAGE .................................................................................................................................. 47 Sub-pages on one-way touch panels ........................................................................................ 48 SIMPLE CARD INDEX LAYOUT ............................................................................................... 49 DESCRIPTION ................................................................................................................................ 49 MAIN PAGE .................................................................................................................................. 49 SUB-PAGES................................................................................................................................... 49 OVERLAYS ................................................................................................................................... 49 POP-UPS ....................................................................................................................................... 50 ANIMATION NOTES ................................................................................................................... 51 PASSWORD NOTES ..................................................................................................................... 52 TWO-WAY TOUCH PANELS ............................................................................................................ 52 ONE-WAY TOUCH PANELS ............................................................................................................. 53 INDIRECT TEXT NOTES ............................................................................................................ 54

Page 3

CNX CookBook 1.40 2001 David Webster


INSTALLING NEW IR DRIVERS IN THE USER DATABASE ................................................ 55 MODIFY IR DRIVERS IN THE USER DATABASE .................................................................. 56 PROBLEM ..................................................................................................................................... 56 USING DEAL FOR WINDOWS ........................................................................................................ 56 Example 1............................................................................................................................... 56 Example 2............................................................................................................................... 57 USING THE CNX-LIR INFRA-RED LEARNER .................................................................................... 57 MODIFY LOGIC DRIVERS IN THE CRESTRON DATABASE............................................... 58 Meridian ................................................................................................................................. 58 Kodak Ektapro........................................................................................................................ 59 COPYING SIMPL WINDOWS PROGRAMS.............................................................................. 60 FROM HARD DISK TO FLOPPY DISK .................................................................................................. 60 FROM FLOPPY DISK TO HARD DISK .................................................................................................. 60 SIMPL Windows version 1.22 or older. ................................................................................... 60 STORING SOURCE CODE IN A CONTROL PROCESSOR..................................................... 62 SEND FILE TO MAILBOX ................................................................................................................ 62 GET FILE FROM MAILBOX ............................................................................................................. 62 UPDATING CONTROL PROCESSOR FIRMWARE................................................................. 63 CNMS & CNRACK .................................................................................................................... 63 ST-CP ......................................................................................................................................... 63 CNMSX-AV, CNMSX-PRO & CNRACKX.................................................................................. 64 UPDATING TOUCH PANEL FIRMWARE ................................................................................ 64 CNMSX CONTROL WITH A CNRFHT30 30 BUTTON HANDSET: ....................................... 65 DESCRIPTION ................................................................................................................................ 65 CNRFGWA ................................................................................................................................. 65 SETTING THE HANDSET RF ID....................................................................................................... 65 Handset RF ID codes .............................................................................................................. 66 Checking the Handset or Panel RF ID .................................................................................... 66 RF FREQUENCY ............................................................................................................................ 67 CNMSX CONTROL WITH ST-SERIES 1-WAY WIRELESS TOUCH PANELS: ................... 68 CNMSX CONTROL WITH STX-SERIES 2-WAY WIRELESS TOUCH PANELS:................. 70 INTERSYSTEM COMMUNICATIONS: ..................................................................................... 71 SERIAL CONNECTIONS ................................................................................................................... 71 ST-CNX Intersystem RS232 Cable........................................................................................... 71 CNX-CNX Intersystem RS232 Cable ....................................................................................... 72 CNX-CNX Intersystem RS422 Cable ....................................................................................... 72 E-CONTROL CONNECTIONS ........................................................................................................... 72 CONVERTING A PROJECT TO A DIFFERENT PANEL TYPE.............................................. 73 INTRODUCTION ............................................................................................................................. 73 Convert Project Properties...................................................................................................... 73 CONVERTING OLD PROJECTS TO VTPRO-E 2.2 OR HIGHER .......................................... 74 FROM VTW.................................................................................................................................. 74 FROM VTPRO OR VTPRO-E 2.1.9 OR OLDER .................................................................................. 74

Page 4

CNX CookBook 1.40 2001 David Webster


PRINTING PANEL LAYOUTS .................................................................................................... 75 WHY PRINT? ................................................................................................................................ 75 Print One Print All.................................................................................................................. 75 Printing more than one page per sheet.................................................................................... 76 Project Document ................................................................................................................... 76 USING A CNECI-4A, ST-PC, ST-IO OR SP-RY RELAY BOX.................................................. 77 CNECI-4A .................................................................................................................................. 77 ST-PC ......................................................................................................................................... 78 ST-IO .......................................................................................................................................... 79 SP-RY ......................................................................................................................................... 80 RELAY WIRING EXAMPLES ............................................................................................................ 81 Electric Motors - common ground control with normally open relays...................................... 81 Electric Motors - common switching control with normally open relays .................................. 82 Electric Motors - voltage reversal control with normally open relays...................................... 82 Electric Motors - common ground control with c/o relays & manual control........................... 83 Electric Motors - common switching control with c/o relays & manual control ....................... 84 Electric Motors - voltage reversal control with changeover relays .......................................... 85 Light Dimmer - contact closure control of a single room......................................................... 86 Light Dimmer - contact closure control of a partitioned room................................................. 87 35mm Slide Projector - contact closure control....................................................................... 88 USING A ST-VC/CNXVTC-3 OR IR CONTROLLED AUDIO AMPLIFIER............................ 89 ST-VC OR CNX-VTC .................................................................................................................. 90 Crestron Database Driver....................................................................................................... 90 Audio Wiring........................................................................................................................... 91 IR CONTROLLED AMPLIFIERS ........................................................................................................ 92 TROUBLESHOOTING................................................................................................................. 93 COMMUNICATION PROBLEMS ........................................................................................................ 93 PC to CNX:............................................................................................................................. 93 PC to Touch Panel:................................................................................................................. 93 Programming Cables .............................................................................................................. 93 UPLOAD PROBLEMS ...................................................................................................................... 93 RF PROBLEMS .............................................................................................................................. 94 BUTTONS NOT WORKING .............................................................................................................. 94 IR DEVICE NOT WORKING ............................................................................................................ 94 RS232/422/485 DEVICE NOT WORKING ........................................................................................ 95 NETWORK DEVICE NOT WORKING................................................................................................. 96 CALIBRATION PROBLEMS .............................................................................................................. 96 DIGITAL INPUT/OUTPUT PROBLEMS ............................................................................................... 97 IR/SERIAL PROBLEMS ................................................................................................................... 97 UNSPECIFIC PROBLEMS ................................................................................................................. 97 SOFTWARE INSTALLATION PROBLEMS............................................................................................ 99 TOUCH PANEL NICAD BATTERIES NOT CHARGING.......................................................................... 99 ST1500 and STX Series ........................................................................................................... 99 ST1550 Series ......................................................................................................................... 99 CNX-LIR PROBLEMS ................................................................................................................. 100 Not communicating ............................................................................................................... 100 Not learning.......................................................................................................................... 100 Compiler Errors.................................................................................................................... 100 DATABASE PROBLEMS................................................................................................................. 101 CresDB ................................................................................................................................. 101 UserDB................................................................................................................................. 101

Page 5

CNX CookBook 1.40 2001 David Webster


APPENDIX A: CUSTOM SERIAL DRIVERS ........................................................................... 102 I NEED MORE THAN 20 CUSTOM SERIAL DRIVERS ......................................................................... 104 FAROUDJA DVP2200 VIDEO PROCESSOR ..................................................................................... 105 SELECO QUADSCAN VIDEO PROCESSOR ....................................................................................... 108 EXTRON MATRIX 50 OR CROSSPOINT SWITCHERS ........................................................................ 110 SONY PFM-500 PLASMA MONITOR ............................................................................................. 116 LINN AV5103 ............................................................................................................................ 119 LEXICON MC1............................................................................................................................ 123 MERIDIAN 800 SERIES ................................................................................................................. 126 PIONEER PLASMA MONITOR ........................................................................................................ 133 EXTRON SYSTEM 5CR SWITCHER ................................................................................................. 135 EPSON 5000, 7000 OR 8000 SERIES LCD PROJECTORS.................................................................. 138 SHARP XG-XV/1E OR XG-SV/1E LCD PROJECTOR .................................................................... 141 SANYO PLC 9905, 8800/8805, 5600/5605 LCD PROJECTOR........................................................ 143 HITACHI CPL850 LCD PROJECTOR ............................................................................................. 145 NEC MT800 TO 1030 LCD PROJECTOR ...................................................................................... 147 NEC MT1040/1045 LCD PROJECTOR......................................................................................... 149 NEC 42MP1 PLASMA MONITOR ................................................................................................. 151 KODAK EKTAPRO SERIES 35MM SLIDE PROJECTOR ........................................................................ 153 PANASONIC LCD PROJECTOR WITH RS232 INTERFACE ................................................................. 158 PANASONIC VCR WITH RS232 INTERFACE .................................................................................. 160 SONY UVW-1200/1400 WITH RS232 INTERFACE ........................................................................ 162 FUJITSU 42 PLASMA MONITOR ................................................................................................... 164 APPENDIX B: CRESTRON TRANSPORT FONT .................................................................... 166 APPENDIX C: POWERPOINT CONTROL .............................................................................. 167 CN-MKI.................................................................................................................................... 167 Keyboard .............................................................................................................................. 167 Mouse ................................................................................................................................... 168 APPENDIX D: WORKING WITH RC5 INFRA-RED CODES................................................. 169 APPENDIX E: ASCII CODES 0 TO 127 .................................................................................... 170 APPENDIX F: LUTRON GRAFIK EYE & PRO-AV CONTROL............................................ 171 LUTRON GRX-RS232, LUTRON GRX-PRG OR LUTRON PRO-AV................................................ 171 CRESTRON ST-LT ...................................................................................................................... 171 CONTROL UNIT SETUP ................................................................................................................ 172 PRESET SCENE SETUP.................................................................................................................. 172 WALL BUTTON PANEL SETUP ...................................................................................................... 173 LUTRON PROGRAMMING ............................................................................................................. 174 Crestron Database ................................................................................................................ 175 User Module ......................................................................................................................... 175 LUTRON IR CONTROL ................................................................................................................. 176 APPENDIX G: SOFTWARE LICENSES ................................................................................... 177 CNX GATEWAY ......................................................................................................................... 177 VISIONTOOLS PRO-E ................................................................................................................... 179 INDEX .......................................................................................................................................... 182

Page 6

CNX CookBook 1.40 2001 David Webster

CNX Level 1 (Basic) Training Contents


Knowledge of simple electrical circuits (buttons, relays etc) and experience of using Microsoft Windows applications and filing e.g. folders/directories are pre-requisites for this 1-day introduction to programming course. 1) Control Processor Hardware Overview Control Processor Input/Output capabilities CNMSX-PRO LCD Front Panel 2) Getting Started Installing SIMPL Windows software Configuring the application Online Help and Tutorials 3) Touch Panel Overview Touch Panel Setup - Colour, Greyscale & Video 4) Creating Touch Panel Layouts Drawing Object types Object Visual Properties Compiling and Uploading Page flips Reserved Join Numbers 5) Configuring a Control Processor Using the Crestron Database Using the User Database Infra-red, RS232 and Relay network devices Setting network IDs Default logic drivers 6) Creating a Control Processor Program Symbol Library Program Logic Press groups Stepper sequences Compiling and Uploading 7) Test Manager Digital signal monitoring 8) File Management Copying Programs 9) Practical Work Time permitting Page 7

CNX CookBook 1.40 2001 David Webster

CNX Level 2 (Intermediate) Training Contents


This 1-day course is intended to extend the knowledge gained from the Level 1 CNX Training. Knowledge of logic gates will be useful and students are expected to have written some basic level CNX programs prior to attending. 1 Advanced Panel Features Button Graphic Images Sub-pages Pop-ups Analogue objects Indirect Text Animation Advanced Programming Conditional logic Analogue and Serial signals Creating RS232 drivers CNMSX-PRO Front panel LCD programming. Wireless Devices 1 way RF touch panel and receiver 2 way RF touch panel and receiver Handset Mouse Crestron Modules/Macros Using Modules/Macros Cresnet accessories - including Volume Control Digital/Analogue Inputs AC Current Sensor Infra-red Drivers Using the Infra-red Learner Adding IR driver files Practical Work Time permitting

Page 8

CNX CookBook 1.40 2001 David Webster

CNX Level 3 (Advanced) Training Contents


This 1-day course is intended to extend the knowledge gained from the Level 2 CNX Training. Students are expected to have written some intermediate level CNX programs prior to attending. 8 Advanced RS232/422/485 Programming Handshaking Pacing Intersystem communications Advanced String Programming Constants Variables Manipulation String to Analogue conversion

10 Advanced Analogue Programming Inputs and Outputs Constants Variables Manipulation Analogue to String conversion 11 Writing User Macros Argument Definitions Parameters Logic Writing Help files Use 12 Advanced Touch Panel Features Sound Manager Video Display Data Display 13 Practical Work Time permitting

Page 9

CNX CookBook 1.40 2001 David Webster

Introduction
This CNX CookBook is a collection of information that programmers and installers of the Crestron CNMSX-Pro, CNMSX-AV and all other Crestron control processors may find useful. It is the result of training many people to use SIMPL Windows and VisionTools Pro-e software and answering the many and varied technical support questions that have arisen since the launch of the products. As a consequence it is likely that if you encounter a problem when working with the CNX series that you will find an answer somewhere inside. Start your search with the Table of Contents or the Index. If you cannot find what you need, or if what you find is not a complete or accurate answer, I apologize in advance and urge you to let me know so that others can benefit from your experience in a future edition. Please be aware that Crestrons software is constantly improving and it is therefore possible that some information in the CNX CookBook may become out of date with the most recent software releases. I strongly urge programmers to regularly visit the Crestron web site for the most up to date software, libraries, firmware, databases, macros, examples, manuals, etc. Go to www.crestron.com. I hope that you will find some of the hints, tips and recipes to your liking! Good luck, David Webster

Page 10

CNX CookBook 1.40 2001 David Webster Copyright This book is copyrighted 2001 by David Webster. All trade names and trademarks that are mentioned are acknowledged but are not intended to convey any endorsement. Software versions The details in this CookBook relate to Crestron Database version 14.3.2, VisionTools Pro-e version 2.2.3.5, DEAL 2.07 and SIMPL Windows version 1.52.01 with Symbol Library version 110 and Device Library version 110. PC Minimum Requirements Crestron recommends a PC with a minimum of Pentium 100MHz (300MHz for VTPro-e used for e-control browser projects), 32MB RAM and SVGA (800x600) display. A higher specification with a greater display resolution is preferable. A PC with a dual-head graphics card and two monitors is particularly useful as it allows SIMPL Windows and VTPro-e (or multiple instances of SIMPL Windows) to run side by side.

Page 11

CNX CookBook 1.40 2001 David Webster

Selecting Devices from the Databases


General There are two user device libraries - the Crestron Database and the User Database. Devices in the Creston Database may be infra-red, wired serial, RS232/422/485 or Cresnet types and may include logic drivers that can take care of any special programming needs. Devices in the User Database are only infra-red types. (Or wired serial, such as Control-S - but not RS232). There are no dedicated logic drivers, as found in the Crestron database, but they may make use of the built in general purpose logic drivers for power sensing and RC5 odd/even IR codes. Always choose from the Crestron Database if possible to benefit from the extra features that any supplied logic drivers may have.

Crestron Database When selecting a device from the Crestron Database remember that some European devices are marketed in America under different brand names and model numbers and so may not be listed. For example there are no Sanyo VCR types listed because they are sold in the USA under the Fisher brand name. In general most Japanese branded VCRs use the same basic IR codes for all their recent models. So typically most Sony drivers will work with most Sony models for basic transport functions. Similarly for JVC and Panasonic. Some VCRs have two or more code variations such as VTR 1 or VTR 2 so check if the device is set to match the driver. European manufactured products frequently use RC5 odd/even types of IR codes. In such cases try Philips, Marantz and Pace drivers for basic functions. Audio amplifiers are not a listed Type of equipment because in the USA combined tuner-amplifiers, as found in the Receiver type, are more common. Also try looking at Processors or Receivers for AV amplifiers with surround sound capabilities. Similarly V-OHP or Visualisers will be listed as Document Cameras For a complete alphabetic list of all the device drivers available use WORDPAD to inspect the CRESTRON.TXT file located in the CRESDB folder. For the latest revision information view the DBNOTES.TXT file as well. Only Crestron has the ability to add devices to this database. If you have a device that needs to be included please consult RGB Communications Ltd. for assistance.

Page 12

CNX CookBook 1.40 2001 David Webster Popular Devices The following table shows popular devices that are not specifically found in the Crestron Database. However equivalent drivers, which should work - at least with the basic functions are given. Device All JVC consumer VCR All Panasonic consumer VCR All Sony Consumer VCR Cresdb driver name JVC [TYPE A] Panasonic MULTI-STANDARD Sony VTR1-SETTING Sony VTR2-SETTING Sony VTR3-SETTING All current Extron Switchers, e.g. SW6AVMX Older Extron Switchers Extron SYSTEM10+ W/PRJ Input select only. No audio breakaway Obsolete Obsolete No CH+/Notes

Extron MX SERIES Extron SW2-4-6-8 CONTROLLER

Page 13

CNX CookBook 1.40 2001 David Webster User Database Additional IR codes, or wired serial codes (e.g. Sony Control-S), can be added by the user to this database. Either obtain and use the Crestron CNX-LIR learner or arrange for RGB Communications Ltd. to learn a handset for you. The CNX-LIR learner when used with DEAL for Windows software can automatically detect and learn RC5 odd/even IR codes and will create IR drivers with multiple codes per function. Such IR codes will use a built in logic driver automatically. If the IR codes include a single POWER function that toggles the equipments AC mains power on or off, then an optional built-in logic driver can be included in the control processor program to synthesise discreet on and off functions if a Crestron Current Sensor is added to the system. If you intend to use this feature be certain that the IR function name for the power on/off command is entered exactly as POWER. If necessary you can use DEAL to edit function names. See Installing new IR drivers in the User Database RC5 or Odd/Even IR codes This type of IR code uses two IR codes per function that differ by only one bit. This so called toggle bit changes state each time the function is transmitted. This enables the IR receiver in the equipment to determine if the user has pressed the function button twice in succession or if it was a single press with some kind of optical interruption. Some devices may ignore the toggle bit even though the handset uses it. For example a PLAY function is always received as PLAY by most devices irrespective of the code sent being an odd or even type. However a numeric keypad usually needs both odd and even codes to be sent to work correctly for double same-digit entries. For example 11, 22, 33 etc will fail. Other double-digit entries, for example 12, will probably work OK without using odd/even codes. IR drivers that use RC5 Odd/Even codes in either the Crestron or User database (if learnt using the CNX-LIR multi-codes feature) are automatically linked to a built-in logic driver that provides the necessary toggling. See Appendix D for additional information about working with RC5 codes.

Page 14

CNX CookBook 1.40 2001 David Webster Sony Control-S drivers This type of wired control code is similar to IR control codes and can be used with CNX and ST-CP types of IR ports. CTRL-S drivers do not contain a high frequency IR carrier (typically 40KHz) - only the modulation. The Crestron and User Database use an IR icon for either IR or CTRL-S drivers so check the device name to see if it has a [CTRL-S] suffix. If so then the driver expects to use a wired connection - not an IR probe. If the CTRL-S driver you need is not in the Crestron Database but the IR code is present, or can be learnt, then DEAL has the Utilities>Sony Control-S command that can be used to covert the file. Save the converted file in the UserDB folder and then Rebuild User Database before using it. Some devices may actually accept the original IR driver without conversion. Most Sony projectors use the same basic commands and so many drivers are interchangeable. For example in the Crestron Database the VPH1270/1271 [CTRL-S] driver will probably work OK with any Sony CRT or LCD projector, even to the extent of providing discreet functions for power on/off and input selections despite these appearing as toggle functions on the IR handset supplied with the projector. CTRL-S Cables for CNX Crestron manufacture the CNSP112 adapter cable that is intended to connect a CNX IR/Serial port to a stereo 3.5mm CTRL-S socket. It contains a circuit to limit the voltage sent to the device by the CNX IR/Serial port to the range 0 to 5v. Without this adapter the full +5v to -12v signal would be sent and this could damage the device. CTRL-S Cables for ST-CP The ST-CP IR ports are limited to 0v to +5v internally and can be wired directly. See ST-CP to CTRL-S in the Cables section.

NOTE: When moving a SIMPL Windows program from one PC to another it is very important to ensure that the Databases, Macros, Symbol and Device Libraries on both computers are the same. If the correct files are not installed on the destination PC then the copy of the program will not re-compile without errors. The File>Copy Program command will copy any necessary drivers and macros to a single ZIP file automatically. (Be aware that any warnings about missing IR drivers that have the O suffix in their filename can be safely ignored). The reciprocal command is File>Import Archive and this will automatically copy all the program components inside the ZIP file to the appropriate folders on the destination PC.

Page 15

CNX CookBook 1.40 2001 David Webster To check the Symbol and Device Library version numbers use Help>About. The resulting display also indicates the Crestron Database version. Be aware that these Libraries are sometimes updated independently of the SIMPL Windows program and hence the SIMPL Windows version number is not a guarantee of the database and library versions. When copying touch panel projects from one PC to another it is also important to ensure that the destination computer contains all the fonts that are used by the project. If the correct fonts are not installed then the copy of the project will substitute for them and the panel appearance may be wrong. The latest version of SIMPL Windows, Crestron Database and Symbol/Device Libraries are available for download from the Creston web site www.crestron.com

Crestron Cable Database As of version 4.02 the Crestron ControlCD contains a database of cables for various devices that may be useful. An up to date cable database and cable wring diagrams can be downloaded from the Crestron web site www.crestron.com

Page 16

CNX CookBook 1.40 2001 David Webster

Programming & Network Cables


General The CNX series of control processors have two network connectors. The four-wire screw connector type is compatible with all CN series devices and the RJ11 is compatible with ST series devices. Either may be used as they are wired in parallel. The ST series of products use RJ11 connectors (also known as FCC68) for both Cresnet and serial ports. All RJ11 plugs should be 6-position, 6-contact types. The top view of a connector i.e. latch facing toward the viewer, is shown below:
Pin6 Pin1

Flat Cable

CNX Programming The programming cable is the same as for the older CNMS. PC to CN2, CNX or CNX-LIR 9w D-type Male 2 3 5 7 8 (Part number )

9w D-type Female 2 3 5 7 8

This cable should also be used to connect the CNX-LIR Infra-Red Learner to the PC when learning IR codes with the DEAL for Windows utility program.

Page 17

CNX CookBook 1.40 2001 David Webster For programming the ST1550 series wireless touch panels a temporary network connection to the control processor is needed. For use with the RJ11 NET port the ST Programming cable can be used. CNX to ST1550/1550/C: RJ11 1 2 3 4 5 6 (Part number RGBST-RJ35)

3.5mm Stereo Jack Plug no connection no connection Ring Tip Sleeve no connection

For use with the 4-wire NET port the following cable can be used. CNX to ST1550/1550/C: NET +24V Y Z G (Part number ST-CBL)

3.5mm Stereo Jack Plug no connection Ring Tip Sleeve

Handset RF ID Programming The RF ID of a CNRFHT15/30 handset, or CNWM wireless mouse, is programmed from a PC via a special CNIDC infra-red emitter cable as follows: PC to CNRFHT15/30 or CNWM: CNIRP S G (Part number CNIDC)

9w D-type Female 3 (via 1k ohm resistor) 5

Note: A 1k-ohm resistor in series with the LED is required. To use in SMW select Tools>ViewPort then select Functions>Set Transmitter ID and follow on screen instructions

Page 18

CNX CookBook 1.40 2001 David Webster CNX to CN Series Network Cables The CNX 4-wire NET ports are CN Series compatible. CNX to CN network: (Part number) CNX +24V Y Z G CN +24V Y Z Ground

CNX to ST Series Network Cables The CNX RJ11 NET ports are ST Series compatible. CNX to ST network: (Part number RGBST-RJRJ) RJ11 1 2 3 4 5 6 RJ11 1 2 3 4 5 6

+24V +24V Y Z Ground Ground

Note: ST series network devices are supplied with individual 12V power supplies. It is only necessary to use these PSUs if the network device is connected to a ST-CP control processor. A convenient way of converting ST series RJ11 type connections to CN series NET type connections, or vice verse, can be achieved with the CN-CNB network expansion block. The LC/CT1000 touch panels and CNWM12F/N wall button panels, use miniature four-wire network connectors. This type of connector can be conveniently mixed with both standard size four-wire connectors and RJ11 types of connectors with the CNHBLOCK network expansion block.

Page 19

CNX CookBook 1.40 2001 David Webster ST-CP to Sony CTRL-S Cable The ST-CP IR ports are CTRL-S compatible. See the Sony Control-S Drivers section for more information. Either use the Crestron ST-SP112 adapter cable or wire a cable as follows: ST-CP to CTRL-S: (Part number RGBMO-ST) CTRL-S 3.5mm Stereo Plug Ring Tip Sleeve

ST-CP 3.5mm Mono Plug no connection Tip Sleeve

Note: Do not use a direct connection cable as shown above with the 2 pin IR/Serial port type used on the CNX control processor. Use the Crestron CN-SP112 adapter cable instead to prevent damage to the CTRL-S device input port. Since CTRL-S is intended for wired control over short distances it is possible that long cable runs, e.g. over 5m may be unreliable. Most Sony projectors will switch off their built in IR receiver whenever a CTRL-S jack plug is inserted. If it is desired that the projector should continue to be operated by its own IR handset as well as from the Crestron system, do not use CTRL-S connections. Instead use a CN-IRP or ST-IRP infra-red probe fitted with the IR transparent head shell. See the CNIRP Installation Instructions for more information.

Page 20

CNX CookBook 1.40 2001 David Webster RS232 Control Cables The CNX COM ports are bi-directional RS232/422/485 and are fitted with 9 way Dtype male connectors. To connect to external RS232 controlled devices a suitably wired 9 way D-type female connector will be needed. Because of the multi-function nature of these ports the wiring is not the same as a PC com port and in general fully wired serial cables should not be used. The ST-COM network device has two RS232/422/485 ports and these are identical to the CNX COM ports. Cables described in this section will need to be revised if they are to be used with a ST-CP since its COM ports are fitted with an RJ11 type of connector. See the ST-CP to ST-COM conversion table for details. The maximum cable length for reliable RS232 communication is difficult to predict but is unlikely to be more than 10 metres. Specific programming information and other useful notes for some RS232 controlled devices can be found in the VTPro-e HELP>CRESTRON DATABASE. For some RS232 devices in the Crestron Database it is possible that the serial data file itself (i.e. *.SER) contains information about the required connecting cable. In most cases one of the cables on the following pages will be suitable:

Page 21

CNX CookBook 1.40 2001 David Webster 9w Female to 9w Female Type 1: COM 8 5 2 3 7 9w D-type Female 7 CTS to CRESTRON 5 Ground 3 Data to CRESTRON 2 Data from CRESTRON 8 RTS from CRESTRON (Part number RGBCN-9F1)

Applications: Panasonic LCD projectors. Meridian 500/800, Intersystem Communications. (May also be used with CN-WEDGE if pin 3 is disconnected).

9w Female to 9w Female Type 2: COM 8 5 2 3 7 9w D-type Female 8 CTS to CRESTRON 5 Ground 2 Data to CRESTRON 3 Data from CRESTRON 7 RTS from CRESTRON

(Part number RGBCN-9F2)

Applications: JVC AVP700, Faroudja DV1000.

Page 22

CNX CookBook 1.40 2001 David Webster 9w Female to 9w Male Type 1: COM 7 5 2 3 8 9w D-type Male 7 CTS to CRESTRON 5 Ground 3 Data to CRESTRON 2 Data from CRESTRON 8 RTS from CRESTRON (Part number RGBCN-9M1)

Applications: Elmo TRV35H and Elmo EV450 (Link 4+6+8 in the 9w for either Elmo). 9w Female to 9w Male Type 2: COM 8 5 2 3 7 9w D-type Male 8 CTS to CRESTRON 5 Ground 2 Data to CRESTRON 3 Data from CRESTRON 7 RTS from CRESTRON (Part number RGBCN-9M2)

Applications: Extron System 5cr/8/10+/SW6AVMX, Kodak Ektapro, Barco CRT/LCD.

Page 23

CNX CookBook 1.40 2001 David Webster 9w Female to 25w Female Type 1: COM 8 5 2 3 7 25w D-type Male 4 CTS to CRESTRON 7 Ground 3 Data to CRESTRON 2 Data from CRESTRON 5 RTS from CRESTRON (Part number RGBCN-25F1)

Applications:

9w Female to 25w Female Type 2: COM 8 5 2 3 7 25w D-type Male 5 CTS to CRESTRON 7 Ground 2 Data to CRESTRON 3 Data from CRESTRON 4 RTS from CRESTRON

(Part number RGBCN-25F2)

Applications:

Page 24

CNX CookBook 1.40 2001 David Webster 9w Female to 25w Male Type 1: COM 8 5 2 3 7 25w D-type Male 4 CTS to CRESTRON 7 Ground 3 Data to CRESTRON 2 Data from CRESTRON 5 RTS from CRESTRON (Part number RGBCN-25M1)

Applications: Panasonic VCR (link 4+5, 6+20 in the 25w).

9w Female to 25w Male Type 2: COM 8 5 2 3 7 25w D-type Male 5 CTS to CRESTRON 7 Ground 2 Data to CRESTRON 3 Data from CRESTRON 4 RTS from CRESTRON

(Part number RGBCN-25M2)

Applications: Sony document camera VID-P100, Sony laser disc player LDP-1600.

Page 25

CNX CookBook 1.40 2001 David Webster ST-CP to ST-COM conversion The serial control cables described in this section use 9 way D-type connectors for the CNX-COM serial port. To wire a similar serial control cable for use with the ST-CP RJ11 connector substitute the given pin 9w D-type female pin outs with the new RJ11 pin outs in the following conversion table. RJ11 1 2 3 4 5 6 9w D-type Female 8 CTS to CRESTRON 5 Ground 2 Data to CRESTRON 3 Data from CRESTRON 7 RTS from CRESTRON no connection

Page 26

CNX CookBook 1.40 2001 David Webster Checking RS232/422/485 output sent by the CNMSX CNMSX-Pro The front panel LEDs for COM A through COM F flash briefly to indicate whenever RS232/422/485 data is sent or received. To check what data is actually being sent or received by the COM ports the built in LCD front panel COM Analyser can be used. (This method does not work for data sent with IR/Serial ports). For correct RS485 operation the RTS LED should be lit when the COM port is receiving and off when transmitting. Control of the RTS line in the COM port symbol must be created by the program - it is not automatic. The signal name must be low for transmit and high for receive. Also see the CNMSX-AV section below for details of using the Test Manager to monitor serial data strings. CNMSX-AV If using RS232 then with a suitable cable1 the PC can be connected to the COM or IR/Serial port and the Tools>Viewport utility can be used to display data sent or generate data to be received.
1

The cable for a COM port will cross 2&3 and have 5 to 5. For an IR/Serial port Pin S is connected to pin 2 at the PC, Pin G to 5. If serial data strings (i.e. signal names shown on black lines) are used in the program to input or output data via a COM port then the Test Manager can be used as follows. (Note: serial data strings cannot be used with IR/Serial ports): 1. Select the signal name to be monitored then right click on it and select Set Watch. 2. Select Tools>Test Manager and observe the string contents displayed in the Status Window. 3. Use the HEX or ASCII Option of the Test Manager as appropriate to the string content. NOTE: Prior to SMW 1.40 it was also necessary to use a Serial Debugger symbol to monitor serial strings. With any version of SMW the ST-CP and CNMS control processors need to use the Serial Debugger symbol.

Page 27

CNX CookBook 1.40 2001 David Webster

Touch Panel Layout Tips


When designing a touch panel layout it may be helpful to consider the following top ten tips: 1) Planning is essential. After planning the overall structure VisionTools Pro-e can be used to print draft versions of the panel layouts for customer approval before the control processor program is written. 2) Keep it simple for your users. The least number of large clear buttons with unambiguous functionality is paramount. Colour coding can assist understanding. 3) Keep it simple for yourself. Remember that a complex layout might look good now but will make future editing more difficult and set a precedent that you will be expected to maintain. 4) Dont keep it too simple. Wherever possible a control system should make operation automatic. For example pressing a source selection button should route all switcher and projector inputs and set the room appropriately. 5) Be consistent. Controls with similar functions should have similar appearance and similar locations. For example the volume controls should look the same and be in the same place on every page irrespective of which device is currently in use. 6) Be ergonomic. Place the most frequently used or important buttons where they can be reached most easily. 7) Plan for future expansion. Control systems are often expanded so it is worth designing a layout that can be scaled up to include more devices without a radical change. 8) Develop a system. Once you have designed a layout that works well you can copy and paste whole pages or sub pages from one project to another to save time and errors. 9) Check your design. Test the layout on the actual touch panel. Try what effect unexpected button presses have on the appearance. 10) The final test. Imagine you are the end user. Would you understand how it works without having it explained to you? If not then start again.

Page 28

CNX CookBook 1.40 2001 David Webster

Join Number Notes


Recommended Numbering Although any join number in the range 1 to 1000* may be used for buttons it is useful to allocate blocks of numbers for different devices. For example a slide projector could use 20-39, a VCR joins 40-59 etc, etc. In this way if the VCR page were copied and pasted into another project the joins would be certain not clash with any other device. Remember also that for ST series of 1-way panels only, buttons with Toggle feedback must have an initial (press) join number less than 500, so that when 500 is added automatically to give the alternate (release) join number it remains less than 1000.
*All LC/CT/VT series panels have 1000 digital joins but the TPS series have 4000.

Analogue Join Numbers Bi-directional panels (wired or wireless) support analogue objects, as well as the digital buttons/objects, and these have a different range of join numbers from 1 to 255*. It is therefore possible to have two objects in a panel layout that have the same join number but are in fact separate since one may be a digital join and the other an analogue join. The difference between analogue and digital joins is by context and is indicated in VTPro-e by colour. A digital object can only have a digital join (i.e. 1 to 1000 which is shown in blue) and an analogue object can only have an analogue join (i.e. 1 to 255 which is shown in red). Analogue outputs to the panel may be displayed by Gauges, Digital Gauges, Percent and Time panel objects. The Gauge displays bar/line graphs while the remaining types show the same information numerically, but in different formats. The only panel object that provides an analogue signal back to the program is the Slider. It shares the same analogue join number as the Gauge it operates over. SIMPL Windows program use AN_ACT signals in the touch panel symbol to read the slider value and AN_FB to send an analogue value to the touch panel.
*All LC/CT/VT series panels have 255 analogue joins but the TPS series have 1000.

Page 29

CNX CookBook 1.40 2001 David Webster Reserved Join Numbers All touch panels have built in functions that are executed locally in the panel, such as back light brightness and LCD contrast. These are accessed by reserved join numbers that are greater than 1000. It is strongly recommended that all panel layouts include the following functions as a minimum: Back light High Back light Medium Back light Low Back light Off 1019 1018 1017 1016

(not essential)

Plus for panels with passive matrix LCDs: LCD Contrast + LCD Contrast 1023 1024

For the audio properties of the CT1600, ST1550, ST1550C & STX1550C you can include: Volume up: Volume down: Key click on: Key click off: 1160 1161 1172 1173

ST1550 series In addition to these minimum functions, the ST1550 series has controls for: Manual power off Standby Time + Standby Time Power Down Time + Power Down Time Save Timeouts Goto built-in Setup Discharge Battery 1015 1107 1108 1103 1104 1240 1035 1036 (Not essential)

(Press and hold for 5s. Best avoided) (To reduce memory effect prior to charging)

All ST1550 series have these indicators: Battery gauge (V) Battery gauge (H) Standby Time Power Off Time 0 0 0 0 (Border Text=`A2) (Border Text=`D2) (Border Text=`B513) (Border Text=`B512)

Page 30

CNX CookBook 1.40 2001 David Webster The battery gauge has a vertical (V) or horizontal (H) analogue bar graph appearance, but is drawn as a Border object. Adjust the Border appearance to suit and edit the Border Text to that shown in the table above. (Be certain to use the opening single quote [`] character as shown - do not use the apostrophe [] character). The Standby and Power Off time displays are text displays. Draw as a Border or Text object, edit the text to that shown in the table above and use any suitable font. For examples of how to use these functions and indicators look at the Utility pages in the ST-1550C Basic Template project located in the C\CRESTRON\CRESDB\TEMPLATES folder. Remember entire pages can be copied from any template or existing project to your own project by dragging them from one project window to another. E.g. the Brightness+Contrast page. For details of all the reserved join numbers, including those for the built-in Scheduler and Sequencer, see the Crestron ST1550/C Operations Guide supplied with the panel. The clock in the touch panel can only be set with the buttons in the built-in Setup menu there are no reserved join numbers for this. So if you are using a clock object in your panel design and want the user to be able to change the time they must use the built-in Setup menu. Remember that this can be accessed with a 5 second press of reserved join 1035 but since this could permit the user to change any touch panel settings it is probably best avoided! As of VTPro-e 2.2 it is no longer necessary to enter any reserved join numbers numerically. Instead there is a built-in list of Reserved Join function names that enable easier selection when allocating Digital or Analog Press Joins.

Page 31

CNX CookBook 1.40 2001 David Webster

SIMPL Windows Program Examples


To show how to use the various touch panels, internal plug in cards and external network modules, Crestron maintains an example program database on its web site at www.crestron.com in the software downloads area. The Macros contained in the Crestron Modules section of the Symbol Library are another useful source of program examples. To examine a Crestron macro right click on its name then select Import from the pop-up menu. CNX Automation the STS way Those familiar with STS programming using VTPro-e will be aware that automation in the form of one button that presses many other buttons, or one button starting a timed sequence of button presses, is easily achieved with Press Groups and Macros respectively. In SMW these have direct equivalents in the form of the Button Presses and Stepper symbols. Button Presses The Button Presses symbol has a single trigger input, which can be connected to a user button, and one or more outputs that can be connected to other buttons. For example if a button Video is required to put the screen Down, set the projector to Input 1 and dim the room lights to Low then a Button Presses symbol could be used to route Video to Down, Input 1and Low. (This assumes that the output button names already exist and control the respective devices). Stepper The Stepper symbol is similar to Button Presses but should be used instead of it whenever the outputs need to be in a sequence rather than all at once. It has a single trigger input, which can be connected to a user button, and one or more outputs that can be connected to other buttons. For example if a button BBC 2 is required to set a Sky Digital Satellite Receiver to channel 102 then a Stepper symbol could be used to press buttons 1, 0 & 2 in turn. (This assumes that the output button names already exist and send the IR codes for the numeric keypad functions). Experience shows that the first output of a Stepper symbol can have a delay of 0 seconds to make it execute as soon as possible after the trigger. For control of an IR device, such as the satellite receiver example above, each Stepper output must have pulse duration, i.e. len, set to 0.5s. Unlike Delay symbols, Stepper outputs are timed relative to the previous output not from the trigger inputs. So for the satellite receiver example above, each output - apart Page 32

CNX CookBook 1.40 2001 David Webster from the first, can have an interval between output button presses, i.e. delay, set to 0.75s. Experimentation may be needed to speed up or down the sequence depending on the equipment to be controlled. (Since the IR pulses are 0.5s this will give 0.25s gap between successive IR commands) Once a Stepper symbol is triggered its Busy output is asserted for the whole sequence. This can be used to control the appearance of either a Legend or Sub-page on a wired/2-way RF touch panel that displays Please Wait or a similar message as appropriate. It can also be used to disable any other user buttons (via a buffer symbol perhaps?) that could interfere with the sequence in progress. This can be useful if the sequence takes more than a couple of seconds to execute as there is no way to terminate it early. If a sequence is likely to need clearing then consider using a Delay symbol instead, since it does have a reset input, i.e. to terminate the sequence. However, be aware that the Delay symbol does not have tri-state outputs, or defined output pulse durations, so it will need to be routed via a Multiple One Shot and a Buffer symbol before the outputs can be connected to existing button signal names. Tri-State Logic Buffers, Presses and Stepper symbols have special outputs that exhibit similar behaviour to tri-state logic integrated circuits. Crestron call this ability signal jamming. Normal logic outputs are binary, i.e. always 0 or 1 and it is not possible to connect them in parallel with other outputs. However tri-state outputs have an additional high impedance, or off, state which is neither connected to low (0) or connected to high (1). It is possible to connect such outputs in parallel with other similar outputs and this achieves the logic equivalent of OR gating the outputs together. Because of this the technique is sometimes called wire-or. This special property permits the outputs from Buffers, Presses and Stepper symbols to be connected in parallel (jammed) with buttons and other each other, but not with the regular digital outputs from all other symbols. As an example of this, should the need arise to combine an output from say a Stepper with an output of say an And gate then instead of using an Or gate, pass the And gate output through a buffer symbol (permanently Enabled by a 1) and connect it in parallel with the Stepper output. This will wire-or the outputs together. Buffers can also be used to form multiplexers and demultiplexers very simply. For example a common set of transport keys may need to be routed to a number of different devices but only control one at a time. This is demultiplexing and can be achieved by N buffers, where N = the number of devices to be controlled. The common transports keys are applied to all N buffer inputs. The outputs of each buffer go to a specific device functions. Each buffer can be enabled by an interlock that tracks the users selection of device to ensure that only one is in use at a time. Page 33

CNX CookBook 1.40 2001 David Webster

An example of multiplexing would be a single set of feedback indicators, perhaps for the transport keys described above, that switch to display the status of N devices. In this case each buffer has the feedback from a specific device as inputs and the outputs of all N are connected in parallel to drive the single set of indicators. As above the interlock that tracks the device selection can be used to enable only one buffer at a time and route a specific device status to the display.

Page flips To perform page flips on a touch panel it is necessary to assign the page flip command to a button. (In fact for the ST1550 series of one way touch panels this is the only way of page flipping). For all touch panels a program can track which page the user has selected - provided the page flip buttons have join numbers - and for two way touch panels (wired or wireless) only it is also possible for the program to force the panel to go to a page. For example at startup the panel should go to the first page, or after entering a password go to a protected page. (See the Crestron Password Macro online help for details of use with two way touch panels). A forced page flip is similar to using join numbers to control the appearance of subpages but in this case the whole page must be assigned a unique join number. Then when the program asserts the page join number the panel will flip to that page. The flip only occurs on the rising edge of the signal and so even it is held high the panel will still perform further page flip commands assigned to buttons. To assign a join number to a whole page use the Edit>Page Properties command and select the Join tab. Password Protected Pages Since the ST1550 series of touch panels are one-way communicators, and therefore unable to perform page flips under program control, it is not possible to have true passwords to protect special pages. However it is possible to define invisible buttons that if placed in unexpected positions on the touch screen make it difficult for a user to accidentally access special pages. 2D buttons can be made invisible by using transparent as the Inactive colour with no frame and no text. Note that the Active colour will automatically be set to transparent as well. A page flip to the page to be protected can then be assigned to the invisible button and it can be positioned discreetly. For example in one of the four corners of the touch screen.

Page 34

CNX CookBook 1.40 2001 David Webster For two-way panels, wired or wireless, passwords can be processed. See the Password Notes section for more details. Touch Panel Tracking Forced page flips can be used to make touch panels track other user interfaces, such as handsets, button panels or other touch panels. It is most easily done by giving each page a join number that is the same as the button that page flips to it. In this case whenever the page flip button goes to its active state, i.e. either it, or a button in parallel with it, is pressed, then the panel will page flip. A more comprehensive method uses an interlock symbol that has the same number of inputs/outputs a there are pages. The inputs are connected to the join numbers of the page flip buttons and the outputs to the appropriate destination page join numbers. This arrangement tracks the current page selected by the user and can be used to force any other panel sharing the interlock outputs to track also. When the program needs the panel to go to a specific page it is only necessary to set the interlock, maybe by using OR gates with the other interlock inputs. Because the STX series of two way wireless panels do not have a built in option to power up on the last page (as the ST1550 series of one way wireless touch panels do) it may desirable to track page flips, as described above, and hence force the panel to go back to the last page in use when it was powered down.

Page 35

CNX CookBook 1.40 2001 David Webster

SIMPL Compiler Notes


Improving Program Compilation Legibility When SMW compiles a program a Program Compilation window is displayed to view all error reports. There are two kinds of error report. These are NOTICES and WARNINGS. Generally Notices can be ignored but Warnings should be resolved. To make the display more legible, by not displaying all Notices, the following change should be made: In Edit>Preferences select the Compiler Settings tab. Clear the Show Signals Without Destination As Notices box. Also, as of SMW 1.52.01, it is possible to skip the generation of the intermediate SIMPL-C text file. Since this will not normally be required (and it is wasteful of processor time and hard disk space) it is a good idea to clear the Generate SIMPL-C Listing box.

Page 36

CNX CookBook 1.40 2001 David Webster

Viewport Notes
Improving Legibility When SMW or VTPro-e is first installed the Tools>Viewport utility, in either program, displays all transmitted and received characters - including translations of non-printing ASCII codes. To make the display more legible the following changes should be made: In Tools>Viewport select Setup>Character Mapping. For Low Characters clear the Show box and check the Always interpret CR, LF and TAB box. For Standard Characters check the Show box and click the Normal button. For High Characters clear the Show box. To separate incoming and outgoing character displays select Setup>Split Window>Horizontal. Since the Viewport can be used as a diagnostic tool for monitoring a COM port with a suitable cable, (or simply by plugging the programming cable RJ11 plug into the COM A or COM B socket in the case of a ST-CP), it is sometimes useful to display characters as hex. To do this check Setup>Display in Hex Mode. When displaying hex codes be aware that by default if the 08h character is received it acts as a backspace and deletes the preceding character. To disable this feature uncheck Setup>Destructive Backspace (Incoming).

Page 37

CNX CookBook 1.40 2001 David Webster RS232 device control with Viewport Occasionally it is useful to experiment with the commands needed for a RS232 controlled device. For example to control an Extron switcher and see what responses are returned. This can be done using the Viewport in VTPro-e. Connect the device to the PC com port (you can usually use the same cable as for a Crestron CNX type of com port. See Appendix A). Ensure that the Viewport com settings are set to match the device with the Setup>Communications Setting command. (For an Extron SW6AVMX switcher this would be 9600, 8, N,1). Now type the command to send to the device. (For an Extron SW6AVMX switcher type 1! to select input 1). Any response sent by the device will also be shown. (For an Extron SW6AVMX switcher if you press its button Input 1 then the response C01 is returned). If the response uses non-printing characters then in the Setup menu check the Hex Output option. Now when a message is received the bytes will be displayed as hex values. E.g. [43h] [30h] [31h]

This method of sending commands only works with printable ASCII characters

Page 38

CNX CookBook 1.40 2001 David Webster

Test Manager Notes


The signal names that Test Manager monitors in its Status Window can be selected using the Status Window>Add Signal command. However a more convenient way of selecting signal names to monitor is from within the Program View by right clicking on highlighted signal names and selecting Set Watch from the pop-up menu. Individual signal names can be deselected from monitoring in a similar way by right clicking on highlighted signal names and selecting Clear Watch from the pop-up menu. Alternatively all signal names can be removed from monitoring at once with the Project>Clear Watch For All Signals command. After setting or clearing signal name watching be sure to Save the program before switching to the Test Manager. This will force Test Manager to act on the changes by reloading from disk the list of signal names to be monitored. Note: You will need to quit Test Manager before uploading touch panel layouts but not programs. Displaying Serial String values When debugging a program it is sometimes useful to know the value of serial strings as the program runs. For CNMSX processors and SMW 1.4 or later it is possible to Set Watch on a serial signal name and have Test manager directly read the value without the temporary addition of a Serial Debugger symbol in the program connected to the signal to be monitored. In fact a single Serial Debugger symbol can monitor many serial signals by adding more inputs to the symbol and will now only be needed when working with CNMS and ST-CP processors. There are two versions of the Serial Debugger symbol, one for displaying the whole string in HEX and the other as plain ASCII. Use whichever is more appropriate. The ASCII version has the useful property of displaying non-printing characters in hex format. E.g. the string \x02OPL\x03 would be displayed as [02]OPL[03]. Displaying Analogue values When debugging a program it is sometimes useful to know the value of analogue signals as the program runs. For CNMSX processors and SMW 1.4 or later it is possible to Set Watch on an analogue signal name and have Test manager directly read the value without the temporary addition of an Analog Debugger symbol in the program connected to the signal to be monitored. In fact a single Analog Debugger symbol can monitor many analogue signals by adding more inputs to the symbol and will now only be needed when working with CNMS and ST-CP processors.

Page 39

CNX CookBook 1.40 2001 David Webster The Analog Debugger symbol displays values either as a decimal number in the range 0 to 65536 (i.e. 0000h to FFFFh) or as a percentage, 0% to 100%. The display units are selected with the Test Manager Options>Show Analogs As Percent command. Commenting Out Symbols Debug symbols, or any symbol, folder or device, can be excluded from the next program compilation by highlighting it and pressing ALT+F1. Repeat the procedure to include the symbol again. (When commented out symbol names are preceded by // ). This is very useful while debugging a program. Especially if while testing the program the physical card or device is not available as it can be commented out until it is present and thus avoid errors that would otherwise be generated.

Parameter Notes
Various symbols in SMW require that you supply parameters. For example a One Shot timer symbol expects a time value. Often the units that can be used are self-evident, say seconds for a time value, while others are not. SMW attempts to prompt you with the possible parameter types on the text bar at the foot of the screen. However the prompts are not always a complete list and if the symbol has more than one possibility it may default to the wrong parameter type. It is therefore important to use the appropriate suffix when entering parameters as follows: Parameter Time Number Suffix s t d h % Units Seconds Ticks (approx. 1/100th of a second) decimal hexadecimal percentage

Suffix characters may be entered in upper or lower case.

Page 40

CNX CookBook 1.40 2001 David Webster

Creating User Macro Notes


When creating a macro it is sometimes necessary to pass a value into a symbol. For example a macro for screen up and down control would need to be passed the time value for a screen movement. In this way the same macro could be used more than once in a program and each instance could use different time values. When defining macro arguments external values can be entered as plain signal names, however if an attempt is made to put a signal name into a symbol that is expecting a constant parameter, such as a One Shot timer, then an Invalid Parameter Value error will occur. The way to make the compiler substitute the signal name as the parameter value is to precede the symbol name in the parameter field with the # character. For example in a screen macro the time could be passed as a signal name TIME_VALUE and entered into the appropriate One Shot timer symbol as #TIME_VALUE. Then when the macro is used in a program the actual time value needed should be entered against the TIME_VALUE prompt of the macro symbol. For example 10s. Do not forget the parameter unit suffix, in this case s for seconds. Be sure to type the parameter as a macro argument before using it as a value in a symbol. Also be aware that parameter names are case sensitive and when typing them into a symbol the space bar does not automatically produce an under-score character. This method of passing parameter values only works for constants i.e. values that are not changed while the program is running. For examples of how to write macros inspect those supplied in the Crestron Modules symbol library. Right click on the macro of interest and select Import. To provide on line help for any macros that you write be sure to enter a description of how to use it in the Macro Help box of the Project>Edit Program Header command. Caution when reusing macros Avoid modifying macros that have been included in previous programs to suit new programs. To do so may mean that if the old program is recompiled it would behave differently, since it would now use the newer form of the macro. It is therefore good practice to always rename a macro if it is edited. For example if a macro named SCREEN is revised then the new version could be named SCREEN_1.

Page 41

CNX CookBook 1.40 2001 David Webster

Using Crestron and User Macros


When using a Crestron or User macro in a program it is essential that all input and output signal names (plus all parameter fields if present) are used. Do not leave any macro symbol prompt or parameter field empty. For unused digital inputs type a 0 or 1 as appropriate. For unused analogue inputs use an Analog Init symbol to define a value, usually 0d or 0%. For unused outputs type a unique dummy signal name. (This can be done automatically be pressing the Enter key twice when the cursor is on the empty signal name prompt). For macro parameter fields it is necessary to enter values with appropriate units. See Parameter Notes for details.

Default Logic Subsystems (Red Folder) Notes


When configuring hardware and selecting devices from the Crestron database you are sometimes offered the option of loading Default Logic. If accepted the program will automatically create a red subsystem folder in the logic folder that contains all the necessary symbols for implementing the required logic functions. For example if the device has a single POWER function then the program logic necessary to use an optional ST-CS current sensor can be included. Similarly some RS232 serial devices in the Crestron database can generate subsystems containing any necessary program logic and serial command strings. In the Program View all red subsystem folders will be created with all input and output signal names already entered. To use the default logic drag the subsystem input signal names to the appropriate buttons, functions or other symbols, in your program. (These auto named signals may not be very friendly but can of course be globally renamed. Either, use the ALT+R command or simply drag an existing signal name onto the subsystem input). Since unused subsystem inputs cannot be renamed or set to 0 by merely typing a new signal name over it, it is recommended that these be set to 0 through a buffer symbol. In fact a neat idea is to use a single buffer for all subsystem input signal names, enable the buffer with a 1 and then use the buffer inputs to route to your own signal names for buttons or symbols. The alternative is to right click on the unused subsystem input, select Rename Signal Globally and then type a 0. However this method is not reversible, should the need arise, and is not recommended. If unused sub-system inputs are ignored then the compiler will generate many Warning errors.

Page 42

CNX CookBook 1.40 2001 David Webster Subsystems for Crestron Custom Serial Drivers The 20 custom serial drivers located in the Crestron Database, necessary when programming arbitrary RS232 commands using VTPro-e on a STS system, can also be used in SIMPL Windows programs. If they are used then a red subsystem containing the custom serial driver logic will be generated. Now since the custom serial drivers support 200 outputs and 200 inputs the subsystem will have 400 signals to deal with and if these are ignored the compiler may generate up to 200 Warning errors. (Unused outputs do not produce errors). See Appendix A for some examples of custom serial drivers. In general the use of Custom Serial drivers is not recommended. Instead it will be easier to type the required serial control strings directly into the COM port symbol or into a SERIAL I/O symbol. Control strings can usually be obtained from the equipment manufacturer. See the Serial Port Programming section for more details.

Page 43

CNX CookBook 1.40 2001 David Webster

Using Serial Ports


There are two types of serial ports. The bi-directional COM ports and the transmit only IR/Serial ports.

CNX COM port wiring The built in CNX com ports are similar to those on a PC but are wired slightly differently to permit both RS232 and RS422/RS485 operation. For RS232 operation it will normally only be necessary to connect to pins 2,3, & 5. If the equipment to be controlled has a cable specification for connecting it to a PC then the same lead can be used with the CNX com port provided that pins 1,4,6 and 9 are not connected (since these carry the RS422/RS485 signals). Pins 7 & 8 are for hardware handshaking and are not usually necessary.

IR/Serial port wiring The built in IR/Serial ports have two connections, S (Signal) and G (Ground). For RS232 transmit the S should be connected to the equipment receive and the G to ground.

Serial port programming In the configuration manager view of SMW, COM ports will already have the default CNXCOM serial driver installed. For IR/Serial ports drag the 1-Way Serial driver from the Device Library on to the required IR port. In either case the serial port must be configured to the required baud rate and com spec. The strings to be transmitted, or received, can be defined in two ways: The simplest way is to type all the literal strings inside the serial port symbol and trigger these with logic signals. When expanding the com port symbol for multiple functions be careful to create more transmit strings - on the left, or more receive strings - on the right. For non-printing characters the \xNN convention must be used, where NN is the hex value of the character to be entered. See Appendix A for more information. A more advanced method is to use a Serial I/O symbol and type the strings into this instead of the COM port symbol. Then route the Serial I/O serial output (indicated by a black line) to serial transmit input [tx$] of the Com port symbol via a suitable signal name. (These names do not have to include any special characters to define them but is common practice to use the $ character as a suffix. For example LUTRON_TX$). This

Page 44

CNX CookBook 1.40 2001 David Webster method has the advantage of creating a serial signal name that can be monitored with the Test Manager for debug purposes. See Test Manager Notes for more information. Processing received strings is similar to transmit. Either enter the search string directly into the COM port symbol or route the serial receive output [rx$] to a Serial I/O symbol via a suitable signal name (e.g. LUTRON_RX$). In fact there are serial symbols that can be used to create dynamic string variables, that change while the program is running - which would not be possible using the fixed string constants as used in the COM port or Serial I/O symbols Remember that serial outputs cannot have defined durations like IR outputs. Instead the string is sent once on the rising edge of the triggering logic signal. If however it is required to send a string on the release of a button, say to stop an Ektapro projector focus or an amplifier volume ramp, then use a One Shot Timer symbol to trigger on the falling edge of the button (i.e. use the TRIGGER* input) and route the resulting short output pulse, say 0.01s, to the com port Stop string. In the Ektapro example the focus stop command can be generated very simple with a NOR symbol with the focus+ and focus- buttons as inputs. However it should be noted that this will result in the focus stop command being sent unnecessarily immediately at power up, i.e. prior to a focus+ or focus- command. For some devices, say volume control of an AV processor this may be a problem As an alternative example, the volume stop signal can be produced with a One Shot Timer that is negative triggered from an OR symbol with the volume+ and volumebuttons as inputs. In this way the volume stop is only sent after a volume+ or volume command and never before.

Page 45

CNX CookBook 1.40 2001 David Webster

Non Volatile Memory Notes


The control processor contains a small amount of battery backed up memory (NVRAM) that can be used to hold information, including the clock and calendar, even when the system is off. The Symbol library contains a number of symbols that make use of the NVRAM automatically, such as the Analog Non Volatile Ramp (RAMPNV). This stores the last used analog value in NVRAM so that when next powered up the ramp is restored. Be aware that when a new program is run for the very first time any NVRAM values that may be recalled will not have been previously defined and so the contents will be random. For example a CNXPAD8 controlled with RAMPNV symbols will power up initially with random levels of volume, treble, bass etc. Other symbols are not automatic and require program instructions to read or write data. There are different symbols for analog, digital or string data storage. Save or Load NVRAM data Once a program has defined the data held in NVRAM it may be useful to save the contents to the PC. Similarly it may be useful to configure many systems with the same NVRAM data by loading them back from a PC file. Use the TOOLS>VIEWPORT, FILE TRANSFER>SAVE NVRAM to save data in the control processor to a file on the PC. Use the TOOLS>VIEWPORT, FILE TRANSFER>LOAD NVRAM to transfer data previously saved to a PC file back to the control processor. There is no utility at present to construct a NVRAM data file on the PC.

Page 46

CNX CookBook 1.40 2001 David Webster

Pop-up Sub-pages
Description Sub-pages, which are smaller than an entire page, can be created so that they are only visible on demand. For example a button can be defined so that when pressed it causes the touch panel brightness and contrast controls to pop-up over part of the page in use and with a second press remove them (a toggle action). In this manner controls that are not frequently required can be left off the main page, making for a simpler and easier to use layout, and yet remain available when needed without the possible confusion of changing to another page. Sub-Page Draw the sub-page just large enough to accommodate the desired buttons and a surrounding Border with a dropped shadow. Main Page Draw the Button that will control the pop-up sub-page. Assign the Button a join number. Draw the selected Sub-page in the required position. Set the Sub-Page properties Display Mode to be Exclusive. (Use the Additive Display Mode only if there are no buttons under the sub-page). Set the sub-page join number to be the same as the controlling button and then in the program use a Toggle symbol between the join number press and feedback signals. Alternatively give the Sub-Page a unique join number and in the program assign the feedback to the required logic to control its status. For example many overlapping Sub-Pages can be controlled with an Interlock symbol. Notes More than one pop-up sub page can be created on a main page but be careful to avoid overlapping them if more than one can be active at the same time as this can result in re-drawing errors on the panel. Sub-pages cannot have sub-pages. Many sub-pages all with the same join number can be controlled together.

Page 47

CNX CookBook 1.40 2001 David Webster A sub-page can be made invisible while working on the page layout - without affecting the panel operation - either by clearing the Visible box in the sub-page properties or by using the Display>SubPages menu. The latter must be used to make an invisible sub-page visible again. If a sub-page join number is 0, i.e. None, then it is always displayed. Sub-pages on one-way touch panels Since the ST1550 series of touch panels are one-way communicators, and therefore unable to receive digital signals from the program, it is not possible to control subpages except by means of the built-in Interlock or Toggle types of button feedback, or from the Inhibit Join of a Macro. See Simple Card Index Layout. It is sometimes useful to reset an interlock group to remove all linked sub-pages. Including an extra button in the interlock group can do this. This extra button becomes the reset and can be made invisible, if it is a 2D type, by using transparent inactive colour with no frame and no text. It can be placed in the required sub-page in a position that covers the interlocked button that displays the sub-page. In this way a button behaves as though it has a toggle feedback, since the first press displays a subpage and a second press (which is actually the invisible reset button superimposed over it), or any other button in the interlock group, removes the sub-page. Be aware that one-way communicating touch panels are also unable to receive analogue values from the program, therefore it is not possible to use analogue objects, other than the built-in battery gauge. See the Reserved Join Numbers section for more details.

Page 48

CNX CookBook 1.40 2001 David Webster

Simple Card Index Layout


Description Instead of a Main Menu style of page layout with multiple pages, it is easy to design a card index style where the main page never changes but instead is overlaid with one of many sub-pages as required (an interlocked action). The following description applies to a ST series touch panel but the principal can be applied to any touch panel. Main Page Make the page colour black and the snap grid size 12. Draw buttons along the top of the page to act as the card index tabs. Draw them as rectangular with light grey inactive and white active colours. Make the inactive border black and the active border white. Edit the button text, in black, appropriately, e.g. Video for the video page etc. Assign each button a unique join number and so that an interlock symbol can be used to latch feedback for all of them. Five to seven buttons work OK. Draw a border to fill the screen below, but adjacent to, the buttons. Make the border white with no frame and delete the text. Sub-Pages Create a sub-page with a size that exactly matches the border object on the main page (about 320 x 204 for a 320x240 panel) and the snap grid size 12. Ensure that the subpage colour is transparent. (Shown as diagonal lines). Use the Edit>Copy Page then Edit>Paste Page (these commands are only available when all pages are closed) to create further copies of this sub-page, one per card index button, e.g. Video, CD etc. On each such sub-page now draw the buttons for the devices to be controlled. For example five transport buttons for a VCR and assign joins and functions in the usual way. Overlays On the Main Page draw each of the sub-pages created above, placing each one exactly over the border object so that the card index buttons are not obscured. Assign each sub-page a join number that matches the card index button it relates to. For example if the Video button is Join 1 then the Video sub-page should also be Join 1. The subpage Display Mode property should be set to Additive.

Page 49

CNX CookBook 1.40 2001 David Webster Pop-Ups Pop-Up sub-pages may be added to the Main Page but not to any sub-pages. Pop-Up sub-pages, i.e. ones that will appear over the top of an overlay sub-page may be added to the Main Page as required but each should have their Display Mode property set to Exclusive. Avoid pop-ups being placed over active animations as the animation process will draw on top of the sub-page. Notes A sub-page can be made invisible while working on the page layout - without affecting the panel operation - either by clearing the Visible box in the sub-page properties or by using the Display>SubPages menu. The latter must be used to make an invisible sub-page visible again. If a sub-page join number is 0, i.e. None, then it is always displayed.

Page 50

CNX CookBook 1.40 2001 David Webster

Animation Notes
To animate graphics on a touch panel it must be a two-way type, i.e. wired or a STX series two-way RF. The panel must have firmware version 5.0.0 or higher installed. When using the Crestron supplied ANIMATE.UMC macro it is very important to enter the Total Frames parameter as a decimal number, i.e with the units suffix d, and the Time parameter as seconds, i.e. with the units suffix s. Omission of the unit suffix will not produce an error message but the macro will not work as expected! View the built in Animate macro help for more details. (I.e. highlight the macro name in the Symbol Library and press F1). Animation takes processing time and so for the fastest program responses it should not be left running if not actually visible. For example if an opening page contains a spinning logo arrange the animation to be suspended when displaying any other page. Maybe use an interlock symbol to track the touch panel pages and use the latched output corresponding to the page with animation to drive the Forward, or Reverse, input of the Animate macro. Instead of using the Animate macro it is possible to use any suitable program logic to provide the analogue signal joined to the animation object. In this way it is easy to use animation objects as a stack of fixed images from which the program can select any one. For example a single animation object could contain all the required satellite TV station logos. Avoid pop-ups being placed over active animations as the animation process will draw on top of the sub-page. Transparent buttons may be placed over animations successfully provided the button is completely blank i.e. no text or graphic content. To save panel memory it is advisable to check the Compress on Upload option in the Appearance property of the animation object.

Page 51

CNX CookBook 1.40 2001 David Webster

Password Notes
In some programs it may be desirable to have certain touch panel pages protected by a password. For example engineering setup controls. It is not possible to password protect the touch panels built-in setup pages. Two-way Touch Panels Since all two-way touch panels have the ability to execute page flips under program control, it is only necessary for a program to accept a user password entry on one page and, if it is OK, flip the touch panel to the protected page. Crestron provide two macros for this purpose. The Password Logic (fixed pwd) and the Password Logic with Backdoor can be found in the Security folder within the Crestron Modules part of the Symbol Library. The fixed password macro does not currently have a Help file built-in and also does not work (without modification) with two-way RF wireless touch panels. For these reasons it is not recommended. The password with backdoor macro does have a Help file built-in and will work fine with all two-way touch panels, both wired and wireless. Unfortunately the Help file describes some macro inputs incorrectly. Please be aware of the following substitutions: Store-mode Compare-mode = = Select-Master Select-User

To use with a fixed password set the Select-User and Enable-Backdoor inputs to logic1 and Select-Master to logic-0. Enter the required password as the BackdoorPassword parameter. (e.g. 1234d). Enter the number of digits used for the password in the Digits parameter. (e.g. 4d). Create a 12-button keypad layout for the 10 Key-Digit keys plus Key-Clear and Key-Enter. Also draw a Border object with an Indirect Text join enabled to display the users password entry digit by digit as a line of asterisk (*) characters. Give the password-protected page a unique join number (set with the Edit Page Properties command) and route the PW-Correct output to the touch panel feedback with the same join number. Route the Star-String$ output to the touch panel Serial join that matches the indirect text in the Border. The PW-Wrong and Master-String$ outputs, if not used, must have dummy signal names entered. (Press Enter twice to auto-create a unique dummy name).

Page 52

CNX CookBook 1.40 2001 David Webster One-way Touch Panels One-way touch panels do not have the ability to execute page flips under program control, so it is not possible to use any program logic to implement a passwordprotected page. A simple alternative is to use an invisible button that performs the required page flip. 2D buttons can be made invisible by using transparent as the Inactive colour with no frame and no text. Note that the Active colour will automatically be set to transparent as well. A page-flip to the page to be protected can then be assigned to the invisible button and it can be positioned discreetly. For example in one of the four corners of the touch screen. A more complex solution is to design a series of pages that mimic a keypad by means of page-flips on the numeric keys. An example password touch panel project that achieves this can be found in the D:/Support/STS Projects/Password folder of the RGB Communications Ltd supplied CD-ROM. The password is set to 1234 but the programmer can change this with judicious changes to all the page-flips. To use, first copy all the pages to your own project. Create a button on your own page that page-flips to the Password-Enter page. On the Password-Passed page make the Continue button page-flip to your protected page. On the Password-Invalid page make the Continue button page-flip back to your own page. The keys use join numbers 900 through 911 so be careful to avoid defining any buttons with toggle type feedback in the join number range 400 through 411, since their release joins (i.e. press join+500) would clash.

Page 53

CNX CookBook 1.40 2001 David Webster

Indirect Text Notes


All two-way touch panels have the ability to use variable text instead of fixed text. This means that objects such as buttons or borders (but surprisingly not text objects because their Transparent background would cause text colour problems!) can display text that is changed by the program. For example a button can change its wording or a message can be displayed. As of VTPro-e 2.2.2.2 the method of defining these indirect text fields has changed to as follows. First create the button or border as usual using the font and text colour you require but instead of typing fixed text into it check the Indirect Text Enable box and select a Text Join in the range 1 to 127. Any text entered in the text tab will not be displayed. Instead the Text Join number will be shown in the centre of the object as a number with a drop shadow appearance. Remember this is different to any Digital or Analogue Join the object may also have. In the SMW program it is now necessary to send this Text Join, also known as a Serial Join, the actual text to be displayed. This can be done in many ways but a convenient method uses the SERIAL IO symbol. This symbol is very similar to a Com Port symbol and permits one or more strings to be entered as parameters. The TX$ output can be routed via a serial signal name such as LABEL$, i.e. represented by a black line, to the appropriate Text-NN join in the Serials (Indirect Text) section of the touch panel symbol. Where NN is the Text Join number of the indirect text field to receive the string. (Remember that the object containing the indirect text field may also have its own digital, or analogue join number which is different). Now if the SERIAL IO symbol is triggered with a digital signal the associated text string is displayed on the touch panel in the font and colour previously defined in the panel layout. To clear an indirect text display it is necessary to send the Text Join a blank text string terminated with Carriage Return. This can be entered as a SERIAL IO symbol parameter e.g. \r. Practical experiences show that a lower case letter r always works but upper case letter R may not! To make a text message flash on and off it is therefore necessary to define two strings; one for the message, i.e. on, and another to clear it, i.e. off. These can then be triggered alternately with an OSC symbol, which will determine the flash rate, and a NOT gate to invert the OUT signal to produce two triggers for a SERIAL IO set up with, for example Please wait. and \r as its two string parameters. Text parameters do not need to use enclosing double-quotes unless the string itself contains one or more double-quote characters. In such cases it may be less confusing to enter any double-quote characters within the string as \x22.

Page 54

CNX CookBook 1.40 2001 David Webster

Installing new IR drivers in the User Database


Additional IR drivers created by RGB Communications Ltd. are usually supplied on an IR Driver floppy disk. These installation instructions assume that you have SIMPL Windows already installed on your hard disk in the default location of C:\CRESTRON. If the Crestron software is located elsewhere then substitute the correct sub-directory in the following instructions. If present view the README.TXT file on the floppy disk for any additional instructions. 1. With the supplied IR Driver floppy disk in drive A, either, in Windows drag any *.IR driver files from the floppy disk to the C:\CRESTRON\USERDB folder on the hard disk, or, alternatively, at the DOS C> prompt, type COPY A:*.IR C:\CRESTRON\USERDB\ [RETURN] ). If the USERDB folder does not exist it will be necessary to create it. If a driver with the same filename already exists do not overwrite it! Seek advice from the driver author before copying it. 2. In SIMPL Windows select Tools Rebuild User Database Or in VTPro-e select Options Preferences Database Rebuild User Database Either will incorporate the new IR drivers into the User Database. When the rebuild Success is displayed click OK to finish. 3. The new IR drivers will now be available when selecting devices from the appropriate manufacturers section of the User Database.

NOTE: Do not attempt to alter the contents of the CRESDB folder except the Custom Serial Drivers, i.e. CUSTM*.SER files, as described in Appendix A. The CNX CookBook CD-ROM contains many additional IR Drivers in the D:\SUPPORT\USERDB folder. Page 55

CNX CookBook 1.40 2001 David Webster

Modify IR drivers in the User Database


Problem There are certain pieces of IR controlled equipment that are sensitive to the length of time that an IR code is transmitted to it. Typical cases include volume controls and controls with auto repeat functions such as channel up/down. For example volume controls tend to overshoot and cannot be adjusted in fine increments even though the control button is depressed briefly. Similarly channel up/down or track skip controls may step more than once. This is a consequence of the CNX design. To ensure control of IR devices, the CNMSX always repeats IR codes a minimum number of four times to guarantee that the receiving device recognises commands. (The maximum number of repeats is determined by the duration of the users button press or a timer symbol in the program). If the learnt IR code is a repeating type such as for volume up/down then the combination of the four CNMSX repeats and the learnt code repeats in the IR file can cause the IR transmission to be too long for some IR functions. The recommended method of modifying any one, or all, of the functions in an IR driver is to use the DEAL for Windows 2.06 program. See Using DEAL for Windows Using DEAL for Windows Example 1 An amplifier is used with IR control of volume. When the user adjusts the volume the sound changes in steps that are too large. This can be minimised by attenuating the input signal to the amplifier, therefore forcing the full range of the volume control to be used and hence the increments to be less significant. Alternatively the IR driver can be modified to use fewer IR code repeats as follows: Start DEAL and then File>Open FILENAME.IR Where FILENAME is the IR driver file to be modified. Double click the VOL+ function name and the Function Details will be displayed. Edit the Min. Repeats to 1 and click OK. Now repeat for VOL-. Select File>Exit and save the changes before exiting.

Page 56

CNX CookBook 1.40 2001 David Webster Example 2 A video projector uses a single IR command for both power on and power off. The on command is a short IR burst and the off command is a long IR burst. The IR pulse duration can be defined as part of the program but the projector is sensitive to the very small timing difference between successive cycles of the IR code and the time between the repeats contained in the IR code. This may result in the projector seeing several short IR power on commands rapidly instead of a long IR power off command. The IR driver can be modified to create specific on and off lenghts of the Power function as follows: Start DEAL and then File>Open FILENAME.IR Where FILENAME is the IR driver file to be modified. First duplicate the original short POWER function by highlighting it then selecting Edit>Copy and then Edit>Paste. A new function will appear immediately below the original but be named POWER#. Double click the POWER# function to display the Function Details. Now edit the Min Repeats to be 12 i.e. a long power-off command, and click OK. To rename POWER to POWER_ON and POWER# to POWER_OFF click on the corner button next to the function name to change, edit the text and press return. Select File>Close to save the modified IR driver.

Using the CNX-LIR infra-red learner When using DEAL to learn IR handsets with the CNX-LIR be sure not to use space characters in individual function names or the overall file name when saving the driver to the User Database. Also avoid using long file names for the driver, i.e. use no more than 8 characters as this will cause the compiler to generate an error.

Page 57

CNX CookBook 1.40 2001 David Webster

Modify logic drivers in the Crestron Database


In general it will not be necessary, or desirable, to make changes to the drivers included in the Crestron Database. However a few devices can benefit from small changes. Meridian The Crestron Database contains drivers for a number of Meridian products. These will work without any modification but it has been found that the speed of volume up or down commands is often too slow for convenient user operation. It is therefore worth editing the appropriate program logic to alter the repeat rate of the volume commands. When selecting the Meridian device from the Crestron Database confirm loading the default logic. This will produce a red folder in the Program View. Open the Logic folder within the red Meridian folder and locate the two Oscillator symbols as follows: \ S-1.2: VOLUME UP OSC 0.1S,0.3S;.~VOLUME-UP-OSC;.~<40; \ S-1.3: VOLUME DOWN OSC 0.1S,0.3S;.~VOLUME-DOWN-OSC;.~<41; The hi_time and lo_time values for each OSCILLATOR symbol need to modified as follows: \ S-1.2: VOLUME UP OSC 0.01S,0.12S;.~VOLUME-UP-OSC;.~<40; \ S-1.3: VOLUME DOWN OSC 0.01S,0.12S;.~VOLUME-DOWN-OSC;.~<41; I.e. hi_time=0.01s and lo_time=0.12s. These new time values are the fastest that the Meridian can accept and should not be reduced further, although if a slower volume speed is needed they can be made longer. Close the red folder and save the program changes. When the program is next compiled the changes will be effected.

Page 58

CNX CookBook 1.40 2001 David Webster Kodak Ektapro The Crestron Database does not contain a driver for a Kodak Ektapro series of 35m slide projectors. However there is a Crestron Macro that can be used instead. It is capable of basic and random access functions. It can be found in the Slide Projector section of the Symbol Library. Alternatively the Custom Serial Driver 14 given in Appendix A can be used for basic functions. Please note that the logic driver file CUSTM14.DRV, which may be hidden by Windows, must be edited as described to ensure that the focus commands stop the lens motor as well as start it.

Page 59

CNX CookBook 1.40 2001 David Webster

Copying SIMPL Windows Programs


From hard disk to floppy disk To copy a program from the hard disk to a floppy disk for distribution to others it is a simple matter of using the File>Copy Program command and specifying A:FILENAME as the destination. If the program is to be stored later in the CNX system memory with the Viewport Mailbox feature, e-mailed or reloaded with the reciprocal Import Archived Program command, then the option to compress the files using the ZIP file format should be used. From floppy disk to hard disk To copy a program from a floppy disk that has been prepared with the Copy Program command in a ZIP formatted file, use the Import Archived Program command. This will automatically copy any IR drivers and Macros and other components into the correct folders. If the program is already unzipped use the following instructions: SIMPL Windows version 1.22 or older. It will be necessary to manually copy files. So before starting SIMPL Windows and with the program floppy disk in drive A: 1. Either, in Windows drag any *.IR driver files from the floppy disk to the C:\CRESTRON\USERDB folder on the hard disk, or, alternatively, at the DOS C> prompt, type COPY A:*.IR C:\CRESTRON\USERDB\ [RETURN] ). If a driver with the same filename already exists do not overwrite it! Seek advice from the program author before copying it. 2. Either, in Windows drag any *.UMC driver files from the floppy disk to the C:\CRESTRON\SIMPL\USRMACRO folder on the hard disk, or, alternatively, at the DOS C> prompt, type COPY A:*.IR C:\CRESTRON\SIMPL\USRMACRO\ [RETURN] ). If a driver with the same filename already exists do not overwrite it! Seek advice from the program author before copying it. Page 60

CNX CookBook 1.40 2001 David Webster 3. Start the SIMPL Windows application. During startup the new user macros and IR drivers will be detected automatically. Select File>Open and browse to the A: drive and the program file *.SMW. Click OK. If a Problems Loading Program error appears then it is probable that not all the component IR or UMC files have been correctly copied to the hard disk. Click Show Details for information on which files SMW cannot locate. Note: In SMW 1.24, or later, there is a File>Import Archived Program command which complements the File>Copy Program command, i.e. it automatically copies all of a programs components into the correct folders.

Page 61

CNX CookBook 1.40 2001 David Webster

Storing Source Code in a Control Processor


It may be desirable to store the program and/or touch panel source code inside the control processor itself. Although this uses non-volatile memory it must be considered vulnerable to loss and so should never be used as the only form of backup! The size of the Mailbox storage space is determined by the amount of memory left after the program has been loaded. So the bigger the source code the bigger the program size and the smaller the mailbox size. Send File to Mailbox First prepare a single ZIP file containing the information to be stored in the mailbox. This will often be the SMW program archive, created with the Copy Program command described above, plus the touch panel project file and perhaps any documentation. (It is not strictly necessary to use a ZIP file format but since only one file can be stored in the mailbox this is a convenient and compact choice). Now use the Viewport, File Transfer>Send File to Mailbox command, browse to the prepared ZIP file and Open it. If there is an existing file in the mailbox you will be prompted to confirm overwriting before it is transferred. Get File from Mailbox Use the Viewport, File Transfer>Get File from Mailbox command. You will be prompted to Save the retrieved file which can subsequently be unzipped to the appropriate program and/or touch panel folders. Notes: It is only possible to extract source code from an existing installation if the programmer has previously stored it in the mailbox! This will seldom be the case! Also be aware that since any file format can be stored in the mailbox it is possible to use file encryption. Hence even if a file is retrievable it may be unreadable.

Page 62

CNX CookBook 1.40 2001 David Webster

Updating Control Processor Firmware


The firmware in all control processors is held in flash eprom and can be updated to include new features or bug fixes. To inspect the current operating system version number use the Tools>Viewport, Diagnostics>Check Operating System command. To inspect the current monitor ROM version number use the Tools>Viewport, Functions> Cold Reboot command. As the system restarts it will display text that scrolls off the Viewport window. Use the scroll bar to go back and view the first few lines of this text where the Monitor ROM version number will be displayed. (Note that older CNMS and CNRACK systems do not have a Monitor ROM). CNMS & CNRACK For the older CN series the firmware comprises just one part - the Operating System. Use the Tools>Viewport>File Transfer>Operating System command and locate the *.OPS operating system update file to send. Note the operating system filename will start with the number 3 and end with a single letter suffix. The m version is for the CNMS and the c version is for the CNRACK. (E.g. 31812m.ops is for the CNMS). ST-CP For the ST-CP the firmware comprises two parts, the Monitor ROM and Operating System. To update all the firmware in one step use the Tools>Viewport>File Transfer>Update Control System command and locate the *.UPZ control system update file to send. This command automatically ensures that the monitor and operating system are loaded in the correct order. Note the update system filename will start with the number 4 and end with the letter s. (E.g. 40100s.upz).

Page 63

CNX CookBook 1.40 2001 David Webster CNMSX-AV, CNMSX-Pro & CNRACKX For the CNX series ((which support Ethernet and SIMPL+ operations) the firmware comprises three parts, the Monitor ROM, Operating System and TCP/IP stack. To update all the firmware in one step use the Tools>Viewport>File Transfer>Update Control System command and locate the *.UPZ control system update file to send. This command automatically ensures that the monitor, operating system and TCP/IP stack are loaded in the correct order. Note the update system filename will start with the number 5 and end with the letter x for CNMSX or letter w for CNRACKX. (E.g. 51011x.upz is for a CNMSX). If, after a firmware update, communication with the control processor is lost, it may be necessary to reload the firmware. First regain communication while using the Viewport by cycling the control processor power off then on. As the control processor starts up text will be displayed in the receive window of the Viewport. When the invitation to press ESC For Debug appears press the Esc key. The debug monitor will start and display a range of commands available followed by a * prompt. Press F5 and communication should be verified by a version number being displayed (5.00.00) Now use the File Transfer>Update Control System command and re-send the firmware.

Updating Touch Panel Firmware


The firmware in the touch panel is held in flash eprom and can be updated to include new features or bug fixes. To inspect the current firmware version number, if the panel is connected to the Cresnet, use the Tools>Viewport, Diagnostics>Report Network Devices command. The listed touch panel description includes the firmware version within square brackets. Alternatively use the panels built-in Setup feature and select Firmware or About to display the version number on the LCD. To update the firmware use the Tools>Viewport, File Transfer>Update Touchpanel Firmware command, select the network ID and locate the *A.CSF touch panel firmware file to send. After transfer this command automatically pauses then transfers the *B.CSF touch panel. Do not abort the process!

Page 64

CNX CookBook 1.40 2001 David Webster

CNMSX control with a CNRFHT30 30 Button Handset:


Description The CNMSX control processor can be controlled with an RF handset in addition, or as an alternative, to a touch panel (wired or wireless). Remember that button 1 is always positioned physically at the top left and all other buttons are numbered consecutively, left to right, top to bottom. If more than one handset is required each will need to be programmed with a unique RF ID - unless they are all identical, in which case a single RF ID can be used for all of them.

CNRFGWA The RF receiver can be any convenient Cresnet ID but it is factory set to 24. Be sure to use the CNRFGWA symbol, not the older CNRFGW. Since ST1550 series wireless panels occupy more than the one specified RF ID, if join numbers greater than 64 are used, it is important to ensure that any handset RF IDs do not clash with those of any wireless touch panels. For example if a handset is RF ID=11 then a ST1550 must be RF ID 20 or higher. Similarly if a ST1550 is RF ID=10 then a handset must be RF ID=20 or higher. Since it is easier to read and change the RF ID of the ST1550 than the CNRFHT30, it is recommended that the program use the default RF ID=11 for the handset and alter the touch panel to be RF ID=20. Note: The RF receiver NET ID is completely unrelated to any transmitter RF ID.

Setting the Handset RF ID The handset RF ID is usually factory set to 11 and only if a second handset is to be used will it be necessary to change one of the handsets using the Set Transmitter ID command in the Viewport. This command uses a special CNIDC programming cable to transmit the ID code into the handset by infra-red. Select TOOLS>VIEWPORT to open the Viewport. Now select FUNCTIONS>SET TRANSMITTER ID, enter the required ID, position the CNIDC probe over the IR receiver inside the handset battery cover and click OK. The handset LED will flash during the programming. Do not remove the probe until the flashing ends. Page 65

CNX CookBook 1.40 2001 David Webster

If the programming cable is not available a manual keypad method of entering the ID code is possible, provided the handset has two or more keys available, as follows: 1. Disconnect the battery then press and hold down any key. This key will become the 0 key for programming. Connect the battery and then release the 0 key. The LED will flash once to indicate keypad-programming mode. 2. Now press any other key once. This key will become the 1 key for programming. 3. Enter the required RF ID code in binary using the 0 and 1 keys, previously defined in steps 1 & 2 - most significant bit first. For example, if the RF ID is to be 20h press - 0,0,1,0,0,0,0,0. (See table below for other values). After the eighth bit is entered the LED will flash the two RF ID hex digits as two Morse code characters to confirm programming is complete. Handset RF ID codes Handsets can have 256 different RF ID codes but the following table lists 16 codes and the binary sequence to be entered with the setting procedure described above. RF ID
(Hex) MSB

Binary Value
LSB

10 20 30 40 50 60 70 80 90 A0 B0 C0 D0 E0 F0

0 0 0 0 0 0 0 1 1 1 1 1 1 1 1

0 0 0 1 1 1 1 0 0 0 0 1 1 1 1

0 1 1 0 0 1 1 0 0 1 1 0 0 1 1

1 0 1 0 1 0 1 0 1 0 1 0 1 0 1

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Checking the Handset or Panel RF ID The RF ID of a handset, or ST1550 series touch panel, plus button join numbers, may be checked with the Viewport.

Page 66

CNX CookBook 1.40 2001 David Webster Select TOOLS>VIEWPORT then DIAGNOSTICS>IDENTIFY TRANSMITTER ID. A dialogue box will display the RF ID, the button join number and Press/Release states of buttons as they are operated on the handset, or a ST1550 touch panel. RF Frequency The UK versions of the CNRFGWA operate at 418MHz. European versions operate at 433MHz. It is therefore essential that any RF device to be used with a CNRFGWA should be of the right frequency. All UK frequency products, transmitters and receivers, are identified with the suffix - U or UK.

Page 67

CNX CookBook 1.40 2001 David Webster

CNMSX control with ST-series 1-way wireless touch panels:


The one-way RF wireless ST series touch panels use the CNRFGWA receiver. (If the receiver symbol does not accept the touch panel when configuring it is probable that the older CNRFGW receiver is being used by mistake). This network device has the usual 256 RF ID for transmissions to the receiver but unlike handsets etc which could use any value, it must only be set to 1 of 16 values to match the panel, i.e. 10, 20 etc through to F0. If planning on using the ST series touch panel with an additional RF handset or RF mouse it is important to ensure that the RF IDs do not overlap. For example the ST1550 ships with a RF ID=10 but in practice this means that all RF ID in the range 10 to 1F are occupied by the panel. (This is because the panel has up to 1000 buttons and each RF ID has only 64-button capability). It is therefore necessary to set the RF ID for the handset or mouse to a value outside this range, e.g. 20, 30 etc. Although only a one way communicator, any toggle feedback buttons can be made to stay in synchronisation with the program by making use of the two join numbers that are assigned to the button when operating as a toggle type. The second join number, which is always 500 greater than the initial join number, is transmitted when the button feedback is released. So use a Set/Reset Latch symbol, or similar, with the press and release joins as the S and R inputs, and the touch panel toggle action will be accurately tracked by the program. Remember that only the ST series of touch panels possess momentary, toggle and interlock type of fake feedback which can be used when designing the panel layout. The resulting join numbers from such fake feedback can be used to control the appearance of sub-pages. E.g. a button with toggle feedback can be used to control the appearance of a pop-up sub-page, or a set of buttons within an interlock group feedback can select one sub-page at a time. It is sometimes useful to reset an interlock group to remove all linked sub-pages. Including an extra button in the interlock group can do this. This reset button can be made invisible, if it is a 2D type, by using transparent colour with no frame and no text. It can be placed in the required sub-page in a position that covers the interlocked button that displays the sub-page. In this way a button behaves as though it has a toggle feedback, since the first press displays a sub-page and a second press (which is actually the invisible reset button superimposed over it), or any other button in the interlock group, removes the sub-page. It is not possible to use analogue objects, other than the built-in battery gauge, since there is no way of sending values to the panel. Although it is not possible to use STS programming style Press Groups or Macros to control functions in a CNX program, they can still be used to modify the touch panel Page 68

CNX CookBook 1.40 2001 David Webster fake feedback. However the functions can be reproduced in the program with the equivalent BUTTON PRESSER symbol and STEPPER symbol respectively in SIMPL Windows if required. The STS Programming Kit contains a suitable 3.5mm stereo jack to RJ11 net cable that must be used to transfer a panel layout to the ST series panel via the CNMSX. See the CNX Programming Cable section for wiring details. If desired the User Interface import feature can be used in SIMPL Windows to autoname any join numbers used in the touch panel layout. This can be found in the Configure options for the touch panel but be aware that early versions of SIMPL Windows (i.e. older than 1.30.01) only recognised VTW, not VTPro-e, projects.

Page 69

CNX CookBook 1.40 2001 David Webster

CNMSX control with STX-series 2-way wireless touch panels:


The STX3000 and STX3500C two way 2.4GHz RF wireless touch panels use the CNRFGWX receiver. The STX1550C two way 418MHz RF touch panel uses the STRFGWX receiver. In either case the receiver is a network device has the usual RF ID for transmissions from the panel to the receiver plus a RF Channel for transmissions from the receiver to the panel. It is not necessary for these two ID numbers to be the same and either can be set to be 1 of 16 values. Crestron recommend that RF CH=0 should not be used and that both the panel and the receiver should be set to high power operation. (Low power operation however may be useful if the range requirements are less than 3 metres). The CNRFGWX power output and RF Channel can be set with the Viewport>Functions>Set CNRFGWX Channel command and checked with the Viewport>Diagnostics>Report Network Devices command. (LP=Low Power, HP=High Power) Since the STX1550C, STX3000 and STX3500C panels can also be operated as a wired panel (for trickle charging the batteries), it is recommended that the program should also include a wired network panel definition set to the NET ID to match the panel. The NET ID has no relationship with either the RF ID or RF CH so can be set independently. Using Edit>Copy and Edit>Paste commands it is an easy matter to transfer all press, feedback, analogue and serial signal names from the RF receiver to the wired panel, or vice versa. The STX3000 and STX3500C panels are supplied with a RJ11 to RJ11 net cable that must be used to transfer a panel layout to the STX series panel via the CNMSX. See the CNX Programming Cable section for wiring details. The ST1550C and STX1550C panels use a 3.5mm stereo jack to RJ11 net cable that must be used to transfer a panel layout to the panel via the CNMSX. Only the STX1550C can operate as wired panel with the same cable. See the STS Programming Cable section for wiring details. Unlike the ST1500 series of RF touch panels, it is not possible to draw an analogue battery gauge to display battery power, however the STX3000 and STX3500C plinth features a BATT LOW LED instead. Because no STX series panel have a built in option to power up on the last page (as the ST1500 series of RF touch panels does) it may be necessary to include logic within the program to track page flips and hence force the panel to go to the last page used after a touch panel power down. See Page Flips section for more information.

Page 70

CNX CookBook 1.40 2001 David Webster

Intersystem communications:
In larger systems it may be desirable to use more than one control processor. For example a ST-CP might be in the home cinema room for local device control, while a CNMSX-AV might be in the basement for whole house control. Unfortunately it is not possible to link them together via the Cresnet wiring since there can be only one processor per Crestron network. However it is possible to link them via two COM ports and a RS232 cable. For cable runs longer than 10m it may be necessary to use RS422. In CNX systems the COM ports are already RS422 capable but for the ST-CP a third party bi-directional RS232-RS422 converter will be necessary. Serial connections To share signals between two control processors it is only necessary to set up a XSIG2 symbol in both programs and route the TX$ and RX$ signals to the COM port used for intersystem communications. Each XSIG2 symbol must be the exact complement of each other and use an offset value of 0d. COM ports should be configured for the highest baud rate common to both ends, with 8 data, no parity and 1 stop bit. For the ST-CP the highest baud rate is 38,400 and for the CNX it is 115,200. For example, to send button presses from a ST1550C wireless panel that are received via the ST-CP built-in RF gateway, to a CNMSX-AV it will be necessary to program the button signal names into an appropriate number of DIG_IN inputs of the XSIG2 symbol in the ST-CP and in the CNMSX an identical number of signal names must be used as DIG_OUT outputs from its XSIG2 symbol, and vice versa. Analogue values and strings may also be sent using the AIN inputs and AOUT outputs. ST-CNX Intersystem RS232 Cable This cable is identical to the STPK programming cable and is wired as follows: PC to ST-CP: RJ11 1 2 3 4 5 6 (Part number RGBST-9F1) 9w D-type Female 7 5 3 2 8 no connection

Page 71

CNX CookBook 1.40 2001 David Webster CNX-CNX Intersystem RS232 Cable This cable is wired as follows: 9w Female Type 1: 9w D-type Female 8 5 2 3 7 (Part number RGBCN-9F1) 9w D-type Female 7 CTS 5 Ground 3 Data 2 Data from CRESTRON 8 RTS from CRESTRON

CNX-CNX Intersystem RS422 Cable This cable is wired as follows: 9w Female Type 3: 9w D-type Female 8 5 1 6 4 9 7 (Part number RGBCN-9F3) 9w D-type Female 7 CTS to CRESTRON 5 Ground 4 Data+ to CRESTRON 9 Data- to CRESTRON 1 Data+ from CRESTRON 6 Data- from CRESTRON 8 RTS from CRESTRON

E-Control connections To share signals between two CNX control processors with CNX-ENET or CNXENET+ Ethernet boards fitted, or a CEN series of control processor, it is only necessary to set up a E-Control Intersystem Communication symbol in the Ethernet Units section of each hardware configuration. Then route any shared digital, analog or serial signals to or from the symbol in both programs. Each Intersystem Communication symbol must be the exact complement of each other.

Page 72

CNX CookBook 1.40 2001 David Webster

Converting a project to a different panel type


Introduction If you have created a touch panel layout for say a monochrome ST1550 panel but would like to use the same layout with a colour ST1550C panel it is possible to have VTPro-e automatically convert the project for you. (The reverse is also possible). Similarly 10 projects can be converted to or from a 6 layout. Convert Project Properties Open the project to be converted and select Edit>Project Properties. Change the Panel Type to the new panel type. Click Convert project without backing it up first. (You may alternatively click Backup project before changing panel type in which case the original project will be backed up as BACKUP.PRJ). Click OK to close Project Properties. Note A monochrome project when converted to colour will initially be displayed in shades of grey. It may be desirable to manually change object colour properties to make use of the full colour palette. A colour project when converted to monochrome will be displayed in shades of grey. Since many of the possible colours will convert to the same shade of grey, it is probable that some objects will convert all their colours to the same shade of grey. It will be necessary to manually edit the colours to preserve contrasts.

Page 73

CNX CookBook 1.40 2001 David Webster

Converting old projects to VTPro-e 2.2 or higher


From VTW If you have created a touch panel layout using VTW but would like to use the same layout with VTPro-e it is possible to have VTPro-e automatically convert the project for you. (The reverse is not possible). Simply File>Open the old VTW project in the usual way and VTPro-e will prompt for the conversion option you require. Select one and the new project file with the extension .VTP will be created. Note: VTW did not have the ability to define the active text colour for 2D buttons but VTPro-e does. Such 2D buttons will by default have their active text colour set to black when converted. This is not very convenient if you have an active button colour also set to black since the text will not show when in the active state. It is therefore necessary to edit all 2D buttons and define the active text colour to contrast with the active button colour, probably white or the same as the inactive face colour. From VTPro or VTPro-e 2.1.9 or older If you have created a touch panel layout using VTPro or VTPro-e version 2.1.9 or older and would like to use the same layout with VTPro-e 2.2 or higher then simply open the project in the usual way. However you may find that when the project is compiled the new Compile Log feature lists errors that you were not aware of. These are usually objects that have somehow been positioned off the visible page or subpage. To fix the VTPro-e compiler error it will be necessary to find the invisible objects and delete them. This can be done with the following procedure: Open the page with errors. Click the blue Snap Back Inside button on the Tool Bar. If the object causing the error is a sub-page use Display>Sub-Pages, click Select All then Make Visible and OK, so that it can seen. Locate and delete all the unwanted objects. (Be aware that an unwanted object may be underneath other objects that are stacked on top of it). Press F12 to recompile the project and the Compile Log should be clear of errors for the page just processed. Repeat the above procedure until all pages are error free.

Page 74

CNX CookBook 1.40 2001 David Webster

Printing Panel Layouts


Why Print? The ability to produce printed copies of panel layouts is very useful. Especially as a sales tool, for specification agreements and documentation for user manuals etc. Print One Print All It is possible to print individual pages of a project or the entire project at once. Because a printed page is a copy of the pages on screen appearance it is important to arrange the page as needed before printing. For example if Display Join Numbers is On then the printed page will also show join numbers. If the page contains sub-pages it will also be necessary to Show or Hide them as required with Display Sub-Pages prior to printing. It may even be useful to print several different versions of the page with different sub-pages visible to illustrate how the page works. To alter the size of the printed image select an image zoom factor in the DISPLAY menu. Select FILE>PRINT SETUP and choose the printer settings needed. Note that a colour page will be printed on a monochrome printer with shades of grey. Printing is always one touch panel page per sheet of paper. To print a single page First open the page on screen and arrange it as required. Then select FILE>PRINT and the page will be printed To print all pages of a project First arrange each page as required and then close all pages but leave the project window open. Now select FILE>PRINT ALL PAGES and all project pages, including sub-pages, will be printed.

Page 75

CNX CookBook 1.40 2001 David Webster Printing more than one page per sheet VTPro-e cannot print multiple touch panel pages per sheet, but it is an easy matter to export pages to a word processor which can. Alternatively use the Project Document feature described below. Open the page to export, arrange it as required and then select FILE>PRINT TO FILE. Choose a file type compatible with your word processor (the default *.JPG works with MS Word), and enter a filename. Click OK to save the file in the same folder as the project. Repeat for all the required pages and then exit VTPro-e and start the word processor. At the point in the document where a touch panel page is to be included select INSERT>PICTURE (for MS Word) and browse to the project folder and choose the touch panel page image file. Click OK. Repeat as required.

Project Document VTPro-e can turn projects into Word 97 doc files. These documents are presentable, professional looking project reports that can be used for project documentation or for creating specifications for the control system programming. They display the touch panel screen along with a table listing the join#, name, button description, and page flip. To use the Word 97 template provided for this purpose see the Create Project Document section of the built in VTPro-e Help.

Page 76

CNX CookBook 1.40 2001 David Webster

Using a CNECI-4A, ST-PC, ST-IO or SP-RY Relay Box


The following table indicates the main features of the four relay boxes and which Crestron Database driver should be used for each. Part CNECI4A ST-PC ST-IO SP-RY Relays 4 changeover 2 normally open 8 normally open 4 normally open Rating 240 VAC 5A 240 VAC 5A 24 VDC 1A 24 VDC 1A Inputs 8 contact 2 Buttons 4 contact/voltage None Port / Symbol CresNET / CNECI-4A CresNET / ST-PC CresNET / ST-IO IR/Serial / SP-RY MOMENTARY or INTERLOCKED

CNECI-4A The CNECI-4A symbol can control four relays and includes outputs from the eight digital input ports. Each digital input senses contact closure to ground. If the CNECI-4A is powered up with its built in AC power supply but the control processor is not connected or on, then the first four digital inputs act locally to toggle the relays on or off without any programming. The diagram below shows a simple way of wiring a single relay in a CNECI-4A for control of an electric screen.
N.C. UP

RELAY 1

COM

COMMON

<5A <240V AC/DC MOTOR

N.O.

DOWN

CNECI-4A

SCREEN

Note: This example assumes that the screen has built in limit switches. See the Relay Wiring Examples section for other wiring arrangements.

Page 77

CNX CookBook 1.40 2001 David Webster ST-PC The ST-PC symbol can control both relays and includes the inputs from the 2 front panel push buttons. To program the push buttons for local manual power on/off control it is necessary to create a Toggle symbol for each relay. If the ST-PC is powered up, with its own AC power supply, but the control processor is not connected or on, then the front panel buttons act locally to toggle the relays on or off without any programming. The diagram below shows a convenient way of wiring the three mains cables attached to the ST-PC for control of an electric screen via suitable junction box..
L N G 240VAC L N G L N G OUTPUT 1 UP DOWN NEUTRAL OUTPUT 2 GROUND

<5A MOTOR

ST-PC

JUNCTION BOX

SCREEN

See the Relay Wiring Examples section for other wiring arrangements.

Page 78

CNX CookBook 1.40 2001 David Webster ST-IO The ST-IO symbol can control eight relays and includes outputs from the four digital input ports. Each can be configured as either contact closure or voltage sensing with four links inside the ST-IO. The input modes, which default to contact closure, can be displayed by using F4-Report Network in the ViewPort. The diagram below shows a practical way of wiring two relays in a ST-IO for low voltage control of an electric blind.
UP RELAY 1

COMMON

<1A <24V DC MOTOR

RELAY 2

DOWN

ST-IO

SCREEN

Note: Each ST-IO relay has a pair of isolated connections and so a wire link between relay 1 and relay 2 is required as shown. This example assumes that the blind has built in limit switches. If the load exceeds the ST-IO internal relays then external slave relays could be used as follows.
DC PSU UP RELAY 1 EXT 1 COMMON <1A <24V DC EXT 2 RELAY 2 DOWN MOTOR

ST-IO

SCREEN

Note:

Page 79

CNX CookBook 1.40 2001 David Webster The two external relays, EXT 1 and EXT 2, should be 24VDC coil types with contact ratings suitable for the load to be switched. The 24VDC supply for the relays can be obtained by connecting into the CNX Cresnet port. See the Relay Wiring Examples section for other wiring arrangements. SP-RY There are two SP-RY driver symbols in the Crestron Database - Momentary and Interlocked. Both have identical functions when used in SIMPL Windows programs so you may use either version. Each relay can be momentary, latched open, latched closed, toggled or interlocked with the others, with either driver version. (However when used with the Crestron SP-1 SmartPresenter choose either the Momentary or Interlock version for normally open or mutually exclusive latched closed relay control respectively. Note all four relays are either Momentary or Interlocked when used with the SP-1). The SP-RY box connects directly with a 3.5mm stereo jack lead to an IR/Serial port of a ST-CP or SP1 and is programmed just like any other IR device. However to use with any control processor, other than the SP-1, it will require its own additional 12VDC power supply. Also note that for use with the CNMS or CNXMS IR/Serial ports, which are fitted with 2 pin screw terminal connectors an adapter lead, CN-SP112, will be required in addition to the 12VDC power supply mentioned above. The ST-CP does not need the CNSP112 cable since the 3.5mm jack plug cable supplied with the SP-RY can be plugged directly in to its IR ports.
12VDC PSU UP RELAY 1

COMMON 1+2

COMMON

<1A <24V DC MOTOR

RELAY 2

DOWN

SP-RY

SCREEN

Be aware that the four relays are not wired completely separately. Relay 1 & 2 share a common connection and Relay 3 & 4 share another.

Page 80

CNX CookBook 1.40 2001 David Webster Relay Wiring Examples Note that in all the following examples: When using more than one relay for a particular device, it is important to ensure that opposing relays cannot be switched on at the same time. Also to avoid relay contact damage caused by the back e.m.f generated by a motor as it stops, it is important to use a short delay before switching directions. For motors with current demands in excess of the Crestron relay contact rating then additional external slave relays with suitable contact ratings will also be needed. The Crestron 24VDC power supply can provide power for external relays but should not be used to power any motors. If the motor has built-in limit switches then a timed contact closure is not actually necessary and latched relays could be used. However I recommend using timed contact closure since if the limit switches fail or the motor jams then it will not end up running continuously, which could be hazardous.

Electric Motors - common ground control with normally open relays Two normally open relays can be used to control an electric motor if there is a common ground and two motor supply inputs - one for each direction. For example screen up and down. ST-I0, ST-PC, SP-RY or CNECI-4A
RELAY 1 UP DOWN <24VDC RELAY 2 GROUND

<1A MOTOR

PSU

SCREEN

Page 81

CNX CookBook 1.40 2001 David Webster Electric Motors - common switching control with normally open relays Two normally open relays can be used to control an electric motor if there is a constant motor supply plus a single common switching input for direction control. For example screen up and down. ST-I0, ST-PC, SP-RY or CNECI-4A
RELAY 1 +VE +VE UP/DOWN <24VDC

<1A MOTOR

0V

RELAY 2

GROUND

PSU

SCREEN

Electric Motors - voltage reversal control with normally open relays Four normally open relays can be used to control an electric motor if it needs the supply voltage reversed for each direction, for example screen up and down. ST-I0, SP-RY, CNECI-4A or 2 x ST-PC
RELAY 1 +VE +VE

<24VDC

<1A RELAY 2 RELAY 3 0V -VE MOTOR

PSU

RELAY 4

SCREEN

The program must be arranged to operate Relay 1+3 together (up) and Relay 2+4 together (down).

Page 82

CNX CookBook 1.40 2001 David Webster Electric Motors - common ground control with c/o relays & manual control A single changeover relay can be used to control an electric motor if there is a common ground and two motor supply inputs - one for each direction. For example blind open and close. However by using two changeover relays it is possible to have pauses in between changing motor direction (necessary to avoid problems with back e.m.f.) and include manual control switches. CNECI-4A
COM

N.O. N.O. MANUAL

RELAY 1 N.C. COM N.O. +VE

RELAY 2 N.C.

UP

<240VAC

COM N.O. 0V

DOWN

<5A MOTOR

COMMON

PSU

SCREEN

Note: Both relays are normally off, with either the Auto relay on, or Auto & Close relays on, for the duration of a blind open or close movement respectively. If a user switches direction while the blinds are in motion, the relays can be released and, say, a 1 second delay occurs before the relays for the opposite direction are switched on. This is to avoid problems due to a rapid reversal of motor direction. The Manual Switch is optional, but if fitted will function even when the Crestron system is off. The switch should be a three position type, biased to centre off, OR two push buttons (interlocked momentary push to make type).

Page 83

CNX CookBook 1.40 2001 David Webster Electric Motors - common switching control with c/o relays & manual control A single changeover relay can be used to control an electric motor if there is a constant motor supply plus a single common switching input for direction control. For example blind open and close. However by using two changeover relays it is possible to have pauses in between changing motor direction (necessary to avoid problems with back e.m.f.) and include manual control switches. CNECI-4A
COM

N.O. N.O. MANUAL

RELAY 1 N.C. COM N.O.

RELAY 2 N.C. COM +VE N.O. +VE

<240VAC

UP/DOWN

<5A MOTOR

0V

COMMON

PSU

SCREEN

Note: Both relays are normally off, with either the Auto relay on, or Auto & Close relays on, for the duration of a blind open or close movement respectively. If a user switches direction while the blinds are in motion, the relays can be released and, say, a 1 second delay occurs before the relays for the opposite direction are switched on. This is to avoid problems due to a rapid reversal of motor direction. The Manual Switch is optional, but if fitted will function even when the Crestron system is off. The switch should be a three position type, biased to centre off, OR two push buttons (interlocked momentary push to make type).

Page 84

CNX CookBook 1.40 2001 David Webster Electric Motors - voltage reversal control with changeover relays Two changeover relays can be used to control an electric motor if it needs the supply voltage reversed for each direction, for example screen up and down. CNECI-4A
RELAY 1 +VE N.O. COM <24VDC N.C. <1A MOTOR -VE COM N.C. PSU SCREEN +VE

RELAY 2 0V N.O.

Note: Both relays are normally off, with either Relay 1 on, or Relay 2 on, for the duration of a screen up or down movement respectively. If a user switches direction while the screen is in motion, the relays can be released and, say, a 1 second delay occurs before the relays for the opposite direction are switched on. This is to avoid problems due to a rapid reversal of motor direction.

Page 85

CNX CookBook 1.40 2001 David Webster Light Dimmer - contact closure control of a single room Four normally open relays can be used to control an electronic dimmer if it needs four momentary contact closure inputs to select preset lighting levels. ST-I0 or SP-RY
RELAY 2 1 P1

RELAY 2 P2

RELAY 3 P3

RELAY 4 P4

COM

DIMMER

Each relay should be programmed for mometary contact closure with a One Shot timer symbol. Typically 0.5sec will be OK.

Page 86

CNX CookBook 1.40 2001 David Webster Light Dimmer - contact closure control of a partitioned room Eight normally open relays can be used to control an electronic dimmer if it needs four momentary contact closure inputs to select preset lighting levels each half of a room that can be split by a partition. The partition can be fitted with a changeover switch that permits the ST-CP to automatically control one half (split rooms) or both halves (joined rooms) together. ST-I0
RELAY 1 P1

RELAY 2 P2

RELAY 3 P3

RELAY 4 P4

COM IN 1 IN 2 G P1 S T-IO P2 PARTITIO N SW

DIMMER 1 RELAY 5

RELAY 6

RELAY 7 P3

RELAY 8 P4

COM

DIMMER 2

Relays 5,6,7,8 can be operated in parallel with relays 1,2,3,4 by means of a Buffer symbol enabled by the partition switch input. It is assumed that the partition switch is connected to input 1 when the room is joined and open when the rooms are split. Page 87

CNX CookBook 1.40 2001 David Webster 35mm Slide Projector - contact closure control The tray and focus functions of a 35mm slide projector can be conveniently controlled via a SP-SC slide control interface, while the lamp on/off function, if required, can be controlled with one of the two relays in a ST-PC to switch the AC mains supply. Alternatively six low voltage relays in a ST-IO can be wired to control the tray and focus functions of a Kodak SAV (or 6 pin DIN compatible e.g. Elmo) projector: ST-I0

FWD 1

REV 2

FOC+ 3 6w DIN Plug

FOC4

COM 5

FOC COM 6

(An external slave relay, with 240VAC rated contacts and a12VDC coil, could also be controlled with a spare relay in the ST-IO, instead of using a ST-PC, for lamp on/off switching). The circuit diagram below shows more clearly how closing two normally open relays at the same time (i.e. 3+5 or 4+6) for either FOCUS+ or FOCUS- operations reverses the focus motor.
+24V 4 5

FWD

REV

2 FOC+ M 3 FOC6

0V

The program should operate relays 3+5 for FOCUS+ and relays 4+6 for FOCUS-.

Page 88

CNX CookBook 1.40 2001 David Webster

Using a ST-VC/CNXVTC-3 or IR controlled audio amplifier


The following table indicates the principal features of the two main ways to control volume. Part ST-VC or CNXVTC IR Amp Functions VOL+/- or N, TREBLE +/BASS +/MUTE/ UNMUTE VOL +/MUTE ? Signal Line level: Balanced/ Unbalanced. Channels 3 mono CresDB Driver VOLUME CONTROL, CRESTRON, ST-VC

N/a

1 mono/ stereo

IR DEVICE

In general the ST-VC or CNX-VTC is to be preferred over IR for the following reasons: The users volume control range is constrained, e.g. 0dB to -30dB range. This prevents users from setting the volume too high or low. Startup volumes can be defined Source gain compensation can be applied. Volume, treble and bass level feedback available. Volume, treble and bass levels can be stored and recalled. The speed at which the volume or tone changes can be instant or over any defined period. Smooth volume control in small or large steps is possible The mute control is explicitly on or off. This permits accurate mute status display on the touch panel. In the mute state the volume is zero. When un-muted the original volume is restored. Soft muting, i.e. fades instead of sharp switching, can be achieved. Each channel has independent treble and bass controls. Two channels may be used as a stereo pair for program volume leaving the third channel for voice reinforcement volume. Can be used to convert audio signals e.g. balanced to unbalanced or unbalanced to balanced. The Cresnet wiring permits volume control in a remote location. IR controlled amplifiers may have some or all of the following disadvantages: The volume can be set by the user at a level which might cause overload, distortion or even damage to loudspeakers. Small changes in volume may not be possible. The mute control if present could be a toggle on/off type resulting in ambiguous operation from a touch panel. Page 89

CNX CookBook 1.40 2001 David Webster The mute level may be just a -20dB level reduction and/or may not restore to the original level when un-muted. Treble and bass controls, if present, may not be IR controllable. Only the program volume can be controlled. Voice reinforcement volume cannot be independently controlled. Signal type conversion, i.e. balanced/unbalanced is not possible. ST-VC or CNX-VTC To use channels A and B as a stereo pair it is necessary to program both from the same Ramp symbol. For non-volatile storage of the last used volume setting use a Non Volatile Ramp symbol instead. (This can be found in the Symbol Library Memory folder). The Ramp output may also be applied to an analogue Gauge or Slider object on a touch panel to give a bar graph display of volume setting. Remember that analogue objects have join numbers in the range 1 to 255 but since these are separate from the digital joins 1 to 1000, there can be both a digital join 1 and an analogue join 1 in the same touch panel project. Be aware that the Digital Gauge, Percent and Time touch panel objects also use analogue joins and convert analogue values to the appropriate display format automatically within the panel. Hence it is possible to send an analogue value to a panel on a single analogue join number and have it display it in two or more forms simultaneously, e.g. a bar graph plus a percentage indicator. Treble and Bass tone controls can be adjusted in a similar manner with further Ramp symbols. Crestron Database Driver The Crestron Database contains a ready-made driver for the ST-VC which may be more convenient than writing your own logic. To use it drag and drop the ST-VC to the Cresnet Units section in the Configure System view and click Yes to load the default logic driver. This will create a red sub-system in the program Logic folder. Either drag the auto-named signal inputs to your buttons as appropriate, or drag an existing button signal name onto the appropriate sub-system input and click OK when permission to rename globally is requested. It is only indirectly possible use the Cresdb logic driver with an internal CNXVTC-3 expansion card. First add a fictional ST-VC to your program as described above then add the actual CNXVTC-3 card. Now in the Program view open the ST-VC and CNXVTC-3 symbols and drag across the input signal names. This is best done in two steps, first the three blue Mute signals (omit the fourth Mute-All), which are digital, and then the Volume Treble and Bass signals, which are analogue. Next highlight the red ST-VC Logic sub-system and press CTRL-C to copy it, then highlight the main Logic folder and press CTRL-V to paste the duplicate copy. Finally in the Configure view right click the unwanted ST-VC and select Delete. This will also remove the unwanted original red sub-system leaving the copy of it connected to the CNXVTC-3.

Page 90

CNX CookBook 1.40 2001 David Webster Audio Wiring Each channel of the ST-VC or CNX-VTC can be used for balanced/unbalanced inputs and balanced/unbalanced outputs. See the ST-VC or CNX-VTC Operations Guide for full details. Each port can be wired in either one of the following ways: In + X + Out - G In + X + Out - G

Unbalanced 10K Input

Unbalanced Output

Balanced 600R Input

Balanced Output

If required it is also possible to convert from a balanced input to an unbalanced output and vice versa. The ST-VC module and CNX-VTC card have three ports arranged as shown:

Port A

Port B

Port C

Note: The ST-VC and CNX-VTC are designed to operate at line levels only i.e. connected between the source/switcher/pre-amp and the power amplifier. Do not use directly with speaker output levels. Do not use directly with microphone level signals as the signal to noise ratio will be poor. If necessary use a mic pre-amp between the mic and the ST-VC/CNX-VTC input. At maximum user volume the gain is 0dB. At minimum user volume the mute relay is automatically engaged to short the output signals to ground.

Page 91

CNX CookBook 1.40 2001 David Webster IR Controlled Amplifiers All Crestron IR drivers have a minimum pulse length, which in the case of an amplifier can mean that when the user adjusts the volume the sound changes in steps that are too large. This can be minimised by attenuating the input signal to the amplifier, therefore forcing the full range of the volume control to be used and hence the increments to be less significant. Alternatively the IR driver can be modified to use fewer IR code repeats as described in the Modify IR drivers in the User Database section. If two IR controlled amplifiers for say a split room, are to be volume controlled at the same time from the same buttons, but from separate IR ports, then it is necessary that the ports be on separate CNXIR-8 cards (i.e. the built-in IR port plus an extra plug-in IR card). This is to ensure that both ports emit IR commands of the same duration, at the same time, and equal to the users button press. Since the IR ports on a single card always operate sequentially, if two or more outputs are triggered at the same time, then all but the last will transmit for the minimum number of IR repeats and the last will transmit for the remainder of the duration of the command, or users button press.

Page 92

CNX CookBook 1.40 2001 David Webster

Troubleshooting
Communication Problems PC to CNX: Ensure that the 9-way D-type plugs are pushed fully in at both ends of the programming lead. Select TOOLS>VIEWPORT and then in the Viewport press F5 to check communications. The control processor firmware version number should be displayed. If not check that the COM port setting in SETUP>COMMUNICATIONS matches the port being used. Try resetting the control processor by pressing the recessed HW-R button on the front panel. Also check that only one of the two COMPUTER ports, i.e. the front and back connectors, is in use. PC to Touch Panel: For ST series touch panels ensure that the 3.5mm jack plug is pushed fully in to the panel. For wired touch panels ensure that the Cresnet wiring is correct. Select TOOLS>VIEWPORT and then in the Viewport press F4 to check all network connections. The touch panel ID number plus any other attached network devices should be displayed. If not check wiring and for ST series touch panel ensure that the touch panel is on before attempting communication by touching its screen and that any other connected network devices are also powered up. Try resetting a ST series touch panel by disconnecting the battery and the AC adapter from it for 30 seconds. Programming Cables Check both programming cables against the wiring details given in the Programming Cables section. If you are using a serial extension cable between the PC and control processor then it must connect pin to pin and carry all signals or at least pins 2,3,5,7 & 8.

Upload Problems Check that the upload destination network ID matches that set in the panel. (Remember that the Net ID and RF ID are different). If while uploading to a touch panel the LCD does not display progress messages check PC to Touch Panel communications and also that no other connected network device has the same Net ID. If the panel is a colour unit and the uploaded panel layout is displayed with false colours check that the Project Properties are set to a colour panel type - not greyscale as the Panel Type.

Page 93

CNX CookBook 1.40 2001 David Webster If a ST-CP is flashing all of its front panel LEDs in a sequence it is executing a factory loaded test program. To erase this program Select TOOLS>VIEWPORT and then in the Viewport select FUNCTIONS>ERASE PERMANENT MEMORY. Try resetting the panel by disconnecting the battery (ST series touch panels) and the AC supply (Control Processor) for 30 seconds. RF Problems If the RF LED on the CNRFGWA does not light when a button is pressed on the touch panel or handset check that the ST series touch panel or CNRFHT30 and the CNRFGWA are all operating on the same RF frequency. The UK versions of these products operate at 418MHz. European versions operate at 433MHz. All UK frequency products are identified with the suffix -U, while all European products have just the suffix -A. Remember that the CNRFHT30 handset has a low power sleep state and needs to be wakened by a long press of any button before it will start to transmit. If the CNRFGWA receiving aerial is not plugged directly into the BNC socket on the back of the unit check that any BNC adapters/connectors and cables are 50 ohm type. Do not use 75 ohm types as used for video connections. To test RF performance of a ST series touch panel go into the panel Setup and select Advanced Settings, Self Test. Press the RF Test button and check that the RF LED of the CNRFGWA lights. Buttons Not Working Check that both the Project and Program have been compiled and uploaded after making any changes to either. Select TOOLS>VIEWPORT then FUNCTIONS>IDENTIFY TRANSMITTER ID. A dialogue box will display the RF ID, the button join number and Press/Release states as the ST series touch panel, or a handset, buttons are operated. Check that the ST series touch panel RF ID setup matches that defined in the program hardware configuration. If handset buttons operate touch panel functions, or vice verse, check that the RF ID of both devices do not overlap. For example a ST1550/C with the default RF ID=10 and a handset with the default RF ID=11 will clash since the panel uses RF ID=10 through 1F. In this case changing the panel RF ID=20 is the easiest option. IR Device Not Working If the CNMSX-Pro lights the appropriate front panel IR LED when a button is pressed check that the ST-IRP probe is mounted directly in front of the devices IR receiver window. The small hole in the probe housing should face the IR receiver window. If the ST-IRP cable has been extended or modified check the cable for continuity and also reversed wiring.

Page 94

CNX CookBook 1.40 2001 David Webster If using the ST-MB IR sprayer try reducing the distance between the IR emitter and the IR receiver and check that the line of sight between them is clear of obstructions. (Remember not all IR receivers have the same sensitivity). If using the ST-SPL IR splitter ensure that only genuine Crestron ST-IRP types of IR emitters are connected to it. The ST-series wired serial adapter cables and other IR emitter types may consume more power and prevent correct operation. If some functions work, say input switching (which are short pulses), but not others, say volume control (which are long pulses) then it may be that the IR probe is saturating the IR receiver in the equipment. Try locating the IR probe further away from the IR receiver window, or aim it indirectly towards it. In extreme cases it may be necessary to attenuate the IR signal by wiring a resistor in series with the IR probe. Try a value of 390R. (This has been found to work with the Theta Casanova processor OK). For a CNMSX-AV, or if the CNMSX-Pro fails to light the appropriate front panel IR LED when a button is pressed, check that the panel and program have both been compiled without errors and uploaded. Check programming for button function assignments. Check Port assignment for the device in the program hardware configuration is correct. Check that the IR driver selected in the program hardware configuration is correct. Try any alternative drivers for similar models if available. If the IR device is from the User Database check the driver file with WinDEAL to ensure that function names do not contain spaces and that the filename does not have more than 8 characters. If you have made changes to the Header information of a driver file in the User Database a simple Rebuild User Database will not detect the alterations. It will be necessary to remove the *.IR file from the UserDB folder, rebuild the database, replace the *.IR file and rebuild the database again. If the device is from a user installed IR driver and only works on every second push of the button then it uses RC5 Odd/Even codes. Try substituting the driver with a similar one from the Crestron database, e.g. Select a known RC5 type of driver such as the Marantz CD driver for a CD player etc. See Appendix D for more information about RC5 drivers. RS232/422/485 Device Not Working Check that the front panel COM LED flashes when a button is pressed. If not check programming for function assignments. Ensure that the 9-way D-type plug is pushed fully in to the correct socket of the control processor. Check that the wiring for the serial cable is correct. Remember that some devices may need links in the D-type connector to enable communications. It may be worth trying reversing pins 2 & 3! For RS485 communications it is necessary to link 1+9 and 4+6 to form the two bidirectional data signals. The program must also control the RTS state to determine

Page 95

CNX CookBook 1.40 2001 David Webster RS485 transmit or receive modes otherwise it will default to transmit constantly which will affect other devices on the same RS485 connection. Check that the baud rate, com spec, addresses etc. if adjustable on the device match the serial driver being used. Some serial devices need to have RS232 communications enabled in software. If so ensure that your program send the appropriate RS232 ON command at power up.. For additional information on using some specific devices try looking it up in the online help i.e. in VTPro-e select HELP>CRESTRON DATABASE. Network Device Not Working Ensure that the network RJ11 plugs are pushed fully in to the ST-CP NET socket (not either of the COM sockets) and the network device. Remember that network devices have two NET ports wired in parallel so either can be used. The second NET port is then available for the ST1550/C programming cable or other network device to be daisy chain connected. Ensure that the network device power indicator is on. Check that the network cable has been wired pin-to-pin for RJ-11 to RJ-11 connections, or wired as shown in the Network Cable section for RJ-11 to CN series NET connections. If the NET LED flashes on the control processor when a button is pressed but the device does not respond check that its network ID matches the program. Select TOOLS>VIEWPORT and then in the Viewport press F4 to check all network connections. The ID number of all attached network devices, and the firmware revision number, should be displayed. ID numbers must be unique for each device connected. Check that the firmware revision of the network device is the most up to date version. If not obtain the revised firmware and transfer it with TOOLS>VIEWPORT and the FILE TRANSFER>LOAD NETWORK DEVICE command. If necessary, change a device network ID by selecting FUNCTIONS>SET NETWORK ID. (This does not work for touch panels or CN series devices that have built-in NET ID switches). Highlight the device number to be changed, enter the new 2 digit ID and click OK. ID numbers must be in the range 03 to FF. If this fails to work first time repeat the process. Note that if using more than one device of the same type, for example two ST-IO relay boxes, then they will be both factory set to the same ID and one of them must be changed. (Connect one only, change its ID, and then connect the second) For further information consult the Operations Guide supplied with the network device. Calibration Problems If touch panel buttons seem insensitive or intermittent ensure that the touch panel is correctly calibrated. Use the touch panel built in SETUP option and select Calibrate. Be very careful not to touch the top left calibration point twice as this will calibrate the Page 96

CNX CookBook 1.40 2001 David Webster touch area to be small and unusable. If this should happen the only way to recover is to connect the panel to the control processor and from TOOLS> VIEWPORT select FUNCTIONS>PUT TOUCH PANEL INTO CALIBRATE MODE. This will force the panel to go to its built-in Calibrate screen. Be aware that for wireless panels it is possible to accidentally re-calibrate the touch panel if the screen is held while changing the battery. It is also worth checking to see if any foreign objects have become lodged between the screen bezel and the LCD as this can cause complete loss of control or inaccurate calibration. If the screen lights as soon as a battery pack is inserted then it is probable that this has happened and the bezel should be unscrewed and the LCD surface beneath it cleaned. Also check for perforations or other damage to the touch panel surface. Digital Input/Output Problems If the digital port is operating as a solid-state relay output be careful not exceed the 24V DC switching limitation as latch ups can occur. If the digital port is operating as an analogue input be sure to switch off the internal pull-up resistor (2K) that by default is present to permit dry contact closure detection. Set the appropriate PU-Disable input in the CNXIO symbol to logic 1. IR/Serial Problems If the IR/Serial port is built in and does not operate as RS232 transmit it is probable that the firmware needs to be updated. All OPS beta versions are likely to be affected with this problem. See Unspecific Problems for updating procedures. If the IR/Serial is an expansion card and does not operate correctly as an IR transmitter then it is probable that the cards internal firmware needs to be updated. An updated firmware file and instructions for use are available. Call RGB Communications for details. Note: Only early examples of the CNXIR8 card are affected this way. Unspecific Problems Check that the program does not have references to non-existent plug-in control cards. If it does the front panel ERROR LED will probably be lit. For a CNMSX-Pro the LCD display can be used to read the error message text. For a CNMSX-AV the TOOLS>VIEWPORT can be used to read the error message. If necessary temporarily comment out the card in the hardware configuration by highlighting it and pressing Alt+F1. Check that the firmware revisions of the control processor Monitor program and Operating System are the most up to date versions. If not download from Crestrons web site the revised firmware and transfer it with TOOL>VIEWPORT and the FILE TRANSFER>UPDATE MONITOR ROM or UPDATE OPERATING SYSTEM commands. Be sure to upload the Monitor ROM (file type *.MON) before the Page 97

CNX CookBook 1.40 2001 David Webster Operating System (file type *.OPS). If using the ethernet card be sure to update the entire control system with the FILE TRANSFER>UPDATE CONTROL SYSTEM command, and browse for firmware files with the .UPZ extension.

Page 98

CNX CookBook 1.40 2001 David Webster Software Installation Problems If you have upgraded SMW or VTPro-e to a newer version some problems may be encountered. Problems can be various and unpredictable. If in doubt about the SMW or VTPro-e installation it is recommended that you delete the existing version and reinstall the new version. Use the Windows Control Panel, Add/Remove Software to uninstall an old version before installing a new version. The first time you run VTPro-e it will ask for a license number to enable the e-control features. Clear the Show check box in the lower right and then click the license later button. The latest version of SMW, VTPro-e and Crestron Database are available for download from the Creston web site www.crestron.com If you are a new user of the Crestron FTP server you will be required to register a name and to give yourself a password for future visits.

Touch Panel Nicad Batteries Not Charging ST1500 and STX Series Ensure that the ST1500/C is fitted with the ST-BP Nicad battery pack and not individual nicad cells, as these will not engage the trickle charge push switch located in the battery compartment. Do not disable this switch as it prevents possible damage arising from attempting to charge ordinary dry cells. Do not attempt to use dry cells with a STX series panel. To reduce memory effect the optional ST-BC quick charger has a Discharge button that can be used prior to charging. Crestron suggest that such a refresh should only be used about 1 in every 25 charges.

ST1550 Series The ST1550/C uses a moulded ST-BPC batter pack and it is not possible to use dry cells, individual nicad cells or the older ST-BP pack. The ST-DS docking station does not have a Discharge button that can be used prior to charging to reduce memory effects. So the ST1550/C panel has a deep discharge function built in. See Reserved Join Numbers for details. Crestron suggest that such a refresh should only be used about 1 in every 25 charges.

Page 99

CNX CookBook 1.40 2001 David Webster CNX-LIR Problems Not communicating Ensure that the CNX-LIR is connected to the PC via a CN2 programming cable as described in the Programming, Network and RS232 Cables section. Check that DEAL is configured to use the COM port connected to the CNX-LIR. Not learning It is possible that the handset is overdriving the IR receiver in the CNX-LIR and yet not causing the OVRDRV LED to light. Try placing the handset and learner further apart. With some handsets distance of more than 1 or 2 metres may be needed. Eliminate any external source of infra-red that may be causing optical interference while learning IR codes. For example fluorescent lamps, plasma screen monitors, movement detectors etc. If the handset transmits codes that vary with the length of button press then try learning a brief press of the button and dont wait for the Release Button instruction. The CNX-LIR firmware may need upgrading to a more recent version. Check the Crestron web site for WINDEAL upgrades and very carefully follow any instructions that come with it for transferring the firmware. Compiler Errors When using DEAL to learn IR handsets with the CNX-LIR please be sure not to use space characters in individual function names or the overall file name when saving the driver to the User Database. Avoid using long file names for the IR driver, i.e. use no more than 8 characters as this will cause the compiler to generate errors.

Page 100

CNX CookBook 1.40 2001 David Webster Database Problems CresDB Ensure that SMW knows the correct location of the CREDB folder by checking with the EDIT>PREFERENCES>DIRECTORY command. To display the CresDB version number use the HELP>ABOUT SIMPL WINDOWS command. If the program was originally written with a newer version of the database then problems may occur and you are advised to download the latest version from the Crestron web site. UserDB Ensure that SMW knows the correct location of the USERDB folder by checking with the EDIT>PREFERENCE>DIRECTORY command. If additional IR driver files (i.e. *.IR) have been added to the USERDB folder but do not appear in the Device Library then use the TOOLS>REBUILD USER DATABASE command. If when rebuilding the User Database with VTPro-e, a Windows error message appears reporting a problem with VTP.INI file then it is likely that one of the IR driver files is corrupted. Remove all drivers from the USERDB folder and add them back one at a time, rebuilding the database each time, until the problem driver is identified. If an IR driver file is already in the User Database and needs to be edited with DEAL it is possible that the modified header and/or other changes may not get updated when the database is rebuilt. To force an update to occur first move the IR file to a temporary location, rebuild the database then move the IR file back and rebuild again.

Page 101

CNX CookBook 1.40 2001 David Webster

Appendix A: Custom Serial Drivers


This appendix lists some examples of Custom Serial Drivers which although intended for SmarTouch System programming can be used with SIMPL Windows. However this is not recommended as their inclusion in a program will generate Red Sub-System Folders that have 200 inputs and 200 outputs that will need to be connected if compiler notices and/or warnings are not to be generated. Of course these extra unused input signals can tied via dummy Buffer symbols to logic zero to remove the problem but it is probably better to use these custom serial driver examples as a source of information about RS232 codes and then type the required control strings directly into a COM port symbol. (Alternatively use a SERIAL IO symbol routed to the COM port via a serial signal name, e.g. SEND$). If you do this be sure to set the required baud rate etc in the COM port Configuration and be aware of any additional control logic, for example the Focus Stop function needed by a Kodak Ektapro projector, which you will need to reproduce in your own program.

Since there are many RS232 devices included in the Crestron Database and the Crestron Modules section of the Symbol Library it is worth checking these for suitable drivers before writing your own version.
Notes: 1. Custom Serial Drivers can be edited with the Windows Notepad text editor. Be certain to only edit the specified lines in the indicated sections. All the original lines should be left intact. In general there are three sections that need editing. Scroll through the file to locate the [PORT] section and make the changes to the communication settings. Next scroll through the file to locate the [STRINGS] section and make the changes to the command strings. Finally scroll through the file to locate the [STRINGNAMES] section and make the changes to the command names. When saving custom serial files be certain to use the *.SER filename extension, not the Windows Notepad *.TXT. 2. There are a few reserved function string names and characters that should be avoided. In particular do not use POWER or INPUT. Maybe use PROJ, PWR or SOURCE instead. Avoid spaces, use - or _ instead for clarity. 3. Be aware that when a new version of the Crestron Database is installed it will overwrite all Custom Serial Driver files with the original default versions i.e. undefined. It is therefore a good idea to make a backup copy of any that you have customized and then restore them after the new installation. (For example COPY C:\CRESTRON\CRESDB\CUST*.SER A: to backup up to a floppy disk) 4. Remember that non-printing single bytes are represented by \xNN where NN is the byte value in hex. Some devices may need a Carriage Return character to terminate the string. This is represented by \r. (Use \n if new line e.g. CR, LF is needed). For strings containing more than 1 byte, each hex byte value must be preceded by \x. Be aware that different manufacturers use different methods of notation to represent byte values in command strings, so it may be necessary to manually translate them before use. For example $1B, $07, $01 should be entered as \x1B\x07\x01. Similarly [STX] and [ETX] become \x02 and \x03, Page 102

CNX CookBook 1.40 2001 David Webster while SPACE is \x20 and hex format numbers such as 43h, 0Dh become \x43\x0d. See Appendix E for a table of ASCII values. 5. It is not possible to send command strings on the release of a button in a Generic Serial driver and only possible in a Custom Serial driver by writing a custom .DRV to work with the .SER file. 6. Check that the baud rate, com spec, addresses etc. if adjustable on the device match the parameters in the serial driver being used. In the [Communications} section of the serial driver Parity must be set to N=None, O=Odd or E=even. 7. Some serial devices need to have RS232 communications enabled in software. If so ensure that your program has a button, a start up sequence or every command, assigned to the initialise/connect function. 8. The Custom Serial Driver files described in this Appendix are available on CDROM from RGB Communications Ltd. and maybe copied into the CRESDB folder. . See the STS README.TXT file for details. 9. Check for correct typing of 0 (zero) and O (Letter O). 10. This Appendix describes wiring for the 9-pin D-type male connector for CNX COM ports and the RJ11 connector for ST-CP COM ports. However the following port connection conversion table may be useful: RJ11 1 = 2 = 3 = 4 = 5 = 6 = 9w D-type Female 8 CTS to CRESTRON 5 Ground 2 Data to CRESTRON 3 Data from CRESTRON 7 RTS from CRESTRON no connection

(For CNX systems using the IR/Serial ports for RS232 transmit: Pin S = RJ11 pin 4 or DB9 pin 3 and Pin G = RJ11 pin 2 or DB9 pin 5). 11.The RS232 serial cables described in this Appendix are best made with a cable consisting of 3 twisted pairs, i.e. six conductors, with an overall screen. The screen should be connected to ground at one end only. The maximum length of cable is dependent on cable quality as well as the specific device characteristics. In general lengths up to 10m will work OK. Longer lengths may work but cannot be guaranteed. For longer distance working consider using an ST-COM network device that has dual RS232 ports that can be positioned local to the device to be controlled. The ST-COM Cresnet wiring can then be extended as required.

Page 103

CNX CookBook 1.40 2001 David Webster I need more than 20 Custom Serial Drivers The Crestron Database only supports 20 custom serial drivers at one time in the Cresdb folder so if you have used all 20 and need further drivers it will be necessary to manually manage them. The idea is to copy unused drivers out of the Cresdb folder into a temporary folder and overwrite the originals with the required new ones. For example if all 20 drivers have been used and one more is needed, first identify a custom driver that is not going to be used in the current SmarTouch System. Suppose you choose CUSTOM 19 and it is currently for a Fujitsu Plasma Monitor. Now create a temporary folder with a name that represents that device, e.g. C:\CRESTRON\CRESDB\FUJITSU_PLASMA\. and then copy the CUSTM19.SER and CUSTM19.DRV files from the Cresdb folder into it. Once these backups have been made the original CUSTM19.SER and CUSTM19.DRV files, still in the Cresdb folder, can be edited for use with the new device, say a Fujitsu LCD Projector. Later if the original device used with CUSTOM 19 is required again, as it would be if any programs that use it are to be recompiled, the procedure will need to be repeated to backup the current CUSTOM 19 to another temporary folder, say C:\CRESTRON\CRESDB\FUJITSU_LCD\ and then the CUSTM19.SER and CUSTM19.DRV files from the FUJITSU_PLASMA folder can be copied back into the Cresdb folder. To quickly return any custom serial driver to its original undefined state the RGB Communications supplied CD-ROM contains two files (CUSTM0.SER and CUSTM0.DRV in the D:\SUPPORT\CRESDB\ folder) that can be used to over write it. For example to reset CUSTOM1 first copy CUSTM0.SER to CUSTM1.SER and then copy CUSTM0.DRV to CUSTM1.DRV. (Remember that the *.DRV files will only be visible if the window View>Folder Options, View tab has Show All Files selected).

Page 104

CNX CookBook 1.40 2001 David Webster Faroudja DVP2200 Video Processor

Functions:

Input Video, S-Video, Component. Output RGB, Component Preset 1 to 5 and Aspect Ratio

Application: Video Processor and Switcher. Note:

Use the Windows NOTEPAD text editor to customize one of the 20 custom serial driver files located in the C:\ CRESTRON\CRESDB\ folder. For example edit CUSTM1.SER as follows: (Be sure to leave all other lines unchanged). [Communication] Baud=9600 Parity=N DataBits=8 StopBits=1 [Strings] String1="DVP2200,ON\r" String2="DVP2200,OFF\r" String3="DVP2200,V\r" String4="DVP2200,Y\r" String5="DVP2200,X\r" String6="DVP2200,P0\r" String7="DVP2200,P1\r" String8="DVP2200,P2\r" String9="DVP2200,P3\r" String10="DVP2200,P4\r" String11="DVP2200,F1\r" String12="DVP2200,F2\r" String13="DVP2200,F3\r" String14="DVP2200,A1\r" String15="DVP2200,A2\r" String16="DVP2200,A3\r" String17="DVP2200,W1\r" String18="DVP2200,W2\r" String19="DVP2200,M1\r" String20="DVP2200,M2\r" String21="DVP2200,S1\r" String22="DVP2200,S2\r" String23="DVP2200,OON\r" String24="DVP2200,OOFF\r" Page 105

CNX CookBook 1.40 2001 David Webster String25="DVP2200,E0\r" String26="DVP2200,E1\r" String27="DVP2200,G0\r" String28="DVP2200,G1\r" String29="DVP2200,H\r" String30="DVP2200,HELP\r" String31="DVP2200,I0\r" String32="DVP2200,I1\r" String33="DVP2200,L1\r" String34="DVP2200,L2\r" String35="DVP2200,L3\r" String36="DVP2200,L4\r" [StringNames] String1=PWR_ON String2=PWR_OFF String3=SOURCE_VIDEO String4=SOURCE_S-VIDEO String5=SOURCE_COMPONENT String6=PRESET_0 String7=PRESET_1 String8=PRESET_2 String9=PRESET_3 String10=PRESET_4 String11=VIDEO_STANDARD_AUTO String12=VIDEO_STANDARD_PAL-N String13=VIDEO_STANDARD_PAL-M String14=ASPECT_ANAMORPHIC String15=ASPECT_LETTERBOX String16=ASPECT_4-3 String17=SCREEN_4-3 String18=SCREEN_16-9 String19=OUTPUT_RGB String20=OUTPUT_COMPONENT String21=SCAN_640X480 String22=SCAN_800X600 String23=OSD_ON String24=OSD_OFF String25=ECHO_ON String26=ECHO_OFF String27=SYNC-ON-GREEN_OFF String28=SYNC-ON-GREEN_ON String29=SOURCE_HDTV String30=HELP String31=SYNC_POSITIVE String32=SYNC_NEGATIVE String33=STORE_PRESET_1 String34=STORE_PRESET_2 String35=STORE_PRESET_3 String36=STORE_PRESET_4

Page 106

CNX CookBook 1.40 2001 David Webster Use To use this new driver in the SmarTouch Pro Editor select it from device type CUSTOM in the Crestron Database and allocate it to COM A or COM B.

Cables To be confirmed: CNX 9w D-type female 2 3 5 or ST-CP RJ11 2 3 4 Faroudja Processor 9w D-type male 5 Ground 2 Data to CRESTRON 3 Data from CRESTRON Faroudja Processor 9w D-type male 2 Data to CRESTRON 3 Data from CRESTRON 5 Ground

This lead may be extended as required - up to approximately 10m.

Page 107

CNX CookBook 1.40 2001 David Webster Seleco Quadscan Video Processor

Functions:

Input selection.

Application: Video Processor and Switcher. Note: Uses the default QuadScan address = 0

Use the Windows NOTEPAD text editor to customize one of the 20 custom serial driver files located in the C:\ CRESTRON\CRESDB\ folder. For example edit CUSTM1.SER as follows: (Be sure to leave all other lines unchanged). [Communication] Baud=9600 Parity=N DataBits=8 StopBits=1 [Strings] String1="QSRON\x00\r" String2="RQOFF\x00\r" String3="\x07\x01\r" String4="\x07\x02\r" String5="\x07\x03\r" String6="\x07\x04\r" String7="\x07\x05\r" String8="\x07\x06\r" String9="\x07\x07\r" [StringNames] String1=ADDR-0_ACTIVATE String2=ADDR-0_DEACTIVATE String3=SOURCE_AUTO String4=SOURCE_VGA-PASS String5=SOURCE_YUV-A String6=SOURCE_YUV-B String7=SOURCE_S-VHS-A String8=SOURCE_S-VHS-B String9=SOURCE_COMPOSITE-A

Page 108

CNX CookBook 1.40 2001 David Webster Use To use this new driver in the SmarTouch Pro Editor select it from device type CUSTOM in the Crestron Database and allocate it to COM A or COM B. The Activate function must be sent once prior to any other commands to enable RS232 control. One idea is to include the Activate function in the macro that turns the video projector power on. Alternatively create macros for each command and include the Activate function as the first step in each one. A delay will be needed between the Activate and Input select macro steps.

Cables 9w gender to be confirmed: CNX 9w D-type female 2 3 5 or ST-CP RJ11 2 3 4 QuadScan Processor 9w D-type male 5 Ground 2 Data to CRESTRON 3 Data from CRESTRON QuadScan Processor 9w D-type male 2 Data to CRESTRON 3 Data from CRESTRON 5 Ground

This lead may be extended as required - up to approximately 10m.

Page 109

CNX CookBook 1.40 2001 David Webster Extron Matrix 50 or Crosspoint Switchers

Functions:

Input 1 through Input 8. Output A, B, C or D Audio & Video, Video or Audio

Application: Up to 8 x 4 matrix control. Note: Not suitable for Matrix 100 or 200 series

Use the Windows NOTEPAD text editor to customize one of the 20 custom serial driver files located in the C:\ CRESTRON\CRESDB\ folder. For example edit CUSTM2.SER as follows: (Be sure to leave all other lines unchanged). [Communication] Baud=9600 Parity=N DataBits=8 StopBits=1 [Strings] String1="<" String2=">" String3="1*1!" String4="2*1!" String5="3*1!" String6="4*1!" String7="5*1!" String8="6*1!" String9="7*1!" String10="8*1!" String11="0*1!" String12="1*2!" String13="2*2!" String14="3*2!" String15="4*2!" String16="5*2!" String17="6*2!" String18="7*2!" String19="8*2!" String20="0*2!" String21="1*3!" String22="2*3!" String23="3*3!" String24="4*3!" Page 110

CNX CookBook 1.40 2001 David Webster String25="5*3!" String26="6*3!" String27="7*3!" String28="8*3!" String29="0*3!" String30="1*4!" String31="2*4!" String32="3*4!" String33="4*4!" String34="5*4!" String35="6*4!" String36="7*4!" String37="8*4!" String38="0*4!" String39="1*1%" String40="2*1%" String41="3*1%" String42="4*1%" String43"5*1%" String44="6*1%" String45="7*1%" String46="8*1%" String47="0*1%" String48="1*2%" String49="2*2%" String50="3*2%" String51="4*2%" String52="5*2%" String53="6*2%" String54="7*2%" String55="8*2%" String56="0*2%" String57="1*3%" String58="2*3%" String59="3*3%" String60="4*3%" String61="5*3%" String62="6*3%" String63="7*3%" String64="8*3%" String65="0*3%" String66="1*4%" String67="2*4%" String68="3*4%" String69="4*4%" String70="5*4%" String71="6*4%" String72="7*4%" String73="8*4%" String74="0*4%" String75="1*1$" String76="2*1$" Page 111

CNX CookBook 1.40 2001 David Webster String77="3*1$" String78="4*1$" String79="5*1$" String80="6*1$" String81="7*1$" String82="8*1$" String83="0*1$" String84="1*2$" String85="2*2$" String86="3*2$" String87="4*2$" String88="5*2$" String89="6*2$" String90="7*2$" String91="8*2$" String92="0*2$" String93="1*3$" String94="2*3$" String95="3*3$" String96="4*3$" String97="5*3$" String98="6*3$" String99="7*3$" String100="8*3$" String101="0*3$" String102="1*4$" String103="2*4$" String104="3*4$" String105="4*4$" String106="5*4$" String107="6*4$" String108="7*4$" String109="8*4$" String110="0*4$" [StringNames] String1=Switcher-On String2=Switcher-Off String3=Source_A-1_AV String4=Source_A-2_AV String5=Source_A-3_AV String6=Source_A-4_AV String7=Source_A-5_AV String8=Source_A-6_AV String9=Source_A-7_AV String10=Source_A-8_AV String11=Source_A-OFF_AV String12=Source_B-1_AV String13=Source_B-2_AV String14=Source_B-3_AV String15=Source_B-4_AV String16=Source_B-5_AV Page 112

CNX CookBook 1.40 2001 David Webster String17=Source_B-6_AV String18=Source_B-7_AV String19=Source_B-8_AV String20=Source_B-OFF_AV String21=Source_C-1_AV String22=Source_C-2_AV String23=Source_C-3_AV String24=Source_C-4_AV String25=Source_C-5_AV String26=Source_C-6_AV String27=Source_C-7_AV String28=Source_C-8_AV String29=Source_C-OFF_AV String30=Source_D-1_AV String31=Source_D-2_AV String32=Source_D-3_AV String33=Source_D-4_AV String34=Source_D-5_AV String35=Source_D-6_AV String36=Source_D-7_AV String37=Source_D-8_AV String38=Source_D-OFF_AV String39=Source_A-1_V String40=Source_A-2_V String41=Source_A-3_V String42=Source_A-4_V String43=Source_A-5_V String44=Source_A-6_V String45=Source_A-7_V String46=Source_A-8_V String47=Source_A-OFF_V String48=Source_B-1_V String49=Source_B-2_V String50=Source_B-3_V String51=Source_B-4_V String52=Source_B-5_V String53=Source_B-6_V String54=Source_B-7_V String55=Source_B-8_V String56=Source_B-OFF_V String57=Source_C-1_V String58=Source_C-2_V String59=Source_C-3_V String60=Source_C-4_V String61=Source_C-5_V String62=Source_C-6_V String63=Source_C-7_V String64=Source_C-8_V String65=Source_C-OFF_V String66=Source_D-1_V String67=Source_D-2_V String68=Source_D-3_V Page 113

CNX CookBook 1.40 2001 David Webster String69=Source_D-4_V String70=Source_D-5_V String71=Source_D-6_V String72=Source_D-7_V String73=Source_D-8_V String74=Source_D-OFF_V String75=Source_A-1_A String76=Source_A-2_A String77=Source_A-3_A String78=Source_A-4_A String79=Source_A-5_A String80=Source_A-6_A String81=Source_A-7_A String82=Source_A-8_A String83=Source_A-OFF_A String84=Source_B-1_A String85=Source_B-2_A String86=Source_B-3_A String87=Source_B-4_A String88=Source_B-5_A String89=Source_B-6_A String90=Source_B-7_A String91=Source_B-8_A String92=Source_B-OFF_A String93=Source_C-1_A String94=Source_C-2_A String95=Source_C-3_A String96=Source_C-4_A String97=Source_C-5_A String98=Source_C-6_A String99=Source_C-7_A String100=Source_C-8_A String101=Source_C-OFF_A String102=Source_D-1_A String103=Source_D-2_A String104=Source_D-3_A String105=Source_D-4_A String106=Source_D-5_A String107=Source_D-6_A String108=Source_D-7_A String109=Source_D-8_A String110=Source_D-OFF_A

Use To use this new driver in the SmarTouch Pro Editor select it from device type CUSTOM in the Crestron Database and allocate it to COM A or COM B. There are three sets of input selection functions: Those with the _AV suffix will switch audio and video. Page 114

CNX CookBook 1.40 2001 David Webster Those with the _V suffix will switch video only. Those with the _A suffix will switch audio only. For all switcher commands the letter A, B, C or D refers to the four outputs and the number 1 to 8 refers to the inputs. Off means the output is not switched to any input. For example the function Source_B-5_AV will connect input 5 to output 2 using audio and video signals. The Switcher-On function must be sent once prior to any other commands to enable the switcher. One idea is to arrange the first ST1550/C page to have a big button, such as a Press here to continue which could be assigned to the Switcher-On function. Alternatively create macros for each command and include the Switcher-On function as the first step in each one.

Cables CNX 9w D-type female 2 3 5 or ST-CP RJ11 1 2 3 4 5 6 Extron Matrix 9w D-type male CTS to CRESTRON 5 Ground 2 Data to CRESTRON 3 Data from CRESTRON RTS from CRESTRON no connection Extron Matrix 9w D-type male 2 Data to CRESTRON 3 Data from CRESTRON 5 Ground

This lead may be extended as required - up to approximately 10m.

Page 115

CNX CookBook 1.40 2001 David Webster Sony PFM-500 Plasma Monitor

Functions:

Power On, Power Off, Input Video, S-Video, RGB1,RGB2 & YUV.

Application: Basic Video/VGA monitor control. Note: To be confirmed.

Use the Windows NOTEPAD text editor to customize one of the 20 custom serial driver files located in the C:\CRESTRON\CRESDB\ folder. For example edit CUSTM3.SER as follows: (Be sure to leave all other lines unchanged). [Communication] Baud=9600 Parity=N DataBits=8 StopBits=1 [Strings] String1="\x81\x01\x10\x7E\x00\x10\x7E\x7E\x01\xFF" String2="\x01" String3="\x01\x00\x02\xFF" String4="\x01\x00\x03\xFF" String5="\x01\x63\x01\x01\xFF" String6="\x01\x63\x01\x02\xFF" String7="\x01\x63\x01\x00\xFF" String8="\x01\x63\x01\x04\xFF" String9="\x01\x63\x01\x03\xFF" String10="\x01\x20\x04\x01\xFF" String11="\x01\x20\x04\x00\xFF" String12="\x01\x20\x03\x00\xFF" String13="\x01\x20\x03\x01\xFF" String14="\x01\x20\x03\x02\xFF" String15="\x01\x20\x03\x03\xFF" String16="\x01\x20\x10\x01\xFF" String17="\x01\x20\x10\x00\xFF" String18="\x01\x20\x0F\x01\xFF" String19="\x01\x20\x0F\x00\xFF" [StringNames] String1=Connect String2=Disconnect String3=Pwr-On String4=Pwr-Off String5=Source-Video Page 116

CNX CookBook 1.40 2001 David Webster String6=Source-S-Video String7=Source-RGB1 String8=Source-RGB2 String9=Source-YUV String10=Aspect-16/9 String11=Aspect-4/3 String12=Zoom-X1 String13=Zoom-X2 String14=Zoom-X3 String15=Zoom-X4 String16=Display-On String17=Display-Off String18=Audio-Mute String19=Audio-Unmute

Use To use this new driver in the SmarTouch Pro Editor select it from device type CUSTOM in the Crestron Database and allocate it to COM A or COM B. The Connect function must be sent once prior to any other commands to enable RS232 control. One idea is to arrange the first ST1550/C page to have a big button, such as a Press here to continue which could be assigned to the Connect function. Alternatively create macros for each command and include the Connect function as the first step in each one.

Cables CNX 9w D-type female 5 2 3 or ST-CP RJ11 Plug 1 2 3 4 5 6 Sony Plasma 8-Pin Mini-DIN male No connection 4 Ground 3 Data to CRESTRON 5 Data from CRESTRON No connection No connection Sony Plasma 8-Pin Mini-DIN male 4 Ground 3 Data to CRESTRON 5 Data from CRESTRON

Page 117

CNX CookBook 1.40 2001 David Webster

8 5 2

7 4 1

6 3

Mini DIN viewed looking into socket on the projector. This lead may be extended as required - up to approximately 10m.

Page 118

CNX CookBook 1.40 2001 David Webster Linn AV5103

Functions:

Power On, Power Off, Audio and Video Input selection, Volume. Application: Basic AV processor control. Note:

Use the Windows NOTEPAD text editor to customize one of the 20 custom serial driver files located in the C:\CRESTRON\CRESDB\ folder. For example edit CUSTM4.SER as follows: (Be sure to leave all other lines unchanged and note the Even parity setting). [Communication] Baud=9600 Parity=E DataBits=7 StopBits=1 [Strings] String1="$VAL >$\n" String2="$VAL <$\n" String3="$VAL S$\n" String4="$SEL VOL$\n" String5="$SEL VOL$\n" String6="$SEL VOL$\n" String7="$MUTE Y$\n" String8="$MUTE N$\n" String9="$STDBY Y$\n" String10="$STDBY N$\n" String11="$AINP ANA1$\n" String12="$AINP ANA2$\n" String13="$AINP ANA3$\n" String14="$AINP ANA4$\n" String15="$AINP ANA5$\n" String16="$AINP ANA6$\n" String17="$AINP ANA7$\n" String18="$AINP ANA8$\n" String19="$AINP ANA9$\n" String20="$AINP ANA10$\n" String21="$AINP DIG1$\n" String22="$AINP DIG2$\n" String23="$AINP DIG3$\n" String24="$AINP DIG4$\n" String25="$AINP DIG5$\n" String26="$AINP NONE$\n" Page 119

CNX CookBook 1.40 2001 David Webster String27="$VINP String28="$VINP String29="$VINP String30="$VINP String31="$VINP String32="$VINP String33="$VINP String34="$VINP String35="$VINP String36="$VINP String37="$VINP COMP1$\n" COMP2$\n" COMP3$\n" COMP4$\n" COMP5$\n" COMP6$\n" COMP7$\n" COMP8$\n" SVHS1$\n" SVHS2$\n" NONE$\n"

[StringNames] String1=VALUE_RAMP_UP String2=VALUE_RAMP_DOWN String3=VALUE_RAMP_STOP String4=VOL+ String5=VOLString6=SELECT_VOLUME_MODE String7=MUTE String8=UNMUTE String9=STANDBY String10=OPERATE String11=AUDIO_IN_ANALOGUE_1 String12=AUDIO_IN_ANALOGUE_2 String13=AUDIO_IN_ANALOGUE_3 String14=AUDIO_IN_ANALOGUE_4 String15=AUDIO_IN_ANALOGUE_5 String16=AUDIO_IN_ANALOGUE_6 String17=AUDIO_IN_ANALOGUE_7 String18=AUDIO_IN_ANALOGUE_8 String19=AUDIO_IN_ANALOGUE_9 String20=AUDIO_IN_ANALOGUE_10 String21=AUDIO_IN_DIGITAL_1 String22=AUDIO_IN_DIGITAL_2 String23=AUDIO_IN_DIGITAL_3 String24=AUDIO_IN_DIGITAL_4 String25=AUDIO_IN_DIGITAL_5 String26=AUDIO_IN_NONE String27=VIDEO_IN_COMP_1 String28=VIDEO_IN_COMP_2 String29=VIDEO_IN_COMP_3 String30=VIDEO_IN_COMP_4 String31=VIDEO_IN_COMP_5 String32=VIDEO_IN_COMP_6 String33=VIDEO_IN_COMP_7 String34=VIDEO_IN_COMP_8 String35=VIDEO_IN_S-VID_1 String36=VIDEO_IN_S-VID_2 String37=VIDEO_IN_NONE

Page 120

CNX CookBook 1.40 2001 David Webster For continous volume control it is necessary to send a value ramp stop string when either the VOL+ or VOL- buttons are released. This can be achieved by editing the CUSTM4.DRV file as follows: (Be sure to leave all other lines unchanged). LOGIC STRINGIO .~OUTPUT$;.~INPUT$; {STRING1} = .~VAL_RAMP_UP_TO_PORT {STRING2} = .~VAL_RAMP_DOWN_TO_PORT {STRING3} = .~VAL_RAMP_STOP_TO_PORT \ S-1M: COMBINE AUTO OR MANUAL VAL RAMP UP OR .~VAL_RAMP_UP_TO_PORT;.~VOL_UP_DEL,.~<1; \ S-2M: COMBINE AUTO OR MANUAL VAL RAMP DOWN OR .~VAL_RAMP_DOWN_TO_PORT;.~VOL_DOWN_DEL,.~<2; \ S-3M: COMBINE AUTO OR MANUAL VAL RAMP STOP OR .~VAL_RAMP_STOP_TO_PORT;.~VOL_RAMP_STOP_MV,.~<3; \ S-4M: SEND VAL RAMP UP AFTER SELECTING VOLUME MODE DELAY 0.01S;.~VOL_UP_DEL;.~<4; \ S-5M: SEND VAL RAMP DOWN AFTER SELECTING VOLUME MODE DELAY 0.01S;.~VOL_DOWN_DEL;.~<5; \ S-6M: STOP ON RELEASE OF UP OR DOWN OR .~VOL_RAMP_STOP;.~<4,.~<5; \ S-7M: RAMP STOP PULSE MV 0.01S;.~VOL_RAMP_STOP_MV;0,.~VOL_RAMP_STOP; TEXT Note: Only the first 3 string definition lines are shown here. The remaining strings 4 to 400 should be left intact and the logic symbol lines appended after them but before the TEXT section. The logic additions to the .DRV file cause the volume select string to be sent followed by value ramp up or down when VOL+ or VOL- are pressed. The value ramp stop string is sent when either VOL+ or VOL- buttons are released or the VAL_RAMP_STOP function is used.

Page 121

CNX CookBook 1.40 2001 David Webster

Use To use this new driver in the SmarTouch Pro Editor select it from device type CUSTOM in the Crestron Database and allocate it to COM A or COM B.

If the CUSTM4.DRV file is modified to include the value ramp stop logic then the volume functions will provide continuous adjustment until released. The SELECT_VOLUME, VALUE_RAMP_UP, VALUE_RAMP_DOWN and VALUE RAMP_STOP functions will not be needed but remain available.

Cable To be confirmed.

Page 122

CNX CookBook 1.40 2001 David Webster Lexicon MC1

Functions:

Power On, Power Off, Audio and Video Input selection, Volume. Application: Basic AV processor control. Note:

Use the Windows NOTEPAD text editor to customize one of the 20 custom serial driver files located in the C:\CRESTRON\CRESDB\ folder. For example edit CUSTM4.SER as follows: (Be sure to leave all other lines unchanged and note the Odd parity setting). [Communication] Baud=19200 Parity=O DataBits=8 StopBits=1 [Strings] String1="\xF1\x04\x14\x01\x17\xF2" String2="\xF1\x04\x14\x01\x97\xF2" String3="\xF1\x04\x14\x01\x16\xF2" String4="\xF1\x04\x14\x01\x96\xF2" String5="\xF1\x04\x31\x01\x01\xF2" String6="\xF1\x04\x31\x01\x02\xF2" String7="\xF1\x04\x31\x01\x00\xF2" String8="\xF1\x04\x14\x01\x18\xF2" String9="\xF1\x04\x14\x01\x19\xF2" String10="\xF1\x03\x10\x00\xF2" String11="\xF1\x04\x14\x01\x13\xF2" String12="\xF1\x04\x14\x01\x12\xF2" String13="\xF1\x04\x14\x01\x11\xF2" String14="\xF1\x04\x14\x01\x10\xF2" String15="\xF1\x04\x14\x01\x0F\xF2" String16="\xF1\x04\x14\x01\x0E\xF2" String17="\xF1\x04\x14\x01\x0D\xF2" String18="\xF1\x04\x14\x01\x0C\xF2" String19="\xF1\x04\x25\x01\x07\xF2" String20="\xF1\x04\x25\x01\x06\xF2" String21="\xF1\x04\x25\x01\x05\xF2" String22="\xF1\x04\x25\x01\x04\xF2" String23="\xF1\x04\x25\x01\x03\xF2" String24="\xF1\x04\x25\x01\x02\xF2" String25="\xF1\x04\x25\x01\x01\xF2" String26="\xF1\x04\x25\x01\x00\xF2" Page 123

CNX CookBook 1.40 2001 David Webster String27="\xF1\x04\x26\x01\x07\xF2" String28="\xF1\x04\x26\x01\x06\xF2" String29="\xF1\x04\x26\x01\x05\xF2" String30="\xF1\x04\x26\x01\x04\xF2" String31="\xF1\x04\x26\x01\x03\xF2" String32="\xF1\x04\x26\x01\x02\xF2" String33="\xF1\x04\x26\x01\x01\xF2" String34="\xF1\x04\x26\x01\x00\xF2" String35="\xF1\x04\x24\x01\x03\xF2" String36="\xF1\x04\x24\x01\x07\xF2" String37="\xF1\x04\x24\x01\x08\xF2" String38="\xF1\x04\x24\x01\x09\xF2" String39="\xF1\x04\x24\x01\x0E\xF2" String40="\xF1\x04\x24\x01\x10\xF2" String41="\xF1\x04\x24\x01\x16\xF2" [StringNames] String1=Volume_Up String2=Volume_Up_5 String3=Volume_Down String4=Volume_Down_5 String5=Mute String6=Mute_Full String7=Mute_Off String8=Power_On String9=Power_Off String10=System_Reset String11=Input_VCR String12=Input_DVD String13=Input_VDisc String14=Input_TV String15=Input_Aux String16=Input_CD String17=Input_Tuner String18=Input_Tape String19=Z2_Input_VCR String20=Z2_Input_DVD String21=Z2_Input_VDisc String22=Z2_Input_TV String23=Z2_Input_Aux String24=Z2_Input_CD String25=Z2_Input_Tuner String26=Z2_Input_Tape String27=Z2_Input_Off_VCR String28=Z2_Input_Off_DVD String29=Z2_Input_Off_VDisc String30=Z2_Input_Off_TV String31=Z2_Input_Off_Aux String32=Z2_Input_Off_CD String33=Z2_Input_Off_Tuner String34=Z2_Input_Off_Tape String35=Effect_TV_Matrix Page 124

CNX CookBook 1.40 2001 David Webster String36=Effect_Pro_Logic String37=Effect_Music_Logic String38=Effect_Party String39=Effect_Music_Surr String40=Effect_2_Chann String41=Effect_Dolby_Dig

Use To use this new driver in the SmarTouch Pro Editor select it from device type CUSTOM in the Crestron Database and allocate it to COM A or COM B. All serial functions are equivalent to the IR handset functions. Volume control is incremented in steps of 1 or 5. For continous volume control it is necessary to repeat either volume up or down commands.

Cable To be confirmed.

Page 125

CNX CookBook 1.40 2001 David Webster Meridian 800 series

Functions:

Power On, Power Off, Input selection, Copy selection, Volume, Presets and Transport. Application: AV Processor and DVD control. Note:

Use the Windows NOTEPAD text editor to customize one of the 20 custom serial driver files located in the C:\CRESTRON\CRESDB\ folder. For example edit CUSTM5.SER as follows: (Be sure to leave all other lines unchanged). [Communication] Baud=9600 Parity=N DataBits=8 StopBits=1 [Strings] String1="CD\r" String2="RD\r" String3="LP\r" String4="TV\r" String5="T1\r" String6="T2\r" String7="CR\r" String8="CB\r" String9="DV\r" String10="V1\r" String11="V2\r" String12="LD\r" String13="VP\r" String14="VM\r" String15="MU\r" String16="SB\r" String17="mp\r" String18="mm\r" String19="ml\r" String20="mr\r" String21="vp\r" String22="vm\r" String23="PL\r" String24="ST\r" String25="PS\r" String26="RP\r" Page 126

CNX CookBook 1.40 2001 David Webster String27="NE\r" String28="PR\r" String29="DI\r" String30="SR\r" String31="CL\r" String32="DP\r" String33="FF\r" String34="FB\r" String35="N0\r" String36="N1\r" String37="N2\r" String38="N3\r" String39="N4\r" String40="N5\r" String41="N6\r" String42="N7\r" String43="N8\r" String44="N9\r" String45="OP\r" String46="MO\r" String47="SL\r" String48="BA\r" String49="AU\r" String50="SU\r" String51="su\r" String52="OS\r" String53="RC\r" String54="AN\r" String55="AB\r" String56="PH\r" String57="TB\r" String58="CH\r" String59="SE\r" String60="ME\r" String61="RT\r" String62="EN\r" String63="TI\r" String64="MR\r" String65="ML\r" String66="MP\r" String67="MM\r" String68="cl\r" String69="sr\r" String70="di\r" String71="mu\r" String72="PN0\r" String73="PN1\r" String74="PN2\r" String75="PN3\r" String76="PN4\r" String77="PN5\r" String78="PN6\r" Page 127

CNX CookBook 1.40 2001 David Webster String79="PN7\r" String80="PN8\r" String81="PN9\r" String82="PN10\r" String83="PN11\r" String84="PN12\r" String85="PN13\r" String86="PN14\r" String87="PN15\r" String88="PN16\r" String89="PN17\r" String90="PN18\r" String91="PN19\r" String92="CO0\r" String93="CO1\r" String94="CO2\r" String95="CO3\r" String96="CO4\r" String97="CO5\r" String98="CO6\r" String99="CO7\r" String100="CO8\r" String101="CO9\r" String102="CO10\r" String103="CO11\r String104="CO12\r" String105="CO13\r" [StringNames] String1=Source_CD String2=Source_Radio String3=Source_LP String4=Source_TV String5=Source_Tape_1 String6=Source_Tape_2 String7=Source_CDR String8=Source_Cable String9=Source_DVD String10=Source_VCR_1 String11=Source_VCR_2 String12=Source_LaserDisc String13=Volume_Up String14=Volume_Down String15=Mute String16=Standby String17=FN_Menu_Up String18=FN_Menu_Down String19=FN_Menu_Left String20=FN_Menu_Right String21=FN_Volume_Up String22=FN_Volume_Down String23=Play Page 128

CNX CookBook 1.40 2001 David Webster String24=Stop String25=Pause String26=Repeat String27=Next String28=Previous String29=Display String30=Store String31=Clear String32=Decimal_Point String33=Fast_Forward String34=Fast_Back String35=0 String36=1 String37=2 String38=3 String39=4 String40=5 String41=6 String42=7 String43=8 String44=9 String45=Open String46=Mono String47=Slow String48=Band String49=Audio String50=Subtitle_On/Off String51=Subtitle_Choice String52=OSD String53=Record String54=Angle String55=A/B_Repeat String56=Phase String57=T?? String58=Chapter String59=Setup String60=Menu String61=Return String62=Enter String63=Title String64=Menu_Right String65=Menu_Left String66=Menu_Plus(Up) String67=Menu_Minus(Down) String68=FN_Clear String69=FN_Store String70=FN_Display String71=FN_Mute String72=Direct String73=Music String74=Trifield String75=Ambisonics Page 129

CNX CookBook 1.40 2001 David Webster String76=Super String77=Stereo String78=MuLogic String79=ProLogic String80=THX String81=MONO_DSP String82=Academy String83=TVLogic String84=Digital String85=Dig_THX String86=DTS String87=DTS_THX String88=DTS_Music String89=MPEG String90=MPEG_THX String91=MPEG_Music String92=Copy_CD String93=Copy_Radio String94=Copy_LP String95=Copy_TV String96=Copy_Tape1 String97=Copy_Tape2 String98=Copy_CDR String99=Copy_Cable String100=Copy_DVD String101=Copy_VCR1 String102=Copy_VCR2 String103=Copy_LaserDisc String104=Copy_Source String105=Copy_Mute For continous volume control it is necessary to repeat either volume up or down commands. This can be achieved by editing the CUSTM5.DRV file as follows: (Be sure to leave all other lines unchanged). LOGIC STRINGIO .~OUTPUT$;.~INPUT$; {STRING1} = .~<1 {STRING2} = .~<2 {STRING3} = .~<3 {STRING4} = .~<4 {STRING5} = .~<5 {STRING6} = .~<6 {STRING7} = .~<7 {STRING8} = .~<8 {STRING9} = .~<9 {STRING10} = .~<10 {STRING11} = .~<11 {STRING12} = .~<12 {STRING13} = .~VOLUME-UP-OSC Page 130

CNX CookBook 1.40 2001 David Webster {STRING14} = .~VOLUME-DOWN-OSC \ S-1M: VOLUME UP OSC 0.01S,0.12S;.~VOLUME-UP-OSC;.~<13; \ S-2M: VOLUME DOWN OSC 0.01S,0.12S;.~VOLUME-DOWN-OSC;.~<14; TEXT

Note: Only the first 14 string definition lines are shown here. The remaining strings 15 to 400 should be left intact and the logic symbol lines appended after them but before the TEXT section. The logic additions to the .DRV file cause either volume command to repeat every 120mS.

Use To use this new driver in the SmarTouch Pro Editor select it from device type CUSTOM in the Crestron Database and allocate it to COM A or COM B. If the CUSTM5.DRV file is modified to include the volume repeat logic then the volume functions will provide continuous adjustment until released. If the CUSTM5.DRV file is left unaltered then it is only possible to provide volume control in small steps for each button press.

Cables CNX 9w D-type female 2 3 5 7 8 Meridian HiFi 9w D-type female 3 Data to CRESTRON 2 Data from CRESTRON 5 Ground 8 RTS from CRESTRON 7 CTS to CRESTRON

or

Page 131

CNX CookBook 1.40 2001 David Webster ST-CP RJ11 1 2 3 4 5 6 Meridian HiFi 9w D-type female 7 CTS to CRESTRON 5 Ground 3 Data to CRESTRON 2 Data from CRESTRON 8 RTS from CRESTRON no connection

This lead may be extended as required.

Page 132

CNX CookBook 1.40 2001 David Webster Pioneer Plasma Monitor

Functions: Power On, Power Off, Input select . Application: Basic monitor control. Note: To Be Confirmed

Use the Windows NOTEPAD text editor to customize one of the 20 custom serial driver files located in the C:\CRESTRON\CRESDB\ folder. For example edit CUSTM6.SER as follows: (Be sure to leave all other lines unchanged). [Communication] Baud=4800 Parity=N DataBits=8 StopBits=1 [Strings] String1="\x02**PON\x03" String2="\x02**POF\x03" String3="\x02**IN1\x03" String4="\x02**IN2\x03" String5="\x02**IN3\x03" String6="\x02**IN4\x03" String7="\x02**BBY\x03" String8="\x02**PCY\x03" String9="\x02**SM0\x03" String10="\x02**SM1\x03" String11="\x02**SM2\x03" String12="\x02**SM3\x03" String13="\x02**SM4\x03" String14="\x02**SM5\x03" [StringNames] String1=Power_On String2=Power_Off String3=Source_Video String4=Source_S-Video String5=Source_RGB1 String6=Source_RGB2 String7=Source_COMPONENT1 String8=Source_COMPONENT2 String9=Aspect_Original String10=Aspect_4-3 Page 133

CNX CookBook 1.40 2001 David Webster String11=Aspect_Full String12=Aspect_Zoom String13=Aspect_Cinema String14=Aspect_Wide

Use To use this new driver in the SmarTouch Pro Editor select it from device type CUSTOM in the Crestron Database and allocate it to COM A or COM B. After sending Power_On it will be necessary to wait about 3s before sending an input selection.

Cables To be confirmed: CNX 9w D-type female 2 3 5 or ST-CP RJ11 1 2 3 4 5 6 Pioneer Plasma 9w D-type male no connection 5 Ground 2 Data to CRESTRON 3 Data from CRESTRON no connection no connection Pioneer Plasma 9w D-type male 2 Data to CRESTRON 3 Data from CRESTRON 5 Ground

This lead may be extended as required.

Page 134

CNX CookBook 1.40 2001 David Webster Extron System 5cr Switcher

Functions:

Power On, Power Off, Input 1, 2, 3, 4, 5, (A+V, A only, V only) Display Mute, Display Mode, Amplifier Volume, Room On/Off. Application: Basic LCD projector control. Note: Display Mute and Display Mode are toggle functions

Use the Windows NOTEPAD text editor to customize one of the 20 custom serial driver files located in the C:\CRESTRON\CRESDB\ folder. For example edit CUSTM7.SER as follows: (Be sure to leave all other lines unchanged). [Communication] Baud=9600 Parity=N DataBits=8 StopBits=1 [Strings] String1="1!" String2="2!" String3="3!" String4="4!" String5="5!" String6="1&" String7="2&" String8="3&" String9="4&" String10="5&" String11="1$" String12="2$" String13="3$" String14="4$" String15="5$" String16="O" String17="o" String18="[" String19="]" String20="S" String21="J" String22="{G" String23="}G" String24="4*0" String25="4*1" String26="4*2" Page 135

CNX CookBook 1.40 2001 David Webster String27="5*0" String28="5*1" String29="5*2" String30="1*0G" String31="1*100G"

[StringNames] String1=SOURCE_1_AV String2=SOURCE_2_AV String3=SOURCE_3_AV String4=SOURCE_4_AV String5=SOURCE_5_AV String6=SOURCE_1_V String7=SOURCE_2_V String8=SOURCE_3_V String9=SOURCE_4_V String10=SOURCE_5_V String11=SOURCE_1_A String12=SOURCE_2_A String13=SOURCE_3_A String14=SOURCE_4_A String15=SOURCE_5_A String16=ROOM_ON String17=ROOM_OFF String18=POWER_ON String19=POWER_OFF String20=DISPLAY_MUTE_TOGGLE String21=DISPLAY_MODE_TOGGLE String22=VOL_INCREMENT+ String23=VOL_INCREMENTString24=SOURCE_4_RGB String25=SOURCE_4_VIDEO String26=SOURCE_4_S-VIDEO String27=SOURCE_5_RGB String28=SOURCE_5_VIDEO String29=SOURCE_5_S-VIDEO String30=ATTENUATOR_GAIN_0 String31=ATTENUATOR_GAIN_100

Use Configure driver for COM A through COM F only. The volume control works in steps up or down. Auto repeat volume steps with two OSC symbols, one for VOL+ the other for VOL-.

Page 136

CNX CookBook 1.40 2001 David Webster The System 5cr has built in warm up and cool down timers that can be configured using the Extron supplied utility program. These timer values will be set automatically to appropiate values if an Extron projector profile is loaded into the switcher. A consequence of the warm up timer is that the projector will change to its appropriate input automatically (dependant on the current System 5cr input selected) some time after being sent power on. It is therefore not necessary for the Crestron program to wait after sending power on before sending an input select command, as would normally be the case. Similarly if the power off command is sent then the cool down timer prevents a power on command being sent to the projector until it has timed out. It is therefore important that the Crestron program does not permit the user to restart the projector until the cool down time has elapsed. Cables CNX 9w D-type female 2 3 5 or ST-CP RJ11 1 2 3 4 5 6 Extron VSW 9w D-type male 8 CTS to CRESTRON 5 Ground 2 Data to CRESTRON 3 Data from CRESTRON 7 RTS from CRESTRON no connection Extron VSW 9w D-type male 2 Data to CRESTRON 3 Data from CRESTRON 5 Ground

This lead may be extended as required - up to approximately 10m.

Page 137

CNX CookBook 1.40 2001 David Webster Epson 5000, 7000 or 8000 series LCD projectors

Functions:

Power On, Power Off, Input Video, Input RGB 1, Input RGB 2 Picture Mute Application: Basic projector control Note: Discrete Picture Mute for 5350, 7250, 7350 & 8000 only.

Use the Windows NOTEPAD text editor to customize one of the 20 custom serial driver files located in the C:\CRESTRON \CRESDB\ folder. For example edit CUSTM9.SER as follows: (Be sure to leave all other lines unchanged). [Communication] Baud=9600 Parity=N DataBits=8 StopBits=1 [Strings] String1="\x1B\x07\x01\x00\x03\x01\xF4" String2="\x1B\x07\x01\x00\x03\x00\xF5" String3="\x1B\x07\x01\x01\x00\x20\xD7" String4="\x1B\x07\x01\x01\x00\x21\xD6" String5="\x1B\x07\x01\x01\x00\x22\xD5" String6="\x1B\x07\x01\x01\x00\x10\xE7" String7="\x1B\x07\x01\x01\x00\x11\xE6" String8="\x1B\x07\x01\x01\x00\x30\xC7" String9="\x1B\x07\x01\x01\x03\x01\xF3" String10="\x1B\x07\x01\x01\x03\x00\xF4" String11="\x1B\x0B\x01\x00\x0A\x00\x00\x00\x00\x20\xCA" String12="\x1B\x0B\x01\x00\x0A\x00\x00\x00\x00\x40\xAA" String13="\x1B\x0B\x01\x00\x0A\x00\x00\x00\x00\x08\xE2" [StringNames] String1=Proj_On String2=Proj_Off String3=Source_Video String4=Source_Video_1 String5=Source_Video_2 String6=Source_RGB_1 String7=Source_RGB_2 String8=Source_BNC_1 String9=Picture_Mute String10=Picture_Unmute Page 138

CNX CookBook 1.40 2001 David Webster String11=Picture_Mute_Toggle String12=Auto_Set String13=Resize

Use Configure driver for COM A through COM F only. The Picture-Mute-Toggle function is a toggle command. It has been found to be unreliable. For example if the source is video and the picture is muted the screen is blanked OK. If the source is now switched to data the screen displays the new input OK but if the picture mute command is sent once again it is ignored the first time and requires to be sent a second time before the screen displays the input again. To work correctly it is necessary to always restore the picture from picture mute before changing inputs. This problem does not arise when using the IR handset. The 5100, 5300 and 7100,7200,7300 have only one video input - accessed with the Source-Video function. The 5350, 7250, 7350 have two video inputs - composite and s-video and are accessed with the Source-Video-1 and Source-Video-2 functions respectively. The 5350, 7250, 7350 have discreet picture mute and unmute commands which are accessed with the Picture-Mute and Picture-Unmute functions. The 8000 has two data inputs - the second is via BNC connectors and this is accessed with the Source-BNC-1 function.

Page 139

CNX CookBook 1.40 2001 David Webster Cables This cable plugs into the Epson adapter cable, which connects to either COM 1 or COM 2 of the projector on one end, and has a block of three connectors on the other end (one 9-pin serial, one Mouse, and one Macintosh). The projector must be setup to always respond to RS232 control on whichever COM port is being used. This is done, by entering the menus of the projector, selecting "advanced and then selecting the Mouse/Com port you want to use. CNX 9w D-type female 2 3 5 7 or ST-CP RJ11 Plug 1 2 3 4 5 6 Epson LCD 9w D-type female No connection 5 Ground 3 Data to CRESTRON 2 Data from CRESTRON 6 RTS from CRESTRON No connection 7-8 Link* Epson LCD 9w D-type female 3 Data to CRESTRON 2 Data from CRESTRON 5 Ground 6 RTS from CRESTRON 7-8 Link*

This lead may be extended as required - up to approximately 10m. Note: *The 9w D-type connector for the Epson projector has a wire link between pins 7 & 8 but this is not necessary for the 8000 series.

Crestron Module As a more complete alternative to the above, the Crestron Symbol Library contains a software module in the TV/Video Projector section, to control all Epson projectors that use Level 5 protocol. View the Epson macro Help for programming and cable details.

Page 140

CNX CookBook 1.40 2001 David Webster Sharp XG-XV/1E or XG-SV/1E LCD projector

Functions:

Power On, Power Off, Input Video, Input RGB 1, Input RGB 2

Application: Basic projector control Note:

Use the Windows NOTEPAD text editor to customize one of the 20 custom serial driver files located in the C:\ CRESTRON \CRESDB\ folder. For example edit CUSTM10.SER as follows: (Be sure to leave all other lines unchanged). [Communication] Baud=9600 Parity=N DataBits=8 StopBits=1 [Strings] String1="POWR0000\r" String2="POWR0001\r" String3="IVED0001\r " String4="IRGB0001\r" String5="IRGB0002\r" [StringNames] String1=Proj-On String2=Proj-Off String3=Source-Video String4=Source-RGB-1 String5=Source-RGB-2

Use Configure driver for COM A through COM F only.

Page 141

CNX CookBook 1.40 2001 David Webster Cable To be confirmed: CNX 9w D-type female 2 3 5 or ST-CP RJ11 Plug 1 2 3 4 5 6 Sharp LCD 9w D-type female No connection 5 Ground 3 Data to CRESTRON 2 Data from CRESTRON No connection No connection Sharp LCD 9w D-type female 3 Data to CRESTRON 2 Data from CRESTRON 5 Ground

This lead may be extended as required - up to approximately 10m.

Page 142

CNX CookBook 1.40 2001 David Webster Sanyo PLC 9905, 8800/8805, 5600/5605 LCD projector

Functions:

Power On, Power Off, Input Video, Input RGB 1, Input RGB 2

Application: Basic projector control Notes: Input Video-2 is only on the PLC9905 RS232 control is only available via the Sanyo Control Port 2

Use the Windows NOTEPAD text editor to customize one of the 20 custom serial driver files located in the C:\ CRESTRON \CRESDB\ folder. For example edit CUSTM11.SER as follows: (Be sure to leave all other lines unchanged). [Communication] Baud=19200 Parity=N DataBits=8 StopBits=1 [Strings] String1="C00\r" String2="C01\r" String3="C07\r" String4="C08\r" String5="C05\r" String6="C06\r" String7="C0D\r" String8="C0E\r" (Note characters following the C are zeros)

[StringNames] String1=Proj-On String2=Proj-Off String3=Source-Video-1 String4=Source-Video-2 String5=Source-RGB-1 String6=Source-RGB-2 String7=Pic-Mute String8=Pic-Unmute

Use Configure driver for COM A through COM F only. Input-Video-1 is Composite except on the PLC9905 when it is S-Video Page 143

CNX CookBook 1.40 2001 David Webster Input-Video-2 is only available on the PLC9905 and is Composite. Source-Video-3 is only available on some later models. Source-RGB-3 is only available on some later models.

Cables CNX 9w D-type female 2 3 5 or ST-CP RJ11 Plug 1 2 3 4 5 6 Sanyo LCD 9w D-type female No connection 5 Ground 3 Data to CRESTRON 2 Data from CRESTRON No connection No connection Sanyo LCD 9w D-type female 3 Data to CRESTRON 2 Data from CRESTRON 5 Ground

This lead may be extended as required - up to approximately 10m. The PLC9005 projector has two multi function Control Ports. External RS232 control is via Control Port 2 or the RS232 port only. Some Eiki branded LCD projectors are manufactured by Sanyo and may therefore use the same RS232 codes as above. Please be aware that a few Eiki projectors may have been shipped with a faulty Control Port to 9-way D-type adapter cable. These adapters are wired incorrectly and will not permit RS232 control. They can be identified by close examination of the 9w D-type connector. Working adapters should have pins in the 2, 3 & 5 positions.

Page 144

CNX CookBook 1.40 2001 David Webster Hitachi CPL850 LCD projector

Functions:

Power On, Power Off, Input Video 1, Input Video 2, Input RGB 1, Input RGB 2

Application: Basic projector control Note: Projector Com Spec defined in its built-in SETUP menu.

Use the Windows NOTEPAD text editor to customize one of the 20 custom serial driver files located in the C:\ CRESTRON \CRESDB\ folder. For example edit CUSTM12.SER as follows: (Be sure to leave all other lines unchanged). [Communication] Baud=1200 Parity=N DataBits=7 StopBits=1 [Strings] String1="\x31\x11\x1F" String2="\x31\x11\x1E" String3="\x31\x21\x11" String4="\x31\x21\x12" String5="\x31\x21\x21" String6="\x31\x21\x22" [StringNames] String1=Proj-On String2=Proj-Off String3=Source-Video-1 String4=Source-Video-2 String5=Source-RGB-1 String6=Source-RGB-2

Use Configure driver for COM A through COM F only. Do not send an input select command until the projector lamp has reached full brightness, i.e. about 30 seconds after power on.

Page 145

CNX CookBook 1.40 2001 David Webster Cables CNX 9w D-type female 2 3 5 or ST-CP RJ11 Plug 1 2 3 4 5 6 Hitachi LCD 15w Hi-Density D-type male (VGA type) No connection 10 Ground 14 Data to CRESTRON 13 Data from CRESTRON No connection No connection Hitachi LCD 15w Hi-Density D-type male (VGA type) 14 Data to CRESTRON 13 Data from CRESTRON 10 Ground

This lead may be extended as required - up to approximately 10m. Do NOT use the SERIAL cable supplied with the projector as it is wired for a serial mouse - and not for PC/Crestron control. Projector is factory shipped with the RS232 communications set to 1200,7,N,1. This can be changed with the projectors built in setup menu if required.

Page 146

CNX CookBook 1.40 2001 David Webster NEC MT800 to 1030 LCD projector

Functions:

Power On, Power Off, Input Video, Input S-Video, Input RGB-1, Input RGB-2, Input HD-1, Input HD-2

Application: Basic projector control Note: Not all models have the same input types

Use the Windows NOTEPAD text editor to customize one of the 20 custom serial driver files located in the C:\ CRESTRON \CRESDB\ folder. For example edit CUSTM13.SER as follows: (Be sure to leave all other lines unchanged). [Communication] Baud=9600 Parity=N DataBits=8 StopBits=1 [Strings] String1="\x08 String2="\x14" String3="\x03" String4="\x04" String5="\x05" String6="\xC6" String7="\x27" String8="\x47" [StringNames] String1=Proj_On String2=Proj_Off String3=Source_Video String4=Source_RGB-1 String5=Source_RGB-2 String6=Source_S-Video String7=Source_PC-Card String8=Pic-Mute-Toggle

Use To use this new driver in the SmarTouch Pro Editor select it from device type CUSTOM in the Crestron Database and allocate it to COM A or COM B. Page 147

CNX CookBook 1.40 2001 David Webster

The MT800 has only RGB1 and VIDEO inputs. The MT1020 has RGB1, RGB2, VIDEO and S-VIDEO inputs. The MT1040 has RGB1, RGB2, VIDEO, S-VIDEO and PC-CARD inputs. Do not send an input select command until 5 seconds after a power on command. Cables CNX 9w D-type female 2 3 5 or ST-CP RJ11 Plug 1 2 3 4 5 6 NEC LCD Mini-DIN male No connection 4 Ground 7 Data from CRESTRON 1 Data from CRESTRON No connection No connection NEC LCD Mini-DIN male 7 Data to CRESTRON 1 Data from CRESTRON 4 Ground

8 5 2

7 4 1

6 3

Mini DIN viewed looking into socket on the projector. This lead may be extended as required - up to approximately 10m.

Page 148

CNX CookBook 1.40 2001 David Webster NEC MT1040/1045 LCD projector

Functions:

Power On, Power Off, Input Video, Input S-Video, Input RGB, Input PC-CARD viewer, Pic-Mute On, Pic-Mute Off

Application: Basic projector control Note: These codes are different to earlier MT series models.

Use the Windows NOTEPAD text editor to customize one of the 20 custom serial driver files located in the C:\ CRESTRON \CRESDB\ folder. For example edit CUSTM13.SER as follows: (Be sure to leave all other lines unchanged). [Communication] Baud=38400 Parity=N DataBits=8 StopBits=1 [Strings] String1="\x02\x00\x00\x00\x00\x02 String2="\x02\x01\x00\x00\x00\x03" String3="\x02\x03\x00\x00\x02\x01\x06\x0E" String4="\x02\x03\x00\x00\x02\x01\x01\x09" String5="\x02\x03\x00\x00\x02\x01\x0B\x13" String6="\x02\x03\x00\x00\x02\x01\x1F\x27" String7="\x02\x10\x00\x00\x00\x12" String8="\x02\x11\x00\x00\x00\x13" [StringNames] String1=Proj_On String2=Proj_Off String3=Source_Video String4=Source_RGB String5=Source_S-Video String6=Source_PC-Card String7=Pic-Mute_On String8=Pic-Mute_Off

Use To use this new driver in the SmarTouch Pro Editor select it from device type CUSTOM in the Crestron Database and allocate it to COM A or COM B. Page 149

CNX CookBook 1.40 2001 David Webster

The MT1040 has RGB1, VIDEO, S-VIDEO and PC-CARD inputs. Do not send an input select command until 5 seconds after a power on command. Cables CNX 9w D-type female 2 3 5 or ST-CP RJ11 Plug 1 2 3 4 5 6 NEC LCD Mini-DIN male No connection 4 Ground 7 Data to CRESTRON 1 Data from CRESTRON No connection No connection NEC LCD Mini-DIN male 7 Data to CRESTRON 1 Data from CRESTRON 4 Ground

8 5 2

7 4 1

6 3

Mini DIN viewed looking into socket on the projector. This lead may be extended as required - up to approximately 10m.

Page 150

CNX CookBook 1.40 2001 David Webster NEC 42MP1 Plasma Monitor

Functions:

Power On, Power Off, Input Video-1, 2, 3, Input HD-1, 2, Input RGB-1, 2, 3

Application: Basic projector control Note:

Use the Windows NOTEPAD text editor to customize one of the 20 custom serial driver files located in the C:\ CRESTRON \CRESDB\ folder. For example edit CUSTM13.SER as follows: (Be sure to leave all other lines unchanged and note the Odd parity setting). [Communication] Baud=9600 Parity=O DataBits=8 StopBits=1 [Strings] String1="\x9F\x80\x60\x4E\x00\xCD" String2="\x9F\x80\x60\x4F\x00\xCE" String3="\xDF\x80\x60\x47\x01\x08" String4="\xDF\x80\x60\x47\x02\x09" String5="\xDF\x80\x60\x47\x03\x0A" String6="\xDF\x80\x60\x47\x05\x0C" String7="\xDF\x80\x60\x47\x06\x0D" String8="\xDF\x80\x60\x47\x07\x0E" String9="\xDF\x80\x60\x47\x08\x0F" String10="\xDF\x80\x60\x47\x0C\x13" [StringNames] String1=Proj_On String2=Proj_Off String3=Source_Video-1 String4=Source_Video-2 String5=Source_Video-3 String6=Source_HD-1 String7=Source_HD-2 String8=Source_RGB-1 String9=Source_RGB-2 String10=Source_RGB-3

Page 151

CNX CookBook 1.40 2001 David Webster

Use To use this new driver in the SmarTouch Pro Editor select it from device type CUSTOM in the Crestron Database and allocate it to COM A or COM B.

Cables To be confirmed: CNX 9w D-type female 2 3 5 or ST-CP RJ11 Plug 1 2 3 4 5 6 NEC Plasma 9w D-type female 7 CTS to CRESTRON 5 Ground 3 Data to CRESTRON 2 Data from CRESTRON 8 RTS from CRESTRON No connection NEC Plasma 9w D-type female 3 Data to CRESTRON 2 Data from CRESTRON 5 Ground

This lead may be extended as required - up to approximately 10m.

Page 152

CNX CookBook 1.40 2001 David Webster Kodak EktaPro series 35mm slide projector

Functions:

Lamp On, Lamp Off, Slide Forward, Slide Back, Focus+, FocusFade Up, Fade Down

Application: Basic projector control with addresses 0 and 1 Note: Focus control will be in steps if used via the given macros or continuous if the CUSTM14.DRV file is edited as described. Fade functions not available for older models.

Use the Windows NOTEPAD text editor to customize one of the 20 custom serial driver files located in the C:\CRESTRON\CRESDB\ folder. For example edit CUSTM14.SER as follows: (Be sure to leave all other lines unchanged). [Communication] Baud=9600 Parity=N DataBits=8 StopBits=1 [Strings] String1="\x03\x1C\x00 String2="\x03\x1E\x00" String3="\x01\x00\x00" String4="\x05\x04\x00" String5="\x05\x00\x00" String6="\x05\x08\x00" String7="\x05\x0C\x00" String8="\x05\x10\x00" String9="\x0B\x1C\x00" String10="\x0B\x1E\x00" String11="\x09\x00\x00" String12="\x0D\x04\x00" String13="\x0D\x00\x00" String14="\x0D\x08\x00" String15="\x0D\x0C\x00" String16="\x0D\x10\x00" String17="\x01\x62\x28" String18="\x01\x60\x28" String19="\x09\x62\x28" String20="\x09\x60\x28" [StringNames] String1=LAMP-ON Page 153

CNX CookBook 1.40 2001 David Webster String2=LAMP-OFF String3=HOME String4=REVERSE String5=FORWARD String6=FOC+ String7=FOCString8=FOC-STOP String9=B-LAMP-ON String10=B-LAMP-OFF String11=B-HOME String12=B-REVERSE String13=B-FORWARD String14=B-FOC+ String15=B-FOCString16=B-FOC-STOP String17=FADE-UP String18=FADE-DOWN String19=B-FADE-UP String20=B-FADE-DOWN

For continous focus control it is necessary to send a focus stop string when either the focus+ or focus- buttons are released. This can be achieved by editing the CUSTM14.DRV file as follows: (Be sure to leave all other lines unchanged). LOGIC STRINGIO .~OUTPUT$;.~INPUT$; {STRING1} = .~<1 {STRING2} = .~<2 {STRING3} = .~<3 {STRING4} = .~<4 {STRING5} = .~<5 {STRING6} = .~<6 {STRING7} = .~<7 {STRING8} = .~FOC_STOP_TO_PORT {STRING9} = .~<9 {STRING10} = .~<10 {STRING11} = .~<11 {STRING12} = .~<12 {STRING13} = .~<13 {STRING14} = .~<14 {STRING15} = .~<15 {STRING16} = .~B_FOC_STOP_TO_PORT \ S-1M: FOCUS-STOP ON RELEASE OF FOC+ OR FOCOR .~FOC_STOP;.~<6 ,.~<7; \ S-2M: FOCUS STOP PULSE MV 0.1S;.~FOC_STOP_MV;0,.~FOC_STOP; Page 154

CNX CookBook 1.40 2001 David Webster \ S-3M: COMBINE AUTO OR MANUAL FOCUS STOP OR .~FOC_STOP_TO_PORT;.~FOC_STOP_MV,.~<8; \ S-4M: B-FOCUS-STOP ON RELEASE OF B-FOC+ OR B-FOCOR .~B_FOC_STOP;.~<14 ,.~<15; \ S-5M: FOCUS STOP PULSE B MV 0.1S;.~B_FOC_STOP_MV;0,.~B_FOC_STOP; \ S-6M: COMBINE AUTO OR MANUAL FOCUS STOP B OR .~B_FOC_STOP_TO_PORT;.~B_FOC_STOP_MV,.~<16;

TEXT

Note: Only the first 16 string definition lines are shown here. The remaining strings 17 to 400 should be left intact and the logic symbol lines appended after them but before the TEXT section. The logic additions to the .DRV file cause the focus stop string to be sent when either focus button is released or the FOC-STOP function is used.

Use Allocate functions to COM A through COM F. For continous focus control it is necessary to send a focus stop string when either the focus+ or focus- buttons are released. This can easily be achieved by using a two input NOR symbol that combines FOC+ and FOC- to produce FOC_STOP. Alternatively the CUSTM14.DRV logic driver file can be modified as described above. For projectors with a fixed address=0, i.e. Ektapro 5000 series, or that can be set to address=0, use the first set of functions. The second set of functions, prefixed with B-, will control a projector with address=1 - useful when daisy chain connected. See Cable section for details. The FADE_UP and FADE_DOWN commands do not work for the older 5000,7000 or 9000. On later models these will enable a 2 second dissolve cross fade function to be implemented by sending a fade up to one projector and a fade down to the other. If the CUSTM14.DRV file is modified to include the focus stop logic then the focus functions will provide continuous adjustment until released. The FOC-STOP functions will not be needed but remain available.

Page 155

CNX CookBook 1.40 2001 David Webster Crestron Module As a more complete alternative to the above, the Crestron Symbol Library contains a Kodak Ektapro software macro in the Slide Projector section that can perform basic and random access functions.

Cables CNX 9w D-type female 5 2 3 or ST-CP RJ11 Plug 1 2 3 4 5 6 Ektapro 9w D-type male No connection 5 Ground 2 Data to CRESTRON 3 Data from CRESTRON No connection No connection Ektapro 9w D-type male 5 Ground 2 Data to CRESTRON 3 Data from CRESTRON

This lead may be extended as required - up to approximately 10m. If two projectors are to be controlled from one ST-CP COM port then Projector 2 socket P-BUS IN is connected to Projector 1 socket P-BUS OUT, via a serial cable as follows: Ektapro PRJ 1 9-pin D-type female 2 3 5 Ektapro PRJ 2 9-pin D-type male 2 3 5

To connect two projectors in series the first in the chain must have both P-BUS IN and P-BUS OUT, i.e. a 7000 or 9000 series model. The last projector in the chain only needs P-BUS IN and can be a 5000, 7000 or 9000 series model.

Programming

Page 156

CNX CookBook 1.40 2001 David Webster An alternative to using the fixed strings given here, is to use the Ektapro macro in the Creston symbol library. This macro generates the required strings automatically. See the built in Ektapro Help for full programming information.

Note: This Custom Serial Driver if used with a ST-CP control processor requires operating system version 4.00.56s and Monitor ROM version 1.38 or later. Older firmware versions may occasionally repeat commands resulting in erratic control of the projector.

Page 157

CNX CookBook 1.40 2001 David Webster Panasonic LCD projector with RS232 Interface

Functions:

Power On, Power Off, Input Video, Input RGB1, Input RGB2

Application: Basic projector control Note:

Use the Windows NOTEPAD text editor to customize one of the 20 custom serial driver files located in the C:\CRESTRON\CRESDB\ folder. For example edit CUSTM16.SER as follows: (Be sure to leave all other lines unchanged). [Communication] Baud=9600 Parity=N DataBits=8 StopBits=1 [Strings] String1="\x02PON\x03 String2="\x02POF\x03" String3="\x02IIS:VID\x03" String4="\x02IIS:RG1\x03" String5="\x02IIS:RG2\x03" [StringNames] String1=Proj-On String2=Proj-Off String3=Source-Video String4=Source-RGB1 String5=Source-RGB2

Use Configure driver for COM A through COM F only.

Page 158

CNX CookBook 1.40 2001 David Webster Cables CNX 9w D-type female 5 2 3 or ST-CP RJ11 Plug 1 2 3 4 5 6 Panasonic LCD 9w D-type male No connection 5 Ground 3 Data to CRESTRON 2 Data from CRESTRON No connection No connection Panasonic LCD 9w D-type male 5 Ground 3 Data to CRESTRON 2 Data from CRESTRON

This lead may be extended as required - up to approximately 10m.

Page 159

CNX CookBook 1.40 2001 David Webster Panasonic VCR with RS232 Interface

Functions:

REW, FF, Play, Pause, Stop, Search Fwd, Search Rev

Application: Basic VCR transports Note: Picture Search functions will not work for a AG5700

Use the Windows NOTEPAD text editor to customize one of the 20 custom serial driver files located in the C:\CRESTRON\CRESDB\ folder. For example edit CUSTM17.SER as follows: (Be sure to leave all other lines unchanged). [Communication] Baud=9600 Parity=O DataBits=7 StopBits=1 [Strings] String1="\x02PON\x03 String2="\x02POF\x03" String3="\x02ORW\x03" String4="\x02OFF\x03" String5="\x02OPL\x03" String6="\x02OPA\x03" String7="\x02OSP\x03" String8="\x02OSR:7\x03" String9="\x02OSF:7\x03" String10="\x02ORC\x03" [StringNames] String1=PWR-ON String2=PWR-OFF String3=REW String4=FF String5=PLAY String6=PAUSE String7=STOP String8=R_SRCH String9=F_SRCH String10=RECORD

Page 160

CNX CookBook 1.40 2001 David Webster Use Configure driver for COM A through COM F only.

Cables CNX 9w D-type female 2 3 5 Panasonic VCR 25w D-type male 3 Data to CRESTRON 2 Data from CRESTRON 7 Ground 4+5 Link 6+20 Link

or ST-CP RJ11 Plug 1 2 3 4 5 6 Panasonic VCR 25w D-type male No connection 7 Ground 3 Data to CRESTRON 2 Data from CRESTRON No connection No connection 4+5 Link 6+20 Link

Notes: The two links in the 25w D-type are only necessary to enable the VCR to transmit to the Crestron system. This will not normally be needed. This lead may be extended as required - up to approximately 10m. The VCR RS232 serial interface should be left set to the VCR default values of 9600 baud, 7 data, odd parity and 1 stop bit. (See the Panasonic manual for DIP switch settings).

Page 161

CNX CookBook 1.40 2001 David Webster Sony UVW-1200/1400 with RS232 Interface

Functions:

REW, FF, Play, Pause, Stop, Search Fwd, Search Rev

Application: Basic VCR transports Note: Setup VCR Remote Interface Menu to 9600 bps.

Use the Windows NOTEPAD text editor to customize one of the 20 custom serial driver files located in the C:\CRESTRON\CRESDB\ folder. For example edit CUSTM18.SER as follows: (Be sure to leave all other lines unchanged). [Communication] Baud=9600 Parity=N DataBits=8 StopBits=1 [Strings] String1="\x41" String2="\xAC" String3="\xAB" String4="\x3A" String5="\x4F" String6="\x3F" String7="\xB6\x38" String8="\xB5\x38" String9="\xCA" String10="\xCB" [StringNames] String1=CLEAR-ERROR String2=REW String3=FF String4=PLAY String5=PAUSE String6=STOP String7=R-SRCH String8=F-SRCH String9=REC String10=REC-PAUSE

Page 162

CNX CookBook 1.40 2001 David Webster Use Configure driver for COM A through COM F only. A good idea is to arrange power_up pulse which could be assigned to the Sony CLEAR-ERROR function, prior to any other function buttons being sent.

Cables CNX 9w D-type female 2 3 5 or ST-CP RJ11 Plug 1 2 3 4 5 6 Sony VCR 25w D-type No connection 7 Ground 2 Data to CRESTRON 3 Data from CRESTRON No connection No connection Sony VCR 25w D-type 2 Data to CRESTRON 3 Data from CRESTRON 7 Ground

This lead may be extended as required - up to approximately 10m.

Operation In order to stop the deck from play mode, first issue a FF command, delay for 1 second, and then issue the STOP command. (If only the STOP command is issued while the deck is in play mode then it will go into the play/pause mode).

Page 163

CNX CookBook 1.40 2001 David Webster Fujitsu 42 Plasma monitor

Functions:

Power On, Power Off, Input Video, S-Video, RGB1 and RGB2.

Application: Basic Video/VGA monitor control. Note: No volume control.

Use the Windows NOTEPAD text editor to customize one of the 20 custom serial driver files located in the C:\CRESTRON\CRESDB\ folder. For example edit CUSTM19.SER as follows: (Be sure to leave all other lines unchanged and note that the command strings use letter O not number 0). [Communication] Baud=4800 Parity=N DataBits=8 StopBits=1 [Strings] String1="@@@@\r" String2="@G\r" String3="!CRPN\r" String4="!CRPF\r" String5="!CRVO\r" String6="!CRSO\r" String7="!CRRO\r" String8="!CR2O\r" [StringNames] String1=Connect-1 String2=Connect-2 String3=Pwr-On String4=Pwr-Off String5=Source-Video String6=Source-S-Video String7=Source-RGB1 String8=Source-RGB2

(Enables early models RS232 control) (Enables late models RS232 control)

Page 164

CNX CookBook 1.40 2001 David Webster Use To use this new driver in the SmarTouch Pro Editor select it from device type CUSTOM in the Crestron Database and allocate it to COM A or COM B. Early versions of Fujitsu plasma monitors have Video and RGB inputs only and use the Connect-1 function to enable serial control. Later versions of Fujitsu plasma monitors have Video, S-Video, RGB1 and RGB2 inputs and use the Connect-2 function to enable serial control. One idea is to arrange the first ST1550/C page to have a big button, such as a Press here to continue which could be assigned to the Fujitsu Connect-1 or Connect-2 function (this enables RS232 control), prior to any other function buttons being pressed. Alternatively create macros for each command and include the Connect-1, or Connect2, function as the first step in each one.

Cables CNX 9w D-type female 2 3 5 7 8 or ST-CP RJ11 Plug 1 2 3 4 5 6 Fujitsu Plasma 9w D-type female 8 CTS to CRESTRON 5 Ground 2 Data to CRESTRON 3 Data from CRESTRON 7 RTS from CRESTRON No connection Fujitsu Plasma 9w D-type female 2 Data to CRESTRON 3 Data from CRESTRON 5 Ground 7 RTS from CRESTRON 8 CTS to CRESTRON

This lead may be extended as required - up to approximately 10m.

Page 165

CNX CookBook 1.40 2001 David Webster

Appendix B: Crestron Transport Font


The Crestron transport font consists of symbols that represent the common functions of electronic devices. The following table shows which letter (upper or lower case) should be used for a symbol.

Crestron Transport Font:

Up to 27 different fonts may be used in a single project. This number includes different font sizes. For example Arial 10, Arial 12, and Arial 16 count as three fonts. If more than 27 fonts are used, then VTPro-e uses one of the first 27 fonts as a substitute for the extra fonts. When copying touch panel projects from one PC to another it is very important to ensure that the destination computer contains all the fonts that are used by the project. If the correct fonts are not installed then the copy of the project will have substitutes for them and the panel appearance may be wrong. Fonts may be copyright protected. Please observe all licensing requirements.

Page 166

CNX CookBook 1.40 2001 David Webster

Appendix C: PowerPoint control


The Crestron CNMKI emulates a keyboard plus a PS/2 mouse, for PC control via the Cresnet. It is recommended that keyboard emulation be used with desktop PCs but not portable PCs since the latter may have difficulty in recognizing an external keyboard correctly. PS/2 mouse emulation using the CNMKI should work with both desktop and portable PCs. Basic control of PowerPoint presentation software is possible as follows. CN-MKI Keyboard Ensure that the TO KEYBOARD PORT socket of the CN-MKI is connected to the PCs keyboard socket with the supplied cable prior to power up. Use a Serial I/O symbol to generate four [out$] strings all routed to the Keyout input of the CNMK symbol as follows: PowerPoint Command Next Previous Home Hidden Keyboard Function Enter P Home H Serial Send Parameter \x5A\xF0\x5A \x4D\xF0\x4D \xE0\x6C\xE0\xF0\x6C \x33\xF0\x33 (Optional) (Optional)

Refer to the Scan Code Table in the CNMKI Operations Guide for other keyboard functions. Notice that the Press and Release scan codes are usually sent as one string. Leave the Mousein, Keyin and Data signals blank and set the Disable input to zero. In the Crestron Symbol Library there is an ASCII to KBD Scan Code symbol which coverts ASCII characters to keyboard scan codes automatically, which could be very useful, unfortunately it is only supported by the ST-CP control processor.

Page 167

CNX CookBook 1.40 2001 David Webster Note: The Home command directs PowerPoint to display the first slide (i.e. 1) in the presentation. The Hidden command directs PowerPoint to display the next hidden slide (if any) in the presentation. These two commands are not essential for basic presentation control. It is important that the CNMKI and the control processor be powered up prior to the PC it is connected to. If not then the PC may not boot-up or the CNMKI and/or the physical keyboard/mouse may not work. If the PC is to be used when the Crestron system is not powered up then it is a good idea to use the supplied, optional, 12v DC power supply connected to the AC output socket from the PC to maintain the CNMKI power at all times while the computer is switched on. Some PCs, particularly notebooks, may require a keyboard to be connected to the CNMKI before accepting external keyboard input. A keyboard simulator such as the Black Box KYBSIM can also be used instead of a real keyboard. To use the mouse and keyboard features on a PC that has only a combined Keyboard & Mouse port a PS/2 Y-splitter lead must be used. Mouse Ensure that the TO MOUSE PORT socket of the CN-MKI is connected to the PCs mouse socket with the supplied cable prior to power up. Use the CN-WM transmitter symbol to generate a Data output string, e.g. MOUSE_OUT$, routed to the Data input of the CNMK symbol. The Disable input of the CNMK symbol can be used to suspend operation of the RF mouse pad as a pointer if it is intended to use it for some other purpose, say VCR control, via the Crestron MPADBTN macro (which coverts analogue mouse pad values into button presses). If the mouse pad is to operate the pointer at all times set the Disable input to zero. Note: For the left (trigger=button 6) and right (centre=button 5) mouse buttons to function they must be defined in the CN-WM wireless mouse receiver symbol as follows: CN-WM Symbol [Left] [Right] Parameter Value 6d 5d

It is not possible to control the mouse pointer with anything other the RF Mouse Pad. Page 168

CNX CookBook 1.40 2001 David Webster

Appendix D: Working with RC5 infra-red codes


If you want to use an infra-red device that is not in the Crestron Database and you set about learning the IR commands and discover that each button has two IR codes then it is likely that the device uses RC5 coding. In such cases it is necessary to earn the all the commands as usual but for each button there will be two learnt IR codes. The CNX-LIR automatically learns these Multi-Codes as required. It is necessary for the Crestron system to toggle between these two odd or even codes for each time the function is sent. For such RC5 devices in either the Crestron or User Database there is a logic driver that does this automatically. However some device are very particular about seeing odd or even codes alternately on individual functions on each occasion it is sent - irrespective of any codes sent in between times. In such cases a solution may be to configure multiple copies of the same driver, each with its own default logic driver, on a single IR port and only use one function from each driver. Alternatively DEAL for Windows can be used to learn the Odd and Even codes with the Multi-Code feature switched off. This will create an IR driver with all possible codes and then the program must be written to toggle between individual codes as required. Also be aware that Crestron sometimes publish IR drivers in two parts, one for all the even codes and one for all the odd codes. In such cases the filenames will be similar but the odd driver will have an O suffix appended. You can use these files as they are, with your own program logic as above, or by using DEAL combine them into one multicode driver and let the automatic odd/even driver take control.

Page 169

CNX CookBook 1.40 2001 David Webster

Appendix E: ASCII codes 0 to 127

Hex Dec ASCII 00 0 NUL 01 1 SOH 02 2 STX 03 3 ETX 04 4 EOT 05 5 ENQ 06 6 ACK 07 7 BEL 08 8 BS 09 9 HT 0A 10 LF 0B 11 VT 0C 12 FF 0D 13 CR 0E 14 SO 0F 15 SI 10 16 DLE 11 17 DC1 12 18 DC2 13 19 DC3 14 20 DC4 15 21 NAK 16 22 SYN 17 23 ETB 18 24 CAN 19 25 EM 1A 26 SUB 1B 27 ESC 1C 28 FS 1D 29 GS 1E 30 RS 1F 31 US

Hex Dec ASCII 20 32 SPACE 21 33 ! 22 34 " 23 35 # 24 36 $ 25 37 % 26 38 & 27 39 ' 28 40 ( 29 41 ) 2A 42 * 2B 43 + 2C 44 , 2D 45 2E 46 . 2F 47 / 30 48 0 31 49 1 32 50 2 33 51 3 34 52 4 35 53 5 36 54 6 37 55 7 38 56 8 39 57 9 3A 58 : 3B 59 ; 3C 60 < 3D 61 = 3E 62 > 3F 63 ?

Hex Dec ASCII 40 64 @ 41 65 A 42 66 B 43 67 C 44 68 D 45 69 E 46 70 F 47 71 G 48 72 H 49 73 I 4A 74 J 4B 75 K 4C 76 L 4D 77 M 4E 78 N 4F 79 O 50 80 P 51 81 Q 52 82 R 53 83 S 54 84 T 55 85 U 56 86 V 57 87 W 58 88 X 59 89 Y 5A 90 Z 5B 91 [ 5C 92 \ 5D 93 ] 5E 94 ^ 5F 95 _

Hex Dec ASCII 60 96 ` 61 97 a 62 98 b 63 99 c 64 100 d 65 101 e 66 102 f 67 103 g 68 104 h 69 105 i 6A 106 j 6B 107 k 6C 108 l 6D 109 m 6E 110 n 6F 111 o 70 112 p 71 113 q 72 114 r 73 115 s 74 116 t 75 117 u 76 118 v 77 119 w 78 120 x 79 121 y 7A 122 z 7B 123 { 7C 124 | 7D 125 } 7E 126 ~ 7F 127 DEL

Be aware that different manufacturers use different methods of notation to represent byte values in command strings, so it may be necessary to manually translate them before use. For example $1B, $07, $01 should be entered as \x1B\x07\x01. Similarly [STX] and [ETX] become \x02 and \x03, while SPACE is \x20 and hex format numbers such as 43h, 0Dh become \x43\x0d. Also ^M, meaning Control-M or CR (Carriage-Return) is entered as \x0d or \r.

Page 170

CNX CookBook 1.40 2001 David Webster

Appendix F: Lutron Grafik Eye & PRO-AV Control


A Grafik Eye system can be controlled with RS232 commands via any one of the following interfaces: Lutron GRX-RS232, Lutron GRX-PRG or Crestron ST-LT. The PRO-AV digital lighting controller master unit contains a built-in RS232 interface that is equivalent to the GRX-PRG. It therefore uses the same cable, protocol and driver as the Grafik Eye systems. Lutron GRX-RS232, Lutron GRX-PRG or Lutron PRO-AV Any of these interfaces accepts RS232 from a Crestron control processor. The serial cable supplied with the Lutron equipment can be used with Crestron 9w D-type com ports or one can be wired as follows: Lutron Terminal 1 2 3 Crestron COM Port 9w D-type Female 5 Ground 3 Data from CRESTRON 2 Data to CRESTRON

For use with the ST-CP fitted with RJ11 type com ports the serial cable can be wired as follows: Lutron Terminal 1 2 3 Crestron ST-CP Port RJ-11 2 Ground 4 Data from CRESTRON 3 Data to CRESTRON

The RS232 serial cable should not exceed 10m. Crestron ST-LT This interfaces the Crestron network to the Grafik Eye MUXLINK. The cable to connect ST-LT MUXLINK to Grafik Eye MUXLINK terminals is as follows: Grafik Eye MUXLINK 1 2 3 4 ST-LT MUXLINK 1 2 3 4

The muxlink cable may exceed the10m limit of serial connections and for this reason the ST-LT is the preferred method of control.

Page 171

CNX CookBook 1.40 2001 David Webster Control Unit Setup Although a Grafik Eye, with or without wall button panels, can be installed successfully without any configuration it is necessary to setup Grafik Eye control units if they are to be controlled with any of the above interfaces. Each Grafik Eye control unit must have its address assigned as described in the Grafik Eye Installers Guide on page 4-3. These instructions are reproduced briefly here. 1. Enter setup mode. Press and hold the SCENE1 and OFF buttons on the Grafik Eye until the scene LEDs start to cycle, about 3 seconds. 2. Select the address display. Press the FADE UP button once and A- appears in the FADE window. 3. Assign a unique address. Press the MASTER UP button once and the display will change to A1, or the next free address. 4. Exit setup mode. Press and hold the SCENE1 and OFF buttons on the Grafik Eye until the scene LEDs stop cycling, about 3 seconds. 5. Repeat steps 1 though 4 for each Grafik Eye control unit. Preset Scene Setup For simple applications the four preset scenes plus overall Off will be sufficient. A typical setup for a four zone dimmer might be as follows: Scene 1 2 3 4 Off Description Full High Medium Low All Off Application Cleaning General View Data View Video All Off Ceiling 100% 75% 25% 0% Off Spots 100% 0% 50% 0% Off Wall 100% 75% 25% 10% Off Screen 100% 75% 0% 0% Off

Scene 3 reduces light levels for projection but leaves sufficient light for note taking, while Scene 4 is darker for more immersive viewing.

Page 172

CNX CookBook 1.40 2001 David Webster Wall Button Panel Setup If any wall button panels (or other Lutron accessories) are being used then it will also be necessary to set the address DIP switch and configure each one to communicate with the appropriate Grafik Eye control unit as described in the Grafik Eye Installers Guide on pages 2-2 and 4-4. These instructions are reproduced briefly here. 1. Set the wall button panel address. Set the DIP switches before connecting to the control unit as follows: Panel# First Second Third 1 up up up 2 up up up 3 up up DN 4 up DN up 5 up up up 6 up up up 7 up up up 8 up up up

(These assume that only the basic scenes 1 to 4 are being used) 2. Put the wall button panel in talk. Press and hold the SCENE1 and OFF buttons on the wall button panel until the scene LEDs cycle, about 3 seconds. 3. Put the Grafik Eye in listen. Press and hold the SCENE1 buttons on the control unit until the scene LEDs flash in unison, about 3 seconds. 4. Take the wall button panel out of talk. Press and hold the SCENE1 and OFF buttons on the wall button panel until the scene LEDs stop flashing, about 3 seconds. 5. Repeat steps 1 though 4 for each wall button panel.

Page 173

CNX CookBook 1.40 2001 David Webster Lutron Programming To communicate via either Lutron interface a control processor COM port must be configured for RS232 at 9600,8,N,1. No hardware or software handshaking is required. To communicate via the Crestron ST-LT interface the ST-LT Network Device must be added to the SIMPL Windows program. It will appear in the program view as though it were two COM ports. Port A will default to the correct configuration for Lutron use and Port B can be ignored since it is intended to support direct PC to lighting system communications with Lutron Liaison software. In either of the above cases the COM port will need the following strings to be entered to select the four scenes and off for control unit 1: Command Scene 1 Scene 2 Scene 3 Scene 4 Off String :A11\r :A21\r :A31\r :A41\r :A01\r

For a second control unit with address 2 the strings are: Command Scene 1 Scene 2 Scene 3 Scene 4 Off String :A12\r :A22\r :A32\r :A42\r :A02\r

To control two units with addresses 1 & 2 the strings are: Command Scene 1 Scene 2 Scene 3 Scene 4 Off String :A112\r :A212\r :A312\r :A412\r :A012\r

For a more complete description of the RS232 commands consult the Lutron Grafik Eye RS232 Protocol Language Reference document or the Crestron ST-LT Operations Guide.

Page 174

CNX CookBook 1.40 2001 David Webster Crestron Database The Crestron Database contains two RS232 drivers for use with Grafik Eye systems. The GRX-AV-RS232 and GRX-AV-RS232/ATC default logic drivers are identical and permit full control but without status feedback The red subsystem folder has signal names that are mostly self-explanatory. (Although there is no dedicated logic driver for the ST-LT, either RS232 driver can be used by routing its serial signal output to the ST-LT port A TX$). User Module The RGB Communications Ltd supplied GRAFIK_2 user module can be used to control Grafik Eye systems and report status feedback. For raw (i.e. button) and scene (i.e. status) feedback to work the GRX-RS232 or GRX-PRG interface must have the following internal DIP switches set (the Crestron ST-LT interface is factory set correctly): DIP SW6=On & SW7=On. (Typically all others are off). View the GRAFIK_2 user module built-in Help for more details.

Page 175

CNX CookBook 1.40 2001 David Webster Lutron IR Control Grafik Eye dimmers have a built-in IR receiver that can be controlled using any of the Lutron IR drivers in the Crestron Database. However some drivers, e.g. GRX-IT have only Preset Scenes 1 to 4 and others, e.g. GRX-8IT, have Preset Scenes 1 to 8. Using IR control it is only ever possible to use the first 8 preset scenes. Note that ST-IRP infrared probes are not recommended to be attached to Grafik Eye control units since they can easily be dislodged by users while locating the dimmer buttons. (Of course if the control unit is mounted in a cupboard or ceiling space where user access is limited then it may be practical to stick an IR probe on it). Also internal mounting of a ST-IRP is not recommended for electrical safety reasons and cabinet space restrictions. Therefore the preferred method of IR control of a wall mounted Grafik Eye is via the ST-MB infrared master blaster which can be located on a ceiling within line of site of the control unit. The Lutron Pro-AV range of dimmers also has internal built-in IR receivers. For the Pro-AV Master unit this is usually irrelevant since the unit has an internal RS232 interface. However the Pro-AV Slave unit could be used without a Pro-AV Master unit and controlled instead via infrared. Since the IR receiver is always shielded from users by the metal cabinet it is practical to attach a ST-IRP probe to it. The Lutron Telume range of wall box dimmers includes a model with a built-in IR receiver. Its four preset scenes can be controlled with the same drivers as used for any Grafik Eye model. The GRX-IT would be suitable. To store a preset scene adjust the brightness with the RAISE or LOWER functions then send the required PRESET-N function for a sustained 4 seconds. Since the Telume IR receiver window is mounted in one of its push buttons the only practical method of IR control is via a ST-MB infrared master blaster, which can be located on a ceiling within line of site of the control unit.

Page 176

CNX CookBook 1.40 2001 David Webster

Appendix G: Software licenses


These instructions are to install the CNX Gateway and VTPro-E software and enable their e-control software licenses. Once software licenses are enabled it will be necessary to use a different procedure to transfer either of these programs to another PC. See the appropriate To transfer your license section of this appendix for details. Note: If Windows needs to be re-installed or updated it is necessary to transfer the license Site Keys to a floppy disk before proceeding. Then after Windows setup is complete the Site Keys can be transferred back. If this is not done the Windows setup procedure will erase the Site Keys. CNX Gateway 1) To install the CNX Gateway on your PC: a) If not available otherwise, download the GATEWAY.EXE file from the ECONTROL library in the Downloads directory on the Crestron website: http://www.crestron.com b) Run the GATEWAY.EXE file on your PC and follow the on screen instructions. c) Initially, you will have a fifteen-day trial license for a maximum of 5 connections. 2) To enable the CNX Gateway license: a) If the Crestron swirl icon is present in the System Tray then the CNX Gateway is already running so skip to (b). If not running then start the program with the Start>Programs>Crestron>E-Control>CNX Gateway command. b) If the Update License dialogue box appears then skip to (c). If not click the About tab then the Update License button. c) On the Update License page, click on and highlight the entire line of characters in the SITE CODE field. d) Hit CTRL+C (or right-click and select copy) to copy the digits into the clipboard. e) You must now email your SITE CODE to info@rgbcomms.co.uk. In the body of your message, hit CTRL+V, or right-click and select paste, to insert the SITE CODE that was copied in the previous step, to your message. Please be sure to mention that this is for a CNX Gateway license, and to include your P.O, number, dealer name and the number of connections you require.. f) When you receive your new SITE KEY via email, repeat the same copy process from above to copy your SITE KEY to the clipboard. g) Proceed back to the Update License section in the CNX Gateway. h) Click inside the SITE KEY field.

Page 177

CNX CookBook 1.40 2001 David Webster i) Repeat the same paste process from above to insert the SITE KEY. Click OK. You have now successfully installed/upgraded your license (note that your SITE CODE is now different).

3) To transfer your CNX license from one PC to another: Before describing the transfer process, assume that the source computer (PC-1) already has a licensed version of the CNX Gateway and the destination computer (PC2) does not. Although the following procedure uses a blank, formatted floppy disk to transfer the license, Zip disks or network transfers are permissible as well. The procedure below describes the actions necessary to transfer the license from PC-1 to PC-2. a) Install the CNX Gateway on the destination PC-2 (see the instructions under To install the CNX Gateway on your PC). b) After installation, run the CNX Gateway application and proceed to the About tab. c) Insert a blank, formatted floppy disc into the floppy drive on the destination PC-2 d) Click on the Prepare button. This will copy the license transfer information to the floppy. e) After the floppy has been prepared, take this floppy and insert it into the floppy drive of the source PC-1 that is running your licensed copy of the CNX Gateway. f) Run the CNX Gateway application on the source PC-1. If the Update License page did not come up automatically, double-click on the Crestron swirl icon in the lower right task bar, then proceed to the About tab. g) Click on the Update License button. h) Click on the Transfer License button. i) Wait for the license to transfer to the floppy. CAUTION: Use care when placing the license on a disk or network. At this point in the transfer procedure, this new text file contains the encoded licensing information. In the event the file becomes lost or damaged before loading it to another PC that needs to be e-control enabled, the license is lost. Because of this, please use the utmost care while performing this transfer. j) After it is finished, remove the floppy and insert it back into the floppy drive on the destination PC-2. k) Provided that your new machine is still on the Update License screen, click on the Transfer License button. The Authorized field should change to YES.

Page 178

CNX CookBook 1.40 2001 David Webster You have now successfully transferred the original license to your new machine. Note: Please note that this is not a copy procedure, rather, you have moved the license to your new machine. The CNX Gateway will no longer run on the source machine. You can transfer the license as many times as you need to, but it will only run on the last machine to which the license was transferred. VisionTools Pro-e 1) To install VisionTools Pro-e on your PC: a) If not available otherwise, download the VTPRO219.EXE file from the VTPRO-E library in the Downloads directory on the Crestron website: http://www.crestron.com b) Run the VTPRO219.EXE file on your PC and follow the on screen instructions. 2) To enable the VisionTools Pro-e license: Start the Vision Tools Pro-e program. (If the What do you want to do? dialogue box appears press the u key to remove it). a) Select the File>Enable e-controls command. b) On the Enable E-controls page, click on and highlight the entire line of characters in the SITE CODE field. c) Hit CTRL+C (or right-click and select copy) to copy the digits into the clipboard. d) You must now email your SITE CODE to info@rgbcomms.co.uk. In the body of your message, hit CTRL+V, or right-click and select paste, to insert the SITE CODE that was copied in the previous step, to your message. Please be sure to mention that this is for a VTPro-e license, and to include your P.O. number and dealer name. e) When you receive your new SITE KEY via email, repeat the same copy process from above to copy your SITE KEY to the clipboard. f) Proceed back to the Enable E-controls page in VTPro-e. g) Click inside the SITE KEY field. h) Repeat the same paste process from above to insert the SITE KEY. Click OK. You have now successfully installed/upgraded your license (note that your SITE CODE is now different) and the VTPro-e>Help>About box will change to display E-enabled and you will have access to the HTML conversion utilities.

Page 179

CNX CookBook 1.40 2001 David Webster

3) To transfer your VTPro-e license from one PC to another: Before describing the transfer process, assume that the source computer (PC-1) already has a licensed version of VTPro-e and the destination computer (PC-2) does not. Although the following procedure uses a blank, formatted floppy disk to transfer the license, Zip disks or network transfers are permissible as well. The procedure below describes the actions necessary to transfer the license from PC-1 to PC-2. a) Install VTPro-e on the destination PC-2 (see the instructions under To install VisionTools Pro-e on your PC). b) Run the VT Pro-e application on PC-2. c) If the "VisionTools Pro-e License" dialog box does not appear automatically, select the File>Enable e-controls command. Insert a blank, formatted floppy disk into the floppy drive of the destination PC-2. d) Activate the License transfer radio button in the Licensing area of the "VisionTools Pro-e License" dialog box. e) Click the Prepare button. f) Browse to the floppy drive and save the file with the name PREPARE.LTF. However, the file can be assigned any name. g) After the "Successful Preparation" Message appears, remove the floppy from PC-2 and insert it into the floppy drive of the source PC-1 (the machine that is running the licensed copy of VT Pro-e. h) Run the VT Pro-e application on PC-1. i) Select the File>Transfer e-controls License command. A window opens prompting the user to "Open the file with the license information". Browse to the floppy and select PREPARE.LTF and click the Open button. j) A window opens prompting the user to "Save the license information to a file". Browse to the floppy drive and save it with the name LICENSE.LTF. However, the file can be assigned any name. CAUTION: Use care when placing LICENSE.LTF on a disk or network. At this point in the transfer procedure, this new text file contains the encoded licensing information. In the event the file becomes lost or damaged before loading it to another PC that needs to be e-control enabled, the license is lost. Because of this, please use the utmost care while performing this transfer. k) It may take some time for the license to transfer to the floppy. When VTPro-e prompts with a "Successful Transfer" message, remove the floppy and insert it into the floppy drive of the destination PC-2. l) Assuming that PC-2 still has the "VisionTools Pro-e License" dialog box open, click on the Transfer button. Page 180

CNX CookBook 1.40 2001 David Webster m) A window opens prompting the user to "Open the file with the license information". Browse to the floppy drive and select the LICENSE.LTF file n) Click the Open button to conclude the transfer process. VTPro-e prompts with the "Successful Enable" message. You have now successfully transferred the original license to VTPro-e on your new machine. Note: Please note that this is not a copy procedure, rather, you have moved the license to your new machine. VTPro-e will no longer provide access to the HTML conversion utilities on the source machine. You can transfer the license as many times as you need to, but it will only run on the last machine to which the license was transferred.

Page 181

CNX CookBook 1.40 2001 David Webster

Index
A active text colour .........................................74 adapter ......................................................140 Analog Debugger symbol ............................39 analogue objects ..........................................68 Animate macro............................................51 attenuate the IR signal.................................95 Audio amplifiers .........................................12 auto repeat functions ..................................56 B back light ....................................................30 backspace....................................................37 balanced......................................................91 Barco cable .................................................23 Bass ............................................................90 Battery gauge .................................. 30, 48, 70 baud ..........................................................103 blank text string ..........................................54 brand names................................................12 brightness....................................................47 BUTTON PRESSER symbol .......................69 buttons ......................................................165 C CD .................................................... 147, 149 Clear Watch ................................................39 clock ...........................................................31 CNECI-4A ..................................................77 CN-HBLOCK .............................................19 CNIDC........................................................65 CNMKI.....................................................167 CNRFGWA.................................................65 CN-SP112.............................................20, 80 CN-WEDGE ...............................................22 CNX COM ports .........................................21 CNXIO .......................................................97 CNX-LIR ........................................ 14, 17, 57 CNX-VTC ..................................................89 Commenting Out Symbols...........................40 Compile Log ...............................................74 Compress on Upload ...................................51 Creston web site ..........................................99 Crestron transport font ..............................166 Custom Serial Driver.............................43, 59 D DEAL for Windows ....................................14 Default Logic ..............................................42 Delay symbol...............................................33 dissolve .....................................................155 dry cells ......................................................99 E e-control ........................................11, 72, 177 Eiki .......................................................... 144 Ektapro....................................................... 59 Elmo cable.................................................. 23 Elmo projector ............................................ 88 Epson projectors ....................................... 138 ergonomic................................................... 28 ERROR LED .............................................. 97 external slave relays.............................. 79, 81 Extron cable ............................................... 23 Extron SW6AVMX .............................. 13, 38 Extron System 5cr .................................... 135 F Farouja LD/DVD cable ............................... 22 feedback ..................................................... 68 firmware..................................63, 64, 96, 100 Fisher ......................................................... 12 flash text message....................................... 54 forced page flip........................................... 34 Fujitsu .............................................. 164, 165 G Generic Serial........................................... 103 go to a specific page.................................... 35 Grafik Eye RS232..................................... 174 H hex ............................................................. 37 Hitachi projectors...................................... 145 I indirect text fields ....................................... 54 interlock symbol ......................................... 51 invisible button ............................... 34, 48, 68 invisible sub-page ................................. 48, 50 IR/serial ports ............................................. 20 J jamming ..................................................... 33 JVC consumer VCR.................................... 12 JVC visualiser cable.................................... 22 K Key click .................................................... 30 keyboard emulation................................... 167 Kodak......................................................... 59 Kodak cable................................................ 23 Kodak EktaPro projectors ......................... 153

Page 182

CNX CookBook 1.40 2001 David Webster


L LCD.................................................. 147, 149 Lexicon .....................................................123 link .............................................................71 Linn ..........................................................119 logic driver.......................................... 14, 169 Lutron GRX-PRG .....................................171 Lutron GRX-RS232 ..................................171 Lutron Pro-AV..........................................176 Lutron Telume ..........................................176 M Mailbox.................................................60, 62 Marantz ......................................................12 maximum cable length ................................21 memory effect .............................................30 Meridian ............................................. 58, 126 Meridian 500/800 cable...............................22 microphone .................................................91 Monitor ROM ................................. 63, 64, 97 mouse emulation .......................................167 moving a rogram.........................................15 Multi-Code................................................169 mute relay ...................................................91 MUXLINK................................................171 N NEC.......................................... 147, 149, 151 NET ports ...................................................19 network.......................................................96 network ID, setting......................................96 NOR symbol..............................................155 O One Shot timer symbol................................40 Operating System............................ 63, 64, 98 Oscillator symbol ..................................54, 58 P Pace ............................................................12 Panasonic consumer VCR ...........................12 Panasonic projector cable ............................22 Panasonic projectors..................................158 Panasonic VCR .........................................160 Panasonic VCR cable ..................................25 Parity ........................................................103 partition switch ...........................................87 pass a value into a symbol ...........................41 password .....................................................34 password, backdoor .....................................52 password, fixed ...........................................52 password, project.........................................53 Philips.........................................................12 Pioneer......................................................133 Plasma monitor .........................................164 POWER function .................................. 14, 42 power supplies ............................................ 19 power supply............................................... 81 programming cable..................................... 17 projector ............................ 140, 147, 149, 151 PS/2 mouse............................................... 167 R RAMPNV................................................... 46 RC5 ...............................................12, 14, 169 receiving aerial ........................................... 94 reserved function ...................................... 102 RF CH ........................................................ 70 RF ID ................................................... 65, 68 RF mouse.................................................... 68 RGB .......................... 147, 148, 149, 150, 151 RJ11 NET ports .......................................... 19 RS232..........................................96, 140, 165 RS232-RS422 converter.............................. 71 RS485................................................... 27, 95 RTS ............................................................ 27 S Sanyo projectors ....................................... 143 Serial Debugger symbol ........................ 27, 39 Serial I/O symbol........................................ 45 SERIAL IO symbol..................................... 54 Serial Join................................................... 54 Serial Send symbols.................................. 167 Set Watch ................................................... 39 setup, built-in.............................................. 52 share signals ......................................... 71, 72 Sharp projectors........................................ 141 SITE CODE ..................................... 177, 179 SITE KEY ........................................ 177, 179 Slider.......................................................... 29 SmartPresenter ........................................... 80 software licenses ....................................... 177 Sony ......................................................... 116 Sony consumer VCR................................... 12 Sony document camera cable ...................... 25 Sony projectors ........................................... 15 Sony UVW-1200/1400.............................. 162 source code ................................................. 62 SP-RY ........................................................ 80 ST-BP......................................................... 99 ST-COM..................................................... 21 ST-CP......................................................... 96 STEPPER symbol ....................................... 69 ST-IO ......................................................... 79 ST-IRP ................................................. 94, 95 ST-LT........................................171, 174, 175 ST-MB ..................................................... 176 ST-PC......................................................... 78 STS programming ...................................... 68 ST-SPL....................................................... 95

Page 183

CNX CookBook 1.40 2001 David Webster


ST-VC ........................................................89 STX1550C ..................................................70 STX3000.....................................................70 STX3500C ..................................................70 suffix...........................................................40 T Telume......................................................176 test RF performance ....................................94 Text Join .....................................................54 Theta Casanova...........................................95 Timeouts .....................................................30 Toggle symbol.............................................47 Transfer a CNX license .............................178 Transfer a VTPro-e license........................180 Transparent buttons.....................................51 Treble .........................................................90 two way panel .............................................51 U unbalanced ................................................. 91 units ........................................................... 40 User Interface ............................................. 69 V Video.........................................147, 149, 151 volume control...................................... 56, 95 VTP.INI error........................................... 101 VTPro-e compiler error............................... 74 W wireless........................................... 65, 68, 70 wire-or........................................................ 33 X XSIG2 .................................................. 71, 72 Z ZIP file ................................................. 60, 62

Page 184

Anda mungkin juga menyukai