Specifications

EssentialsofCrestronProgramming
90
User Modules
CrestronprocessorscontrolserialdevicesusingphysicalstandardssuchasRS232,RS
422,andRS485.UnlikeIR,RS232controldoesnotusereadytogodriverfiles.Instead,
theprotocolthatthedeviceisexpectingwillbeprovidedbythemanufacturerinthe
unitʹsdocumentation.Thisprotocolincl
udesthedatathatthedeviceexpectstoreceive
andtransmit,theformatoftheserialcommands,thespeedatwhichitcommunicates
(baudrate),theerrorchecking(parity),andotherelementswhichallhavetobeadjusted
inamoduletomatchthemanufacturerʹsspecification.
Becauseoftheabsenceofadriverfile,RS232controlisgenerallyconsideredmore
difficulttopr
ogramthanIR.ThisisbecauseeachtimeanRS232deviceistobe
programmed,theprogrammermustlookuptheprotocolinthemanual,andthenwrite
thenecessarylogicintotheprogramtosendth
isdata.(Tocounterthis,manydevices
havededicatedCrestronmoduleswrittenforthem.Thesemodulescanbepluggedinto
aprogramandusedtogenerateallthepropercontrolcodesautomatically.)
TheVirtualPresentationRoomincorporatesasimplemodulethatsendsserialcommand
stringstotheprojectortoturntheprojectoronandoffandtoselectsources.Theserial
outputstrin
gofthemoduleistransmittedtotheCOMportviathe<tx$>inputofthe
builtinserialdriver,andontotheprojectorviatheserialcable.
Elementsofausermodule
AmoduleconsistsofanArgumentDefinition,whichrepresentshowthesymbolwill
lookinSIMPLWindows,andlogicsymbols.
Theinputs,outputsandparametersoftheArgumentDefinitionareassociatedwith
signalsandparametersdefinedinthemodule.